| /openbsd-src/regress/lib/libpthread/sigwait/ |
| H A D | sigwait.c | 95 struct sigaction act; in main() local 113 sigemptyset (&act.sa_mask); in main() 114 sigaddset (&act.sa_mask, SIGHUP); in main() 115 sigaddset (&act.sa_mask, SIGIO); in main() 116 act.sa_handler = SIG_IGN; in main() 117 act.sa_flags = 0; in main() 118 CHECKe(sigaction (SIGHUP, &act, NULL)); in main() 119 CHECKe(sigaction (SIGIO, &act, NULL)); in main() 122 sigemptyset (&act.sa_mask); in main() 123 sigaddset (&act.sa_mask, SIGURG); in main() [all …]
|
| /openbsd-src/usr.sbin/wsmoused/ |
| H A D | mouse_protocols.c | 790 mouse_protocol(u_char rBuf, mousestatus_t * act) in mouse_protocol() argument 924 act->dx = act->dy = 0; in mouse_protocol() 925 act->dz = (rBuf & 0x08) ? (rBuf & 0x0f) - 16 : (rBuf & 0x0f); in mouse_protocol() 926 act->obutton = act->button; in mouse_protocol() 927 act->button = butmapintelli[(rBuf & MOUSE_MSS_BUTTONS) >> 4] in mouse_protocol() 928 | (act->obutton & (MOUSE_BUTTON1DOWN | MOUSE_BUTTON3DOWN)); in mouse_protocol() 932 act->dx = act->dy = act->dz = act->dw = 0; in mouse_protocol() 933 act->obutton = act->button; in mouse_protocol() 934 act->button = butmapmss2[(rBuf & MOUSE_MSS_BUTTONS) >> 4] in mouse_protocol() 935 | (act->obutton & (MOUSE_BUTTON1DOWN | MOUSE_BUTTON3DOWN)); in mouse_protocol() [all …]
|
| /openbsd-src/regress/lib/libpthread/sigsuspend/ |
| H A D | sigsuspend.c | 142 struct sigaction act; in main() local 150 sigemptyset (&act.sa_mask); in main() 151 sigaddset (&act.sa_mask, SIGIO); in main() 152 act.sa_handler = SIG_IGN; in main() 153 act.sa_flags = 0; in main() 154 CHECKe(sigaction (SIGIO, &act, NULL)); in main() 157 sigemptyset (&act.sa_mask); in main() 158 sigaddset (&act.sa_mask, SIGURG); in main() 159 act.sa_handler = sighandler; in main() 160 act.sa_flags = SA_RESTART; in main() [all …]
|
| /openbsd-src/usr.bin/mail/ |
| H A D | tty.c | 84 struct sigaction act; in grabh() local 88 sigemptyset(&act.sa_mask); in grabh() 89 act.sa_flags = SA_RESTART; in grabh() 90 act.sa_handler = SIG_DFL; in grabh() 91 (void)sigaction(SIGTSTP, &act, &savetstp); in grabh() 92 (void)sigaction(SIGTTOU, &act, &savettou); in grabh() 93 (void)sigaction(SIGTTIN, &act, &savettin); in grabh() 173 struct sigaction act, saveint; in readtty() local 198 sigemptyset(&act.sa_mask); in readtty() 199 act.sa_flags = 0; /* Note: will not restart syscalls */ in readtty() [all …]
|
| H A D | fio.c | 195 struct sigaction act; in readline() local 211 sigemptyset(&act.sa_mask); in readline() 212 act.sa_flags = 0; in readline() 213 act.sa_handler = fioint; in readline() 216 (void)sigaction(SIGINT, &act, &saveint); in readline() 221 (void)sigaction(SIGHUP, &act, &savehup); in readline() 222 (void)sigaction(SIGTSTP, &act, &savetstp); in readline() 223 (void)sigaction(SIGTTOU, &act, &savettou); in readline() 224 (void)sigaction(SIGTTIN, &act, &savettin); in readline() 366 struct sigaction act; in ignoresig() local [all …]
|
| /openbsd-src/regress/lib/libcrypto/asn1/ |
| H A D | asn1complex.c | 160 do_asn1_constructed_test(const struct asn1_constructed_test *act) in do_asn1_constructed_test() argument 169 p = act->asn1; in do_asn1_constructed_test() 170 aos = d2i_ASN1_OCTET_STRING(NULL, &p, act->asn1_len); in do_asn1_constructed_test() 171 if (!act->valid) { in do_asn1_constructed_test() 176 if (act->want_error != 0) { in do_asn1_constructed_test() 178 if (ERR_GET_REASON(err) != act->want_error) { in do_asn1_constructed_test() 181 act->want_error); in do_asn1_constructed_test() 193 if (!asn1_compare_bytes(act->name, ASN1_STRING_data(aos), in do_asn1_constructed_test() 194 ASN1_STRING_length(aos), act->want, act->want_len)) in do_asn1_constructed_test() 209 const struct asn1_constructed_test *act; in do_asn1_constructed_tests() local [all …]
|
| /openbsd-src/usr.bin/cu/ |
| H A D | input.c | 50 struct sigaction act, oact; in get_input() local 54 memset(&act, 0, sizeof(act)); in get_input() 55 sigemptyset(&act.sa_mask); in get_input() 56 act.sa_flags = 0; in get_input() 57 act.sa_handler = input_signal; in get_input() 58 if (sigaction(SIGINT, &act, &oact) != 0) in get_input()
|
| /openbsd-src/regress/lib/libpthread/signodefer/ |
| H A D | signodefer.c | 45 struct sigaction act; in main() local 47 act.sa_sigaction = act_handler; in main() 48 sigemptyset(&act.sa_mask); in main() 49 act.sa_flags = SA_SIGINFO; in main() 50 ASSERT(sigaction(SIGUSR1, &act, NULL) == 0); in main() 58 act.sa_flags |= SA_NODEFER; in main() 59 ASSERT(sigaction(SIGUSR1, &act, NULL) == 0); in main()
|
| /openbsd-src/lib/libc/sys/ |
| H A D | w_sigaction.c | 26 WRAP(sigaction)(int sig, const struct sigaction *act, struct sigaction *oact) in WRAP() 34 if (act != NULL && sigismember(&act->sa_mask, SIGTHR)) { in WRAP() 35 sa = *act; in WRAP() 37 act = &sa; in WRAP() 39 return (sigaction(sig, act, oact)); in WRAP()
|
| /openbsd-src/regress/usr.sbin/syslogd/ |
| H A D | ttylog.c | 58 struct sigaction act; in main() local 81 memset(&act, 0, sizeof(act)); in main() 82 act.sa_mask = set; in main() 83 act.sa_flags = SA_RESTART; in main() 84 act.sa_handler = terminate; in main() 85 if (sigaction(SIGTERM, &act, NULL) == -1) in main() 87 if (sigaction(SIGINT, &act, NULL) == -1) in main() 103 act.sa_handler = iostdin; in main() 104 if (sigaction(SIGIO, &act, NULL) == -1) in main() 113 act.sa_handler = timeout; in main() [all …]
|
| /openbsd-src/gnu/gcc/gcc/objc/ |
| H A D | ChangeLog | 12 * objc-act.c (objc_add_static_instance): Mark the decl as 18 * objc-act.c (hash_interface): Use IDENTIFIER_HASH_VALUE instead 30 * objc-act.c (objc_push_parm): If we change the type of the 35 * objc-act.c (JBLEN): Rename to OBJC_JBLEN, 46 * objc-act.c (lookup_and_install_protocols): Skip error_mark_nodes. 50 * objc-act.c: Remove prototype for objc_build_volatilized_type. 54 * objc-act.c (build_next_objc_exception_stuff): Use JBLEN instead of _JBLEN. 59 * objc-act.c (objc_is_public): Return early on invalid type. 63 * objc-act.c (init_module_descriptor): Remove file name from 76 * objc/objc-act.c (encode_type): Encode Complex types as 'j' followed [all …]
|
| /openbsd-src/sys/dev/pci/drm/ |
| H A D | drm_mtrr.c | 47 int act; in drm_mtrr_add() local 53 act = MEMRANGE_SET_UPDATE; in drm_mtrr_add() 55 return mem_range_attr_set(&mrdesc, &act); in drm_mtrr_add() 65 int act; in drm_mtrr_del() local 71 act = MEMRANGE_SET_REMOVE; in drm_mtrr_del() 73 return mem_range_attr_set(&mrdesc, &act); in drm_mtrr_del()
|
| /openbsd-src/regress/lib/libpthread/pthread_kill/ |
| H A D | pthread_kill.c | 59 struct sigaction act; in main() local 61 act.sa_sigaction = act_handler; in main() 62 sigemptyset(&act.sa_mask); in main() 63 act.sa_flags = SA_SIGINFO | SA_RESETHAND | SA_NODEFER; in main() 64 CHECKe(sigaction(SIGUSR1, &act, NULL)); in main() 74 CHECKe(sigaction(SIGUSR1, &act, NULL)); in main() 79 CHECKe(sigaction(SIGUSR1, &act, NULL)); in main()
|
| /openbsd-src/gnu/usr.bin/binutils/gdb/testsuite/gdb.base/ |
| H A D | sigbpt.c | 46 struct sigaction act; in main() local 47 memset (&act, 0, sizeof act); in main() 48 act.sa_handler = keeper; in main() 49 sigaction (SIGSEGV, &act, NULL); in main()
|
| H A D | sigaltstack.c | 41 struct sigaction act; in thrower() local 42 memset (&act, 0, sizeof (act)); in thrower() 43 act.sa_handler = catcher; in thrower() 44 act.sa_flags |= on_stack; in thrower() 45 sigaction (sig, &act, NULL); in thrower()
|
| H A D | signull.c | 78 struct sigaction act; in main() local 79 memset (&act, 0, sizeof act); in main() 80 act.sa_handler = keeper; in main() 81 sigaction (SIGSEGV, &act, NULL); in main()
|
| /openbsd-src/lib/libcurses/tty/ |
| H A D | lib_tstp.c | 144 sigaction_t act, oact; in handle_SIGTSTP() local 211 act.sa_handler = SIG_DFL; in handle_SIGTSTP() 212 sigemptyset(&act.sa_mask); in handle_SIGTSTP() 213 act.sa_flags = 0; in handle_SIGTSTP() 215 act.sa_flags |= SA_RESTART; in handle_SIGTSTP() 217 sigaction(SIGTSTP, &act, &oact); in handle_SIGTSTP() 263 sigaction_t act; in handle_SIGINT() local 264 sigemptyset(&act.sa_mask); in handle_SIGINT() 265 act.sa_flags = 0; in handle_SIGINT() 266 act.sa_handler = SIG_IGN; in handle_SIGINT() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/ARCMigrate/ |
| H A D | TransformActions.cpp | 200 ActionData &act = CachedActions[i]; in commitTransaction() local 201 switch (act.Kind) { in commitTransaction() 203 if (!canInsert(act.Loc)) in commitTransaction() 207 if (!canInsertAfterToken(act.Loc)) in commitTransaction() 211 if (!canRemoveRange(act.R1)) in commitTransaction() 215 assert(act.S); in commitTransaction() 216 if (!canRemoveRange(act.S->getSourceRange())) in commitTransaction() 220 if (!canReplaceRange(act.R1, act.R2)) in commitTransaction() 224 if (!canReplaceText(act.Loc, act.Text1)) in commitTransaction() 244 ActionData &act = CachedActions[i]; in commitTransaction() local [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_signal_interceptors.inc | 32 # define SIGNAL_INTERCEPTOR_SIGACTION_IMPL(signum, act, oldact) \ 40 return REAL(sigaction_symname)(signum, act, oldact); \ 63 const __sanitizer_sigaction *act, __sanitizer_sigaction *oldact) { 66 act = nullptr; 68 SIGNAL_INTERCEPTOR_SIGACTION_IMPL(signum, act, oldact); 73 int real_sigaction(int signum, const void *act, void *oldact) { 74 return REAL(sigaction_symname)(signum, (const __sanitizer_sigaction *)act, 85 DEFINE_REAL(int, sigaction, int signum, const __sanitizer_sigaction *act,
|
| /openbsd-src/regress/usr.bin/lastcomm/ |
| H A D | callstack.c | 33 struct sigaction act; in main() local 45 act.sa_handler = handler; in main() 46 sigemptyset(&act.sa_mask); in main() 47 act.sa_flags = SA_ONSTACK; in main() 59 if (sigaction(SIGSEGV, &act, NULL) == -1) in main()
|
| H A D | trapstack.c | 37 struct sigaction act; in main() local 49 act.sa_handler = handler; in main() 50 sigemptyset(&act.sa_mask); in main() 51 act.sa_flags = SA_ONSTACK; in main() 68 if (sigaction(SIGSEGV, &act, NULL) == -1) in main()
|
| /openbsd-src/regress/lib/libpthread/siginfo/ |
| H A D | siginfo.c | 39 struct sigaction act; in main() 41 act.sa_sigaction = act_handler; in main() local 42 sigemptyset(&act.sa_mask); in main() 43 act.sa_flags = SA_SIGINFO | SA_RESETHAND | SA_NODEFER; in main() 44 CHECKe(sigaction(SIGSEGV, &act, NULL)); in main()
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Test-Harness/lib/TAP/ |
| H A D | Parser.pm | 1162 act => sub { 1169 act => sub { 1178 act => sub { 1192 act => sub { 1205 act => sub { 1253 yaml => { act => sub { }, }, 1259 # act A coderef to run 1267 act => sub { 1299 act => sub { 1308 plan => { act [all...] |
| /openbsd-src/bin/pax/ |
| H A D | pax.c | 64 int act = DEFOP; /* read/write/append/copy */ variable 274 if (pmode == 0 || (act != EXTRACT && act != COPY)) { in main() 276 if (gzip_program == NULL || act == COPY) { in main() 278 if (act == LIST) { in main() 283 } else if (act == APPND) { in main() 293 if (act == LIST) { in main() 309 switch (act) { in main()
|
| H A D | options.c | 656 act = LIST; in pax_options() 660 act = EXTRACT; in pax_options() 663 act = ARCHIVE; in pax_options() 666 act = APPND; in pax_options() 669 act = COPY; in pax_options() 683 if (!(flg & XF) && (act == ARCHIVE)) in pax_options() 689 switch (act) { in pax_options() 763 act = ARCHIVE; in tar_options() 820 act = APPND; in tar_options() 835 act = LIST; in tar_options() [all …]
|