Lines Matching defs:uid

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};
849 uid_t uid;
861 if (!_Py_Uid_Converter(args[1], &uid)) {
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};
918 uid_t uid;
929 if (!_Py_Uid_Converter(args[1], &uid)) {
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};
968 uid_t uid;
978 if (!_Py_Uid_Converter(args[1], &uid)) {
984 return_value = os_lchown_impl(module, &path, uid, gid);
3728 "setuid($module, uid, /)\n"
3737 os_setuid_impl(PyObject *module, uid_t uid);
3743 uid_t uid;
3745 if (!_Py_Uid_Converter(arg, &uid)) {
3748 return_value = os_setuid_impl(module, uid);