Searched refs:open_max (Results 1 - 8 of 8) sorted by relevance

/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Ddup2.c42 int open_max; /* max open files */ local
46 if ((open_max = ulimit(4, 0)) < 0)
47 open_max = OPEN_MAX; /* take a guess */
56 if (fildes2 < 0 || fildes2 >= open_max) {
/illumos-gate/usr/src/lib/libcmd/common/
H A Dfds.c167 int open_max; local
213 if ((open_max = getconf("OPEN_MAX")) <= 0)
214 open_max = OPEN_MAX;
219 for (i = 0; i <= open_max; i++)
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dmkservice.c384 for(i=0; i< sh.lim.open_max; i++)
H A Dprint.c198 else if(fd<0 || fd >= shp->lim.open_max)
/illumos-gate/usr/src/lib/libshell/common/include/
H A Ddefs.h105 int open_max; /* maximum number of file descriptors */ member in struct:limits
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dinit.c1105 shp->lim.open_max = getconf("OPEN_MAX");
1116 if(shp->lim.open_max <0)
1117 shp->lim.open_max = OPEN_MAX;
1118 if(shp->lim.open_max > (SHRT_MAX-2))
1119 shp->lim.open_max = SHRT_MAX-2;
H A Dio.c391 n = shp->lim.open_max+2;
393 n = shp->lim.open_max;
476 if(fd>=shp->lim.open_max)
1422 assume oldtop>=0 && oldtop<shp->lim.open_max;
1446 for(savefd=shp->lim.open_max+2; --savefd>=0; )
1448 for(savefd=shp->lim.open_max; --savefd>=0; )
1975 if((unsigned)fd >= shp->lim.open_max)
2123 sp = sfnew(NIL(Sfio_t*),(char*)(disp+1),IOBSIZE,shp->lim.open_max,SF_READ);
2351 if(fd<0 || fd >= shp->lim.open_max)
H A Dxec.c544 pv[0] = shp->lim.open_max;
546 pv[1] = shp->lim.open_max+1;
549 shp->sftable[shp->lim.open_max+1] = iop;
559 sh_iorenumber(shp,shp->lim.open_max+1,1);
1003 for(fd=0; fd < shp->lim.open_max; fd++)

Completed in 64 milliseconds