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
+4 -4
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) );
+5 -4
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 */