/coreutils/ |
D | thanks-gen | 7 BEGIN { my (%seen, %name) } 10 my ($name, $email) = split '\0', decode ('UTF-8', $_); 12 $seen{$name}++ 13 and warn "$0: THANKS.in: duplicate name: $name\n"; 15 print encode ('UTF-8', sprintf ('%-36s', $name)), $email 16 unless $seen{"$name\0$email"}++;
|
/coreutils/src/ |
D | basename.c | 84 remove_suffix (char *name, char const *suffix) in remove_suffix() argument 89 np = name + strlen (name); in remove_suffix() 92 while (np > name && sp > suffix) in remove_suffix() 95 if (np > name) in remove_suffix() 105 char *name = base_name (string); in perform_basename() local 106 strip_trailing_slashes (name); in perform_basename() 114 if (suffix && IS_RELATIVE_FILE_NAME (name) && ! FILE_SYSTEM_PREFIX_LEN (name)) in perform_basename() 115 remove_suffix (name, suffix); in perform_basename() 117 fputs (name, stdout); in perform_basename() 119 free (name); in perform_basename()
|
D | cp-hash.c | 40 char *name; member 75 free (a->name); in src_to_dest_free() 89 probe.name = nullptr; in forget_created() 107 return e ? e->name : nullptr; in src_to_dest_lookup() 115 remember_copied (char const *name, ino_t ino, dev_t dev) in remember_copied() argument 121 ent->name = xstrdup (name); in remember_copied() 138 return (char *) ent_from_table->name; in remember_copied()
|
D | hostname.c | 39 sethostname (char const *name, size_t namelen) in sethostname() argument 43 return (sysinfo (SI_SET_HOSTNAME, name, namelen) < 0 ? -1 : 0); in sethostname() 98 char const *name = argv[optind]; in main() local 99 if (sethostname (name, strlen (name)) != 0) in main() 101 quote (name)); in main()
|
D | ls.c | 197 char *name; member 252 static size_t quote_name (char const *name, 258 static size_t quote_name_buf (char **inbuf, size_t bufsize, char *name, 263 static bool file_ignored (char const *name); 264 static uintmax_t gobble_file (char const *name, enum filetype type, 272 static void attach (char *dest, char const *dirname, char const *name); 281 static void print_dir (char const *name, char const *realname, 298 static void queue_directory (char const *name, char const *realname, 305 static size_t quote_name_width (char const *name, 373 char *name; member [all …]
|
D | stty.c | 198 char const *name; /* Name given on command line. */ member 384 char const *name; /* Name given on command line. */ member 1135 for (i = 0; mode_info[i].name != nullptr; ++i) in apply_settings() 1137 if (STREQ (arg, mode_info[i].name)) in apply_settings() 1156 for (i = 0; control_info[i].name != nullptr; ++i) in apply_settings() 1158 if (STREQ (arg, control_info[i].name)) in apply_settings() 1500 if (STREQ (info->name, "evenp") || STREQ (info->name, "parity")) in set_mode() 1507 else if (STREQ (info->name, "oddp")) in set_mode() 1514 else if (STREQ (info->name, "nl")) in set_mode() 1540 else if (STREQ (info->name, "ek")) in set_mode() [all …]
|
D | extract-magic | 142 my $name = $1; 146 ? "# define $name $magic\n" 147 : " case $name: return $local;\n";
|
D | uname.c | 297 struct utsname name; in main() local 299 if (uname (&name) == -1) in main() 303 print_element_env (name.sysname, "UNAME_SYSNAME"); in main() 305 print_element_env (name.nodename, "UNAME_NODENAME"); in main() 307 print_element_env (name.release, "UNAME_RELEASE"); in main() 309 print_element_env (name.version, "UNAME_VERSION"); in main() 311 print_element_env (name.machine, "UNAME_MACHINE"); in main()
|
D | tail.c | 117 char *name; member 371 return (STREQ (f->name, "-") ? _("standard input") : f->name); in pretty_name() 919 fremote (int fd, char const *name) in fremote() argument 933 "reverting to polling"), quoteaf (name)); in fremote() 953 bool is_stdin = (STREQ (f->name, "-")); in recheck() 959 : open (f->name, O_RDONLY | (blocking ? 0 : O_NONBLOCK))); in recheck() 967 if (! disable_inotify && ! lstat (f->name, &new_stats) in recheck() 1162 char const *name; in tail_forever() local 1177 name = pretty_name (&f[i]); in tail_forever() 1197 quotef (name)); in tail_forever() [all …]
|
D | chgrp.c | 77 parse_group (char const *name) in parse_group() argument 81 if (*name) in parse_group() 83 struct group *grp = getgrnam (name); in parse_group() 89 if (! (xstrtoumax (name, nullptr, 10, &tmp, "") == LONGINT_OK in parse_group() 92 quote (name)); in parse_group()
|
D | sort.c | 227 char const *name; member 664 char name[FLEXIBLE_ARRAY_MEMBER]; member 673 char const *name; member 815 unlink (node->name); in cleanup() 853 xmalloc (FLEXSIZEOF (struct tempnode, name, len + sizeof slashbase)); in create_temp_file() 854 char *file = node->name; in create_temp_file() 1156 sort_die (_("couldn't create temporary file"), node->name); in maybe_create_temp() 1185 tempfd = open (temp->name, O_RDONLY); in open_temp() 1244 zaptemp (char const *name) in zaptemp() argument 1253 for (pnode = &temphead; (node = *pnode)->name != name; pnode = &node->next) in zaptemp() [all …]
|
D | shred.c | 273 passname (unsigned char const *data, char name[PASS_NAME_SIZE]) in passname() 276 sprintf (name, "%02x%02x%02x", data[0], data[1], data[2]); in passname() 278 memcpy (name, "random", PASS_NAME_SIZE); in passname() 986 incname (char *name, size_t len) in incname() argument 990 char const *p = strchr (nameset, name[len]); in incname() 998 name[len] = p[1]; in incname() 1003 name[len] = nameset[0]; in incname() 1118 wipefile (char *name, char const *qname, in wipefile() argument 1124 fd = open (name, O_WRONLY | O_NOCTTY | O_BINARY); in wipefile() 1127 && chmod (name, S_IWUSR) == 0) in wipefile() [all …]
|
D | dd.c | 1476 operand_is (char const *operand, char const *name) in operand_is() argument 1478 return operand_matches (operand, name, '='); in operand_is() 1492 char const *name = argv[i]; in scanargs() local 1493 char const *val = strchr (name, '='); in scanargs() 1497 diagnose (0, _("unrecognized operand %s"), quoteaf (name)); in scanargs() 1502 if (operand_is (name, "if")) in scanargs() 1504 else if (operand_is (name, "of")) in scanargs() 1506 else if (operand_is (name, "conv")) in scanargs() 1509 else if (operand_is (name, "iflag")) in scanargs() 1512 else if (operand_is (name, "oflag")) in scanargs() [all …]
|
/coreutils/tests/ls/ |
D | readdir-mountpoint-inode.sh | 35 name=$1 36 opts="-I '.?*' -I '$name?*'" 38 glob=$(echo "$name"|sed 's/\(.*\)\(.\)$/\1[^\2]*/') 40 name=$(echo "$name"|sed 's/.$//') 41 test -z "$name" && break 42 glob=$(echo "$name"|sed 's/./?/g')
|
D | getxattr-speedup.sh | 44 ssize_t getxattr (const char *path, const char *name, void *value, size_t size) 46 ssize_t lgetxattr(const char *path, const char *name, void *value, size_t size)
|
/coreutils/gl/lib/ |
D | xdectoint.h | 23 # define _DECLARE_XDECTOINT(name, type) \ argument 24 type name (char const *n_str, type min, type max, \ 27 # define _DECLARE_XNUMTOINT(name, type) \ argument 28 type name (char const *n_str, int base, type min, type max, \
|
D | randint.c | 40 char const *name = argv[3]; in main() local 41 struct randint_source *ints = randint_all_new (name, SIZE_MAX); in main() 84 randint_all_new (char const *name, size_t bytes_bound) in randint_all_new() argument 86 struct randread_source *source = randread_new (name, bytes_bound); in randint_all_new()
|
D | randread.c | 173 randread_new (char const *name, size_t bytes_bound) in randread_new() argument 182 if (name) in randread_new() 183 if (! (source = fopen_safer (name, "rb"))) in randread_new() 186 s = simple_new (source, name); in randread_new()
|
/coreutils/tests/id/ |
D | context.sh | 29 name=$(id -nu) || { test $? -ne 1 && fail=1; } 30 if test "$name"; then 31 id "$name" > id_name || fail=1
|
/coreutils/tests/ |
D | d_type-check | 48 name = ep.contents.d_name variable 49 if name == "." or name == "..": 53 elif name == fname:
|
D | CuTmpdir.pm | 37 my $name = $_; 40 -l $name || !-d _ 43 chmod 0700, $name;
|
/coreutils/man/ |
D | chown.x | 16 owner is followed by a colon and a group name (or numeric group ID), 18 changed as well. If a colon but no group name follows the user name,
|
D | local.mk | 179 $(AM_V_GEN)name=`echo $@ | sed 's|.*/||; s|\.1$$||'` || exit 1; \ 183 case $$name in \ 184 install) prog='ginstall'; argv=$$name;; \ 186 *) prog=$$name; argv=$$prog;; \ 201 --include=$(srcdir)/man/$$name.x \ 202 --output=$$t/$$name.1 \ 203 --info-page='\(aq(coreutils) '$$name' invocation\(aq' \ 208 $$t/$$name.1 > $@-t \
|
D | whoami.x | 2 whoami \- print effective user name
|
D | logname.x | 2 logname \- print user\'s login name
|