Searched refs:dup (Results 1 - 25 of 37) sorted by relevance

12

/ast/src/lib/libpp/
H A Dppsym.c43 if (dup(3) < 0 || !(out = sfnew(NiL, NiL, -1, 3, SF_WRITE)))
/ast/src/cmd/tests/sfio/
H A Dtstdio.c47 /* 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 Dtpublic.c40 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 Dtsync.c98 if(pipe(p1) < 0 || close(1) < 0 || dup(p1[1]) != 1)
174 dupf2 = dup(sffileno(f2));
H A Dtexcept.c181 if((i = dup(sffileno(f))) < 0)
182 terror("Can't dup file descriptor");
/ast/src/cmd/mailx/
H A Dproc.c507 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 Dmime.c297 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 Dcsdaemon.c28 * 0-2 dup'd to /dev/null
106 dup(fd);
H A Dcsname.c68 if ((fd = dup(0)) >= 0)
H A Dcssend.c171 * the other side receives them, so we dup
194 if ((j = hold.fds[i] = dup(fds[i])) < 0)
/ast/src/cmd/3d/
H A Ddup3d.c89 NoN(dup)
/ast/src/cmd/builtin/
H A Dod.c236 } 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 Dnocomment.c289 n = dup(0);
291 dup(c);
300 dup(n);
/ast/src/lib/libz/
H A Dsfdcgzip.c254 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 Dmime.c245 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 Dunistd.h40 extern int dup _ANSI_ARGS_((int oldfd));
/ast/src/cmd/jcl/
H A Dcpy2dss.c116 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 Djcm.c82 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 Dshell.h244 # define dup sh_dup macro
/ast/src/lib/libast/disc/
H A Dsfdcsubstr.c191 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 Dopen.c70 jcl->redirect[i] = dup(redirect[i].fd);
/ast/src/cmd/cs/
H A Dcs.c723 if (dup(fd) != 0 || dup(fd) != 1)
/ast/src/cmd/ksh93/sh/
H A Dsuid_exec.c159 n = dup(n);
/ast/src/cmd/coshell/
H A Dmain.c88 #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 Dsfhdr.h109 #define sysdupf dup
293 #define sysdupf dup

Completed in 78 milliseconds

12