Renamed some types Uid_t, Gid_t, Mode_t, etc. for perl5.

More space for synctree.
This commit is contained in:
Philip Homburg
2005-06-23 11:07:31 +00:00
parent 82c0b45aeb
commit 0979014807
33 changed files with 63 additions and 89 deletions

View File

@@ -61,7 +61,7 @@ struct flock {
/* Function Prototypes. */
_PROTOTYPE( int creat, (const char *_path, Mode_t _mode) );
_PROTOTYPE( int creat, (const char *_path, _mnx_Mode_t _mode) );
_PROTOTYPE( int fcntl, (int _filedes, int _cmd, ...) );
_PROTOTYPE( int open, (const char *_path, int _oflag, ...) );

View File

@@ -15,7 +15,7 @@ struct group {
};
/* Function Prototypes. */
_PROTOTYPE( struct group *getgrgid, (Gid_t _gid) );
_PROTOTYPE( struct group *getgrgid, (_mnx_Gid_t _gid) );
_PROTOTYPE( struct group *getgrnam, (const char *_name) );
#ifdef _MINIX

View File

@@ -22,7 +22,7 @@ struct passwd {
/* Function Prototypes. */
_PROTOTYPE( struct passwd *getpwnam, (const char *_name) );
_PROTOTYPE( struct passwd *getpwuid, (Uid_t _uid) );
_PROTOTYPE( struct passwd *getpwuid, (_mnx_Uid_t _uid) );
#ifdef _MINIX
_PROTOTYPE( void endpwent, (void) );

View File

@@ -13,6 +13,7 @@
#ifndef _MINIX__TYPES_H
#include <sys/types.h>
#endif
#include <minix/config.h>
#if (_WORD_SIZE != 2 && _WORD_SIZE != 4) || \
(_PTR_SIZE != _WORD_SIZE && _PTR_SIZE != 2*_WORD_SIZE)

View File

@@ -65,12 +65,12 @@ struct stat {
#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) /* is a sym link */
/* Function Prototypes. */
_PROTOTYPE( int chmod, (const char *_path, Mode_t _mode) );
_PROTOTYPE( int chmod, (const char *_path, _mnx_Mode_t _mode) );
_PROTOTYPE( int fstat, (int _fildes, struct stat *_buf) );
_PROTOTYPE( int mkdir, (const char *_path, Mode_t _mode) );
_PROTOTYPE( int mkfifo, (const char *_path, Mode_t _mode) );
_PROTOTYPE( int mkdir, (const char *_path, _mnx_Mode_t _mode) );
_PROTOTYPE( int mkfifo, (const char *_path, _mnx_Mode_t _mode) );
_PROTOTYPE( int stat, (const char *_path, struct stat *_buf) );
_PROTOTYPE( mode_t umask, (Mode_t _cmask) );
_PROTOTYPE( mode_t umask, (_mnx_Mode_t _cmask) );
/* Open Group Base Specifications Issue 6 (not complete) */
_PROTOTYPE( int lstat, (const char *_path, struct stat *_buf) );

View File

@@ -81,9 +81,9 @@ typedef struct { u32_t _[2]; } u64_t;
* is clearer.
*/
typedef int Dev_t;
typedef int Gid_t;
typedef int _mnx_Gid_t;
typedef int Nlink_t;
typedef int Uid_t;
typedef int _mnx_Uid_t;
typedef int U8_t;
typedef unsigned long U32_t;
typedef int I8_t;
@@ -105,14 +105,14 @@ typedef unsigned long Ino_t;
typedef unsigned int Zone1_t;
typedef unsigned int Bitchunk_t;
typedef unsigned int U16_t;
typedef unsigned int Mode_t;
typedef unsigned int _mnx_Mode_t;
#else /* _EM_WSIZE == 4, or _EM_WSIZE undefined */
/*typedef int Ino_t; Ino_t is now 32 bits */
typedef int Zone1_t;
typedef int Bitchunk_t;
typedef int U16_t;
typedef int Mode_t;
typedef int _mnx_Mode_t;
#endif /* _EM_WSIZE == 2, etc */
@@ -124,5 +124,6 @@ typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;
typedef char *caddr_t;
#endif /* _TYPES_H */

View File

@@ -85,7 +85,7 @@ _PROTOTYPE( void _exit, (int _status) );
_PROTOTYPE( int access, (const char *_path, int _amode) );
_PROTOTYPE( unsigned int alarm, (unsigned int _seconds) );
_PROTOTYPE( int chdir, (const char *_path) );
_PROTOTYPE( int chown, (const char *_path, Uid_t _owner, Gid_t _group) );
_PROTOTYPE( int chown, (const char *_path, _mnx_Uid_t _owner, _mnx_Gid_t _group) );
_PROTOTYPE( int close, (int _fd) );
_PROTOTYPE( char *ctermid, (char *_s) );
_PROTOTYPE( char *cuserid, (char *_s) );
@@ -118,10 +118,10 @@ _PROTOTYPE( int pause, (void) );
_PROTOTYPE( int pipe, (int _fildes[2]) );
_PROTOTYPE( ssize_t read, (int _fd, void *_buf, size_t _n) );
_PROTOTYPE( int rmdir, (const char *_path) );
_PROTOTYPE( int setgid, (Gid_t _gid) );
_PROTOTYPE( int setgid, (_mnx_Gid_t _gid) );
_PROTOTYPE( int setpgid, (pid_t _pid, pid_t _pgid) );
_PROTOTYPE( pid_t setsid, (void) );
_PROTOTYPE( int setuid, (Uid_t _uid) );
_PROTOTYPE( int setuid, (_mnx_Uid_t _uid) );
_PROTOTYPE( unsigned int sleep, (unsigned int _seconds) );
_PROTOTYPE( long sysconf, (int _name) );
_PROTOTYPE( pid_t tcgetpgrp, (int _fd) );
@@ -139,8 +139,8 @@ _PROTOTYPE( int symlink, (const char *path1, const char *path2) );
#endif
_PROTOTYPE( int brk, (char *_addr) );
_PROTOTYPE( int chroot, (const char *_name) );
_PROTOTYPE( int mknod, (const char *_name, Mode_t _mode, Dev_t _addr) );
_PROTOTYPE( int mknod4, (const char *_name, Mode_t _mode, Dev_t _addr,
_PROTOTYPE( int mknod, (const char *_name, _mnx_Mode_t _mode, Dev_t _addr) );
_PROTOTYPE( int mknod4, (const char *_name, _mnx_Mode_t _mode, Dev_t _addr,
long _size) );
_PROTOTYPE( char *mktemp, (char *_template) );
_PROTOTYPE( int mount, (char *_spec, char *_name, int _flag) );