Searched refs:mode (Results 1 - 25 of 2146) sorted by relevance

1234567891011>>

/freebsd-13-stable/contrib/apr/file_io/unix/
H A Dfileacc.c37 mode_t mode = 0; local
40 mode |= S_ISUID;
42 mode |= S_IRUSR;
44 mode |= S_IWUSR;
46 mode |= S_IXUSR;
49 mode |= S_ISGID;
51 mode |= S_IRGRP;
53 mode |= S_IWGRP;
55 mode |= S_IXGRP;
59 mode |
71 apr_unix_mode2perms(mode_t mode) argument
[all...]
/freebsd-13-stable/lib/libc/arm/gen/
H A Dflt_rounds.c44 int mode; local
51 mode = __softfloat_float_rounding_mode;
56 __asm __volatile("vmrs %0, fpscr" : "=&r"(mode));
57 mode &= _ROUND_MASK;
60 switch (mode) {
/freebsd-13-stable/lib/libc/gen/
H A Dcap_sandboxed.c44 u_int mode; local
46 if (cap_getmode(&mode) != 0) {
50 assert(mode == 0 || mode == 1);
51 return (mode == 1);
/freebsd-13-stable/tools/regression/capsicum/syscalls/
H A Dcap_getmode.c49 unsigned int mode; local
55 mode = 666;
56 CHECK(cap_getmode(&mode) == 0);
57 /* If cap_getmode() succeeded mode should be modified. */
58 CHECK(mode != 666);
59 /* We are not in capability mode. */
60 CHECK(mode == 0);
70 /* If parent is not in capability mode, child after fork() also won't be. */
76 mode = 666;
77 CHECK(cap_getmode(&mode)
[all...]
/freebsd-13-stable/usr.bin/systat/
H A Dmode.h33 * mode.h - mechanisms for dealing with SGI-style modal displays.
39 enum mode { display_RATE, display_DELTA, display_SINCE, display_ABS }; enum
42 extern enum mode currentmode;
/freebsd-13-stable/lib/libc/mips/gen/
H A Dflt_rounds.c33 int mode; local
36 mode = __softfloat_float_rounding_mode;
38 __asm __volatile("cfc1 %0,$31" : "=r" (mode));
41 return map[mode & 0x03];
/freebsd-13-stable/lib/libc/riscv/gen/
H A Dflt_rounds.c52 uint64_t mode; local
55 mode = __softfloat_float_rounding_mode;
57 __asm __volatile("csrr %0, fcsr" : "=r" (mode));
60 switch (mode & _ROUND_MASK) {
/freebsd-13-stable/contrib/diff/lib/
H A Dsetmode.h1 /* Set a file descriptor's mode to binary or to text.
25 # define set_binary_mode(fd, mode) true
/freebsd-13-stable/contrib/ntp/libntp/
H A Dmodetoa.c2 * modetoa - return an asciized mode
12 size_t mode
28 if (mode >= COUNTOF(modestrings)) {
30 snprintf(bp, LIB_BUFLENGTH, "mode#%zu", mode);
34 return modestrings[mode];
/freebsd-13-stable/usr.bin/tftp/
H A Dtftp.h35 void recvfile(int peer, char *port, int fd, char *name, char *mode);
36 void xmitfile(int peer, char *port, int fd, char *name, char *mode);
/freebsd-13-stable/usr.bin/tset/
H A Dset.c52 * Reset the terminal mode bits to a sensible state. Very useful after
53 * a child program dies in raw mode.
58 tcgetattr(STDERR_FILENO, &mode);
61 mode.c_cc[VDISCARD] = CHK(mode.c_cc[VDISCARD], CDISCARD);
63 mode.c_cc[VEOF] = CHK(mode.c_cc[VEOF], CEOF);
64 mode.c_cc[VERASE] = CHK(mode.c_cc[VERASE], CERASE);
66 mode
[all...]
/freebsd-13-stable/sys/contrib/ncsw/inc/
H A Denet_ext.h95 e_ENET_HALF_DUPLEX, /**< Half-Duplex mode */
96 e_ENET_FULL_DUPLEX /**< Full-Duplex mode */
112 @Description Ethernet mode (combination of MAC-PHY interface and speed)
116 e_ENET_MODE_INVALID = 0, /**< Invalid Ethernet mode */
159 #define IS_ENET_MODE_VALID(mode) \
160 (((mode) == e_ENET_MODE_MII_10 ) || \
161 ((mode) == e_ENET_MODE_MII_100 ) || \
162 ((mode) == e_ENET_MODE_RMII_10 ) || \
163 ((mode) == e_ENET_MODE_RMII_100 ) || \
164 ((mode)
[all...]
/freebsd-13-stable/tools/regression/security/open_to_operation/
H A Dopen_to_operation.c131 ok_mode(const char *testname, const char *comment, int mode) argument
136 printf("ok %d - %s # mode 0x%x\n", testnum, testname, mode);
138 printf("ok %d - %s # mode 0x%x - %s\n", testnum, testname,
139 mode, comment);
143 notok_mode(const char *testname, const char *comment, int mode) argument
148 printf("not ok %d - %s # mode 0x%x\n", testnum, testname,
149 mode);
151 printf("not ok %d - %s # mode 0x%x - %s\n", testnum, testname,
152 mode, commen
159 try_directory_open(const char *testname, const char *directory, int mode, int expected_errno) argument
185 int expected_errno, i, mode; local
206 int dfd, fd, i, mode; local
232 int dfd, fd, i, mode; local
258 int fd, i, mode; local
282 int fd, i, mode; local
306 int fd, i, mode; local
330 int fd, i, mode; local
354 int fd, i, mode; local
378 int fd, i, mode; local
405 int fd, i, mode; local
430 int fd, i, mode; local
454 int fd, i, mode; local
479 int fd, i, mode; local
591 int fd, i, mode; local
615 int fd, i, mode; local
639 int fd, i, mode; local
679 int fd, i, mode, sv[2]; local
775 int fd, i, mode; local
861 int fd, i, mode; local
896 int fd, i, mode; local
942 int fd, i, mode; local
984 int fd, i, mode; local
1026 int fd, i, mode; local
[all...]
/freebsd-13-stable/contrib/libarchive/libarchive/
H A Darchive_entry_strmode.c45 mode_t mode; local
51 mode = archive_entry_mode(entry);
68 if (!(mode & permbits[i]))
71 if (mode & S_ISUID) {
72 if (mode & 0100) bp[3] = 's';
75 if (mode & S_ISGID) {
76 if (mode & 0010) bp[6] = 's';
79 if (mode & S_ISVTX) {
80 if (mode & 0001) bp[9] = 't';
/freebsd-13-stable/sys/contrib/octeon-sdk/
H A Dcvmx-spi.h80 int (*reset_cb)(int interface, cvmx_spi_mode_t mode);
83 int (*calendar_setup_cb)(int interface, cvmx_spi_mode_t mode, int num_ports);
86 int (*clock_detect_cb)(int interface, cvmx_spi_mode_t mode, int timeout);
89 int (*training_cb)(int interface, cvmx_spi_mode_t mode, int timeout);
92 int (*calendar_sync_cb)(int interface, cvmx_spi_mode_t mode, int timeout);
95 int (*interface_up_cb)(int interface, cvmx_spi_mode_t mode);
117 * @param mode The operating mode for the SPI interface. The interface
126 extern int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode, int timeout, int num_ports);
134 * @param mode Th
[all...]
/freebsd-13-stable/lib/libc/sys/
H A Dopen.c48 int mode; local
52 mode = va_arg(ap, int);
55 mode = 0;
58 __libc_interposing[INTERPOS_openat])(AT_FDCWD, path, flags, mode));
/freebsd-13-stable/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dwait.h31 #define spl_wait_on_bit(word, bit, mode) wait_on_bit(word, bit, mode)
41 #define spl_wait_on_bit(word, bit, mode) \
42 wait_on_bit(word, bit, spl_bit_wait, mode)
/freebsd-13-stable/lib/libc/stdio/
H A Dfwide.c41 fwide(FILE *fp, int mode) argument
47 if (mode != 0 && fp->_orientation == 0)
48 fp->_orientation = mode > 0 ? 1 : -1;
/freebsd-13-stable/lib/libc/string/
H A Dstrmode.c43 strmode(/* mode_t */ int mode, char *p) argument
46 switch (mode & S_IFMT) {
80 if (mode & S_IRUSR)
84 if (mode & S_IWUSR)
88 switch (mode & (S_IXUSR | S_ISUID)) {
103 if (mode & S_IRGRP)
107 if (mode & S_IWGRP)
111 switch (mode & (S_IXGRP | S_ISGID)) {
126 if (mode & S_IROTH)
130 if (mode
[all...]
/freebsd-13-stable/crypto/openssh/openbsd-compat/
H A Dstrmode.c40 /* XXX mode should be mode_t */
43 strmode(int mode, char *p) argument
46 switch (mode & S_IFMT) {
77 if (mode & S_IRUSR)
81 if (mode & S_IWUSR)
85 switch (mode & (S_IXUSR | S_ISUID)) {
100 if (mode & S_IRGRP)
104 if (mode & S_IWGRP)
108 switch (mode & (S_IXGRP | S_ISGID)) {
123 if (mode
[all...]
/freebsd-13-stable/sys/contrib/xz-embedded/linux/lib/xz/
H A Dxz_private.h53 /* If no specific decoding mode is requested, enable support for all modes. */
62 * The DEC_IS_foo(mode) macros are used in "if" statements. If only some
67 # define DEC_IS_SINGLE(mode) ((mode) == XZ_SINGLE)
69 # define DEC_IS_SINGLE(mode) (false)
73 # define DEC_IS_PREALLOC(mode) ((mode) == XZ_PREALLOC)
75 # define DEC_IS_PREALLOC(mode) (false)
79 # define DEC_IS_DYNALLOC(mode) ((mode)
[all...]
/freebsd-13-stable/contrib/wpa/wpa_supplicant/
H A Dop_classes.c19 static enum chan_allowed allow_channel(struct hostapd_hw_modes *mode, u8 chan, argument
24 for (i = 0; i < mode->num_channels; i++) {
25 if (mode->channels[i].chan == chan)
29 if (i == mode->num_channels ||
30 (mode->channels[i].flag & HOSTAPD_CHAN_DISABLED))
34 *flags = mode->channels[i].flag;
36 if (mode->channels[i].flag & HOSTAPD_CHAN_NO_IR)
43 static int get_center_80mhz(struct hostapd_hw_modes *mode, u8 channel) argument
48 if (mode->mode !
65 verify_80mhz(struct hostapd_hw_modes *mode, u8 channel) argument
100 get_center_160mhz(struct hostapd_hw_modes *mode, u8 channel) argument
122 verify_160mhz(struct hostapd_hw_modes *mode, u8 channel) argument
162 verify_channel(struct hostapd_hw_modes *mode, u8 channel, u8 bw) argument
216 struct hostapd_hw_modes *mode; local
[all...]
/freebsd-13-stable/libexec/rc/
H A Drc.bsdextended63 #${CMD} add subject uid 80 object not uid 80 mode rxws;
64 #${CMD} add subject gid 80 object not gid 80 mode rxws;
68 #${CMD} add subject uid 54 object not uid 54 mode rxws;
69 #${CMD} add subject gid 26 object gid 54 mode rxws;
73 ${CMD} add subject uid 0 object not uid 0 mode arxws;
74 ${CMD} add subject gid 0 object not gid 0 mode arxws;
78 #${CMD} add subject uid 54 object not uid 54 mode rxws;
79 #${CMD} add subject gid 54 object not gid 54 mode rxws;
83 ${CMD} add subject uid 3 object not uid 3 mode rxws;
84 ${CMD} add subject gid 7 object not gid 7 mode rxw
[all...]
/freebsd-13-stable/lib/libc/compat-43/
H A Dcreat.c46 int __creat(const char *path, mode_t mode);
50 __creat(const char *path, mode_t mode) argument
55 O_CREAT | O_TRUNC, mode));
/freebsd-13-stable/contrib/pjdfstest/tests/chmod/
H A D12.t22 expect 0777 -u 65534 -g 65534 open ${n0} O_WRONLY : write 0 x : fstat 0 mode
23 expect 0777 stat ${n0} mode
28 expect 0777 -u 65534 -g 65534 open ${n0} O_RDWR : write 0 x : fstat 0 mode
29 expect 0777 stat ${n0} mode
34 expect 0777 -u 65534 -g 65534 open ${n0} O_RDWR : write 0 x : fstat 0 mode
35 expect 0777 stat ${n0} mode

Completed in 295 milliseconds

1234567891011>>