Searched refs:open_max (Results 1 – 15 of 15) sorted by relevance
42 int open_max; /* max open files */ in dup2() local 46 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() local 213 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()
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()
97 (((fd) >= (shp)->gd->lim.open_max) ? sh_iovalidfd(shp, fd) : 1)
105 int open_max; /* maximum number of file descriptors */ member
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()
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()
413 if(fd < shp->gd->lim.open_max) in sh_iovalidfd() 424 max = shp->gd->lim.open_max; in sh_iovalidfd() 436 shp->gd->lim.open_max = n; in sh_iovalidfd() 442 return(fd < shp->gd->lim.open_max && shp->fdptrs[fd]); in sh_inuse() 1698 for(savefd=shp->gd->lim.open_max; --savefd>=0; ) in sh_iosave()
1395 for(fd=0; fd < shp->gd->lim.open_max; fd++) in sh_exec()
897 dump when fd was greater than open_max.899 ulimit for open_max is increased as part of the script.