summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-12-29 01:07:55 +0000
committermike <mike@FreeBSD.org>2002-12-29 01:07:55 +0000
commita41b40a7da6c9e23f57c23a43a5f13609f128983 (patch)
tree28ba1b8372875f775d3e8b51bdd63ef86f069fab /include
parent835ad61213f5ff1e69526a09c06e68594c689333 (diff)
downloadFreeBSD-src-a41b40a7da6c9e23f57c23a43a5f13609f128983.zip
FreeBSD-src-a41b40a7da6c9e23f57c23a43a5f13609f128983.tar.gz
o Add typedef for off_t, pid_t, and useconds_t.
o Use useconds_t where appropriate. o Fix a bug in typedef for uid_t (5.0-R candidate).
Diffstat (limited to 'include')
-rw-r--r--include/unistd.h23
1 files changed, 17 insertions, 6 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 68e456f..4c4b04c 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -47,6 +47,16 @@ typedef __gid_t gid_t;
#define _GID_T_DECLARED
#endif
+#ifndef _OFF_T_DECLARED
+typedef __off_t off_t;
+#define _OFF_T_DECLARED
+#endif
+
+#ifndef _PID_T_DECLARED
+typedef __pid_t pid_t;
+#define _PID_T_DECLARED
+#endif
+
#ifndef _SIZE_T_DECLARED
typedef __size_t size_t;
#define _SIZE_T_DECLARED
@@ -58,13 +68,14 @@ typedef __ssize_t ssize_t;
#endif
#ifndef _UID_T_DECLARED
-typedef __uid_t_ uid_t;
+typedef __uid_t uid_t;
#define _UID_T_DECLARED
#endif
-/*
- * XXX missing type definitions for off_t, pid_t and useconds_t.
- */
+#ifndef _USECONDS_T_DECLARED
+typedef __useconds_t useconds_t;
+#define _USECONDS_T_DECLARED
+#endif
#define STDIN_FILENO 0 /* standard input file descriptor */
#define STDOUT_FILENO 1 /* standard output file descriptor */
@@ -427,8 +438,8 @@ int setregid(gid_t, gid_t);
int setreuid(uid_t, uid_t);
/* void swab(const void * __restrict, void * __restrict, ssize_t); */
void sync(void);
-unsigned int ualarm(unsigned int, unsigned int);
-int usleep(unsigned int);
+useconds_t ualarm(useconds_t, useconds_t);
+int usleep(useconds_t);
pid_t vfork(void);
/* See comment at ftruncate() above. */
OpenPOWER on IntegriCloud