/ast/src/lib/libpp/ |
H A D | ppsym.c | 43 if (dup(3) < 0 || !(out = sfnew(NiL, NiL, -1, 3, SF_WRITE)))
|
/ast/src/cmd/tests/sfio/ |
H A D | tstdio.c | 47 /* change stdout to a dup of fileno(f) */ 48 fd = dup(1); close(1); dup(fileno(f)); 50 /* write something to the dup file descriptor */ 54 close(1); dup(fd); close(fd); 78 if((fd = dup(fileno(f))) < 0) 79 terror("Can't dup file descriptor"); 83 /* read a few bytes from this dup stream */
|
H A D | tpublic.c | 40 NIL(Void_t*),(size_t)SF_UNBOUND,dup(sffileno(f)),SF_READ)) ) 64 NIL(Void_t*),(size_t)SF_UNBOUND,dup(sffileno(f)),SF_READ)) )
|
H A D | tsync.c | 98 if(pipe(p1) < 0 || close(1) < 0 || dup(p1[1]) != 1) 174 dupf2 = dup(sffileno(f2));
|
H A D | texcept.c | 181 if((i = dup(sffileno(f))) < 0) 182 terror("Can't dup file descriptor");
|
/ast/src/cmd/mailx/ |
H A D | proc.c | 507 if ((savein = dup(READ)) < 0) { 514 if (dup(infd) != READ) { 516 dup(savein); 523 if ((saveout = dup(WRITE)) < 0) { 530 if (dup(outfd) != WRITE) { 532 dup(savein); 534 dup(saveout); 555 if (dup(savein) != READ) { 564 if (dup(saveout) != WRITE) {
|
/ast/src/cmd/mailx/port/ |
H A D | mime.c | 297 register Cap_t* dup; local 300 for (pud = 0, dup = ent->cap; dup; pud = dup, dup = dup->next) 301 if (!cap->test && !dup->test || cap->test && dup->test && streq(cap->test, dup->test)) 309 if (!(cap->next = dup [all...] |
/ast/src/lib/libcs/ |
H A D | csdaemon.c | 28 * 0-2 dup'd to /dev/null 106 dup(fd);
|
H A D | csname.c | 68 if ((fd = dup(0)) >= 0)
|
H A D | cssend.c | 171 * the other side receives them, so we dup 194 if ((j = hold.fds[i] = dup(fds[i])) < 0)
|
/ast/src/cmd/3d/ |
H A D | dup3d.c | 89 NoN(dup)
|
/ast/src/cmd/builtin/ |
H A D | od.c | 236 } dup; member in struct:State_s 1020 if (state->dup.size == (n = ep - bp) && !memcmp(state->dup.data, bp, n)) 1022 if (!state->dup.mark) 1024 state->dup.mark = 1; 1029 state->dup.mark = 0; 1179 memcpy(state->dup.data = state->dup.buf, state->span, state->dup.size = m); 1230 state->dup [all...] |
/ast/src/cmd/pax/ |
H A D | nocomment.c | 289 n = dup(0); 291 dup(c); 300 dup(n);
|
/ast/src/lib/libz/ |
H A D | sfdcgzip.c | 254 n = dup(0); 256 if (dup(sffileno(sp)) || !sfpopen(sp, "vcunzip", "r")) 259 if (n > 0 && dup(n))
|
/ast/src/lib/libast/misc/ |
H A D | mime.c | 245 register Cap_t* dup; local 248 for (pud = 0, dup = ent->cap; dup; pud = dup, dup = dup->next) 249 if (!cap->test && !dup->test || cap->test && dup->test && streq(cap->test, dup->test)) 257 if (!(cap->next = dup [all...] |
/ast/src/lib/libtk/compat/ |
H A D | unistd.h | 40 extern int dup _ANSI_ARGS_((int oldfd));
|
/ast/src/cmd/jcl/ |
H A D | cpy2dss.c | 116 int dup; member in struct:Cpyfield_s 344 while ((p = (Cpyfield_t*)dtmatch(cpy->dt, e)) && p->dup) 346 p->dup++; 347 e = sfprints("%s_%d", s, p->dup); 352 f->dup = 1; 402 else if (p->dup > 1) 404 s = sfprints("%s_%d", p->name, p->dup); 408 (*cpy->disc->errorf)(cpy, cpy->disc, 2, "%s: internal error: dup not found", s); 541 while ((p = (Cpyfield_t*)dtmatch(cpy->dt, e)) && p->dup > 1) 542 e = sfprints("%s_%d", s, p->dup); [all...] |
H A D | jcm.c | 82 unsigned long dup; member in struct:Jcmvar_s 137 unsigned long dup; member in struct:Jcmevent_s 389 sfprintf(state.tmp, "{%lu}", ++event->dup); 435 var->dup = 1; 473 sfsprintf(name, sizeof(name), "lib_%s_%lu", t, ++var->dup);
|
/ast/src/cmd/ksh93/include/ |
H A D | shell.h | 244 # define dup sh_dup macro
|
/ast/src/lib/libast/disc/ |
H A D | sfdcsubstr.c | 191 if (!(sp = f) && !(sp = sfnew(NIL(Sfio_t*), NIL(Void_t*), (size_t)SF_UNBOUND, dup(sffileno(parent)), parent->flags)))
|
/ast/src/lib/libjcl/ |
H A D | open.c | 70 jcl->redirect[i] = dup(redirect[i].fd);
|
/ast/src/cmd/cs/ |
H A D | cs.c | 723 if (dup(fd) != 0 || dup(fd) != 1)
|
/ast/src/cmd/ksh93/sh/ |
H A D | suid_exec.c | 159 n = dup(n);
|
/ast/src/cmd/coshell/ |
H A D | main.c | 88 #define CO_OPT_DUP "dup" 860 if (dup(i)) 943 if ((state.indirect.cmd = dup(0)) < 0) break; 945 if (dup(pfd)) break;
|
/ast/src/lib/libast/sfio/ |
H A D | sfhdr.h | 109 #define sysdupf dup 293 #define sysdupf dup
|