Home
last modified time | relevance | path

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

/openbsd/usr.sbin/nsd/
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()
/openbsd/lib/librthread/
H A Drthread.c458 int oldstate; in pthread_setcancelstate() local
460 oldstate = tib->tib_cantcancel & CANCEL_DISABLED ? in pthread_setcancelstate()
470 *oldstatep = oldstate; in pthread_setcancelstate()
/openbsd/usr.sbin/kgmon/
H A Dkgmon.c274 int mib[4], oldstate; in setprof() local
283 if (sysctl(mib, 4, &oldstate, &sz, NULL, 0) == -1) in setprof()
285 if (oldstate == state) in setprof()
/openbsd/sys/kern/
H A Dsubr_prof.c137 prof_state_toggle(struct cpu_info *ci, int oldstate) in prof_state_toggle() argument
144 if (gp->state == oldstate) in prof_state_toggle()
/openbsd/usr.sbin/pppd/
H A Dccp.c238 int oldstate; local
243 oldstate = f->state;
245 if (oldstate == OPENED && p[0] == TERMREQ && f->state != OPENED)
252 if (oldstate == REQSENT && p[0] == TERMACK
/openbsd/usr.sbin/smtpd/
H A Dsmtp_client.c260 int oldstate; in smtp_client_state() local
266 oldstate = proto->state; in smtp_client_state()
270 strstate[oldstate], in smtp_client_state()
H A Dmta_session.c556 int oldstate; in mta_enter_state() local
564 oldstate = s->state; in mta_enter_state()
567 mta_strstate(oldstate), in mta_enter_state()
/openbsd/usr.sbin/bgpd/
H A Drde_decide.c581 enum nexthop_state oldstate) in prefix_evaluate_nexthop() argument
594 if (oldstate == state) { in prefix_evaluate_nexthop()
H A Drde_rib.c1690 prefix_evaluate_nexthop(p, nh->state, nh->oldstate); in nexthop_runner()
1715 nh->oldstate = nh->state; in nexthop_update()
1721 if (nh->oldstate == NEXTHOP_LOOKUP) in nexthop_update()
1732 nh->oldstate = NEXTHOP_FLAPPED; in nexthop_update()
H A Drde.h249 enum nexthop_state oldstate; member
/openbsd/lib/libcurses/base/
H A Dlib_mouse.c262 int oldstate = 0; in mouse_server() local
293 if ((mouev.fs ^ oldstate) & MOUSE_BN1_DOWN) in mouse_server()
296 if ((mouev.fs ^ oldstate) & MOUSE_BN2_DOWN) in mouse_server()
299 if ((mouev.fs ^ oldstate) & MOUSE_BN3_DOWN) in mouse_server()
304 oldstate = mouev.fs; in mouse_server()
/openbsd/sys/dev/sdmmc/
H A Dif_bwfm_sdio.c556 enum bwfm_sdio_clkstate oldstate; in bwfm_sdio_clkctl() local
558 oldstate = sc->sc_clkstate; in bwfm_sdio_clkctl()
586 DPRINTF(("%s: %d -> %d = %d\n", DEVNAME(sc), oldstate, newstate, in bwfm_sdio_clkctl()
/openbsd/sys/dev/ic/
H A Dahci.c996 int s, rc = EIO, oldstate; in ahci_port_softreset() local
1002 oldstate = ap->ap_state; in ahci_port_softreset()
1093 ap->ap_state = oldstate; in ahci_port_softreset()
2556 int rc = EIO, oldstate; in ahci_port_read_ncq_error() local
2559 oldstate = ap->ap_state; in ahci_port_read_ncq_error()
2640 ap->ap_state = oldstate; in ahci_port_read_ncq_error()
/openbsd/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc4455 INTERCEPTOR(int, __libc_thr_setcancelstate, int state, int *oldstate)
6730 INTERCEPTOR(int, pthread_setcancelstate, int state, int *oldstate) {
6732 COMMON_INTERCEPTOR_ENTER(ctx, pthread_setcancelstate, state, oldstate);
6733 int res = REAL(pthread_setcancelstate)(state, oldstate);
6734 if (res == 0 && oldstate != nullptr)
6735 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, oldstate, sizeof(*oldstate));