/posix/ |
A D | uname.c | 29 __uname (struct utsname *name) in __uname() argument 33 if (name == NULL) in __uname() 40 if (__gethostname (name->nodename, sizeof (name->nodename)) < 0) in __uname() 45 name->nodename[0] = '\0'; in __uname() 56 strncpy (name->sysname, UNAME_SYSNAME, sizeof (name->sysname)); in __uname() 57 strncpy (name->release, UNAME_RELEASE, sizeof (name->release)); in __uname() 58 strncpy (name->version, UNAME_VERSION, sizeof (name->version)); in __uname() 59 strncpy (name->machine, UNAME_MACHINE, sizeof (name->machine)); in __uname()
|
A D | tst-sysconf.c | 8 const char *name; member 14 #define N_(name, pos) { _POSIX_##name, #name, _SC_##name, pos, false } argument 15 #define NP(name) N_ (name, true) argument 16 #define N(name) N_ (name, false) argument 17 #define N2(name) { _POSIX2_##name, #name, _SC_2_##name, false, true } argument 87 posix_options[i].posix2 ? "2_" : "", posix_options[i].name); in do_test() 93 posix_options[i].posix2 ? "2_" : "", posix_options[i].name, in do_test() 95 posix_options[i].posix2 ? "2" : "", posix_options[i].name, in do_test() 102 posix_options[i].posix2 ? "2_" : "", posix_options[i].name); in do_test() 110 posix_options[i].posix2 ? "2_" : "", posix_options[i].name, in do_test()
|
A D | shm-directory.c | 28 __shm_get_name (struct shmdir_name *result, const char *name, bool sem_prefix) in __shm_get_name() argument 30 while (name[0] == '/') in __shm_get_name() 31 ++name; in __shm_get_name() 32 size_t namelen = strlen (name); in __shm_get_name() 35 = alloc_buffer_create (result->name, sizeof (result->name)); in __shm_get_name() 39 alloc_buffer_copy_bytes (&buffer, name, namelen + 1); in __shm_get_name() 40 if (namelen == 0 || memchr (name, '/', namelen) != NULL in __shm_get_name()
|
A D | tst-posix_spawn-fd.c | 40 one_test (const char *name, int (*func) (int), int fd, in one_test() argument 49 printf ("error: posix_spawn_file_actions_%s (%d): %m\n", name, fd); in one_test() 57 " unexpected success\n", name, fd); in one_test() 61 printf ("error: posix_spawn_file_actions_%s (%d): %m\n", name, fd); in one_test() 68 all_tests (const char *name, int (*func) (int)) in all_tests() argument 70 one_test (name, func, 0, true); in all_tests() 71 one_test (name, func, invalid_fd, true); in all_tests() 72 one_test (name, func, -1, false); in all_tests() 73 one_test (name, func, -2, false); in all_tests() 75 one_test (name, func, maxfd, false); in all_tests()
|
A D | tst-getconf.sh | 29 while read name; do 30 printf %s "getconf $name: " >> $logfile 31 ${run_getconf} "$name" < /dev/null 2>> $logfile >> $logfile 33 echo "*** $name FAILED" >> $logfile 207 while read name; do 208 printf %s "getconf $name /: " >> $logfile 209 ${run_getconf} "$name" / < /dev/null 2>> $logfile >> $logfile 211 echo "*** $name FAILED" >> $logfile 240 eval:(defun frobme () (set-file-modes buffer-file-name file-mode))
|
A D | tst-fork.c | 37 char *name; in main() local 48 name = (char *) malloc (tmpdirlen + strlen ("/forkXXXXXX") + 1); in main() 49 if (name == NULL) in main() 52 mempcpy (mempcpy (name, tmpdir, tmpdirlen), in main() 56 fd = mkstemp (name); in main() 58 error (EXIT_FAILURE, errno, "cannot open test file `%s'", name); in main() 61 unlink (name); in main()
|
A D | tst-glob_lstat_compat.c | 53 const char *name; member 105 && memcmp (s, filesystem[idx].name, endp - s) == 0 in find_file() 106 && filesystem[idx].name[endp - s] == '\0') in find_file() 176 strcpy (dir->d.d_name, filesystem[dir->idx].name); in my_readdir() 190 my_stat (const char *name, struct stat *st) in my_stat() argument 194 long int idx = find_file (name); in my_stat() 210 my_lstat (const char *name, struct stat *st) in my_lstat() argument 214 long int idx = find_file (name); in my_lstat()
|
A D | bug-glob2.c | 57 const char *name; member 115 && memcmp (s, filesystem[idx].name, endp - s) == 0 in find_file() 116 && filesystem[idx].name[endp - s] == '\0') in find_file() 212 strcpy (dir->d.d_name, filesystem[dir->idx].name); in my_readdir() 234 my_stat (const char *name, struct stat *st) in my_stat() argument 236 long int idx = find_file (name); in my_stat() 240 PRINTF ("my_stat (\"%s\", ...) = -1 (%m)\n", name); in my_stat() 253 PRINTF ("my_stat (\"%s\", { st_mode: %o }) = 0\n", name, st->st_mode); in my_stat()
|
A D | pathconf.c | 25 __pathconf (const char *path, int name) in __pathconf() argument 32 return __fpathconf (0, name); in __pathconf()
|
A D | bug-ga1.c | 11 char name[] = "3ffe:0200:0064:0000:0202:b3ff:fe16:ddc5"; in main() local 18 getaddrinfo (name, NULL, &req, &ai); in main()
|
A D | tst-gnuglob-skeleton.c | 43 const char *name; member 133 && memcmp (s, filesystem[idx].name, endp - s) == 0 in find_file() 134 && filesystem[idx].name[endp - s] == '\0') in find_file() 225 strcpy (dir->d.d_name, filesystem[dir->idx].name); in my_readdir() 251 my_stat (const char *name, struct STAT_STRUCT *st) in my_stat() argument 253 long int idx = find_file (name); in my_stat() 259 name, strerror (errno)); in my_stat() 273 printf ("info: my_stat (\"%s\", { st_mode: %o }) = 0\n", name, st->st_mode); in my_stat()
|
A D | fpathconf.c | 25 __fpathconf (int fd, int name) in __fpathconf() argument 33 switch (name) in __fpathconf()
|
A D | testfnm.c | 6 const char *name; member 72 match = fnmatch (tests[i].pattern, tests[i].name, tests[i].flags); in main() 76 tests[i].name, in main()
|
A D | glob.c | 58 # define opendir(name) __opendir (name) argument 60 # define getpwnam_r(name, bufp, buf, len, res) \ argument 61 __getpwnam_r (name, bufp, buf, len, res) 122 const char *name; member 1359 if (d.name == NULL) in glob_in_dir() 1394 names->name[cur] = strdup (d.name); in glob_in_dir() 1395 if (names->name[cur] == NULL) in glob_in_dir() 1410 names->name[cur] = malloc (len + 1); in glob_in_dir() 1411 if (names->name[cur] == NULL) in glob_in_dir() 1438 free (names->name[i]); in glob_in_dir() [all …]
|
A D | tst-preadwrite-common.c | 34 static char *name; variable 40 fd = create_temp_file ("tst-preadwrite.", &name); in do_prepare()
|
A D | getopt.c | 211 for (p = longopts, n_options = 0; p->name; p++, n_options++) in process_long_option() 212 if (!strncmp (p->name, d->__nextchar, namelen) in process_long_option() 213 && namelen == strlen (p->name)) in process_long_option() 229 for (p = longopts, option_index = 0; p->name; p++, option_index++) in process_long_option() 230 if (!strncmp (p->name, d->__nextchar, namelen)) in process_long_option() 289 prefix, longopts[option_index].name); in process_long_option() 345 argv[0], prefix, pfound->name); in process_long_option() 360 argv[0], prefix, pfound->name); in process_long_option()
|
A D | tst-exec.c | 74 handle_restart (const char *fd1s, const char *fd2s, const char *name) in handle_restart() argument 104 fd1 = open (name, O_RDONLY); in handle_restart() 107 "cannot open first file \"%s\" for verification", name); in handle_restart()
|
A D | regcomp.c | 96 const unsigned char *name); 105 const unsigned char *name); 3053 bitset_set (sbcset, name[0]); in build_collating_symbol() 3084 bitset_set (sbcset, name[0]); in build_collating_symbol() 3294 start_elem.opr.name); in parse_bracket_exp() 3303 start_elem.opr.name, in parse_bracket_exp() 3468 elem->opr.name[i] = ch; in parse_bracket_symbol() 3471 elem->opr.name[i] = '\0'; in parse_bracket_symbol() 3514 cp = name; in build_equiv_class() 3596 && (strcmp (name, "upper") == 0 || strcmp (name, "lower") == 0)) in build_charclass() [all …]
|
A D | getconf.c | 51 const char *name; member 432 for (c = vars; c->name != NULL; ++c) { in print_all() 433 printf("%-35s", c->name); in print_all() 568 if (strcmp (spec, specs[i].name) == 0) in main() 649 for (c = vars; c->name != NULL; ++c) in main() 650 if (strcmp (c->name, argv[ai]) == 0 in main() 651 || (strncmp (c->name, "_POSIX_", 7) == 0 in main() 652 && strcmp (c->name + 7, argv[ai]) == 0)) in main()
|
A D | regex_internal.h | 51 # define lock_define(name) __libc_lock_define (, name) argument 58 # define lock_define(name) gl_lock_define (, name) argument 65 # define lock_define(name) pthread_mutex_t name; argument 71 # define lock_define(name) argument 707 unsigned char *name; member
|
A D | regex.h | 408 # define __REPB_PREFIX(name) name argument 410 # define __REPB_PREFIX(name) __##name argument
|
A D | getaddrinfo.c | 23 getaddrinfo (const char *name, const char *service, const struct addrinfo *req, in getaddrinfo() argument
|
A D | sysconf.c | 31 __sysconf (int name) in __sysconf() argument 33 switch (name) in __sysconf()
|
A D | annexc.c | 559 const char *name; member 803 char line[BUFSIZ], command[sizeof fmt + strlen (header->name) in check_header() 813 printf ("=== %s ===\n", header->name); in check_header() 814 sprintf (command, fmt, header->name, CC, INC, CC, macrofile); in check_header()
|
/posix/bits/ |
A D | getopt_ext.h | 52 const char *name; member
|