Searched refs:open_max (Results 1 – 8 of 8) sorted by relevance
42 int open_max; /* max open files */ in dup2() local46 if ((open_max = ulimit(4, 0)) < 0) in dup2()47 open_max = OPEN_MAX; /* take a guess */ in dup2()56 if (fildes2 < 0 || fildes2 >= open_max) { in dup2()
167 int open_max; in b_fds() local213 if ((open_max = getconf("OPEN_MAX")) <= 0) in b_fds()214 open_max = OPEN_MAX; in b_fds()219 for (i = 0; i <= open_max; i++) in b_fds()
391 n = shp->lim.open_max+2; in sh_ioinit()393 n = shp->lim.open_max; in sh_ioinit()476 if(fd>=shp->lim.open_max) in sh_iostream()1446 for(savefd=shp->lim.open_max+2; --savefd>=0; ) in sh_iosave()1448 for(savefd=shp->lim.open_max; --savefd>=0; ) in sh_iosave()1975 if((unsigned)fd >= shp->lim.open_max) in sftrack()2123 sp = sfnew(NIL(Sfio_t*),(char*)(disp+1),IOBSIZE,shp->lim.open_max,SF_READ); in subopen()2351 if(fd<0 || fd >= shp->lim.open_max) in sh_iogetiop()
1105 shp->lim.open_max = getconf("OPEN_MAX"); in sh_init()1116 if(shp->lim.open_max <0) in sh_init()1117 shp->lim.open_max = OPEN_MAX; in sh_init()1118 if(shp->lim.open_max > (SHRT_MAX-2)) in sh_init()1119 shp->lim.open_max = SHRT_MAX-2; in sh_init()
544 pv[0] = shp->lim.open_max; in pipe_exec()546 pv[1] = shp->lim.open_max+1; in pipe_exec()549 shp->sftable[shp->lim.open_max+1] = iop; in pipe_exec()559 sh_iorenumber(shp,shp->lim.open_max+1,1); in pipe_exec()1003 for(fd=0; fd < shp->lim.open_max; fd++) in sh_exec()
105 int open_max; /* maximum number of file descriptors */ member
384 for(i=0; i< sh.lim.open_max; i++) in putval()
198 else if(fd<0 || fd >= shp->lim.open_max) in b_print()