/openbsd-current/lib/libc/stdlib/ |
H A D | getenv.c | 49 const char *np; local 55 for (np = name, i = len; i && *cp; i--) 56 if (*cp++ != *np++) 74 const char *np; local 76 for (np = name; *np && *np != '='; ++np) 78 return (__findenv(name, (int)(np - name), &offset));
|
H A D | setenv.c | 95 const char *np; local 102 for (np = name; *np && *np != '='; ++np) 104 if (*np) { 110 if ((C = __findenv(name, (int)(np - name), &offset)) != NULL) { 122 while (__findenv(name, (int)(np - name), &tmpoff)) { 145 malloc((int)(np - name) + l_value + 2))) 163 const char *np; local [all...] |
/openbsd-current/sys/kern/ |
H A D | tty_nmea.c | 101 struct nmea *np; local 108 np = malloc(sizeof(struct nmea), M_DEVBUF, M_WAITOK | M_ZERO); 109 snprintf(np->timedev.xname, sizeof(np->timedev.xname), "nmea%d", 112 np->time.status = SENSOR_S_UNKNOWN; 113 np->time.type = SENSOR_TIMEDELTA; 114 np->time.flags = SENSOR_FINVALID; 115 sensor_attach(&np->timedev, &np->time); 117 np 168 struct nmea *np = (struct nmea *)tp->t_sc; local 185 struct nmea *np = (struct nmea *)tp->t_sc; local 256 nmea_scan(struct nmea *np, struct tty *tp) argument 337 nmea_gprmc(struct nmea *np, struct tty *tp, char *fld[], int fldcnt) argument 464 nmea_decode_gga(struct nmea *np, struct tty *tp, char *fld[], int fldcnt) argument 648 struct nmea *np = xnp; local [all...] |
H A D | tty_endrun.c | 121 struct endrun *np; local 129 np = malloc(sizeof(struct endrun), M_DEVBUF, M_WAITOK|M_ZERO); 130 snprintf(np->timedev.xname, sizeof(np->timedev.xname), "endrun%d", 133 np->time.status = SENSOR_S_UNKNOWN; 134 np->time.type = SENSOR_TIMEDELTA; 136 np->time.flags = SENSOR_FINVALID; 138 sensor_attach(&np->timedev, &np->time); 140 np 167 struct endrun *np = (struct endrun *)tp->t_sc; local 185 struct endrun *np = (struct endrun *)tp->t_sc; local 249 endrun_scan(struct endrun *np, struct tty *tp) argument 280 endrun_decode(struct endrun *np, struct tty *tp, char *fld[], int fldcnt) argument 520 struct endrun *np = xnp; local [all...] |
H A D | tty_msts.c | 86 struct msts *np; local 94 np = malloc(sizeof(struct msts), M_DEVBUF, M_WAITOK|M_ZERO); 95 snprintf(np->timedev.xname, sizeof(np->timedev.xname), "msts%d", 98 np->time.status = SENSOR_S_UNKNOWN; 99 np->time.type = SENSOR_TIMEDELTA; 101 np->time.flags = SENSOR_FINVALID; 103 sensor_attach(&np->timedev, &np->time); 105 np 129 struct msts *np = (struct msts *)tp->t_sc; local 146 struct msts *np = (struct msts *)tp->t_sc; local 208 msts_scan(struct msts *np, struct tty *tp) argument 238 msts_decode(struct msts *np, struct tty *tp, char *fld[], int fldcnt) argument 411 struct msts *np = xnp; local [all...] |
/openbsd-current/usr.sbin/smtpd/ |
H A D | stat_ramstat.c | 69 struct ramstat_entry *np, lk; local 73 np = RB_FIND(stats_tree, &stats, &lk); 74 if (np == NULL) { 75 np = xcalloc(1, sizeof *np); 76 (void)strlcpy(np->key, name, sizeof (np->key)); 77 RB_INSERT(stats_tree, &stats, np); 80 name, name, np->value.u.counter, np 87 struct ramstat_entry *np, lk; local 105 struct ramstat_entry *np, lk; local 122 struct ramstat_entry *np; local [all...] |
/openbsd-current/usr.bin/mail/ |
H A D | names.c | 51 struct name *np; local 53 np = (struct name *)salloc(sizeof(*np)); 54 np->n_flink = NULL; 55 np->n_blink = NULL; 56 np->n_type = ntype; 57 np->n_name = savestr(str); 58 return(np); 67 struct name *np; local 69 np 86 struct name *top, *np, *t; local 113 detract(struct name *np, int ntype) argument 207 struct name *np, *top; local 369 struct name *new, *np, *cp; local 404 struct name *np; local 466 struct name *np, *t, *new; local 571 count(struct name *np) argument 585 delname(struct name *np, const char *name) argument [all...] |
H A D | v7.local.c | 89 const char *np; local 92 if ((np = getenv("USER")) != NULL) 93 return(np); 94 if ((np = getenv("LOGNAME")) != NULL) 95 return(np); 96 if ((np = user_from_uid(uid = getuid(), 1)) != NULL) 97 return(np); 98 if ((np = getlogin()) != NULL) 99 return(np);
|
/openbsd-current/bin/csh/ |
H A D | hist.c | 47 struct Hist *hp, *np; local 66 for (hp = &Histlist; (np = hp->Hnext) != NULL;) 67 if (eventno - np->Href >= histlen || histlen == 0) 68 hp->Hnext = np->Hnext, hfree(np); 70 hp = np; 77 struct Hist *np; local 79 np = (struct Hist *) xmalloc((size_t) sizeof(*np)); 80 np 143 dohist1(struct Hist *hp, int *np, int rflg, int hflg) argument [all...] |
/openbsd-current/regress/usr.bin/mandoc/db/mlinks/ |
H A D | mlinks.c | 33 const char *np; /* Names of the page. */ local 51 np = dbm_get(pp[0]); 52 if (np == NULL) 56 if (strchr(np, '\0')[1] == '\0') 76 while (*np != '\0') { 79 np++; 82 nlen = strlen(np); 83 if (nlen == flen && strncmp(fp, np, nlen) == 0) { 84 np = strchr(np, '\ [all...] |
/openbsd-current/gnu/usr.sbin/mkhybrid/src/libhfs_iso/ |
H A D | node.c | 36 void n_init(node *np, btree *bt, int type, int height) argument 38 np->bt = bt; 39 np->nnum = -1; 41 np->nd.ndFLink = 0; 42 np->nd.ndBLink = 0; 43 np->nd.ndType = type; 44 np->nd.ndNHeight = height; 45 np->nd.ndNRecs = 0; 46 np->nd.ndResv2 = 0; 48 np 58 n_new(node *np) argument 93 n_free(node *np) argument 107 n_compact(node *np) argument 147 n_search(node *np, unsigned char *key) argument 322 n_insertx(node *np, unsigned char *record, int reclen) argument 349 n_insert(node *np, unsigned char *record, int *reclen) argument 424 n_delete(node *np, unsigned char *record, int *flag) argument [all...] |
H A D | btree.c | 35 int bt_getnode(node *np) argument 37 btree *bt = np->bt; 38 block *bp = &np->data; 44 if (np->nnum < 0 || (np->nnum > 0 && np->nnum >= bt->hdr.bthNNodes)) 50 if (bt->map && ! BMTST(bt->map, np->nnum)) 56 if (f_getblock(&bt->f, np->nnum, bp) < 0) 61 d_fetchl(&ptr, (long *) &np->nd.ndFLink); 62 d_fetchl(&ptr, (long *) &np 88 bt_putnode(node *np) argument 437 bt_insertx(node *np, unsigned char *record, int *reclen) argument 557 bt_deletex(node *np, unsigned char *key, unsigned char *record, int *flag) argument 674 bt_search(btree *bt, unsigned char *key, node *np) argument [all...] |
H A D | volume.h | 25 # define v_getdthread(vol, id, thread, np) \ 26 v_getthread(vol, id, thread, np, cdrThdRec) 27 # define v_getfthread(vol, id, thread, np) \ 28 v_getthread(vol, id, thread, np, cdrFThdRec)
|
/openbsd-current/sys/nfs/ |
H A D | nfs_debug.c | 75 struct nfsnode *np = v; local 78 np->n_size, np->n_flag, np->n_vnode, (long long)np->n_accstamp); 82 np->n_pushedlo, np->n_pushedhi, np->n_pushlo, 83 np->n_pushhi); 84 (*pr)("commitflags %i\n", np [all...] |
H A D | nfs_node.c | 88 struct nfsnode *np, find, *np2; local 97 np = RBT_FIND(nfs_nodetree, &nmp->nm_ntree, &find); 98 if (np != NULL) { 99 vp = NFSTOV(np); 103 *npp = np; 122 np = pool_get(&nfs_node_pool, PR_WAITOK | PR_ZERO); 127 pool_put(&nfs_node_pool, np); 136 rrw_init_flags(&np->n_lock, "nfsnode", RWL_DUPOK | RWL_IS_VNODE); 137 vp->v_data = np; 140 np 159 struct nfsnode *np; local 212 struct nfsnode *np = VTONFS(vp); local [all...] |
/openbsd-current/gnu/gcc/gcc/ |
H A D | genopinit.c | 227 const char *np, *pp, *p, *q; local 246 for (pp += 2, np = name; matches && ! (pp[0] == '$' && pp[1] == ')'); 251 if (*pp != *np++) 274 for (p = GET_RTX_NAME(op), q = np; *p; p++, q++) 290 np += strlen (GET_RTX_NAME(op)); 300 for (p = GET_MODE_NAME(i), q = np; *p; p++, q++) 322 m1 = i, np += strlen (GET_MODE_NAME(i)); 324 m2 = i, np += strlen (GET_MODE_NAME(i)); 335 && *np == 0 367 for (np [all...] |
/openbsd-current/gnu/usr.bin/gcc/gcc/ |
H A D | genopinit.c | 148 const char *np, *pp, *p, *q; local 167 for (pp += 2, np = name; matches && ! (pp[0] == '$' && pp[1] == ')'); 172 if (*pp != *np++) 195 for (p = GET_RTX_NAME(op), q = np; *p; p++, q++) 209 np += strlen (GET_RTX_NAME(op)); 219 for (p = GET_MODE_NAME(i), q = np; *p; p++, q++) 238 m1 = i, np += strlen (GET_MODE_NAME(i)); 240 m2 = i, np += strlen (GET_MODE_NAME(i)); 251 && *np == 0 283 for (np [all...] |
/openbsd-current/sbin/restore/ |
H A D | symtab.c | 92 addino(ino_t inum, struct entry *np) argument 100 np->e_ino = inum; 101 np->e_next = *epp; 102 *epp = np; 104 for (np = np->e_next; np != NULL; np = np->e_next) 105 if (np 140 char *np, *cp; local 217 struct entry *np, *ep; local 265 struct entry *np; local 308 struct entry *np; local 336 struct entry *np; local 381 struct strhdr *np; local 408 struct strhdr *tp, *np; local [all...] |
H A D | restore.c | 182 struct entry *ep, *np, *ip; local 205 np = lookupname(name); 206 if (np != NULL) { 208 ip = lookupino(np->e_ino); 211 if (ip != np) 222 if (ep == np) { 241 if (((key & (INOFND|NAMEFND)) == (INOFND|NAMEFND)) && ip != np) { 243 removeleaf(np); 244 freeentry(np); 247 myname(np)); 490 struct entry *ep, *np; local 736 struct entry *np, *ep; local 789 struct entry *np, *ep; local [all...] |
/openbsd-current/usr.bin/ctags/ |
H A D | tree.c | 54 NODE *np; local 58 if (!(np = malloc(sizeof(NODE)))) { 62 if (!(head = np = malloc(sizeof(NODE)))) 76 if (!(np->entry = strdup(name))) 78 np->file = curfile; 79 np->lno = ln; 80 np->left = np->right = 0; 81 np->been_warned = NO; 82 np [all...] |
/openbsd-current/usr.bin/fold/ |
H A D | fold.c | 142 char *np; /* Next mb character. */ local 154 np = cp = buf; 160 if (np + 1 == buf + bufsz) { 166 np = nbuf + (np - buf); 169 *np++ = ch; 180 if (np - cp > 4 || (np - cp > 1 && !isu8cont(ch))) 184 while (cp < np) { /* Loop on output characters. */ 190 memmove(buf, cp, np [all...] |
/openbsd-current/usr.sbin/tcpdump/ |
H A D | nameser.h | 213 #define DNS_QR(np) ((np)->flags1 & 0x80) /* response flag */ 214 #define DNS_OPCODE(np) ((((np)->flags1) >> 3) & 0xF) /* purpose of message */ 215 #define DNS_AA(np) ((np)->flags1 & 0x04) /* authoritative answer */ 216 #define DNS_TC(np) ((np)->flags1 & 0x02) /* truncated message */ 217 #define DNS_RD(np) ((np) [all...] |
/openbsd-current/usr.sbin/amd/amd/ |
H A D | srvr_nfs.c | 96 nfs_private *np = (nfs_private *) fs->fs_private; local 97 if (np) { 98 np->np_mountd_inval = TRUE; 99 np->np_error = -1; 160 nfs_private *np = (nfs_private *) fs->fs_private; local 171 np->np_mountd = htons((u_short) port); 172 np->np_mountd_inval = FALSE; 173 np->np_error = 0; 181 np->np_error = error ? error : ETIMEDOUT; 242 nfs_private *np local 273 nfs_private *np = (nfs_private *) fs->fs_private; local 361 nfs_private *np = (nfs_private *) fs->fs_private; local 435 nfs_private *np = (nfs_private *) fs->fs_private; local 517 nfs_private *np = (nfs_private *) fs->fs_private; local 586 nfs_private *np; local [all...] |
/openbsd-current/gnu/usr.bin/gcc/gcc/testsuite/gcc.c-torture/compile/ |
H A D | 921111-1.c | 16 typedef struct np *npt; 17 struct np { struct 22 struct n np[3]; variable in typeref:struct:n 39 np[2].a = (int)(py[1])->wa;
|
/openbsd-current/usr.bin/mandoc/ |
H A D | roff_validate.c | 68 struct roff_node *np; local 78 if ((np = roff_node_prev(n)) == NULL) 81 switch (np->tok) { 86 n->line, n->pos, "br after %s", roff_name[np->tok]); 130 struct roff_node *np; local 132 if ((np = roff_node_prev(n)) == NULL) 135 switch (np->tok) { 138 np->line, np->pos, "br before sp"); 139 roff_node_delete(man, np); [all...] |