summaryrefslogtreecommitdiffstats
path: root/include/unistd.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1996-09-14 03:00:32 +0000
committerbde <bde@FreeBSD.org>1996-09-14 03:00:32 +0000
commit6ed5ccfb8ff780ada625c4ebc1c40ad5d6395e84 (patch)
tree137a895b2bbf552ac725382b58bbcd9900e55b7a /include/unistd.h
parent7a2a97d77da0ec8209bd2d8424f56c95a4f837ea (diff)
downloadFreeBSD-src-6ed5ccfb8ff780ada625c4ebc1c40ad5d6395e84.zip
FreeBSD-src-6ed5ccfb8ff780ada625c4ebc1c40ad5d6395e84.tar.gz
Don't use __dead or __pure in user code. They were obfuscations
for gcc >= 2.5 and no-ops for gcc >= 2.6. Converted to use __dead2 or __pure2 where it wasn't already done, except in math.h where use of __pure was mostly wrong.
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 8094bd6..7428f5d 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -49,8 +49,7 @@
#endif
__BEGIN_DECLS
-__dead void
- _exit __P((int)) __dead2;
+void _exit __P((int)) __dead2;
int access __P((const char *, int));
unsigned int alarm __P((unsigned int));
int chdir __P((const char *));
@@ -121,8 +120,7 @@ int getgrouplist __P((const char *, int, int *, int *));
long gethostid __P((void));
int gethostname __P((char *, int));
mode_t getmode __P((const void *, mode_t));
-__pure int
- getpagesize __P((void));
+int getpagesize __P((void)) __pure2;
char *getpass __P((const char *));
char *getusershell __P((void));
char *getwd __P((char *)); /* obsoleted by getcwd() */
OpenPOWER on IntegriCloud