/coreutils/src/ |
D | stty.c | 440 static bool recover_mode (char const *arg, struct termios *mode); 443 struct termios *mode); 447 static tcflag_t *mode_type_flag (enum mode_type type, struct termios *mode); 448 static void display_all (struct termios *mode, char const *device_name); 449 static void display_changed (struct termios *mode); 450 static void display_recoverable (struct termios *mode); 452 struct termios *mode, 454 static void check_speed (struct termios *mode); 455 static void display_speed (struct termios *mode, bool fancy); 457 static void sane_mode (struct termios *mode); [all …]
|
D | sync.c | 88 sync_arg (enum sync_mode mode, char const *file) in sync_arg() argument 96 if (mode == MODE_FILE) in sync_arg() 132 switch (mode) in sync_arg() 174 enum sync_mode mode; in main() local 217 mode = MODE_SYNC; in main() 219 mode = MODE_FILE_SYSTEM; in main() 221 mode = MODE_FILE; in main() 223 mode = MODE_DATA; in main() 225 if (mode == MODE_SYNC) in main() 230 ok &= sync_arg (mode, argv[optind]); in main()
|
D | libstdbuf.c | 92 apply_mode (FILE *stream, char const *mode) in apply_mode() argument 98 if (*mode == '0') in apply_mode() 100 else if (*mode == 'L') in apply_mode() 106 size = strtoumax (mode, &mode_end, 10); in apply_mode() 110 mode, fileno_to_name (fileno (stream))); in apply_mode() 131 fileno_to_name (fileno (stream)), mode); in apply_mode()
|
D | chmod.c | 419 char *mode = nullptr; in main() local 476 mode = xpalloc (mode, &mode_alloc, in main() 478 mode[mode_len] = ','; in main() 479 memcpy (mode + mode_comma_len, arg, arg_len + 1); in main() 515 if (mode) in main() 523 if (!mode) in main() 524 mode = argv[optind++]; in main() 529 if (!mode || mode != argv[optind - 1]) in main() 545 change = mode_compile (mode); in main() 548 error (0, 0, _("invalid mode: %s"), quote (mode)); in main()
|
D | nohup.c | 142 mode_t mode = S_IRUSR | S_IWUSR; in main() local 143 mode_t umask_value = umask (~mode); in main() 145 ? fd_reopen (STDOUT_FILENO, file, flags, mode) in main() 146 : open (file, flags, mode)); in main() 156 ? fd_reopen (STDOUT_FILENO, in_home, flags, mode) in main() 157 : open (in_home, flags, mode)); in main()
|
/coreutils/tests/misc/ |
D | mknod.sh | 28 mode=$(ls -dgo f1|cut -b-10) 29 test $mode = prwx-wxr-- || fail=1 32 mode=$(ls -dgo f2|cut -b-10) 33 test $mode = prwx-wxr-- || fail=1 36 mode=$(ls -dgo f3|cut -b-10) 37 test $mode = drwx-wxr-- || test $mode = drwx-wsr-- || fail=1
|
/coreutils/tests/tail/ |
D | pid.sh | 28 for mode in '' '---disable-inotify'; do 31 tail -f $mode here & pid=$! 34 returns_ 124 timeout 1 tail -f -s.1 --pid=$pid $mode here || fail=1 37 returns_ 124 timeout 1 tail -f -s.1 --pid=$PID_T_MAX --pid=$pid $mode here \ 44 timeout 10 tail -f -s.1 --pid=$PID_T_MAX $mode empty 50 returns_ 124 timeout 10 tail -f -s10 --pid=$PID_T_MAX $mode empty && fail=1
|
D | wait.sh | 37 for mode in '' '---disable-inotify'; do 38 returns_ 124 timeout 10 tail $fastpoll -f $mode not_here && fail=1 41 returns_ 124 timeout 10 tail $fastpoll -f $mode unreadable && fail=1 44 returns_ 124 timeout .1 tail $fastpoll -f $mode here 2>tail.err || fail=1 48 returns_ 124 timeout .1 tail $fastpoll -F $mode here 2>>tail.err || fail=1 51 returns_ 124 timeout .1 tail $fastpoll -F $mode unreadable || fail=1 54 returns_ 124 timeout .1 tail $fastpoll -F $mode not_here || fail=1 62 if test "$HAVE_INOTIFY" && test -z "$mode" && is_local_dir_ .; then 70 tail $fastpoll -F $mode k >tail.out 2>tail.err & pid=$!
|
D | pipe-f.sh | 26 for mode in '' '---disable-inotify'; do 29 echo foo | timeout 10 tail -f $mode $fastpoll -c3 > out || fail=1 36 timeout 10 tail -f $mode $fastpoll -c3 - missing > out || fail=1 50 tail -n2 -f $mode $fastpoll out && touch timed_out) | 63 (returns_ 1 timeout 10 tail -f $mode $fastpoll /dev/null >&-) || fail=1
|
D | retry.sh | 58 for mode in '' '---disable-inotify'; do 65 tail $mode $fastpoll --follow=name --retry missing >out 2>&1 & pid=$! 83 tail $mode $fastpoll --follow=descriptor --retry missing >out 2>&1 & pid=$! 108 tail $mode $fastpoll --follow=descriptor --retry missing >out 2>&1 & pid=$! 130 tail $mode $fastpoll --follow=descriptor missing existing >out 2>&1 & pid=$! 147 returns_ 1 tail $mode --follow=descriptor missing >out 2>&1 || fail=1 155 returns_ 1 tail $mode --follow=name missing >out 2>&1 || fail=1 166 tail $mode $fastpoll -F untailable >out 2>&1 & pid=$!
|
/coreutils/tests/split/ |
D | numeric.sh | 28 for mode in 'numeric' 'hex'; do 31 mode_option="--$mode-suffixes" 36 test $mode = 'hex' && format=x || format=d 44 returns_ 1 split -a 3 --$mode-suffixes=1000 in 2>/dev/null || fail=1 47 returns_ 1 split --$mode-suffixes=-1 in 2> /dev/null || fail=1 48 returns_ 1 split --$mode-suffixes=one in 2> /dev/null || fail=1
|
D | record-sep.sh | 29 for mode in '--lines=2' '--line-bytes=4' '--number=l/3' '--number=r/3'; do 33 split $mode in || fail=1 42 split $mode -t "$sep" in || fail=1
|
D | filter.sh | 55 for mode in '' 'r/'; do 58 if test "$mode" = ''; then 66 timeout 10 split --filter='head -c1 >$FILE.n' -n $mode$N $in_file || fail=1
|
/coreutils/tests/id/ |
D | uid.sh | 32 for mode in '' '-G' '-g'; do 33 id $mode $user > user_out || fail=1 # lookup name for comparison 35 id $mode $uid > uid_out || fail=1 # lookup name "$uid" before id "$uid" 38 id $mode +$uid > uid_out || fail=1 # lookup only id "$uid"
|
/coreutils/tests/cp/ |
D | preserve-mode.sh | 29 cp --no-preserve=mode b c || fail=1 34 cp --no-preserve=mode a b || fail=1 40 cp --no-preserve=mode -r d2 d3 || fail=1 47 cp --no-preserve=mode --preserve=all a b || fail=1 52 cp -a --no-preserve=mode fifo fifo_copy || fail=1
|
D | parent-perm-race.sh | 26 mkdir mode ownership d || framework_failure_ 33 for attr in mode ownership 51 mode,d????-??-?* | \ 52 mode,d??[-x]?w[-x]?-[-x]* )
|
D | existing-perm-race.sh | 66 read mode links owner group etc <ls.out || fail=1 67 case $mode in 88 read mode links owner group etc <ls.out || fail=1 89 case $mode in
|
/coreutils/tests/mkdir/ |
D | special-1.sh | 29 mode=$(ls -ld $tmp|cut -b-10) 30 case "$mode" in 45 mode=$(ls -ld $tmp2|cut -b-10) 46 case "$mode" in
|
D | perm.sh | 55 umask=$1 mode=$2 parent_perms=$3 sub_perms=$4 56 test "_$mode" = _empty && mode= 70 mkdir $p $mode parent/sub || fail=1
|
/coreutils/tests/chmod/ |
D | equal-x.sh | 26 for mode in =x =xX =Xx =x,=X =X,=x; do 27 chmod a=r,$mode $file || fail=1 30 *) fail=1; echo "after 'chmod $mode $file':"; ls -l $file ;;
|
D | setgid.sh | 43 for mode in \ 47 chmod $mode d || fail=1 49 case $mode in
|
D | octal.sh | 25 for mode in '0-anything' '7-anything' '8'; do 26 returns_ 1 chmod "$mode" . 2>/dev/null || fail=1
|
/coreutils/doc/ |
D | perm.texi | 1 @c File mode bits 12 Each file has a set of @dfn{file mode bits} that control the kinds of 17 * Mode Structure:: Structure of file mode bits. 18 * Symbolic Modes:: Mnemonic representation of file mode bits. 19 * Numeric Modes:: File mode bits as octal numbers. 27 The file mode bits have two parts: the @dfn{file permission bits}, 28 which control ordinary access to the file, and @dfn{special mode 70 file mode bits have three special components, which affect only 104 In addition to the file mode bits listed above, there may be file attributes 121 Even if a file's mode bits allow an operation on that file, [all …]
|
/coreutils/gl/lib/ |
D | fd-reopen.c | 32 fd_reopen (int desired_fd, char const *file, int flags, mode_t mode) in fd_reopen() argument 34 int fd = open (file, flags, mode); in fd_reopen()
|
/coreutils/tests/mv/ |
D | partition-perm.sh | 34 mode=$(ls -l "$other_partition_tmpdir/file" | cut -b-10) 35 test "$mode" = "-rwxrwxrwx" || fail=1
|