/freebsd-13-stable/sys/contrib/zlib/ |
H A D | inflate.c | 114 state->mode < HEAD || state->mode > SYNC) 130 state->mode = HEAD; 230 state->mode = HEAD; /* to pass state test in inflateReset2() */ 650 if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */ 656 switch (state->mode) { 659 state->mode = TYPEDO; 670 state->mode = FLAGS; 682 state->mode [all...] |
/freebsd-13-stable/contrib/openpam/ |
H A D | install-sh | 69 # Desired mode of installed file. 70 mode=0755 129 -m) mode=$2 130 case $mode in 132 echo "$0: invalid mode: $mode" >&2 224 case $mode in 235 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; 242 cp_umask=$mode$u_plus_rw;; 296 # Create intermediate dirs using mode 75 [all...] |
/freebsd-13-stable/contrib/ntp/sntp/libevent/build-aux/ |
H A D | install-sh | 69 # Desired mode of installed file. 70 mode=0755 129 -m) mode=$2 130 case $mode in 132 echo "$0: invalid mode: $mode" >&2 224 case $mode in 235 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; 242 cp_umask=$mode$u_plus_rw;; 296 # Create intermediate dirs using mode 75 [all...] |
/freebsd-13-stable/crypto/openssh/ |
H A D | install-sh | 84 # Desired mode of installed file. 85 mode=0755 144 -m) mode=$2 145 case $mode in 148 echo "$0: invalid mode: $mode" >&2 219 case $mode in 230 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; 237 cp_umask=$mode$u_plus_rw;; 317 # Create intermediate dirs using mode 75 [all...] |
/freebsd-13-stable/tests/sys/fs/fusefs/ |
H A D | destroy.cc | 80 mode_t mode = S_IFREG | 0644; local 88 out.body.entry.attr.mode = mode; 96 out.body.entry.attr.mode = mode;
|
H A D | forget.cc | 72 mode_t mode = S_IFREG | 0755; local 83 out.body.entry.attr.mode = mode; 123 out.body.entry.attr.mode = S_IFDIR | 0755; 140 out.body.entry.attr.mode = S_IFREG | 0644;
|
/freebsd-13-stable/sys/kern/ |
H A D | sysv_ipc.c | 97 obj_mode = perm->mode; 101 obj_mode = perm->mode; 104 obj_mode = perm->mode; 110 * granted, as part of the mode, our implementation requires 166 new->mode = old->mode; 180 old->mode = new->mode; 206 CP(*ip32, *ip, mode); 219 CP(*ip, *ip32, mode); [all...] |
/freebsd-13-stable/sys/arm/ti/am335x/ |
H A D | tda19988.c | 424 tda19988_init_encoder(struct tda19988_softc *sc, const struct videomode *mode) argument 437 n_pix = mode->htotal; 438 n_line = mode->vtotal; 440 hs_pix_stop = mode->hsync_end - mode->hdisplay; 441 hs_pix_start = mode->hsync_start - mode->hdisplay; 443 de_stop = mode->htotal; 444 de_start = mode->htotal - mode 769 tda19988_set_videomode(device_t dev, const struct videomode *mode) argument [all...] |
/freebsd-13-stable/sys/dev/ata/chipsets/ |
H A D | ata-jmicron.c | 58 static int ata_jmicron_setmode(device_t dev, int target, int mode); 145 ata_jmicron_setmode(device_t dev, int target, int mode) argument 150 mode = min(mode, ctlr->chip->max_dma); 152 if (ata_dma_check_80pin && mode > ATA_UDMA2 && 155 mode = ATA_UDMA2; 157 /* Nothing to do to setup mode, the controller snoop SET_FEATURE cmd. */ 158 return (mode);
|
H A D | ata-marvell.c | 58 static int ata_marvell_setmode(device_t dev, int target, int mode); 159 ata_marvell_setmode(device_t dev, int target, int mode) argument 164 mode = min(mode, ctlr->chip->max_dma); 166 if (ata_dma_check_80pin && mode > ATA_UDMA2 && 169 mode = ATA_UDMA2; 171 /* Nothing to do to setup mode, the controller snoop SET_FEATURE cmd. */ 172 return (mode);
|
/freebsd-13-stable/sys/dev/spibus/ |
H A D | ofw_spibus.c | 85 uint32_t mode = SPIBUS_MODE_NONE; local 109 * Try to get the cpol/cpha mode 112 mode = SPIBUS_MODE_CPOL; 114 if (mode == SPIBUS_MODE_CPOL) 115 mode = SPIBUS_MODE_CPOL_CPHA; 117 mode = SPIBUS_MODE_CPHA; 148 dinfo->opd_dinfo.mode = mode;
|
/freebsd-13-stable/sys/arm/annapurna/alpine/ |
H A D | alpine_serdes.c | 54 enum alpine_serdes_eth_mode mode; member in struct:alpine_serdes_eth_group_mode 121 /* Initialize Serdes group locks and mode */ 167 alpine_serdes_eth_mode_set(uint32_t group, enum alpine_serdes_eth_mode mode) argument 181 if (!group_mode->mode_set || (group_mode->mode != mode)) { 187 if (mode == ALPINE_SERDES_ETH_MODE_SGMII) 192 group_mode->mode = mode;
|
/freebsd-13-stable/tools/regression/sysvshm/ |
H A D | shmtest.c | 122 s_ds.shm_perm.mode = (s_ds.shm_perm.mode & ~0777) | 0600; 132 if ((s_ds.shm_perm.mode & 0777) != 0600) 133 err(1, "IPC_SET of mode didn't hold"); 224 print_shmid_ds(struct shmid_ds *sp, mode_t mode) argument 229 printf("PERM: uid %d, gid %d, cuid %d, cgid %d, mode 0%o\n", 232 sp->shm_perm.mode & 0777); 252 if ((sp->shm_perm.mode & 0777) != mode) 253 errx(1, "mode mismatc [all...] |
/freebsd-13-stable/contrib/ncurses/ncurses/widechar/ |
H A D | lib_vid_attr.c | 42 #define doPut(mode) \ 43 TPUTS_TRACE(#mode); \ 44 NCURSES_SP_NAME(tputs) (NCURSES_SP_ARGx mode, 1, outc) 46 #define TurnOn(mask, mode) \ 47 if ((turn_on & mask) && mode) { \ 48 TPUTS_TRACE(#mode); \ 49 NCURSES_SP_NAME(tputs) (NCURSES_SP_ARGx mode, 1, outc); \ 52 #define TurnOff(mask, mode) \ 53 if ((turn_off & mask) && mode) { \ 54 TPUTS_TRACE(#mode); \ [all...] |
/freebsd-13-stable/tests/sys/kern/ |
H A D | kcov.c | 262 basic_test(u_int mode) argument 268 ATF_REQUIRE_MSG(ioctl(fd, KIOENABLE, mode) == 0, 270 mode < nitems(modes) ? modes[mode] : "unknown mode"); 309 thread_test(u_int mode) argument 317 ATF_REQUIRE_MSG(ioctl(fd, KIOENABLE, mode) == 0, 319 mode < nitems(modes) ? modes[mode] : "unknown mode"); 345 u_int mode; member in struct:multi_thread_data [all...] |
/freebsd-13-stable/tests/sys/mac/bsdextended/ |
H A D | matches_test.sh | 112 atf_check -s exit:0 ugidfw set 1 subject uid $uidrange object mode rasx 135 atf_check -s exit:0 ugidfw set 1 subject gid $gidrange object mode rasx 162 atf_check -s exit:0 ugidfw set 1 subject jailid $jailid object mode rasx 191 atf_check -s exit:0 ugidfw set 1 subject object uid $uidrange mode rasx 199 atf_check -s exit:0 ugidfw set 1 subject object uid $uidrange mode rasx 223 atf_check -s exit:0 ugidfw set 1 subject object gid $uidrange mode rasx 252 atf_check -s exit:0 ugidfw set 1 subject uid $uidrange object filesys / mode rasx 256 atf_check -s exit:0 ugidfw set 1 subject uid $uidrange object filesys mnt mode rasx 275 atf_check -s exit:0 ugidfw set 1 subject uid $uidrange object suid mode rasx 300 atf_check -s exit:0 ugidfw set 1 subject uid $uidrange object sgid mode ras [all...] |
/freebsd-13-stable/contrib/ncurses/ncurses/tty/ |
H A D | lib_twait.c | 150 * The file-descriptors are specified by the mode: 156 * Experimental: if NCURSES_WGETCH_EVENTS is defined, (mode & 4) determines 160 * We return a mask that corresponds to the mode (e.g., 2 for mouse activity). 167 int mode MAYBE_UNUSED, 205 TR(TRACE_IEVENT, ("start twait: %d milliseconds, mode: %d", 206 milliseconds, mode)); 209 if (mode & TW_EVENT) { 229 if ((mode & TW_EVENT) && evl) 237 if ((mode & TW_EVENT) && evl) { 245 if (mode [all...] |
/freebsd-13-stable/libexec/tftpd/ |
H A D | tftpd.c | 107 static void tftp_recvfile(int peer, const char *mode); 108 static void tftp_xmitfile(int peer, const char *mode); 246 * We do this so that inetd can run tftpd in "wait" mode. 247 * The problem with tftpd running in "nowait" mode is that 476 char **filename, char **mode) 482 *mode = NULL; 496 *mode = cp; 499 /* Find the file transfer mode */ 500 for (cp = *mode; *cp; cp++) 504 if (strcmp(pf->f_mode, *mode) 475 parse_header(int peer, char *recvbuffer, ssize_t size, char **filename, char **mode) argument 525 char *filename, *mode; local 570 char *filename, *mode; local 691 validate_access(int peer, char **filep, int mode) argument 807 tftp_xmitfile(int peer, const char *mode) argument 828 tftp_recvfile(int peer, const char *mode) argument [all...] |
/freebsd-13-stable/sys/contrib/octeon-sdk/ |
H A D | cvmx-spi.c | 127 * @param mode The operating mode for the SPI interface. The interface 136 int cvmx_spi_start_interface(int interface, cvmx_spi_mode_t mode, int timeout, int num_ports) argument 144 INVOKE_CB( cvmx_spi_callbacks.reset_cb, interface, mode); 147 INVOKE_CB(cvmx_spi_callbacks.calendar_setup_cb, interface, mode, num_ports); 150 INVOKE_CB(cvmx_spi_callbacks.clock_detect_cb, interface, mode, timeout); 153 INVOKE_CB(cvmx_spi_callbacks.training_cb, interface, mode, timeout); 156 INVOKE_CB(cvmx_spi_callbacks.calendar_sync_cb, interface, mode, timeout); 159 INVOKE_CB(cvmx_spi_callbacks.interface_up_cb, interface, mode); 170 * @param mode Th 177 cvmx_spi_restart_interface(int interface, cvmx_spi_mode_t mode, int timeout) argument 222 cvmx_spi_reset_cb(int interface, cvmx_spi_mode_t mode) argument 327 cvmx_spi_calendar_setup_cb(int interface, cvmx_spi_mode_t mode, int num_ports) argument 436 cvmx_spi_clock_detect_cb(int interface, cvmx_spi_mode_t mode, int timeout) argument 508 cvmx_spi_training_cb(int interface, cvmx_spi_mode_t mode, int timeout) argument 577 cvmx_spi_calendar_sync_cb(int interface, cvmx_spi_mode_t mode, int timeout) argument 629 cvmx_spi_interface_up_cb(int interface, cvmx_spi_mode_t mode) argument [all...] |
/freebsd-13-stable/sys/dev/firewire/ |
H A D | fwmem.c | 106 xfer->send.hdr.mode.hdr.dst = FWLOCALBUS | fwdev->dst; 138 fp->mode.rreqq.tcode = FWTCODE_RREQQ; 139 fp->mode.rreqq.dest_hi = dst_hi; 140 fp->mode.rreqq.dest_lo = dst_lo; 174 fp->mode.wreqq.tcode = FWTCODE_WREQQ; 175 fp->mode.wreqq.dest_hi = dst_hi; 176 fp->mode.wreqq.dest_lo = dst_lo; 177 fp->mode.wreqq.data = *(uint32_t *)data; 211 fp->mode.rreqb.tcode = FWTCODE_RREQB; 212 fp->mode [all...] |
/freebsd-13-stable/sys/dev/rtwn/rtl8192c/ |
H A D | r92c_fw.c | 172 uint8_t mode; local 180 mode = R92C_RAID_11B; 182 mode = R92C_RAID_11BG; 183 /* XXX misleading 'mode' value here for unicast frames */ 185 "%s: mode 0x%x, rates 0x%08x, basicrates 0x%08x\n", __func__, 186 mode, rates, basicrates); 190 cmd.mask = htole32(mode << 28 | basicrates); 201 mode = R92C_RAID_11GN; 203 mode = R92C_RAID_11BG; 205 mode 311 struct r92c_fw_cmd_pwrmode mode; local [all...] |
/freebsd-13-stable/sys/x86/isa/ |
H A D | clock.c | 101 int mode; member in struct:attimer_softc 122 static void set_i8254_freq(int mode, uint32_t period); 150 if (sc->et.et_active && sc->mode != MODE_STOP) 159 int mode; local 161 mode = TIMER_SEL2 | TIMER_SQWAVE | TIMER_16BIT; 174 outb(TIMER_MODE, TIMER_SEL2 | (mode & 0x3f)); 323 set_i8254_freq(int mode, uint32_t period) argument 328 if (mode == MODE_STOP) { 330 mode = MODE_PERIODIC; 341 timer0_period = (mode [all...] |
/freebsd-13-stable/libexec/flua/modules/ |
H A D | lfs.c | 111 * mode: directory 257 mode_t mode; local 259 mode = (sb->st_mode & S_IFMT); 260 if (S_ISREG(mode)) 262 else if (S_ISDIR(mode)) 264 else if (S_ISLNK(mode)) 266 else if (S_ISSOCK(mode)) 268 else if (S_ISFIFO(mode)) 270 else if (S_ISCHR(mode)) 272 else if (S_ISBLK(mode)) [all...] |
/freebsd-13-stable/bin/getfacl/ |
H A D | getfacl.c | 91 acl_from_mode(const mode_t mode) argument 113 /* calculate user mode */ 114 if (mode & S_IRUSR) 117 if (mode & S_IWUSR) 120 if (mode & S_IXUSR) 137 /* calculate group mode */ 138 if (mode & S_IRGRP) 141 if (mode & S_IWGRP) 144 if (mode & S_IXGRP) 161 /* calculate other mode */ [all...] |
/freebsd-13-stable/sys/dev/ipmi/ |
H A D | ipmi_isa.c | 102 const char *mode, *name; local 105 /* We require at least a "mode" hint. */ 108 if (resource_string_value(name, unit, "mode", &mode) != 0) 111 /* Set the mode and default I/O resources for each mode. */ 113 if (strcasecmp(mode, "KCS") == 0) { 118 } else if (strcasecmp(mode, "SMIC") == 0) { 123 } else if (strcasecmp(mode, "BT") == 0) { 129 device_printf(dev, "Invalid mode 177 const char *mode; local [all...] |