Lines Matching defs:arg1
160 modify(Proc_t* proc, int forked, int op, long arg1, long arg2)
176 if (arg1 != arg2)
181 if (fcntl(arg1, F_DUPFD, arg2) != arg2)
185 close(arg1);
191 if (arg1 != i)
195 if (ioctl(arg1, TIOCSCTTY, NiL) < 0)
198 if (!(s = ttyname(arg1)))
204 if (arg1 != i && arg2 != i && fcntl(arg1, F_DUPFD, i) != i)
206 if (arg1 > 2)
207 close(arg1);
212 signal(arg1, SIG_DFL);
215 signal(arg1, SIG_IGN);
218 if (arg1 < 0)
220 else if (arg1 > 0)
222 if (arg1 == 1)
223 arg1 = 0;
224 if (setpgid(0, arg1) < 0 && arg1 && errno == EPERM)
229 umask(arg1);
255 m->arg.fd.parent.fd = (short)arg1;
256 m->arg.fd.parent.flag = fcntl(arg1, F_GETFD, 0);
257 if ((m->arg.fd.child.fd = (short)arg2) != arg1)
271 if (fcntl(arg1, F_DUPFD, arg2) != arg2)
274 close(arg1);
280 fcntl(arg1, F_SETFD, FD_CLOEXEC);
285 fcntl(arg1, F_SETFD, 0);
290 if ((m->arg.handler = signal(arg1, SIG_DFL)) == SIG_DFL)
292 m->save = (short)arg1;
295 if ((m->arg.handler = signal(arg1, SIG_IGN)) == SIG_IGN)
297 m->save = (short)arg1;
300 proc->pgrp = arg1;
303 if ((m->save = (short)umask(arg1)) == arg1)