/freebsd-current/stand/libsa/geli/ |
H A D | pwgets.c | 40 char *lp; local 42 for (lp = buf;;) 46 *lp = '\0'; 51 if (lp > buf) { 52 lp--; 62 lp = buf; 66 if ((n < 1) || ((lp - buf) < n - 1)) { 67 *lp++ = c;
|
/freebsd-current/usr.sbin/lpr/lp/ |
H A D | Makefile | 4 PACKAGE=lp 5 SCRIPTS=lp.sh 6 MAN= lp.1
|
/freebsd-current/sys/contrib/openzfs/lib/libuutil/ |
H A D | uu_list.c | 35 #define ELEM_TO_NODE(lp, e) \ 36 ((uu_list_node_impl_t *)((uintptr_t)(e) + (lp)->ul_offset)) 38 #define NODE_TO_ELEM(lp, n) \ 39 ((void *)((uintptr_t)(n) - (lp)->ul_offset)) 180 uu_list_t *lp, *next, *prev; local 196 lp = uu_zalloc(sizeof (*lp)); 197 if (lp == NULL) { 202 lp->ul_pool = pp; 203 lp 229 uu_list_destroy(uu_list_t *lp) argument 261 list_insert(uu_list_t *lp, uu_list_node_impl_t *np, uu_list_node_impl_t *prev, uu_list_node_impl_t *next) argument 290 uu_list_insert(uu_list_t *lp, void *elem, uu_list_index_t idx) argument 313 uu_list_find(uu_list_t *lp, void *elem, void *private, uu_list_index_t *out) argument 346 uu_list_nearest_next(uu_list_t *lp, uu_list_index_t idx) argument 371 uu_list_nearest_prev(uu_list_t *lp, uu_list_index_t idx) argument 395 list_walk_init(uu_list_walk_t *wp, uu_list_t *lp, uint32_t flags) argument 425 list_walk_advance(uu_list_walk_t *wp, uu_list_t *lp) argument 454 uu_list_walk_start(uu_list_t *lp, uint32_t flags) argument 476 uu_list_t *lp = wp->ulw_list; local 493 uu_list_walk(uu_list_t *lp, uu_walk_fn_t *func, void *private, uint32_t flags) argument 544 uu_list_remove(uu_list_t *lp, void *elem) argument 584 uu_list_teardown(uu_list_t *lp, void **cookie) argument 602 uu_list_insert_before(uu_list_t *lp, void *target, void *elem) argument 628 uu_list_insert_after(uu_list_t *lp, void *target, void *elem) argument 654 uu_list_numnodes(uu_list_t *lp) argument 660 uu_list_first(uu_list_t *lp) argument 669 uu_list_last(uu_list_t *lp) argument 678 uu_list_next(uu_list_t *lp, void *elem) argument 689 uu_list_prev(uu_list_t *lp, void *elem) argument [all...] |
/freebsd-current/sys/libkern/ |
H A D | strlen.c | 77 const unsigned long *lp; local 90 lp = (const unsigned long *)((uintptr_t)str & ~LONGPTR_MASK); 91 va = (*lp - mask01); 92 vb = ((~*lp) & mask80); 93 lp++; 96 for (p = str; p < (const char *)lp; p++) 101 for (; ; lp++) { 102 va = (*lp - mask01); 103 vb = ((~*lp) & mask80); 105 p = (const char *)(lp); [all...] |
H A D | memcchr.c | 60 const unsigned long *lp; local 81 lp = (const unsigned long *)((uintptr_t)begin & ~LONGPTR_MASK); 83 if (*lp++ != word) 84 for (p = begin; p < (const unsigned char *)lp;) 88 for (; (const unsigned char *)lp < end; lp++) { 89 if (*lp != word) { 90 p = (const unsigned char *)lp;
|
/freebsd-current/lib/libc/string/ |
H A D | strlen.c | 77 const unsigned long *lp; local 90 lp = (const unsigned long *)((uintptr_t)str & ~LONGPTR_MASK); 91 va = (*lp - mask01); 92 vb = ((~*lp) & mask80); 93 lp++; 96 for (p = str; p < (const char *)lp; p++) 101 for (; ; lp++) { 102 va = (*lp - mask01); 103 vb = ((~*lp) & mask80); 105 p = (const char *)(lp); [all...] |
/freebsd-current/stand/libsa/ |
H A D | gets.c | 40 char *lp; local 42 for (lp = buf;;) { 49 *lp = '\0'; 54 if (lp > buf) { 55 lp--; 65 for (p = buf; p < lp; ++p) 71 lp = buf; 75 if ((n < 1) || ((lp - buf) < n - 1)) { 76 *lp++ = c;
|
/freebsd-current/lib/libc/gen/ |
H A D | telldir.c | 51 struct ddloc_mem *lp, *flp; local 71 LIST_FOREACH(lp, &dirp->dd_td->td_locq, loc_lqe) { 72 if (lp->loc_seek == dirp->dd_seek) { 74 flp = lp; 75 if (lp->loc_loc == dirp->dd_loc) 78 lp = NULL; 82 if (lp == NULL) { 83 lp = malloc(sizeof(struct ddloc_mem)); 84 if (lp == NULL) { 89 lp 117 struct ddloc_mem *lp; local 176 struct ddloc_mem *lp; local 194 struct ddloc_mem *lp; local [all...] |
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/uctf/ |
H A D | tst.aouttype.c | 30 sleeper(season_7_lisa_the_vegetarian_t *lp) argument 33 sleep(lp->fr_salad);
|
/freebsd-current/sys/net/ |
H A D | ieee8023ad_lacp.c | 241 struct lacp_port *lp = LACP_PORT(lgp); local 252 lacp_pdu_input(lp, m); 256 lacp_marker_input(lp, m); 268 lacp_pdu_input(struct lacp_port *lp, struct mbuf *m) argument 270 struct lacp_softc *lsc = lp->lp_lsc; 316 lacp_dprintf(lp, "lacpdu receive\n"); 320 if ((1 << lp->lp_ifp->if_dunit) & lp->lp_lsc->lsc_debug.lsc_rx_test) { 321 LACP_TPRINTF((lp, "Dropping RX PDU\n")); 326 lacp_sm_rx(lp, d 338 lacp_fill_actorinfo(struct lacp_port *lp, struct lacp_peerinfo *info) argument 352 lacp_fill_markerinfo(struct lacp_port *lp, struct lacp_markerinfo *info) argument 363 lacp_xmit_lacpdu(struct lacp_port *lp) argument 417 lacp_xmit_marker(struct lacp_port *lp) argument 460 struct lacp_port *lp = LACP_PORT(lgp); local 510 struct lacp_port *lp; local 533 struct lacp_port *lp; local 579 struct lacp_port *lp = LACP_PORT(lgp); local 645 struct lacp_port *lp = LACP_PORT(lgp); local 668 lacp_disable_collecting(struct lacp_port *lp) argument 675 lacp_enable_collecting(struct lacp_port *lp) argument 682 lacp_disable_distributing(struct lacp_port *lp) argument 721 lacp_enable_distributing(struct lacp_port *lp) argument 840 struct lacp_port *lp; local 906 struct lacp_port *lp; local 954 struct lacp_port *lp; local 1049 struct lacp_port *lp; local 1100 lacp_compose_key(struct lacp_port *lp) argument 1324 lacp_aggregator_get(struct lacp_softc *lsc, struct lacp_port *lp) argument 1345 lacp_fill_aggregator_id(struct lacp_aggregator *la, const struct lacp_port *lp) argument 1367 lacp_aggregator_is_compatible(const struct lacp_aggregator *la, const struct lacp_port *lp) argument 1403 lacp_port_enable(struct lacp_port *lp) argument 1409 lacp_port_disable(struct lacp_port *lp) argument 1424 lacp_select(struct lacp_port *lp) argument 1484 lacp_unselect(struct lacp_port *lp) argument 1503 lacp_sm_mux(struct lacp_port *lp) argument 1575 lacp_set_mux(struct lacp_port *lp, enum lacp_mux_state new_state) argument 1626 lacp_sm_mux_timer(struct lacp_port *lp) argument 1644 lacp_sm_ptx_update_timeout(struct lacp_port *lp, uint8_t oldpstate) argument 1673 lacp_sm_ptx_tx_schedule(struct lacp_port *lp) argument 1698 lacp_sm_ptx_timer(struct lacp_port *lp) argument 1704 lacp_sm_rx(struct lacp_port *lp, const struct lacpdu *du) argument 1748 lacp_sm_rx_set_expired(struct lacp_port *lp) argument 1757 lacp_sm_rx_timer(struct lacp_port *lp) argument 1773 lacp_sm_rx_record_pdu(struct lacp_port *lp, const struct lacpdu *du) argument 1820 lacp_sm_rx_update_ntt(struct lacp_port *lp, const struct lacpdu *du) argument 1834 lacp_sm_rx_record_default(struct lacp_port *lp) argument 1850 lacp_sm_rx_update_selected_from_peerinfo(struct lacp_port *lp, const struct lacp_peerinfo *info) argument 1865 lacp_sm_rx_update_selected(struct lacp_port *lp, const struct lacpdu *du) argument 1874 lacp_sm_rx_update_default_selected(struct lacp_port *lp) argument 1890 lacp_sm_tx(struct lacp_port *lp) argument 1929 lacp_sm_assert_ntt(struct lacp_port *lp) argument 1936 lacp_run_timers(struct lacp_port *lp) argument 1966 lacp_marker_input(struct lacp_port *lp, struct mbuf *m) argument 2204 lacp_dprintf(const struct lacp_port *lp, const char *fmt, ...) argument [all...] |
H A D | if_lagg.c | 397 lagg_proto_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m) argument 400 return (lagg_protos[sc->sc_proto].pr_input(sc, lp, m)); 404 lagg_proto_addport(struct lagg_softc *sc, struct lagg_port *lp) argument 410 return (lagg_protos[sc->sc_proto].pr_addport(lp)); 414 lagg_proto_delport(struct lagg_softc *sc, struct lagg_port *lp) argument 418 lagg_protos[sc->sc_proto].pr_delport(lp); 422 lagg_proto_linkstate(struct lagg_softc *sc, struct lagg_port *lp) argument 426 lagg_protos[sc->sc_proto].pr_linkstate(lp); 462 lagg_proto_portreq(struct lagg_softc *sc, struct lagg_port *lp, void *v) argument 466 lagg_protos[sc->sc_proto].pr_portreq(lp, 477 struct lagg_port *lp; local 496 struct lagg_port *lp; local 626 struct lagg_port *lp; local 671 struct lagg_port *lp; local 736 struct lagg_port *lp, *tlp; local 907 struct lagg_port *lp; local 925 struct lagg_port *lp; local 936 lagg_port_destroy(struct lagg_port *lp, int rundelport) argument 1020 struct lagg_port *lp = NULL; local 1104 struct lagg_port *lp; local 1147 struct lagg_port *lp = ifp->if_lagg; local 1164 struct lagg_port *lp; local 1183 lagg_port2req(struct lagg_port *lp, struct lagg_reqport *rp) argument 1227 struct lagg_port *lp; local 1268 struct lagg_port *lp; local 1288 struct lagg_port *lp; local 1354 struct lagg_port *lp; local 1520 struct lacp_port *lp; local 1831 struct lagg_port *lp; local 1869 struct lagg_port *lp; local 1999 lagg_setmulti(struct lagg_port *lp) argument 2033 lagg_clrmulti(struct lagg_port *lp) argument 2048 lagg_setcaps(struct lagg_port *lp, int cap, int cap2) argument 2073 lagg_setflag(struct lagg_port *lp, int flag, int status, int (*func)(struct ifnet *, int)) argument 2111 lagg_setflags(struct lagg_port *lp, int status) argument 2179 struct lagg_port *lp = ifp->if_lagg; local 2214 struct lagg_port *lp = ifp->if_lagg; local 2256 struct lagg_port *lp; local 2273 struct lagg_port *lp; local 2319 struct lagg_port *lp = (struct lagg_port *)ifp->if_lagg; local 2334 lagg_link_active(struct lagg_softc *sc, struct lagg_port *lp) argument 2408 struct lagg_port *lp; local 2441 struct lagg_port *lp, *last = NULL; local 2486 struct lagg_port *lp; local 2500 lagg_fail_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m) argument 2532 struct lagg_port *lp; local 2555 lagg_lb_porttable(struct lagg_softc *sc, struct lagg_port *lp) argument 2581 lagg_lb_port_create(struct lagg_port *lp) argument 2588 lagg_lb_port_destroy(struct lagg_port *lp) argument 2598 struct lagg_port *lp = NULL; local 2629 struct lagg_port *lp; local 2640 struct lagg_port *lp; local 2655 struct lagg_port *lp; local 2671 struct lagg_port *lp; local 2686 lagg_lacp_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m) argument 2717 lagg_default_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m) argument [all...] |
/freebsd-current/bin/ed/ |
H A D | buf.c | 44 get_sbuf_line(line_t *lp) argument 51 if (lp == &buffer_head) 55 if (sfseek != lp->seek) { 56 sfseek = lp->seek; 63 len = lp->len; 81 line_t *lp; local 85 if ((lp = (line_t *) malloc(sizeof(line_t))) == NULL) { 95 free(lp); 104 free(lp); 115 free(lp); 128 add_line_node(line_t *lp) argument 141 get_line_node_addr(line_t *lp) argument 160 static line_t *lp = &buffer_head; local [all...] |
H A D | glbl.c | 41 line_t *lp; local 54 lp = get_addressed_line_node(first_addr); 55 for (n = first_addr; n <= second_addr; n++, lp = lp->q_forw) { 56 if ((s = get_sbuf_line(lp)) == NULL) 59 NUL_TO_NEWLINE(s, lp->len); 61 set_active_node(lp) < 0) 76 line_t *lp = NULL; local 92 while ((lp = next_active_node()) != NULL) { 93 if ((current_addr = get_line_node_addr(lp)) < 143 set_active_node(line_t *lp) argument 183 line_t *lp; local [all...] |
/freebsd-current/sys/sys/ |
H A D | lockstat.h | 82 #define LOCKSTAT_RECORD0(probe, lp) \ 83 SDT_PROBE1(lockstat, , , probe, lp) 85 #define LOCKSTAT_RECORD1(probe, lp, arg1) \ 86 SDT_PROBE2(lockstat, , , probe, lp, arg1) 88 #define LOCKSTAT_RECORD2(probe, lp, arg1, arg2) \ 89 SDT_PROBE3(lockstat, , , probe, lp, arg1, arg2) 91 #define LOCKSTAT_RECORD3(probe, lp, arg1, arg2, arg3) \ 92 SDT_PROBE4(lockstat, , , probe, lp, arg1, arg2, arg3) 94 #define LOCKSTAT_RECORD4(probe, lp, arg1, arg2, arg3, arg4) \ 95 SDT_PROBE5(lockstat, , , probe, lp, arg [all...] |
/freebsd-current/usr.bin/paste/ |
H A D | paste.c | 118 LIST *lp; local 127 if ((lp = malloc(sizeof(LIST))) == NULL) 130 lp->fp = stdin; 131 else if (!(lp->fp = fopen(p, "r"))) 133 lp->next = NULL; 134 lp->cnt = cnt; 135 lp->name = p; 137 head = tmp = lp; 139 tmp->next = lp; 140 tmp = lp; [all...] |
/freebsd-current/usr.sbin/lpr/filters.ru/ |
H A D | Makefile | 4 PACKAGE=lp
|
/freebsd-current/usr.sbin/lpr/lptest/ |
H A D | Makefile | 2 PACKAGE=lp
|
/freebsd-current/cddl/contrib/opensolaris/common/ctf/ |
H A D | ctf_util.c | 39 ctf_list_append(ctf_list_t *lp, void *new) argument 41 ctf_list_t *p = lp->l_prev; /* p = tail list element */ 44 lp->l_prev = q; 51 lp->l_next = q; 59 ctf_list_prepend(ctf_list_t *lp, void *new) argument 62 ctf_list_t *q = lp->l_next; /* q = head list element */ 64 lp->l_next = p; 71 lp->l_prev = p; 79 ctf_list_delete(ctf_list_t *lp, void *existing) argument 86 lp [all...] |
/freebsd-current/usr.bin/lam/ |
H A D | lam.c | 187 char *lp = linep; local 189 strlcpy(lp, ip->sepstring, line + sizeof(line) - lp); 190 lp += strlen(lp); 192 snprintf(lp, line + sizeof(line) - lp, ip->format, ""); 193 lp += strlen(lp); 195 return (lp); 204 char *lp = linep; local [all...] |
/freebsd-current/libexec/revnetgroup/ |
H A D | parse_netgroup.c | 135 struct linelist *lp, *olp; local 138 lp = linehead; 139 while (lp) { 140 olp = lp; 141 lp = lp->l_next; 179 struct linelist *lp = linehead; local 184 while (lp) { 185 if (!strcmp(group, lp->l_groupname)) 187 lp 285 struct linelist *lp; local [all...] |
/freebsd-current/sbin/bsdlabel/ |
H A D | bsdlabel.c | 290 fixlabel(struct disklabel *lp) argument 295 for (i = 0; i < lp->d_npartitions; i++) { 298 if (lp->d_partitions[i].p_size) 302 dp = &lp->d_partitions[0]; 304 dp->p_size = lp->d_secperunit - dp->p_offset; 311 makelabel(const char *type, struct disklabel *lp) argument 321 *lp = *dp; 322 bzero(lp->d_packname, sizeof(lp->d_packname)); 373 struct disklabel *lp local 508 display(FILE *f, const struct disklabel *lp) argument 723 getasciilabel(FILE *f, struct disklabel *lp) argument 999 getasciipartspec(char *tp, struct disklabel *lp, int part, int lineno) argument 1081 checklabel(struct disklabel *lp) argument [all...] |
/freebsd-current/usr.sbin/rpc.statd/ |
H A D | procs.c | 158 MonList *lp; local 190 lp = (MonList *)malloc(sizeof(MonList)); 191 if (!lp) 197 strncpy(lp->notifyHost, arg->mon_id.my_id.my_name, SM_MAXSTRLEN); 198 lp->notifyProg = arg->mon_id.my_id.my_prog; 199 lp->notifyVers = arg->mon_id.my_id.my_vers; 200 lp->notifyProc = arg->mon_id.my_id.my_proc; 201 memcpy(lp->notifyData, arg->priv, sizeof(lp->notifyData)); 203 lp 225 MonList *lp, *next; local 387 MonList *lp; local [all...] |
/freebsd-current/usr.sbin/ac/ |
H A D | ac.c | 270 struct user_entry *lp; local 272 SLIST_FOREACH(lp, &Users, next) 273 show(lp->user, lp->time); 283 struct utmpx_entry *lp; local 295 SLIST_FOREACH(lp, &CurUtmpx, next) { 296 timersub(&today, &lp->time, &diff); 297 update_user(lp->user, diff); 299 lp->time = today; 318 struct utmpx_entry *lp, *lp local 349 struct utmpx_entry *lp; local 405 struct utmpx_entry *lp; local [all...] |
/freebsd-current/usr.sbin/nfsdumpstate/ |
H A D | nfsdumpstate.c | 63 static struct nfsd_dumplocks lp[DUMPSIZE]; variable in typeref:struct:nfsd_dumplocks 186 dumplocklist.ndllck_list = (void *)lp; 200 while (lp[cnt].ndlck_clid.nclid_idlen > 0 && cnt < DUMPSIZE) { 201 if (lp[cnt].ndlck_flags & NFSLCK_OPEN) 203 open_flags(lp[cnt].ndlck_flags), 204 lp[cnt].ndlck_stateid.seqid, 205 lp[cnt].ndlck_stateid.other[0], 206 lp[cnt].ndlck_stateid.other[1], 207 lp[cnt].ndlck_stateid.other[2]); 208 else if (lp[cn [all...] |
/freebsd-current/contrib/nvi/vi/ |
H A D | v_section.c | 66 char *list, *lp; local 119 for (lp = list; *lp != '\0'; lp += 2 * sizeof(*lp)) 120 if (lp[0] == p[1] && 121 ((lp[1] == ' ' && len == 2) || lp[1] == p[2]) && 174 char *list, *lp; local 209 for (lp [all...] |