Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 80) sorted by relevance

1234

/coreutils/src/
Dstty.c440 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 …]
Dsync.c88 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()
Dlibstdbuf.c92 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()
Dchmod.c419 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()
Dnohup.c142 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/
Dmknod.sh28 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/
Dpid.sh28 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
Dwait.sh37 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=$!
Dpipe-f.sh26 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
Dretry.sh58 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/
Dnumeric.sh28 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
Drecord-sep.sh29 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
Dfilter.sh55 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/
Duid.sh32 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/
Dpreserve-mode.sh29 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
Dparent-perm-race.sh26 mkdir mode ownership d || framework_failure_
33 for attr in mode ownership
51 mode,d????-??-?* | \
52 mode,d??[-x]?w[-x]?-[-x]* )
Dexisting-perm-race.sh66 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/
Dspecial-1.sh29 mode=$(ls -ld $tmp|cut -b-10)
30 case "$mode" in
45 mode=$(ls -ld $tmp2|cut -b-10)
46 case "$mode" in
Dperm.sh55 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/
Dequal-x.sh26 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 ;;
Dsetgid.sh43 for mode in \
47 chmod $mode d || fail=1
49 case $mode in
Doctal.sh25 for mode in '0-anything' '7-anything' '8'; do
26 returns_ 1 chmod "$mode" . 2>/dev/null || fail=1
/coreutils/doc/
Dperm.texi1 @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/
Dfd-reopen.c32 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/
Dpartition-perm.sh34 mode=$(ls -l "$other_partition_tmpdir/file" | cut -b-10)
35 test "$mode" = "-rwxrwxrwx" || fail=1

1234