Lines Matching defs:gid
685 _PyLong_FromGid(gid_t gid)
687 if (gid == (gid_t)-1)
689 return PyLong_FromUnsignedLong(gid);
801 gid_t gid;
810 "gid should be integer, not %.200s",
831 gid = (gid_t)result;
847 (long)gid != result)
867 gid = (gid_t)uresult;
870 * If gid == (gid_t)-1, the user actually passed in ULONG_MAX,
876 if (gid == (gid_t)-1)
881 (unsigned long)gid != uresult)
887 *p = gid;
892 "gid is less than minimum");
897 "gid is greater than maximum");
2119 (mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime)\n\
2957 If True, access will use the effective uid/gid instead of
2958 the real uid/gid.
2965 Use the real uid/gid to test for access to a path.
2972 Note that most operations will use the effective uid/gid, therefore this
3619 gid: gid_t
3633 Change the owner and group id of path to the numeric uid and gid.\
3651 os_chown_impl(PyObject *module, path_t *path, uid_t uid, gid_t gid,
3669 if (PySys_Audit("os.chown", "OIIi", path->object, uid, gid,
3677 result = fchown(path->fd, uid, gid);
3682 result = lchown(path->narrow, uid, gid);
3688 result = fchownat(dir_fd, path->narrow, uid, gid,
3695 result = chown(path->narrow, uid, gid);
3722 gid: gid_t
3726 Equivalent to os.chown(fd, uid, gid).
3731 os_fchown_impl(PyObject *module, int fd, uid_t uid, gid_t gid)
3737 if (PySys_Audit("os.chown", "iIIi", fd, uid, gid, -1) < 0) {
3743 res = fchown(fd, uid, gid);
3760 gid: gid_t
3762 Change the owner and group id of path to the numeric uid and gid.
3765 Equivalent to os.chown(path, uid, gid, follow_symlinks=False).
3769 os_lchown_impl(PyObject *module, path_t *path, uid_t uid, gid_t gid)
3773 if (PySys_Audit("os.chown", "OIIi", path->object, uid, gid, -1) < 0) {
3777 res = lchown(path->narrow, uid, gid);
7811 gid: int
7822 os_initgroups_impl(PyObject *module, PyObject *oname, int gid)
7829 gid: gid_t
7840 os_initgroups_impl(PyObject *module, PyObject *oname, gid_t gid)
7846 if (initgroups(username, gid) == -1)
8282 gid: gid_t
8289 os_setgid_impl(PyObject *module, gid_t gid)
8292 if (setgid(gid) < 0)