summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-04-13 15:38:10 +0000
committerbde <bde@FreeBSD.org>1997-04-13 15:38:10 +0000
commit1c9db9a173eb2859df457050c43bc491c1e7c955 (patch)
tree1cccd29bdab4ff1f3d9e8547673f51aa274df1f4 /include
parentb9d8e9106dd254df3090edad75501f9c3d28e12d (diff)
downloadFreeBSD-src-1c9db9a173eb2859df457050c43bc491c1e7c955.zip
FreeBSD-src-1c9db9a173eb2859df457050c43bc491c1e7c955.tar.gz
#ifdef'ed the declaration of lseek() so that -Wredundant-decls doesn't
cause noise. Duplicated the lseek() redeclaration hack for all functions involving off_t's (ftruncate(), mmap() and truncate()) to help broken programs work.
Diffstat (limited to 'include')
-rw-r--r--include/unistd.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index e0b9bba..ae11e40 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -77,7 +77,10 @@ pid_t getppid __P((void));
uid_t getuid __P((void));
int isatty __P((int));
int link __P((const char *, const char *));
+#ifndef _LSEEK_DECLARED
+#define _LSEEK_DECLARED
off_t lseek __P((int, off_t, int));
+#endif
long pathconf __P((const char *, int));
int pause __P((void));
int pipe __P((int *));
@@ -117,7 +120,10 @@ int exect __P((const char *, char * const *, char * const *));
int fchdir __P((int));
int fchown __P((int, uid_t, gid_t));
int fsync __P((int));
+#ifndef _FTRUNCATE_DECLARED
+#define _FTRUNCATE_DECLARED
int ftruncate __P((int, off_t));
+#endif
int getdomainname __P((char *, int));
int getdtablesize __P((void));
int getgrouplist __P((const char *, int, int *, int *));
@@ -172,9 +178,13 @@ int symlink __P((const char *, const char *));
void sync __P((void));
int syscall __P((int, ...));
off_t __syscall __P((quad_t, ...));
+#ifndef _TRUNCATE_DECLARED
+#define _TRUNCATE_DECLARED
int truncate __P((const char *, off_t));
+#endif
int ttyslot __P((void));
unsigned int ualarm __P((unsigned int, unsigned int));
+int undelete __P((const char *));
int unwhiteout __P((const char *));
void usleep __P((unsigned int));
void *valloc __P((size_t)); /* obsoleted by malloc() */
OpenPOWER on IntegriCloud