Lines Matching refs:name

362 # one of the few times we lie about this name!
1042 * If non-NULL, path_converter will use that as the name
1044 * (If path.function_name is NULL it omits the function name.)
1046 * If non-NULL, path_converter will use that as the name
1686 /* XXX We should pass the function name along in the future.
1687 (winreg.c also wants to pass the function name.)
2230 "stat_result", /* name */
2260 "statvfs_result", /* name */
2285 "waitid_result", /* name */
2791 self.function.name,
2792 self.name,
2798 return "path_cleanup(&" + self.name + ");\n"
2838 return "Py_XDECREF(" + self.name + ");\n"
3092 Return the name of the terminal device connected to 'fd'.
3124 Return the name of the controlling terminal for this process.
4169 const char *name;
4171 name = path->narrow;
4176 name = ".";
4181 dirp = opendir(name);
4398 target path name. */
5161 {"sysname", "operating system name"},
5162 {"nodename", "name of machine on network (implementation-defined)"},
5178 MODNAME ".uname_result", /* name */
5611 /* Avoid putting the file name into the error here,
5776 PyErr_SetString(PyExc_ValueError, "illegal environment variable name");
5792 PyErr_SetString(PyExc_ValueError, "illegal environment variable name");
6990 "sched_param", /* name */
7431 slave_name = ptsname(master_fd); /* get name of slave */
7987 Return the actual login name.
8006 char *name;
8010 name = getlogin();
8011 if (name == NULL) {
8015 PyErr_SetString(PyExc_OSError, "unable to determine login name");
8018 result = PyUnicode_DecodeFSDefault(name);
8781 wchar_t *name = NULL;
8785 name = (wchar_t *)((char*)rdb->SymbolicLinkReparseBuffer.PathBuffer +
8791 name = (wchar_t *)((char*)rdb->MountPointReparseBuffer.PathBuffer +
8799 if (name) {
8800 if (nameLen > 4 && wcsncmp(name, L"\\??\\", 4) == 0) {
8802 name[1] = L'\\';
8804 result = PyUnicode_FromWideChar(name, nameLen);
9045 "times_result", /* name */
11060 win32_putenv(PyObject *name, PyObject *value)
11064 if (PyUnicode_GET_LENGTH(name) == 0 ||
11065 PyUnicode_FindChar(name, '=', 1, PyUnicode_GET_LENGTH(name), 1) != -1)
11067 PyErr_SetString(PyExc_ValueError, "illegal environment variable name");
11072 unicode = PyUnicode_FromFormat("%U=%U", name, value);
11075 unicode = PyUnicode_FromFormat("%U=", name);
11120 name: unicode
11128 os_putenv_impl(PyObject *module, PyObject *name, PyObject *value)
11131 if (PySys_Audit("os.putenv", "OO", name, value) < 0) {
11134 return win32_putenv(name, value);
11140 name: FSConverter
11148 os_putenv_impl(PyObject *module, PyObject *name, PyObject *value)
11151 const char *name_string = PyBytes_AS_STRING(name);
11155 PyErr_SetString(PyExc_ValueError, "illegal environment variable name");
11159 if (PySys_Audit("os.putenv", "OO", name, value) < 0) {
11174 name: unicode
11181 os_unsetenv_impl(PyObject *module, PyObject *name)
11184 if (PySys_Audit("os.unsetenv", "(O)", name) < 0) {
11187 return win32_putenv(name, NULL);
11192 name: FSConverter
11199 os_unsetenv_impl(PyObject *module, PyObject *name)
11202 if (PySys_Audit("os.unsetenv", "(O)", name) < 0) {
11206 unsetenv(PyBytes_AS_STRING(name));
11208 int err = unsetenv(PyBytes_AS_STRING(name));
11604 const char *name;
11636 cmp = strcmp(confname, table[mid].name);
11646 PyErr_SetString(PyExc_ValueError, "unrecognized configuration name");
11755 name: path_confname
11758 Return the configuration limit name for the file descriptor fd.
11764 os_fpathconf_impl(PyObject *module, int fd, int name)
11770 limit = fpathconf(fd, name);
11783 name: path_confname
11785 Return the configuration limit name for the file or directory path.
11793 os_pathconf_impl(PyObject *module, path_t *path, int name)
11801 limit = fpathconf(path->fd, name);
11804 limit = pathconf(path->narrow, name);
11807 /* could be a path or name problem */
11983 name: confstr_confname
11990 os_confstr_impl(PyObject *module, int name)
11998 len = confstr(name, buffer, sizeof(buffer));
12014 len2 = confstr(name, buf, len);
12539 name: sysconf_confname
12546 os_sysconf_impl(PyObject *module, int name)
12552 value = sysconf(name);
12578 return strcmp(c1->name, c2->name);
12595 if (o == NULL || PyDict_SetItemString(d, table[i].name, o) == -1) {
12700 double-clicking the file in Explorer, or giving the file name as an
13094 const char *name;
13105 name = path->narrow ? path->narrow : ".";
13127 length = listxattr(name, buffer, buffer_size);
13129 length = llistxattr(name, buffer, buffer_size);
13213 name: FSConverter
13219 os_memfd_create_impl(PyObject *module, PyObject *name, unsigned int flags)
13223 const char *bytes = PyBytes_AS_STRING(name);
13608 PyObject *name;
13629 Py_XDECREF(entry->name);
13951 return PyUnicode_FromFormat("<DirEntry %R>", self->name);
13969 {"name", T_OBJECT_EX, offsetof(DirEntry, name), READONLY,
13972 "the entry's full path name; equivalent to os.path.join(scandir_path, entry.name)"},
14054 entry->name = NULL;
14060 entry->name = PyUnicode_FromWideChar(dataW->cFileName, -1);
14061 if (!entry->name)
14064 Py_SETREF(entry->name, PyUnicode_EncodeFSDefault(entry->name));
14065 if (!entry->name)
14128 DirEntry_from_posix_info(PyObject *module, path_t *path, const char *name,
14142 entry->name = NULL;
14153 joined_path = join_path_filename(path->narrow, name, name_len);
14159 entry->name = PyUnicode_DecodeFSDefaultAndSize(name, name_len);
14164 entry->name = PyBytes_FromStringAndSize(name, name_len);
14169 if (!entry->name)
14173 entry->path = entry->name;
15635 #define PROBE(name, test) \
15636 static int name(void) \
15892 waitid_result_desc.name = MODNAME ".waitid_result";
15902 stat_result_desc.name = "os.stat_result"; /* see issue #19209 */
15903 stat_result_desc.fields[7].name = PyStructSequence_UnnamedField;
15904 stat_result_desc.fields[8].name = PyStructSequence_UnnamedField;
15905 stat_result_desc.fields[9].name = PyStructSequence_UnnamedField;
15916 statvfs_result_desc.name = "os.statvfs_result"; /* see issue #19209 */
15935 sched_param_desc.name = MODNAME ".sched_param";
15970 times_result_desc.name = MODNAME ".times_result";