| /NextBSD/contrib/gdb/gdb/ |
| HD | lin-lwp.c | 127 static int stop_wait_callback (struct lwp_info *lp, void *data); 158 struct lwp_info *lp, *lpnext; in init_lwp_list() local 160 for (lp = lwp_list; lp; lp = lpnext) in init_lwp_list() 162 lpnext = lp->next; in init_lwp_list() 163 xfree (lp); in init_lwp_list() 178 struct lwp_info *lp; in add_lwp() local 182 lp = (struct lwp_info *) xmalloc (sizeof (struct lwp_info)); in add_lwp() 184 memset (lp, 0, sizeof (struct lwp_info)); in add_lwp() 186 lp->ptid = ptid; in add_lwp() 188 lp->next = lwp_list; in add_lwp() [all …]
|
| /NextBSD/cddl/contrib/opensolaris/lib/libuutil/common/ |
| HD | uu_list.c | 35 #define ELEM_TO_NODE(lp, e) \ argument 36 ((uu_list_node_impl_t *)((uintptr_t)(e) + (lp)->ul_offset)) 38 #define NODE_TO_ELEM(lp, n) \ argument 39 ((void *)((uintptr_t)(n) - (lp)->ul_offset)) 182 uu_list_t *lp, *next, *prev; in uu_list_create() local 198 lp = uu_zalloc(sizeof (*lp)); in uu_list_create() 199 if (lp == NULL) { in uu_list_create() 204 lp->ul_pool = pp; in uu_list_create() 205 lp->ul_parent_enc = UU_PTR_ENCODE(parent); in uu_list_create() 206 lp->ul_offset = pp->ulp_nodeoffset; in uu_list_create() [all …]
|
| /NextBSD/sys/net/ |
| HD | ieee8023ad_lacp.c | 235 struct lacp_port *lp = LACP_PORT(lgp); in lacp_input() local 246 lacp_pdu_input(lp, m); in lacp_input() 250 lacp_marker_input(lp, m); in lacp_input() 262 lacp_pdu_input(struct lacp_port *lp, struct mbuf *m) in lacp_pdu_input() argument 264 struct lacp_softc *lsc = lp->lp_lsc; in lacp_pdu_input() 310 lacp_dprintf(lp, "lacpdu receive\n"); in lacp_pdu_input() 314 if ((1 << lp->lp_ifp->if_dunit) & lp->lp_lsc->lsc_debug.lsc_rx_test) { in lacp_pdu_input() 315 LACP_TPRINTF((lp, "Dropping RX PDU\n")); in lacp_pdu_input() 320 lacp_sm_rx(lp, du); in lacp_pdu_input() 332 lacp_fill_actorinfo(struct lacp_port *lp, struct lacp_peerinfo *info) in lacp_fill_actorinfo() argument [all …]
|
| HD | if_lagg.c | 349 lagg_proto_input(struct lagg_softc *sc, struct lagg_port *lp, struct mbuf *m) in lagg_proto_input() argument 352 return (lagg_protos[sc->sc_proto].pr_input(sc, lp, m)); in lagg_proto_input() 356 lagg_proto_addport(struct lagg_softc *sc, struct lagg_port *lp) in lagg_proto_addport() argument 362 return (lagg_protos[sc->sc_proto].pr_addport(lp)); in lagg_proto_addport() 366 lagg_proto_delport(struct lagg_softc *sc, struct lagg_port *lp) in lagg_proto_delport() argument 370 lagg_protos[sc->sc_proto].pr_delport(lp); in lagg_proto_delport() 374 lagg_proto_linkstate(struct lagg_softc *sc, struct lagg_port *lp) in lagg_proto_linkstate() argument 378 lagg_protos[sc->sc_proto].pr_linkstate(lp); in lagg_proto_linkstate() 414 lagg_proto_portreq(struct lagg_softc *sc, struct lagg_port *lp, void *v) in lagg_proto_portreq() argument 418 lagg_protos[sc->sc_proto].pr_portreq(lp, v); in lagg_proto_portreq() [all …]
|
| /NextBSD/lib/libc/gen/ |
| HD | telldir.c | 55 struct ddloc *lp; in telldir() local 60 LIST_FOREACH(lp, &dirp->dd_td->td_locq, loc_lqe) { in telldir() 61 if (lp->loc_seek == dirp->dd_seek && in telldir() 62 lp->loc_loc == dirp->dd_loc) in telldir() 65 if (lp == NULL) { in telldir() 66 lp = malloc(sizeof(struct ddloc)); in telldir() 67 if (lp == NULL) { in telldir() 72 lp->loc_index = dirp->dd_td->td_loccnt++; in telldir() 73 lp->loc_seek = dirp->dd_seek; in telldir() 74 lp->loc_loc = dirp->dd_loc; in telldir() [all …]
|
| HD | getnetgrent.c | 240 struct linelist *lp, *olp; local 243 lp = linehead; 244 while (lp) { 245 olp = lp; 246 lp = lp->l_next; 419 struct linelist *lp = linehead; local 430 while (lp) { 431 if (!strcmp(group, lp->l_groupname)) 433 lp = lp->l_next; 435 if (lp == NULL && (lp = read_for_group(group)) == NULL) [all …]
|
| /NextBSD/sys/sys/ |
| HD | lockstat.h | 75 #define LOCKSTAT_RECORD0(probe, lp) \ argument 76 SDT_PROBE1(lockstat, , , probe, lp) 78 #define LOCKSTAT_RECORD1(probe, lp, arg1) \ argument 79 SDT_PROBE2(lockstat, , , probe, lp, arg1) 81 #define LOCKSTAT_RECORD2(probe, lp, arg1, arg2) \ argument 82 SDT_PROBE3(lockstat, , , probe, lp, arg1, arg2) 84 #define LOCKSTAT_RECORD3(probe, lp, arg1, arg2, arg3) \ argument 85 SDT_PROBE4(lockstat, , , probe, lp, arg1, arg2, arg3) 87 #define LOCKSTAT_RECORD4(probe, lp, arg1, arg2, arg3, arg4) \ argument 88 SDT_PROBE5(lockstat, , , probe, lp, arg1, arg2, arg3, arg4) [all …]
|
| /NextBSD/sbin/bsdlabel/ |
| HD | bsdlabel.c | 300 fixlabel(struct disklabel *lp) in fixlabel() argument 305 for (i = 0; i < lp->d_npartitions; i++) { in fixlabel() 308 if (lp->d_partitions[i].p_size) in fixlabel() 312 dp = &lp->d_partitions[0]; in fixlabel() 314 dp->p_size = lp->d_secperunit - dp->p_offset; in fixlabel() 321 makelabel(const char *type, struct disklabel *lp) in makelabel() argument 331 *lp = *dp; in makelabel() 332 bzero(lp->d_packname, sizeof(lp->d_packname)); in makelabel() 385 struct disklabel *lp = &lab; in writelabel() local 393 lp->d_magic = DISKMAGIC; in writelabel() [all …]
|
| /NextBSD/bin/ed/ |
| HD | buf.c | 46 get_sbuf_line(line_t *lp) in get_sbuf_line() argument 53 if (lp == &buffer_head) in get_sbuf_line() 57 if (sfseek != lp->seek) { in get_sbuf_line() 58 sfseek = lp->seek; in get_sbuf_line() 65 len = lp->len; in get_sbuf_line() 83 line_t *lp; in put_sbuf_line() local 87 if ((lp = (line_t *) malloc(sizeof(line_t))) == NULL) { in put_sbuf_line() 97 free(lp); in put_sbuf_line() 106 free(lp); in put_sbuf_line() 117 free(lp); in put_sbuf_line() [all …]
|
| HD | glbl.c | 44 line_t *lp; in build_active_list() local 57 lp = get_addressed_line_node(first_addr); in build_active_list() 58 for (n = first_addr; n <= second_addr; n++, lp = lp->q_forw) { in build_active_list() 59 if ((s = get_sbuf_line(lp)) == NULL) in build_active_list() 62 NUL_TO_NEWLINE(s, lp->len); in build_active_list() 64 set_active_node(lp) < 0) in build_active_list() 79 line_t *lp = NULL; in exec_global() local 95 while ((lp = next_active_node()) != NULL) { in exec_global() 96 if ((current_addr = get_line_node_addr(lp)) < 0) in exec_global() 146 set_active_node(line_t *lp) in set_active_node() argument [all …]
|
| /NextBSD/contrib/binutils/gas/config/ |
| HD | atof-ieee.c | 262 LITTLENUM_TYPE *lp; in gen_to_words() local 441 lp = words; in gen_to_words() 473 *lp++ = word1; in gen_to_words() 483 *lp++ = 0; in gen_to_words() 488 *lp++ = 0; in gen_to_words() 491 *lp++ = next_bits (LITTLENUM_NUMBER_OF_BITS - (num_bits)); in gen_to_words() 497 *lp++ = word1; in gen_to_words() 499 *lp++ = 0; in gen_to_words() 501 *lp++ = next_bits (LITTLENUM_NUMBER_OF_BITS - num_bits); in gen_to_words() 507 *lp++ = word1; in gen_to_words() [all …]
|
| /NextBSD/usr.sbin/rpc.statd/ |
| HD | procs.c | 157 MonList *lp; in sm_mon_1_svc() local 189 lp = (MonList *)malloc(sizeof(MonList)); in sm_mon_1_svc() 190 if (!lp) in sm_mon_1_svc() 196 strncpy(lp->notifyHost, arg->mon_id.my_id.my_name, SM_MAXSTRLEN); in sm_mon_1_svc() 197 lp->notifyProg = arg->mon_id.my_id.my_prog; in sm_mon_1_svc() 198 lp->notifyVers = arg->mon_id.my_id.my_vers; in sm_mon_1_svc() 199 lp->notifyProc = arg->mon_id.my_id.my_proc; in sm_mon_1_svc() 200 memcpy(lp->notifyData, arg->priv, sizeof(lp->notifyData)); in sm_mon_1_svc() 202 lp->next = hp->monList; in sm_mon_1_svc() 203 hp->monList = lp; in sm_mon_1_svc() [all …]
|
| /NextBSD/sbin/recoverdisk/ |
| HD | recoverdisk.c | 44 struct lump *lp; in new_lump() local 46 lp = malloc(sizeof *lp); in new_lump() 47 if (lp == NULL) in new_lump() 49 lp->start = start; in new_lump() 50 lp->len = len; in new_lump() 51 lp->state = state; in new_lump() 52 TAILQ_INSERT_TAIL(&lumps, lp, list); in new_lump() 55 static struct lump *lp; variable 258 lp = TAILQ_FIRST(&lumps); in main() 259 if (lp == NULL) in main() [all …]
|
| /NextBSD/libexec/revnetgroup/ |
| HD | parse_netgroup.c | 138 struct linelist *lp, *olp; in __endnetgrent() local 141 lp = linehead; in __endnetgrent() 142 while (lp) { in __endnetgrent() 143 olp = lp; in __endnetgrent() 144 lp = lp->l_next; in __endnetgrent() 182 struct linelist *lp = linehead; in parse_netgrp() local 187 while (lp) { in parse_netgrp() 188 if (!strcmp(group, lp->l_groupname)) in parse_netgrp() 190 lp = lp->l_next; in parse_netgrp() 192 if (lp == (struct linelist *)0 && in parse_netgrp() [all …]
|
| /NextBSD/usr.bin/paste/ |
| HD | paste.c | 131 LIST *lp; in parallel() local 140 if ((lp = malloc(sizeof(LIST))) == NULL) in parallel() 143 lp->fp = stdin; in parallel() 144 else if (!(lp->fp = fopen(p, "r"))) in parallel() 146 lp->next = NULL; in parallel() 147 lp->cnt = cnt; in parallel() 148 lp->name = p; in parallel() 150 head = tmp = lp; in parallel() 152 tmp->next = lp; in parallel() 153 tmp = lp; in parallel() [all …]
|
| /NextBSD/contrib/gcclibs/libiberty/ |
| HD | obstack.c | 306 register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ in _obstack_allocated_p() local 309 lp = (h)->chunk; in _obstack_allocated_p() 313 while (lp != 0 && ((POINTER) lp >= obj || (POINTER) (lp)->limit < obj)) in _obstack_allocated_p() 315 plp = lp->prev; in _obstack_allocated_p() 316 lp = plp; in _obstack_allocated_p() 318 return lp != 0; in _obstack_allocated_p() 332 register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ in _obstack_free() local 335 lp = h->chunk; in _obstack_free() 339 while (lp != 0 && ((POINTER) lp >= obj || (POINTER) (lp)->limit < obj)) in _obstack_free() 341 plp = lp->prev; in _obstack_free() [all …]
|
| /NextBSD/contrib/binutils/libiberty/ |
| HD | obstack.c | 306 register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ in _obstack_allocated_p() local 309 lp = (h)->chunk; in _obstack_allocated_p() 313 while (lp != 0 && ((POINTER) lp >= obj || (POINTER) (lp)->limit < obj)) in _obstack_allocated_p() 315 plp = lp->prev; in _obstack_allocated_p() 316 lp = plp; in _obstack_allocated_p() 318 return lp != 0; in _obstack_allocated_p() 332 register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ in _obstack_free() local 335 lp = h->chunk; in _obstack_free() 339 while (lp != 0 && ((POINTER) lp >= obj || (POINTER) (lp)->limit < obj)) in _obstack_free() 341 plp = lp->prev; in _obstack_free() [all …]
|
| /NextBSD/sbin/iscontrol/ |
| HD | login.c | 77 token_t *lp; in selectFrom() local 88 for(lp = list; lp->name != NULL; lp++) { in selectFrom() 89 if(strncasecmp(lp->name, sp, n) == 0) in selectFrom() 90 return strdup(lp->name); in selectFrom() 225 login_rsp_t *lp = (login_rsp_t *)pp; in handleLoginResp() local 226 uint st_class, status = ntohs(lp->status); in handleLoginResp() 229 debug(4, "Tbit=%d csg=%d nsg=%d status=%x", lp->T, lp->CSG, lp->NSG, status); in handleLoginResp() 261 if(lp->T) { in handleLoginResp() 267 sess->csg = lp->NSG; in handleLoginResp() 270 sess->tsih = lp->tsih; in handleLoginResp() [all …]
|
| /NextBSD/contrib/gperf/src/ |
| HD | input.cc | 786 const char *lp = line + 1; in read_input() local 790 if (lp == line_end) in read_input() 797 char c = *lp; in read_input() 800 c = *++lp; in read_input() 808 while (count < 3 && *lp >= '0' && *lp <= '7') in read_input() 810 code = (code << 3) + (*lp - '0'); in read_input() 811 lp++; in read_input() 825 lp++; in read_input() 826 while ((*lp >= '0' && *lp <= '9') in read_input() 827 || (*lp >= 'A' && *lp <= 'F') in read_input() [all …]
|
| /NextBSD/usr.sbin/ac/ |
| HD | ac.c | 270 struct user_entry *lp; in show_users() local 272 SLIST_FOREACH(lp, &Users, next) in show_users() 273 show(lp->user, lp->time); in show_users() 283 struct utmpx_entry *lp; in show_today() local 295 SLIST_FOREACH(lp, &CurUtmpx, next) { in show_today() 296 timersub(&today, &lp->time, &diff); in show_today() 297 update_user(lp->user, diff); in show_today() 299 lp->time = today; in show_today() 318 struct utmpx_entry *lp, *lp2, *tlp; in log_out() local 321 for (lp = SLIST_FIRST(&CurUtmpx), lp2 = NULL; lp != NULL;) in log_out() [all …]
|
| /NextBSD/gnu/usr.bin/grep/ |
| HD | obstack.c | 349 register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ local 352 lp = (h)->chunk; 356 while (lp != 0 && ((POINTER) lp >= obj || (POINTER) (lp)->limit < obj)) 358 plp = lp->prev; 359 lp = plp; 361 return lp != 0; 377 register struct _obstack_chunk *lp; /* below addr of any objects in this chunk */ local 380 lp = h->chunk; 384 while (lp != 0 && ((POINTER) lp >= obj || (POINTER) (lp)->limit < obj)) 386 plp = lp->prev; [all …]
|
| /NextBSD/usr.sbin/nfsdumpstate/ |
| HD | nfsdumpstate.c | 66 static struct nfsd_dumplocks lp[DUMPSIZE]; variable 166 dumplocklist.ndllck_list = (void *)lp; in dump_lockstate() 180 while (lp[cnt].ndlck_clid.nclid_idlen > 0 && cnt < DUMPSIZE) { in dump_lockstate() 181 if (lp[cnt].ndlck_flags & NFSLCK_OPEN) in dump_lockstate() 183 open_flags(lp[cnt].ndlck_flags), in dump_lockstate() 184 lp[cnt].ndlck_stateid.seqid, in dump_lockstate() 185 lp[cnt].ndlck_stateid.other[0], in dump_lockstate() 186 lp[cnt].ndlck_stateid.other[1], in dump_lockstate() 187 lp[cnt].ndlck_stateid.other[2]); in dump_lockstate() 188 else if (lp[cnt].ndlck_flags & (NFSLCK_DELEGREAD | in dump_lockstate() [all …]
|
| /NextBSD/contrib/ntp/lib/isc/include/isc/ |
| HD | util.h | 97 #define LOCK(lp) do { \ argument 101 (lp), __FILE__, __LINE__)); \ 102 RUNTIME_CHECK(isc_mutex_lock((lp)) == ISC_R_SUCCESS); \ 106 (lp), __FILE__, __LINE__)); \ 108 #define UNLOCK(lp) do { \ argument 109 RUNTIME_CHECK(isc_mutex_unlock((lp)) == ISC_R_SUCCESS); \ 113 (lp), __FILE__, __LINE__)); \ 115 #define ISLOCKED(lp) (1) argument 116 #define DESTROYLOCK(lp) \ argument 117 RUNTIME_CHECK(isc_mutex_destroy((lp)) == ISC_R_SUCCESS) [all …]
|
| /NextBSD/sys/kern/ |
| HD | subr_lock.c | 293 lock_prof_output(struct lock_prof *lp, struct sbuf *sb) in lock_prof_output() argument 297 for (p = lp->file; p != NULL && strncmp(p, "../", 3) == 0; p += 3); in lock_prof_output() 300 lp->cnt_max / 1000, lp->cnt_wait_max / 1000, lp->cnt_tot / 1000, in lock_prof_output() 301 lp->cnt_wait / 1000, lp->cnt_cur, in lock_prof_output() 302 lp->cnt_cur == 0 ? (uintmax_t)0 : in lock_prof_output() 303 lp->cnt_tot / (lp->cnt_cur * 1000), in lock_prof_output() 304 lp->cnt_cur == 0 ? (uintmax_t)0 : in lock_prof_output() 305 lp->cnt_wait / (lp->cnt_cur * 1000), in lock_prof_output() 306 (uintmax_t)0, lp->cnt_contest_locking, in lock_prof_output() 307 p, lp->line, lp->class->lc_name, lp->name); in lock_prof_output() [all …]
|
| /NextBSD/usr.bin/lam/ |
| HD | lam.c | 179 char *lp = linep; in pad() local 181 strlcpy(lp, ip->sepstring, line + sizeof(line) - lp); in pad() 182 lp += strlen(lp); in pad() 184 snprintf(lp, line + sizeof(line) - lp, ip->format, ""); in pad() 185 lp += strlen(lp); in pad() 187 return (lp); in pad() 196 char *lp = linep; in gatherline() local 212 strlcpy(lp, ip->sepstring, line + sizeof(line) - lp); in gatherline() 213 lp += strlen(lp); in gatherline() 214 snprintf(lp, line + sizeof(line) - lp, ip->format, s); in gatherline() [all …]
|