Home
last modified time | relevance | path

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

/openbsd-src/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-src/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-src/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-src/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-src/usr.sbin/pppd/
H A Dccp.c229 int oldstate;
234 oldstate = f->state;
236 if (oldstate == OPENED && p[0] == TERMREQ && f->state != OPENED)
243 if (oldstate == REQSENT && p[0] == TERMACK
238 int oldstate; global() local
/openbsd-src/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-src/usr.sbin/bgpd/
H A Drde_decide.c585 enum nexthop_state oldstate) in prefix_evaluate_nexthop()
598 if (oldstate == state) { in prefix_evaluate_nexthop()
581 prefix_evaluate_nexthop(struct prefix * p,enum nexthop_state state,enum nexthop_state oldstate) prefix_evaluate_nexthop() argument
H A Drde_rib.c1741 prefix_evaluate_nexthop(p, nh->state, nh->oldstate); in nexthop_update()
1766 nh->oldstate = nh->state; in nexthop_modify()
1772 if (nh->oldstate == NEXTHOP_LOOKUP) in nexthop_modify()
1781 * the oldstate to NEXTHOP_FLAPPED. in nexthop_modify()
1783 nh->oldstate = NEXTHOP_FLAPPED;
H A Drde.h230 NEXTHOP_FLAPPED /* only used by oldstate */
250 enum nexthop_state oldstate;
249 enum nexthop_state oldstate; global() member
/openbsd-src/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-src/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-src/sys/dev/ic/
H A Dahci.c999 int s, rc = EIO, oldstate; in ahci_port_softreset()
1005 oldstate = ap->ap_state; in ahci_port_softreset()
1096 ap->ap_state = oldstate; in ahci_port_softreset()
2559 int rc = EIO, oldstate; in ahci_port_read_ncq_error()
2562 oldstate = ap->ap_state; in ahci_port_read_ncq_error()
2643 ap->ap_state = oldstate; in ahci_port_read_ncq_error()
996 int s, rc = EIO, oldstate; ahci_port_softreset() local
2556 int rc = EIO, oldstate; ahci_port_read_ncq_error() local
/openbsd-src/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));