Lines Matching defs:gid
134 "Use the real uid/gid to test for access to a path.\n"
146 " If True, access will use the effective uid/gid instead of\n"
147 " the real uid/gid.\n"
157 "Note that most operations will use the effective uid/gid, therefore this\n"
804 "chown($module, /, path, uid, gid, *, dir_fd=None, follow_symlinks=True)\n"
807 "Change the owner and group id of path to the numeric uid and gid.\\\n"
837 os_chown_impl(PyObject *module, path_t *path, uid_t uid, gid_t gid,
844 static const char * const _keywords[] = {"path", "uid", "gid", "dir_fd", "follow_symlinks", NULL};
850 gid_t gid;
864 if (!_Py_Gid_Converter(args[2], &gid)) {
883 return_value = os_chown_impl(module, &path, uid, gid, dir_fd, follow_symlinks);
897 "fchown($module, /, fd, uid, gid)\n"
902 "Equivalent to os.chown(fd, uid, gid).");
908 os_fchown_impl(PyObject *module, int fd, uid_t uid, gid_t gid);
914 static const char * const _keywords[] = {"fd", "uid", "gid", NULL};
919 gid_t gid;
932 if (!_Py_Gid_Converter(args[2], &gid)) {
935 return_value = os_fchown_impl(module, fd, uid, gid);
946 "lchown($module, /, path, uid, gid)\n"
949 "Change the owner and group id of path to the numeric uid and gid.\n"
952 "Equivalent to os.chown(path, uid, gid, follow_symlinks=False).");
958 os_lchown_impl(PyObject *module, path_t *path, uid_t uid, gid_t gid);
964 static const char * const _keywords[] = {"path", "uid", "gid", NULL};
969 gid_t gid;
981 if (!_Py_Gid_Converter(args[2], &gid)) {
984 return_value = os_lchown_impl(module, &path, uid, gid);
3392 "initgroups($module, username, gid, /)\n"
3405 os_initgroups_impl(PyObject *module, PyObject *oname, int gid);
3412 int gid;
3420 gid = _PyLong_AsInt(args[1]);
3421 if (gid == -1 && PyErr_Occurred()) {
3424 return_value = os_initgroups_impl(module, oname, gid);
3438 "initgroups($module, username, gid, /)\n"
3451 os_initgroups_impl(PyObject *module, PyObject *oname, gid_t gid);
3458 gid_t gid;
3466 if (!_Py_Gid_Converter(args[1], &gid)) {
3469 return_value = os_initgroups_impl(module, oname, gid);
3897 "setgid($module, gid, /)\n"
3906 os_setgid_impl(PyObject *module, gid_t gid);
3912 gid_t gid;
3914 if (!_Py_Gid_Converter(arg, &gid)) {
3917 return_value = os_setgid_impl(module, gid);