Home
last modified time | relevance | path

Searched refs:open_max (Results 1 – 15 of 15) sorted by relevance

/titanic_51/usr/src/lib/libbc/libc/sys/common/
H A Ddup2.c42 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()
/titanic_51/usr/src/contrib/ast/src/lib/libcmd/
H A Dfds.c167 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()
/titanic_51/usr/src/lib/libcmd/common/
H A Dfds.c167 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()
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Dio.h97 (((fd) >= (shp)->gd->lim.open_max) ? sh_iovalidfd(shp, fd) : 1)
H A Ddefs.h105 int open_max; /* maximum number of file descriptors */ member
/titanic_51/usr/src/lib/libshell/common/sh/
H A Dio.c391 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()
H A Dinit.c1105 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()
H A Dxec.c544 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()
/titanic_51/usr/src/lib/libshell/common/include/
H A Ddefs.h105 int open_max; /* maximum number of file descriptors */ member
/titanic_51/usr/src/lib/libshell/common/bltins/
H A Dmkservice.c384 for(i=0; i< sh.lim.open_max; i++) in putval()
H A Dprint.c198 else if(fd<0 || fd >= shp->lim.open_max) in b_print()
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/bltins/
H A Dmkservice.c384 for(i=0; i< sh.lim.open_max; i++) in putval()
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dio.c413 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()
H A Dxec.c1395 for(fd=0; fd < shp->gd->lim.open_max; fd++) in sh_exec()
/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/
H A DRELEASE897 dump when fd was greater than open_max.
899 ulimit for open_max is increased as part of the script.