Home
last modified time | relevance | path

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

1234

/busybox-1.35.0/archival/libarchive/unxz/
Dxz_private.h70 # define DEC_IS_SINGLE(mode) ((mode) == XZ_SINGLE) argument
72 # define DEC_IS_SINGLE(mode) (false) argument
76 # define DEC_IS_PREALLOC(mode) ((mode) == XZ_PREALLOC) argument
78 # define DEC_IS_PREALLOC(mode) (false) argument
82 # define DEC_IS_DYNALLOC(mode) ((mode) == XZ_DYNALLOC) argument
84 # define DEC_IS_DYNALLOC(mode) (false) argument
88 # define DEC_IS_MULTI(mode) (true) argument
90 # define DEC_IS_MULTI(mode) ((mode) != XZ_SINGLE) argument
92 # define DEC_IS_MULTI(mode) (false) argument
113 enum xz_mode mode, uint32_t dict_max);
/busybox-1.35.0/console-tools/
Dkbd_mode.c61 const char *mode = "unknown"; in kbd_mode_main() local
66 mode = "raw (scancode)"; in kbd_mode_main()
68 mode = "default (ASCII)"; in kbd_mode_main()
70 mode = "mediumraw (keycode)"; in kbd_mode_main()
72 mode = "Unicode (UTF-8)"; in kbd_mode_main()
74 mode = "off"; in kbd_mode_main()
75 printf("The keyboard is in %s mode\n", mode); in kbd_mode_main()
/busybox-1.35.0/coreutils/
Dstty.c258 static tcflag_t *get_ptr_to_tcflag(unsigned type, const struct termios *mode) in get_ptr_to_tcflag() argument
267 return (tcflag_t*) (((char*)mode) + tcflag_offsets[type]); in get_ptr_to_tcflag()
807 struct termios *mode) in set_speed_or_die() argument
814 cfsetispeed(mode, baud); in set_speed_or_die()
817 cfsetospeed(mode, baud); in set_speed_or_die()
958 static int recover_mode(const char *arg, struct termios *mode) in recover_mode() argument
969 mode->c_iflag = iflag; in recover_mode()
970 mode->c_oflag = oflag; in recover_mode()
971 mode->c_cflag = cflag; in recover_mode()
972 mode->c_lflag = lflag; in recover_mode()
[all …]
Dmkfifo.c40 mode_t mode; in mkfifo_main() local
43 mode = getopt_mk_fifo_nod(argv); in mkfifo_main()
51 if (mkfifo(*argv, mode) < 0) { in mkfifo_main()
Dmknod.c54 mode_t mode; in mknod_main() local
58 mode = getopt_mk_fifo_nod(argv); in mknod_main()
68 mode |= modes_cubp[(int)(type[4])]; in mknod_main()
84 if (mknod(argv[0], mode, dev) != 0) { in mknod_main()
Duuencode.c46 mode_t mode; in uuencode_main() local
51 mode = 0666 & ~umask(0666); in uuencode_main()
59 mode = stat_buf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO); in uuencode_main()
63 printf("begin%s %o %s", tbl == bb_uuenc_tbl_std ? "" : "-base64", mode, *argv); in uuencode_main()
Dtest.c672 static int test_eaccess(struct stat *st, int mode) in test_eaccess() argument
678 if (mode != X_OK) in test_eaccess()
688 mode <<= 6; in test_eaccess()
690 mode <<= 3; in test_eaccess()
692 if (st->st_mode & mode) in test_eaccess()
699 static int filstat(char *nm, enum token mode) in filstat() argument
704 if (mode == FILSYM) { in filstat()
716 if (mode == FILEXIST) in filstat()
718 if (is_file_access(mode)) { in filstat()
719 if (mode == FILRD) in filstat()
[all …]
Dls.c360 #define TYPEINDEX(mode) (((mode) >> 12) & 0x0f) argument
362 #define APPCHAR(mode) ("\0""|""\0""\0""/""\0""\0""\0""\0""\0""@""\0""=""\0""\0""\0" [TYPEINDEX(mo… argument
372 #define COLOR(mode) ( \ argument
375 [TYPEINDEX(mode)])
381 #define ATTR(mode) ( \ argument
384 [TYPEINDEX(mode)])
388 static char fgcolor(mode_t mode) in fgcolor() argument
390 if (S_ISREG(mode) && (mode & (S_IXUSR | S_IXGRP | S_IXOTH))) in fgcolor()
392 return COLOR(mode); in fgcolor()
394 static char bold(mode_t mode) in bold() argument
[all …]
Dmkdir.c54 long mode = -1; in mkdir_main() local
79 mode = mmode; in mkdir_main()
97 if (bb_make_directory(*argv, mode, flags)) { in mkdir_main()
Dtee.c61 const char *mode = "w\0a"; in tee_main() local
79 mode += (retval & 2); /* Since 'a' is the 2nd option... */ in tee_main()
99 *fp = fopen_or_warn(*argv, mode); in tee_main()
/busybox-1.35.0/coreutils/libcoreutils/
Dgetopt_mk_fifo_nod.c26 mode_t mode = 0666; in getopt_mk_fifo_nod() local
34 mode = bb_parse_mode(smode, mode); in getopt_mk_fifo_nod()
35 if (mode != (mode_t)-1) /* if mode is valid */ in getopt_mk_fifo_nod()
47 return mode; in getopt_mk_fifo_nod()
/busybox-1.35.0/util-linux/
Dflock.c31 int mode, opt, fd; in flock_main() local
82 mode = opt & (LOCK_SH + LOCK_EX + LOCK_NB + LOCK_UN); in flock_main()
83 if (!(mode & ~LOCK_NB)) in flock_main()
84 mode |= LOCK_EX; in flock_main()
87 mode = LOCK_UN; in flock_main()
89 mode = LOCK_SH; in flock_main()
91 mode = LOCK_EX; in flock_main()
93 mode |= LOCK_NB; in flock_main()
96 if (flock(fd, mode) != 0) { in flock_main()
Dreadprofile.c76 char mode[8]; in readprofile_main() local
168 if (sscanf(mapline, "%llx %s %s", &fn_add, mode, fn_name) != 3) in readprofile_main()
191 if (sscanf(mapline, "%llx %s %s", &next_add, mode, next_name) != 3) in readprofile_main()
199 if ((mode[0] == 'A' || mode[0] == '?') && total == 0) in readprofile_main()
201 if ((mode[0]|0x20) != 't' && (mode[0]|0x20) != 'w') { in readprofile_main()
/busybox-1.35.0/libbb/
Dlogenv.c13 const char* mode = getenv("LOGGING"); in bb_logenv_override() local
15 if (!mode) in bb_logenv_override()
18 if (strcmp(mode, "none") == 0) in bb_logenv_override()
21 else if (strcmp(mode, "syslog") == 0) in bb_logenv_override()
Ddevice_open.c12 int FAST_FUNC device_open(const char *device, int mode) in device_open() argument
16 m = mode | O_NONBLOCK; in device_open()
28 if (m != mode) in device_open()
29 fcntl(fd, F_SETFL, mode); in device_open()
Dmode_string.c25 # warning mode type bitflag value assumption(s) violated! falling back to larger version
44 char* FAST_FUNC bb_mode_string(char buf[11], mode_t mode) in bb_mode_string() argument
50 *p = type_chars[ (mode >> 12) & 0xf ]; in bb_mode_string()
56 if (mode & mode_flags[i+j]) { in bb_mode_string()
61 if (mode & mode_flags[i+j]) { in bb_mode_string()
80 char* FAST_FUNC bb_mode_string(char buf[11], mode_t mode) in bb_mode_string() argument
86 *p = type_chars[ (mode >> 12) & 0xf ]; in bb_mode_string()
93 if (mode & m) { in bb_mode_string()
100 if (mode & (010000 >> i)) { in bb_mode_string()
Dloop.c110 int i, lfd, ffd, mode, rc; in set_loop() local
113 mode = (flags & BB_LO_FLAGS_READ_ONLY) ? O_RDONLY : O_RDWR; in set_loop()
115 ffd = open(file, mode); in set_loop()
117 if (mode != O_RDONLY) { in set_loop()
118 mode = O_RDONLY; in set_loop()
161 lfd = rc = open(try, mode); in set_loop()
163 mode = O_RDONLY; in set_loop()
164 lfd = rc = open(try, mode); in set_loop()
Dmake_directory.c27 int FAST_FUNC bb_make_directory(char *path, long mode, int flags) in bb_make_directory() argument
122 if (mode != -1) { in bb_make_directory()
124 if (chmod(path, mode) < 0) { in bb_make_directory()
/busybox-1.35.0/miscutils/
Dmakedevs.c124 mode_t mode; in makedevs_main() local
140 mode = 0660; in makedevs_main()
143 mode |= S_IFCHR; in makedevs_main()
146 mode |= S_IFBLK; in makedevs_main()
149 mode |= S_IFIFO; in makedevs_main()
160 if (mknod(nodname, mode, makedev(Smajor, Sminor)) != 0 in makedevs_main()
204 unsigned mode = 0755; in makedevs_main() local
220 &name_len, &type, &mode, user, group, in makedevs_main()
239 bb_make_directory(full_name, mode | S_IFDIR, FILEUTILS_RECUR); in makedevs_main()
246 if (chmod(full_name, mode) < 0) { in makedevs_main()
[all …]
Di2c_tools.c357 static void check_read_funcs(int fd, int mode, int data_addr, int pec) in check_read_funcs() argument
363 switch (mode) { in check_read_funcs()
399 static void check_write_funcs(int fd, int mode, int pec) in check_write_funcs() argument
405 switch (mode) { in check_write_funcs()
447 static void confirm_action(int bus_addr, int mode, int data_addr, int pec) in confirm_action() argument
457 if (mode == I2C_SMBUS_BYTE && data_addr >= 0 && pec) in confirm_action()
489 int mode = I2C_SMBUS_BYTE, pec = 0, fd; in i2cget_main() local
500 mode = I2C_SMBUS_BYTE_DATA; in i2cget_main()
504 case 'w': mode = I2C_SMBUS_WORD_DATA; break; in i2cget_main()
505 case 'c': mode = I2C_SMBUS_BYTE; break; in i2cget_main()
[all …]
Dmt.c112 int fd, mode, idx; in mt_main() local
141 mode = O_WRONLY; in mt_main()
145 mode = O_RDONLY; in mt_main()
149 fd = xopen(file, mode); in mt_main()
Drfkill.c52 int mode; in rfkill_main() local
62 mode = O_RDWR | O_NONBLOCK; in rfkill_main()
66 mode = O_RDONLY | O_NONBLOCK; in rfkill_main()
88 rf_fd = device_open("/dev/rfkill", mode); in rfkill_main()
/busybox-1.35.0/archival/libarchive/
Dget_header_cpio.c13 int mode ; member
25 int major, minor, nlink, mode, inode; in get_header_cpio() local
51 &inode, &mode, &uid, &gid, in get_header_cpio()
55 file_header->mode = mode; in get_header_cpio()
91 if (S_ISLNK(file_header->mode)) { in get_header_cpio()
102 if (nlink > 1 && S_ISREG(file_header->mode)) { in get_header_cpio()
105 new->mode = mode ; in get_header_cpio()
155 file_header->mode = make_me->mode; in get_header_cpio()
Ddata_extract_all.c34 if (S_ISREG(file_header->mode) && file_header->size == 0) in data_extract_all()
80 if (!S_ISDIR(file_header->mode)) { in data_extract_all()
110 if (!S_ISDIR(file_header->mode)) { in data_extract_all()
134 switch (file_header->mode & S_IFMT) { in data_extract_all()
149 file_header->mode in data_extract_all()
166 res = mkdir(dst_name, file_header->mode); in data_extract_all()
208 res = mknod(dst_name, file_header->mode, file_header->device); in data_extract_all()
217 if (!S_ISLNK(file_header->mode)) { in data_extract_all()
241 chmod(dst_name, file_header->mode); in data_extract_all()
/busybox-1.35.0/archival/libarchive/bz/
Dbzlib.c106 s->mode = BZ_M_RUNNING; in BZ2_bzCompressInit()
193 if (s->mode == BZ_M_RUNNING) { in copy_input_until_stop()
264 if (s->mode == BZ_M_FINISHING in handle_compress()
272 if (s->mode == BZ_M_FLUSHING in handle_compress()
282 if (s->mode != BZ_M_RUNNING && s->strm->avail_in == 0) { in handle_compress()
284 BZ2_compressBlock(s, (s->mode == BZ_M_FINISHING)); in handle_compress()
310 switch (s->mode) { in BZ2_bzCompress()
321 s->mode = BZ_M_FLUSHING; in BZ2_bzCompress()
328 s->mode = BZ_M_FINISHING; in BZ2_bzCompress()
340 s->mode = BZ_M_RUNNING; in BZ2_bzCompress()

1234