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).
This commit is contained in:
parent
07842325eb
commit
90bf910025
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108381
@ -47,6 +47,16 @@ typedef __gid_t gid_t;
|
|||||||
#define _GID_T_DECLARED
|
#define _GID_T_DECLARED
|
||||||
#endif
|
#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
|
#ifndef _SIZE_T_DECLARED
|
||||||
typedef __size_t size_t;
|
typedef __size_t size_t;
|
||||||
#define _SIZE_T_DECLARED
|
#define _SIZE_T_DECLARED
|
||||||
@ -58,13 +68,14 @@ typedef __ssize_t ssize_t;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _UID_T_DECLARED
|
#ifndef _UID_T_DECLARED
|
||||||
typedef __uid_t_ uid_t;
|
typedef __uid_t uid_t;
|
||||||
#define _UID_T_DECLARED
|
#define _UID_T_DECLARED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
#ifndef _USECONDS_T_DECLARED
|
||||||
* XXX missing type definitions for off_t, pid_t and useconds_t.
|
typedef __useconds_t useconds_t;
|
||||||
*/
|
#define _USECONDS_T_DECLARED
|
||||||
|
#endif
|
||||||
|
|
||||||
#define STDIN_FILENO 0 /* standard input file descriptor */
|
#define STDIN_FILENO 0 /* standard input file descriptor */
|
||||||
#define STDOUT_FILENO 1 /* standard output 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);
|
int setreuid(uid_t, uid_t);
|
||||||
/* void swab(const void * __restrict, void * __restrict, ssize_t); */
|
/* void swab(const void * __restrict, void * __restrict, ssize_t); */
|
||||||
void sync(void);
|
void sync(void);
|
||||||
unsigned int ualarm(unsigned int, unsigned int);
|
useconds_t ualarm(useconds_t, useconds_t);
|
||||||
int usleep(unsigned int);
|
int usleep(useconds_t);
|
||||||
pid_t vfork(void);
|
pid_t vfork(void);
|
||||||
|
|
||||||
/* See comment at ftruncate() above. */
|
/* See comment at ftruncate() above. */
|
||||||
|
Loading…
Reference in New Issue
Block a user