/ast/src/lib/libcs/ |
H A D | csto.c | 51 struct sockaddr_in nam; 53 memzero(&nam, sizeof(nam)); 54 nam.sin_family = AF_INET; 55 nam.sin_addr.s_addr = addr->addr[0]; 56 nam.sin_port = addr->addr[1]; 57 return sendto(fd, buf, siz, 0, (struct sockaddr*)&nam, sizeof(nam));
|
H A D | csfrom.c | 60 struct sockaddr_in nam; 62 len = sizeof(nam); 63 if ((n = recvfrom(fd, buf, siz, 0, (struct sockaddr*)&nam, &len)) < 0) 70 addr->addr[0] = (unsigned long)nam.sin_addr.s_addr; 71 addr->addr[1] = (unsigned long)nam.sin_port; 73 messagef((state->id, NiL, -8, "from(%d,*,%d) = %d, data = `%-.*s', addr = %s, port = %u", fd, siz, n, n, buf, csntoa(state, (unsigned long)nam.sin_addr.s_addr), (unsigned long)nam.sin_port));
|
H A D | csbind.c | 83 struct sockaddr_in nam; 84 Sock_size_t namlen = sizeof(nam); 98 memzero(&nam, sizeof(nam)); 99 nam.sin_family = AF_INET; 100 if (addr != CS_LOCAL) nam.sin_addr.s_addr = addr; 103 nam.sin_port = htons(port); 130 if (!(r = connect(fd, (struct sockaddr*)&nam, sizeof(nam))) 150 state->addr = nam [all...] |
H A D | cslocal.c | 172 struct sockaddr_un nam; 174 nam.sun_family = AF_UNIX; 175 strcpy(nam.sun_path, tmp); 176 namlen = sizeof(nam.sun_family) + strlen(tmp); 186 if (!connect(fd, (struct sockaddr*)&nam, namlen))
|
H A D | csrecv.c | 98 struct sockaddr_in nam; local 160 namlen = sizeof(nam); 161 if ((fds[0] = accept(fd, (struct sockaddr*)&nam, &namlen)) >= 0) 167 if (nam.sin_family == AF_UNSPEC) 168 nam.sin_family = AF_UNIX; 170 if (nam.sin_family == AF_UNIX) 214 if (nam.sin_family == AF_INET) 215 id->hid = (unsigned long)nam.sin_addr.s_addr;
|
H A D | csopen.c | 445 struct sockaddr_un nam; local 448 nam.sun_family = AF_UNIX; 449 strcpy(nam.sun_path, path); 450 namlen = sizeof(nam.sun_family) + strlen(path) + 1; 465 if (!connect(fd, (struct sockaddr*)&nam, namlen)) 525 if (!bind(fd, (struct sockaddr*)&nam, namlen))
|
/ast/src/lib/libpp/ |
H A D | pptrace.c | 100 sfsprintf(buf, sizeof(buf), "%s=%s", ppinmap[i].nam, p->symbol->name); 105 return(ppinmap[i].nam); 128 if (pplexmap[i].val < 0) sfsprintf(buf, sizeof(buf), "%s|0x%04x%s", pplexmap[i].nam, lex, splice ? "|SPLICE" : ""); 129 else sfsprintf(buf, sizeof(buf), "%s+%d", pplexmap[i-1].nam, lex - pplexmap[i-1].val, splice ? "|SPLICE" : ""); 134 sfsprintf(buf, sizeof(buf), "%s|SPLICE", pplexmap[i].nam); 137 return(pplexmap[i].nam); 157 k = strlen(p[i].nam); 161 strcpy(s, p[i].nam);
|
H A D | Makefile | 125 char* nam;
|
/ast/src/cmd/nmake/ |
H A D | state.c | 49 sfputr(internal.nam, s1, *s2++); 51 sfputr(internal.nam, s2, s3 ? *s3++ : -1); 53 sfputr(internal.nam, s3, -1); 54 s1 = sfstruse(internal.nam); 254 char* nam; local 271 sfprintf(internal.nam, "(%s)%s", var, rul); 272 r = getrule(sfstruse(internal.nam)); 284 sfprintf(internal.nam, "(%s)%s", var, rul); 285 return getrule(sfstruse(internal.nam)); 294 sfprintf(internal.nam, "( [all...] |
H A D | mam.c | 113 sfprintf(internal.nam, "%s/", internal.pwd); 114 sfprintf(internal.nam, "%s", a); 115 a = sfstruse(internal.nam);
|
H A D | bind.c | 301 char* nam; local 311 s = (nam = sfstruse(tmp)) + 1; 315 if ((z = getrule(nam)) && (z->dynamic & D_entries)) 461 sfprintf(internal.nam, "%s", gs->name); 463 sfprintf(internal.nam, "%s/%s", state.view[gs->view].root, gs->name); 467 sfprintf(internal.nam, "%s/", internal.pwd); 468 sfprintf(internal.nam, "%s/%s", state.view[gs->view].path, gs->name); 470 if (gs->dirp = opendir(sfstruse(internal.nam))) 513 sfprintf(internal.nam, "%s/%s", state.view[gs->view].root, gs->name); 517 sfprintf(internal.nam, " [all...] |
H A D | expand.c | 1471 sfprintf(internal.nam, "%-.*s%-.*slib/%s", z - d->name, d->name, a - t, t, a + 1); 1473 sfprintf(internal.nam, "%s", a + 1); 1476 sfprintf(internal.nam, "lib%s", t); 1477 lib = t = sfstruse(internal.nam); 1493 sfprintf(internal.nam, "lib%s", t); 1494 t = sfstruse(internal.nam); 1514 sfprintf(internal.nam, "lib%s", u); 1515 u = sfstruse(internal.nam); 1587 sfprintf(internal.nam, "lib/lib%s", t); 1588 r = makerule(sfstruse(internal.nam)); [all...] |
H A D | parse.c | 2030 if (a = (char*)inet_ntop(addr.sin_family, &addr.sin_addr, nam, sizeof(nam))) 2841 edit(internal.nam, t, DELETE, KEEP, DELETE); 2843 if (strcmp(sfstruse(internal.nam), sfstruse(internal.wrk))) 3339 sfputc(internal.nam, '.'); 3341 sfputc(internal.nam, islower(op) ? toupper(op) : isupper(op) ? tolower(op) : op); 3343 alt = sfstruse(internal.nam); 3398 sfputr(internal.nam, opr->name, -1); 3399 alt = sfstruse(internal.nam);
|
H A D | rule.c | 1782 sfputr(internal.nam, internal.pwd, -1); 1783 u = sfstruse(internal.nam); 1789 sfprintf(internal.nam, "%s%s", t, internal.pwd + (s - u)); 1790 pwd = strdup(sfstruse(internal.nam));
|
H A D | main.c | 350 internal.nam = sfstropen();
|
H A D | command.c | 297 sfprintf(internal.nam, "%s/%s", state.view[r->view].root, v); 298 v = sfstruse(internal.nam);
|
H A D | make.h | 640 Sfio_t* nam; /* name generation buffer */ member in struct:Internal_s
|
H A D | object.c | 1486 sfputr(internal.nam, d->rule->name, d->next ? ' ' : -1); 1487 s = sfstruse(internal.nam);
|
/ast/src/cmd/cs/ |
H A D | Makefile | 19 nam fdp :SERVICE: nam.c
|
/ast/src/lib/libdll/ |
H A D | dllscan.c | 50 char nam[64]; \ 305 sfsprintf(scan->nam, sizeof(scan->nam), "%s%s%s", info->prefix, name, info->suffix); 316 sfsprintf(scan->nam, sizeof(scan->nam), "%s", s); 319 sfsprintf(scan->nam, sizeof(scan->nam), "%s%s%s.%s", info->prefix, name, info->suffix, version); 420 sfprintf(scan->tmp, "/%s", scan->nam); 425 b = scan->nam;
|
/ast/src/lib/libcmd/ |
H A D | fds.c | 184 char nam[256]; local 328 if (a = (char*)inet_ntop(addr.sin_family, &addr.sin_addr, nam, sizeof(nam)))
|
/ast/src/cmd/html/ |
H A D | mm2twiki.sh | 515 nam=${1%%=*} 516 case $nam in 517 no?*) nam=${nam#no} val=0 ;; 521 case $nam in 545 case $nam in 547 then nam=name 553 case $nam in 564 nam=href
|
H A D | mm2html.sh | 689 nam=${1%%=*} 690 case $nam in 691 no?*) nam=${nam#no} 704 case $nam in 707 case $nam in 751 case $nam in 753 then nam=name 757 print -r -- "<A $nam=\"$url\">$txt</A>" 761 case $nam i [all...] |
H A D | mm2bb.sh | 525 nam=${1%%=*} 526 case $nam in 527 no?*) nam=${nam#no} val=0 ;; 531 case $nam in 555 case $nam in 557 then nam=name 566 case $nam in 577 nam=href
|
/ast/src/lib/libast/regex/ |
H A D | regcomp.c | 61 unsigned char nam[2]; member in struct:Cchr_s 1451 cc->nam[0] = primary[i]; 1452 mbxfrm(cc->key, cc->nam, COLL_KEY_MAX); 1635 xc = (tc = (Cchr_t*)dtprev(dt, cc)) && !strcasecmp((char*)tc->nam, (char*)cc->nam) ? tc : cc; 1652 if (!strcasecmp((char*)xc->nam, (char*)cc->nam) && (tc = (Cchr_t*)dtnext(dt, cc)))
|