Renamed some types Uid_t, Gid_t, Mode_t, etc. for perl5.
More space for synctree.
This commit is contained in:
@@ -127,7 +127,7 @@ struct group *getgrent(void)
|
||||
}
|
||||
}
|
||||
|
||||
struct group *getgrgid(Gid_t gid)
|
||||
struct group *getgrgid(_mnx_Gid_t gid)
|
||||
/* Return the group file entry belonging to the user-id. */
|
||||
{
|
||||
struct group *gr;
|
||||
|
||||
@@ -120,7 +120,7 @@ struct passwd *getpwent(void)
|
||||
}
|
||||
}
|
||||
|
||||
struct passwd *getpwuid(Uid_t uid)
|
||||
struct passwd *getpwuid(_mnx_Uid_t uid)
|
||||
/* Return the password file entry belonging to the user-id. */
|
||||
{
|
||||
struct passwd *pw;
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
|
||||
PUBLIC int chmod(name, mode)
|
||||
_CONST char *name;
|
||||
Mode_t mode;
|
||||
_mnx_Mode_t mode;
|
||||
{
|
||||
message m;
|
||||
|
||||
|
||||
+2
-2
@@ -5,8 +5,8 @@
|
||||
|
||||
PUBLIC int chown(name, owner, grp)
|
||||
_CONST char *name;
|
||||
Uid_t owner;
|
||||
Gid_t grp;
|
||||
_mnx_Uid_t owner;
|
||||
_mnx_Gid_t grp;
|
||||
{
|
||||
message m;
|
||||
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
|
||||
PUBLIC int creat(name, mode)
|
||||
_CONST char *name;
|
||||
Mode_t mode;
|
||||
_mnx_Mode_t mode;
|
||||
{
|
||||
message m;
|
||||
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
|
||||
PUBLIC int mkdir(name, mode)
|
||||
_CONST char *name;
|
||||
Mode_t mode;
|
||||
_mnx_Mode_t mode;
|
||||
{
|
||||
message m;
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
|
||||
PUBLIC int mkfifo(name, mode)
|
||||
_CONST char *name;
|
||||
Mode_t mode;
|
||||
_mnx_Mode_t mode;
|
||||
{
|
||||
return mknod(name, mode | S_IFIFO, (Dev_t) 0);
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
|
||||
PUBLIC int mknod(name, mode, dev)
|
||||
_CONST char *name;
|
||||
Mode_t mode;
|
||||
_mnx_Mode_t mode;
|
||||
Dev_t dev;
|
||||
{
|
||||
message m;
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ int flags;
|
||||
if (flags & O_CREAT) {
|
||||
m.m1_i1 = strlen(name) + 1;
|
||||
m.m1_i2 = flags;
|
||||
m.m1_i3 = va_arg(argp, Mode_t);
|
||||
m.m1_i3 = va_arg(argp, _mnx_Mode_t);
|
||||
m.m1_p1 = (char *) name;
|
||||
} else {
|
||||
_loadname(name, &m);
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
#include <unistd.h>
|
||||
|
||||
PUBLIC int setuid(usr)
|
||||
Uid_t usr;
|
||||
_mnx_Uid_t usr;
|
||||
{
|
||||
message m;
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
#include <sys/stat.h>
|
||||
|
||||
PUBLIC mode_t umask(complmode)
|
||||
Mode_t complmode;
|
||||
_mnx_Mode_t complmode;
|
||||
{
|
||||
message m;
|
||||
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@
|
||||
#define O_APPEND 0x040
|
||||
|
||||
int _open(const char *path, int flags);
|
||||
int _creat(const char *path, Mode_t mode);
|
||||
int _creat(const char *path, _mnx_Mode_t mode);
|
||||
int _close(int d);
|
||||
|
||||
FILE *
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
#define O_APPEND 0x040
|
||||
|
||||
int _open(const char *path, int flags);
|
||||
int _creat(const char *path, Mode_t mode);
|
||||
int _creat(const char *path, _mnx_Mode_t mode);
|
||||
int _close(int d);
|
||||
|
||||
FILE *
|
||||
|
||||
Reference in New Issue
Block a user