| /NextBSD/tools/regression/security/open_to_operation/ |
| HD | open_to_operation.c | 131 ok_mode(const char *testname, const char *comment, int mode) in ok_mode() argument 136 printf("ok %d - %s # mode 0x%x\n", testnum, testname, mode); in ok_mode() 139 mode, comment); in ok_mode() 143 notok_mode(const char *testname, const char *comment, int mode) in notok_mode() argument 149 mode); in notok_mode() 152 mode, comment); in notok_mode() 160 int mode, int expected_errno) in try_directory_open() argument 164 dfd = open(directory, mode); in try_directory_open() 167 notok_mode(testname, "opened", mode); in try_directory_open() 169 ok_mode(testname, NULL, mode); in try_directory_open() [all …]
|
| /NextBSD/usr.bin/tset/ |
| HD | set.c | 56 tcgetattr(STDERR_FILENO, &mode); in reset_mode() 59 mode.c_cc[VDISCARD] = CHK(mode.c_cc[VDISCARD], CDISCARD); in reset_mode() 61 mode.c_cc[VEOF] = CHK(mode.c_cc[VEOF], CEOF); in reset_mode() 62 mode.c_cc[VERASE] = CHK(mode.c_cc[VERASE], CERASE); in reset_mode() 64 mode.c_cc[VFLUSH] = CHK(mode.c_cc[VFLUSH], CFLUSH); in reset_mode() 66 mode.c_cc[VINTR] = CHK(mode.c_cc[VINTR], CINTR); in reset_mode() 67 mode.c_cc[VKILL] = CHK(mode.c_cc[VKILL], CKILL); in reset_mode() 69 mode.c_cc[VLNEXT] = CHK(mode.c_cc[VLNEXT], CLNEXT); in reset_mode() 71 mode.c_cc[VQUIT] = CHK(mode.c_cc[VQUIT], CQUIT); in reset_mode() 73 mode.c_cc[VREPRINT] = CHK(mode.c_cc[VREPRINT], CRPRNT); in reset_mode() [all …]
|
| /NextBSD/tools/regression/capsicum/syscalls/ |
| HD | cap_getmode.c | 49 unsigned int mode; in main() local 55 mode = 666; in main() 56 CHECK(cap_getmode(&mode) == 0); in main() 58 CHECK(mode != 666); in main() 60 CHECK(mode == 0); in main() 76 mode = 666; in main() 77 CHECK(cap_getmode(&mode) == 0); in main() 79 CHECK(mode != 666); in main() 81 CHECK(mode == 0); in main() 94 mode = 666; in main() [all …]
|
| /NextBSD/contrib/apr/file_io/unix/ |
| HD | fileacc.c | 37 mode_t mode = 0; in apr_unix_perms2mode() local 40 mode |= S_ISUID; in apr_unix_perms2mode() 42 mode |= S_IRUSR; in apr_unix_perms2mode() 44 mode |= S_IWUSR; in apr_unix_perms2mode() 46 mode |= S_IXUSR; in apr_unix_perms2mode() 49 mode |= S_ISGID; in apr_unix_perms2mode() 51 mode |= S_IRGRP; in apr_unix_perms2mode() 53 mode |= S_IWGRP; in apr_unix_perms2mode() 55 mode |= S_IXGRP; in apr_unix_perms2mode() 59 mode |= S_ISVTX; in apr_unix_perms2mode() [all …]
|
| /NextBSD/contrib/gcc/ |
| HD | simplify-rtx.c | 70 neg_const_int (enum machine_mode mode, rtx i) in neg_const_int() argument 72 return gen_int_mode (- INTVAL (i), mode); in neg_const_int() 79 mode_signbit_p (enum machine_mode mode, rtx x) in mode_signbit_p() argument 84 if (GET_MODE_CLASS (mode) != MODE_INT) in mode_signbit_p() 87 width = GET_MODE_BITSIZE (mode); in mode_signbit_p() 113 simplify_gen_binary (enum rtx_code code, enum machine_mode mode, rtx op0, in simplify_gen_binary() argument 119 tem = simplify_binary_operation (code, mode, op0, op1); in simplify_gen_binary() 128 return gen_rtx_fmt_ee (code, mode, op0, op1); in simplify_gen_binary() 215 simplify_gen_unary (enum rtx_code code, enum machine_mode mode, rtx op, in simplify_gen_unary() argument 221 if ((tem = simplify_unary_operation (code, mode, op, op_mode)) != 0) in simplify_gen_unary() [all …]
|
| HD | optabs.c | 209 widen_operand (rtx op, enum machine_mode mode, enum machine_mode oldmode, in widen_operand() argument 224 return convert_modes (mode, oldmode, op, unsignedp); in widen_operand() 228 if (GET_MODE_SIZE (mode) <= UNITS_PER_WORD) in widen_operand() 229 return gen_rtx_SUBREG (mode, force_reg (GET_MODE (op), op), 0); in widen_operand() 234 result = gen_reg_rtx (mode); in widen_operand() 387 xmode0 = insn_data[icode].operand[1].mode; in expand_widen_pattern_expr() 393 xmode1 = insn_data[icode].operand[2].mode; in expand_widen_pattern_expr() 408 wxmode = insn_data[icode].operand[3].mode; in expand_widen_pattern_expr() 412 wmode = wxmode = insn_data[icode].operand[0].mode; in expand_widen_pattern_expr() 507 expand_ternary_op (enum machine_mode mode, optab ternary_optab, rtx op0, in expand_ternary_op() argument [all …]
|
| HD | expmed.c | 138 enum machine_mode mode, wider_mode; in init_expmed() local 208 for (mode = GET_CLASS_NARROWEST_MODE (MODE_INT); in init_expmed() 209 mode != VOIDmode; in init_expmed() 210 mode = GET_MODE_WIDER_MODE (mode)) in init_expmed() 212 PUT_MODE (&all.reg, mode); in init_expmed() 213 PUT_MODE (&all.plus, mode); in init_expmed() 214 PUT_MODE (&all.neg, mode); in init_expmed() 215 PUT_MODE (&all.mult, mode); in init_expmed() 216 PUT_MODE (&all.sdiv, mode); in init_expmed() 217 PUT_MODE (&all.udiv, mode); in init_expmed() [all …]
|
| HD | rtlhooks.c | 41 gen_lowpart_general (enum machine_mode mode, rtx x) in gen_lowpart_general() argument 43 rtx result = gen_lowpart_common (mode, x); in gen_lowpart_general() 53 result = gen_lowpart_common (mode, copy_to_reg (x)); in gen_lowpart_general() 67 && TRULY_NOOP_TRUNCATION (GET_MODE_BITSIZE (mode), in gen_lowpart_general() 70 return gen_lowpart_general (mode, force_reg (GET_MODE (x), x)); in gen_lowpart_general() 74 - MAX (GET_MODE_SIZE (mode), UNITS_PER_WORD)); in gen_lowpart_general() 79 offset -= (MIN (UNITS_PER_WORD, GET_MODE_SIZE (mode)) in gen_lowpart_general() 82 return adjust_address (x, mode, offset); in gen_lowpart_general() 89 gen_lowpart_no_emit_general (enum machine_mode mode, rtx x) in gen_lowpart_no_emit_general() argument 91 rtx result = gen_lowpart_if_possible (mode, x); in gen_lowpart_no_emit_general() [all …]
|
| /NextBSD/etc/mtree/ |
| HD | BSD.var.dist | 6 /set type=dir uname=root gname=wheel mode=0755 18 /set mode=0750 21 dist uname=auditdistd gname=audit mode=0770 23 remote uname=auditdistd gname=wheel mode=0700 26 authpf uname=root gname=authpf mode=0770 31 cache mode=0755 36 tabs mode=0700 39 /set mode=0755 41 entropy uname=operator gname=operator mode=0700 43 freebsd-update mode=0700 [all …]
|
| /NextBSD/sys/dev/drm2/ |
| HD | drm_modes.c | 49 void drm_mode_debug_printmodeline(const struct drm_display_mode *mode) in drm_mode_debug_printmodeline() argument 53 mode->base.id, mode->name, mode->vrefresh, mode->clock, in drm_mode_debug_printmodeline() 54 mode->hdisplay, mode->hsync_start, in drm_mode_debug_printmodeline() 55 mode->hsync_end, mode->htotal, in drm_mode_debug_printmodeline() 56 mode->vdisplay, mode->vsync_start, in drm_mode_debug_printmodeline() 57 mode->vsync_end, mode->vtotal, mode->type, mode->flags); in drm_mode_debug_printmodeline() 516 void drm_mode_set_name(struct drm_display_mode *mode) in drm_mode_set_name() argument 518 bool interlaced = !!(mode->flags & DRM_MODE_FLAG_INTERLACE); in drm_mode_set_name() 520 snprintf(mode->name, DRM_DISPLAY_MODE_LEN, "%dx%d%s", in drm_mode_set_name() 521 mode->hdisplay, mode->vdisplay, in drm_mode_set_name() [all …]
|
| HD | drm_edid.c | 535 mode_is_rb(const struct drm_display_mode *mode) in mode_is_rb() argument 537 return (mode->htotal - mode->hdisplay == 160) && in mode_is_rb() 538 (mode->hsync_end - mode->hdisplay == 80) && in mode_is_rb() 539 (mode->hsync_end - mode->hsync_start == 32) && in mode_is_rb() 540 (mode->vsync_start - mode->vdisplay == 3); in mode_is_rb() 744 struct drm_display_mode *m, *mode = NULL; in drm_mode_std() local 794 mode = drm_cvt_mode(dev, 1366, 768, vrefresh_rate, 0, 0, in drm_mode_std() 796 mode->hdisplay = 1366; in drm_mode_std() 797 mode->hsync_start = mode->hsync_start - 1; in drm_mode_std() 798 mode->hsync_end = mode->hsync_end - 1; in drm_mode_std() [all …]
|
| /NextBSD/lib/libc/tests/gen/ |
| HD | popen_test.c | 55 check_cloexec(FILE *fp, const char *mode) in check_cloexec() argument 63 if (strchr(mode, 'e') != NULL) in check_cloexec() 76 const char *mode; in ATF_TC_BODY() local 80 mode = allmodes[i]; in ATF_TC_BODY() 81 fp = popen("exit 7", mode); in ATF_TC_BODY() 82 ATF_CHECK_MSG(fp != NULL, "popen(, \"%s\") failed", mode); in ATF_TC_BODY() 85 check_cloexec(fp, mode); in ATF_TC_BODY() 97 const char *mode; in ATF_TC_BODY() local 102 mode = rmodes[i]; in ATF_TC_BODY() 103 fp = popen("exit 9", mode); in ATF_TC_BODY() [all …]
|
| /NextBSD/tools/regression/geom/ConfCmp/ |
| HD | a1c.conf | 15 <mode>r0w0e0</mode> 27 <mode>r0w0e0</mode> 39 <mode>r0w0e0</mode> 51 <mode>r0w0e0</mode> 63 <mode>r0w0e0</mode> 75 <mode>r0w0e0</mode> 87 <mode>r0w0e0</mode> 99 <mode>r0w0e0</mode> 111 <mode>r0w0e0</mode> 123 <mode>r0w0e0</mode> [all …]
|
| HD | a1.conf | 15 <mode>r0w0e0</mode> 27 <mode>r0w0e0</mode> 39 <mode>r0w0e0</mode> 51 <mode>r0w0e0</mode> 63 <mode>r0w0e0</mode> 75 <mode>r0w0e0</mode> 87 <mode>r0w0e0</mode> 99 <mode>r0w0e0</mode> 111 <mode>r0w0e0</mode> 123 <mode>r0w0e0</mode> [all …]
|
| HD | a1a.conf | 15 <mode>r0w0e0</mode> 27 <mode>r0w0e0</mode> 39 <mode>r0w0e0</mode> 51 <mode>r0w0e0</mode> 63 <mode>r0w0e0</mode> 75 <mode>r0w0e0</mode> 87 <mode>r0w0e0</mode> 99 <mode>r0w0e0</mode> 111 <mode>r0w0e0</mode> 123 <mode>r0w0e0</mode> [all …]
|
| HD | a1b.conf | 15 <mode>r0w0e0</mode> 27 <mode>r0w0e0</mode> 39 <mode>r0w0e0</mode> 51 <mode>r0w0e0</mode> 63 <mode>r0w0e0</mode> 75 <mode>r0w0e0</mode> 87 <mode>r0w0e0</mode> 99 <mode>r0w0e0</mode> 111 <mode>r0w0e0</mode> 123 <mode>r0w0e0</mode> [all …]
|
| HD | a1d.conf | 15 <mode>r0w0e0</mode> 27 <mode>r0w0e0</mode> 39 <mode>r0w0e0</mode> 51 <mode>r0w0e0</mode> 63 <mode>r0w0e0</mode> 75 <mode>r0w0e0</mode> 87 <mode>r0w0e0</mode> 99 <mode>r0w0e0</mode> 111 <mode>r0w0e0</mode> 123 <mode>r0w0e0</mode> [all …]
|
| HD | a2d.conf | 12 <mode>r0w0e0</mode> 22 <mode>r0w0e0</mode> 32 <mode>r0w0e0</mode> 42 <mode>r0w0e0</mode> 52 <mode>r0w0e0</mode> 56 <mode>r0w0e0</mode> 66 <mode>r0w0e0</mode> 76 <mode>r0w0e0</mode> 92 <mode>r0w0e0</mode> 98 <mode>r0w0e0</mode> [all …]
|
| HD | a2b.conf | 12 <mode>r0w0e0</mode> 22 <mode>r0w0e0</mode> 32 <mode>r0w0e0</mode> 42 <mode>r0w0e0</mode> 52 <mode>r0w0e0</mode> 62 <mode>r0w0e0</mode> 72 <mode>r0w0e0</mode> 88 <mode>r0w0e0</mode> 94 <mode>r0w0e0</mode> 128 <mode>r0w0e0</mode> [all …]
|
| HD | a2a.conf | 12 <mode>r0w0e0</mode> 22 <mode>r0w0e0</mode> 32 <mode>r0w0e0</mode> 42 <mode>r0w0e0</mode> 52 <mode>r0w0e0</mode> 62 <mode>r0w0e0</mode> 72 <mode>r0w0e0</mode> 88 <mode>r0w0e0</mode> 94 <mode>r0w0e0</mode> 128 <mode>r0w0e0</mode> [all …]
|
| HD | a2.conf | 12 <mode>r0w0e0</mode> 22 <mode>r0w0e0</mode> 32 <mode>r0w0e0</mode> 42 <mode>r0w0e0</mode> 52 <mode>r0w0e0</mode> 62 <mode>r0w0e0</mode> 72 <mode>r0w0e0</mode> 88 <mode>r0w0e0</mode> 94 <mode>r0w0e0</mode> 128 <mode>r0w0e0</mode> [all …]
|
| HD | a2c.conf | 12 <mode>r0w0e0</mode> 22 <mode>r0w0e0</mode> 32 <mode>r0w0e0</mode> 51 <mode>r0w0e0</mode> 61 <mode>r0w0e0</mode> 71 <mode>r0w0e0</mode> 87 <mode>r0w0e0</mode> 93 <mode>r0w0e0</mode> 127 <mode>r0w0e0</mode> 133 <mode>r0w0e0</mode> [all …]
|
| /NextBSD/tools/tools/usbtest/ |
| HD | usbtest.c | 193 int mode = 0; in show_default_audio_select() local 204 &mode, sizeof(mode)); in show_default_audio_select() 208 "to %d (error=%d)\n", mode, errno); in show_default_audio_select() 243 (mode == G_AUDIO_MODE_SILENT) ? "(selected)" : "", in show_default_audio_select() 244 (mode == G_AUDIO_MODE_DUMP) ? "(selected)" : "", in show_default_audio_select() 245 (mode == G_AUDIO_MODE_LOOP) ? "(selected)" : "", in show_default_audio_select() 246 (mode == G_AUDIO_MODE_PATTERN) ? "(selected)" : "", in show_default_audio_select() 253 mode = G_AUDIO_MODE_SILENT; in show_default_audio_select() 256 mode = G_AUDIO_MODE_DUMP; in show_default_audio_select() 259 mode = G_AUDIO_MODE_LOOP; in show_default_audio_select() [all …]
|
| /NextBSD/lib/libz/ |
| HD | gzlib.c | 82 if (state->mode == GZ_READ) { /* for reading ... */ 94 local gzFile gz_open(path, fd, mode) in gz_open() argument 97 const char *mode; 122 state->mode = GZ_NONE; 126 while (*mode) { 127 if (*mode >= '0' && *mode <= '9') 128 state->level = *mode - '0'; 130 switch (*mode) { 132 state->mode = GZ_READ; 136 state->mode = GZ_WRITE; [all …]
|
| /NextBSD/contrib/ncurses/progs/ |
| HD | tset.c | 157 static TTY mode, oldmode, original; variable 760 tcgetattr(STDERR_FILENO, &mode); in reset_mode() 762 stty(STDERR_FILENO, &mode); in reset_mode() 767 mode.c_cc[VDISCARD] = CHK(mode.c_cc[VDISCARD], CDISCARD); in reset_mode() 769 mode.c_cc[VEOF] = CHK(mode.c_cc[VEOF], CEOF); in reset_mode() 770 mode.c_cc[VERASE] = CHK(mode.c_cc[VERASE], CERASE); in reset_mode() 772 mode.c_cc[VFLUSH] = CHK(mode.c_cc[VFLUSH], CFLUSH); in reset_mode() 774 mode.c_cc[VINTR] = CHK(mode.c_cc[VINTR], CINTR); in reset_mode() 775 mode.c_cc[VKILL] = CHK(mode.c_cc[VKILL], CKILL); in reset_mode() 777 mode.c_cc[VLNEXT] = CHK(mode.c_cc[VLNEXT], CLNEXT); in reset_mode() [all …]
|