Home
last modified time | relevance | path

Searched refs:oldstate (Results 1 – 25 of 30) sorted by relevance

12

/netbsd/lib/libc/stdio/
H A Dflockfile.c111 int oldstate; in __flockfile_internal() local
112 thr_setcancelstate(PTHREAD_CANCEL_DISABLE, &oldstate); in __flockfile_internal()
115 thr_setcancelstate(oldstate, NULL); in __flockfile_internal()
/netbsd/external/gpl3/binutils/dist/gprofng/libcollector/
H A Diolib.c350 uint32_t oldstate = hndl->blkstate[j]; in deleteHandle() local
351 if (oldstate != ST_FREE) in deleteHandle()
354 uint32_t state = __collector_cas_32 (hndl->blkstate + j, oldstate, ST_BUSY); in deleteHandle()
355 if (state != oldstate) in deleteHandle()
796 uint32_t oldstate = sptr[ichunk]; in __collector_write_packet() local
797 if (oldstate == ST_BUSY) in __collector_write_packet()
800 state = __collector_cas_32 (sptr + ichunk, oldstate, ST_BUSY); in __collector_write_packet()
801 if (state == oldstate) in __collector_write_packet()
806 oldstate = state; in __collector_write_packet()
807 state = __collector_cas_32 (sptr + ichunk, oldstate, ST_BUSY); in __collector_write_packet()
[all …]
/netbsd/usr.bin/mail/
H A Dthread.c942 state_t oldstate; in thread_on_reference() local
1039 if (!S_IS_EXPOSE(oldstate)) in thread_on_reference()
1042 restore_state(oldstate); in thread_on_reference()
1098 state_t oldstate; in tagbelowcmd() local
1114 restore_state(oldstate); in tagbelowcmd()
1635 state_t oldstate; in thread_current_on() local
1637 oldstate = set_state(~(S_RESTRICT | S_EXPOSE), cutit ? S_EXPOSE : 0); in thread_current_on()
1648 if (!S_IS_EXPOSE(oldstate)) in thread_current_on()
1650 restore_state(oldstate); in thread_current_on()
1720 state_t oldstate; in deldupscmd() local
[all …]
/netbsd/external/bsd/nsd/dist/
H A Dzlexer.lex81 static YY_BUFFER_STATE oldstate; variable
86 oldstate = YY_CURRENT_BUFFER; in parser_push_stringbuf()
94 yy_switch_to_buffer(oldstate); in parser_pop_stringbuf()
95 oldstate = NULL; in parser_pop_stringbuf()
H A Dzlexer.c603 static YY_BUFFER_STATE oldstate; variable
608 oldstate = YY_CURRENT_BUFFER; in parser_push_stringbuf()
616 yy_switch_to_buffer(oldstate); in parser_pop_stringbuf()
617 oldstate = NULL; in parser_pop_stringbuf()
/netbsd/sys/netinet/
H A Ddccp_usrreq.c2884 u_char oldstate, st; in dccp_generate_ackvector() local
2889 oldstate = 0x04; /* bad value */ in dccp_generate_ackvector()
2903 oldstate = 0x03; in dccp_generate_ackvector()
2923 if (st == oldstate) { in dccp_generate_ackvector()
2928 oldstate = st; in dccp_generate_ackvector()
2935 if (st == oldstate && oldlen < 64) { in dccp_generate_ackvector()
2941 oldstate = st; in dccp_generate_ackvector()
2953 if (st == oldstate && oldlen < 64) { in dccp_generate_ackvector()
2959 oldstate = st; in dccp_generate_ackvector()
2970 if (st == oldstate && oldlen < 64) { in dccp_generate_ackvector()
[all …]
/netbsd/sys/arch/mips/sibyte/dev/
H A Dsbmac.c326 sbmac_state_t oldstate; in sbmac_mii_statchg() local
329 oldstate = sbmac_set_channel_state(sc, sbmac_state_off); in sbmac_mii_statchg()
357 sbmac_set_channel_state(sc, oldstate); in sbmac_mii_statchg()
1385 sbmac_state_t oldstate = sc->sbm_state; in sbmac_set_channel_state() local
1391 if (state == oldstate) in sbmac_set_channel_state()
1392 return oldstate; in sbmac_set_channel_state()
1407 return oldstate; in sbmac_set_channel_state()
/netbsd/lib/libpthread/
H A Dpthread.c888 pthread_setcancelstate(int state, int *oldstate) in pthread_setcancelstate() argument
894 return __libc_thr_setcancelstate_stub(state, oldstate); in pthread_setcancelstate()
901 if (oldstate != NULL) { in pthread_setcancelstate()
903 *oldstate = PTHREAD_CANCEL_DISABLE; in pthread_setcancelstate()
905 *oldstate = PTHREAD_CANCEL_ENABLE; in pthread_setcancelstate()
/netbsd/usr.sbin/kgmon/
H A Dkgmon.c302 int mib[5], miblen, mibparam, oldstate; in setprof() local
319 if (sysctl(mib, miblen, &oldstate, &sz, NULL, 0) < 0) in setprof()
321 if (oldstate == state) in setprof()
/netbsd/sys/dev/sdmmc/
H A Dif_bwfm_sdio.c1219 enum bwfm_sdio_clkstate oldstate; in bwfm_sdio_clkctl() local
1221 oldstate = sc->sc_clkstate; in bwfm_sdio_clkctl()
1222 if (oldstate == newstate) in bwfm_sdio_clkctl()
1227 if (oldstate == CLK_NONE) in bwfm_sdio_clkctl()
1232 if (oldstate == CLK_NONE) in bwfm_sdio_clkctl()
1234 else if (oldstate == CLK_AVAIL) in bwfm_sdio_clkctl()
1241 if (oldstate == CLK_AVAIL) in bwfm_sdio_clkctl()
1249 DPRINTF(("%s: %d -> %d = %d\n", DEVNAME(sc), oldstate, newstate, in bwfm_sdio_clkctl()
/netbsd/external/mpl/dhcp/dist/dhcpctl/
H A Dcltest.c77 isc_result_t dhcp_set_control_state (control_object_state_t oldstate, in dhcp_set_control_state() argument
H A Dcltest2.c310 isc_result_t dhcp_set_control_state (control_object_state_t oldstate, in dhcp_set_control_state() argument
H A Domshell.c825 isc_result_t dhcp_set_control_state (control_object_state_t oldstate, in dhcp_set_control_state() argument
/netbsd/external/bsd/ppp/dist/pppd/
H A Dccp.c444 int oldstate; in ccp_input() local
449 oldstate = f->state; in ccp_input()
451 if (oldstate == OPENED && p[0] == TERMREQ && f->state != OPENED) { in ccp_input()
465 if (oldstate == REQSENT && p[0] == TERMACK in ccp_input()
H A Dlcp.c394 int oldstate; in lcp_close() local
403 oldstate = f->state; in lcp_close()
406 if (oldstate == STOPPED && f->flags & (OPT_PASSIVE|OPT_SILENT|DELAYED_UP)) { in lcp_close()
/netbsd/sys/external/bsd/vchiq/dist/interface/vchiq_arm/
H A Dvchiq_core.h703 VCHIQ_CONNSTATE_T oldstate, VCHIQ_CONNSTATE_T newstate);
H A Dvchiq_arm.c2799 VCHIQ_CONNSTATE_T oldstate, VCHIQ_CONNSTATE_T newstate) in vchiq_platform_conn_state_changed() argument
2803 get_conn_state_name(oldstate), get_conn_state_name(newstate)); in vchiq_platform_conn_state_changed()
H A Dvchiq_core.c419 VCHIQ_CONNSTATE_T oldstate = state->conn_state; in vchiq_set_conn_state() local
422 conn_state_names[oldstate], in vchiq_set_conn_state()
425 vchiq_platform_conn_state_changed(state, oldstate, newstate); in vchiq_set_conn_state()
/netbsd/sys/dev/ieee1394/
H A Dfirewire.c1062 int i, len, oldstate; in fw_rcv() local
1111 oldstate = rb->xfer->flag; in fw_rcv()
1113 switch (oldstate) { in fw_rcv()
/netbsd/external/gpl2/send-pr/dist/send-pr/
H A Dfields.texi478 @item @w{State-Changed-<From>-<To>: @var{oldstate}>-<@var{newstate}}
/netbsd/external/mpl/dhcp/dist/server/
H A Ddhcpd.c1815 isc_result_t dhcp_set_control_state (control_object_state_t oldstate, in dhcp_set_control_state() argument
/netbsd/external/mpl/dhcp/dist/relay/
H A Ddhcrelay.c2149 dhcp_set_control_state(control_object_state_t oldstate, in dhcp_set_control_state() argument
/netbsd/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc4152 INTERCEPTOR(int, __libc_thr_setcancelstate, int state, int *oldstate)
6207 INTERCEPTOR(int, pthread_setcancelstate, int state, int *oldstate) {
6209 COMMON_INTERCEPTOR_ENTER(ctx, pthread_setcancelstate, state, oldstate);
6210 int res = REAL(pthread_setcancelstate)(state, oldstate);
6211 if (res == 0 && oldstate != nullptr)
6212 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, oldstate, sizeof(*oldstate));
/netbsd/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_common_interceptors.inc4294 INTERCEPTOR(int, __libc_thr_setcancelstate, int state, int *oldstate)
6451 INTERCEPTOR(int, pthread_setcancelstate, int state, int *oldstate) {
6453 COMMON_INTERCEPTOR_ENTER(ctx, pthread_setcancelstate, state, oldstate);
6454 int res = REAL(pthread_setcancelstate)(state, oldstate);
6455 if (res == 0 && oldstate != nullptr)
6456 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, oldstate, sizeof(*oldstate));
/netbsd/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_common_interceptors.inc4294 INTERCEPTOR(int, __libc_thr_setcancelstate, int state, int *oldstate)
6451 INTERCEPTOR(int, pthread_setcancelstate, int state, int *oldstate) {
6453 COMMON_INTERCEPTOR_ENTER(ctx, pthread_setcancelstate, state, oldstate);
6454 int res = REAL(pthread_setcancelstate)(state, oldstate);
6455 if (res == 0 && oldstate != nullptr)
6456 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, oldstate, sizeof(*oldstate));

12