Home
last modified time | relevance | path

Searched refs:PROC_ARG_NULL (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/
H A Dproc.h56 #define PROC_ARG_NULL ((1<<PROC_ARG_BIT)-1) macro
70 #define PROC_op1(o,a) (((o)<<(2*PROC_ARG_BIT))|((a)&((PROC_ARG_NULL<<PROC_ARG_BIT)|PROC_ARG_NULL)))
71 …fine PROC_op2(o,a,b) (((o)<<(2*PROC_ARG_BIT))|(((b)&PROC_ARG_NULL)<<PROC_ARG_BIT)|((a)&PROC_ARG_NU…
73 #define PROC_FD_CLOSE(p,f) PROC_op2(PROC_fd_dup|(f),p,PROC_ARG_NULL)
82 #define PROC_ARG(x,n) ((n)?(((x)>>(((n)-1)*PROC_ARG_BIT))&PROC_ARG_NULL):(((x)&~((1<<(2*PROC_ARG_BI…
/illumos-gate/usr/src/contrib/ast/src/lib/libast/misc/
H A Dprocopen.c178 if (arg2 != PROC_ARG_NULL) in modify()
259 if (arg2 != PROC_ARG_NULL) in modify()
347 if (m->arg.fd.child.fd != m->arg.fd.parent.fd && m->arg.fd.child.fd != PROC_ARG_NULL) in restore()
648 if (modify(proc, forked, PROC_fd_dup|PROC_FD_CHILD, pio[0], PROC_ARG_NULL)) in procopen()
658 if (poi[1] != 0 && modify(proc, forked, PROC_fd_dup|PROC_FD_CHILD, poi[1], PROC_ARG_NULL)) in procopen()
666 …rocfd] != !!procfd && modify(proc, forked, PROC_fd_dup|PROC_FD_CHILD, pio[!procfd], PROC_ARG_NULL)) in procopen()
922 if (PROC_ARG(n, 2) != PROC_ARG_NULL) in procopen()