You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
27948eac27
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@70908 d073be05-634f-4543-b044-5fe20cf6d1d6
42 lines
1.4 KiB
Plaintext
42 lines
1.4 KiB
Plaintext
/PyInt_FromLong((long)st->st_uid)/s//PyInt_FromLong((long)(int)st->st_uid)/
|
|
/PyInt_FromLong((long)st->st_gid)/s//PyInt_FromLong((long)(int)st->st_gid)/
|
|
/^posix_chown/a
|
|
.
|
|
/long uid, gid;/s//int uid, gid;/
|
|
/"etll:chown"/s//"etii:chown"/
|
|
/return PyInt_FromLong((long)getegid());/s//return PyInt_FromLong((long)(int)getegid());/
|
|
/return PyInt_FromLong((long)geteuid());/s//return PyInt_FromLong((long)(int)geteuid());/
|
|
/return PyInt_FromLong((long)getgid());/s//return PyInt_FromLong((long)(int)getgid());/
|
|
/PyInt_FromLong((long)alt_grouplist\[i\]);/s//PyInt_FromLong((long)(int)alt_grouplist[i]);/
|
|
/return PyInt_FromLong((long)getuid());/s//return PyInt_FromLong((long)(int)getuid());/
|
|
/^posix_setgroups/a
|
|
.
|
|
/gid_t grouplist\[MAX_GROUPS\];/s//gid_t *grouplist;/
|
|
/if (len > MAX_GROUPS) {/a
|
|
.
|
|
.,/^[ ]*}/c
|
|
if ((grouplist = (gid_t *)malloc(len * sizeof(gid_t))) == NULL) {
|
|
PyErr_NoMemory();
|
|
return NULL;
|
|
}
|
|
.
|
|
/if (grouplist\[i\] != x) {/s//if ((int)grouplist[i] != x) {/
|
|
/if (grouplist\[i\] != x) {/s//if ((int)grouplist[i] != x) {/
|
|
/Py_INCREF(Py_None);/i
|
|
free(grouplist);
|
|
.
|
|
/^static struct constdef posix_constants_confstr/a
|
|
.
|
|
/^};/i
|
|
#ifdef _CS_DARWIN_USER_DIR
|
|
{"CS_DARWIN_USER_DIR", _CS_DARWIN_USER_DIR},
|
|
#endif
|
|
#ifdef _CS_DARWIN_USER_TEMP_DIR
|
|
{"CS_DARWIN_USER_TEMP_DIR", _CS_DARWIN_USER_TEMP_DIR},
|
|
#endif
|
|
#ifdef _CS_DARWIN_USER_CACHE_DIR
|
|
{"CS_DARWIN_USER_CACHE_DIR", _CS_DARWIN_USER_CACHE_DIR},
|
|
#endif
|
|
.
|
|
w
|