/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | popen.c | 27 static int nfiles; variable 38 if (nfiles <= 0) 39 nfiles = getdtablesize(); 41 popen_pid = (int *)malloc(nfiles * sizeof *popen_pid); 44 for (pid = 0; pid < nfiles; pid++) 56 for (poptr = popen_pid; poptr < popen_pid+nfiles; poptr++) {
|
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/ |
H A D | findiop.c | 90 int nfiles; local 92 nfiles = getdtablesize(); 94 iobglue = (FILE **)calloc(nfiles, sizeof *iobglue); 98 if((_smbuf = (unsigned char (*)[_SBFSIZ])malloc(nfiles * sizeof *_smbuf)) == NULL) { 104 endglue = iobglue + nfiles;
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | write_audio.c | 77 int i, nfiles; local 83 nfiles = argc - start_argc; 84 h_ptr = (bstreamhandle *)my_zalloc(nfiles * sizeof (bstreamhandle)); 86 for (i = 0; i < nfiles; i++) { 133 for (i = 0; i < nfiles; i++) { 135 if (simulation && (nfiles != 1)) { 141 for (i = 0; i < nfiles; i++)
|
/illumos-gate/usr/src/cmd/ptools/pwait/ |
H A D | pwait.c | 84 int nfiles = count_my_files(); local 86 if (rlim.rlim_cur < argc + nfiles + SLOP) { 87 rlim.rlim_cur = argc + nfiles + SLOP;
|
/illumos-gate/usr/src/cmd/sgs/error/common/ |
H A D | errormain.c | 42 int nfiles = 0; variable 200 findfiles(nerrors, errors, &nfiles, &files); 235 filenames(nfiles, files); 237 if (touchfiles(nfiles, files, &ed_argc, &ed_argv) && edit_files)
|
H A D | errortouch.c | 64 #define FILEITERATE(fi, lb) for (fi = lb; fi <= nfiles; fi++) 70 int nfiles; local 78 nfiles = countfiles(errors); 80 files = Calloc(nfiles + 3, sizeof (Eptr*)); 81 touchedfiles = Calloc(nfiles+3, sizeof (boolean)); 113 *r_nfiles = nfiles; 124 int nfiles; local 125 nfiles = 0; 130 nfiles++; 135 return (nfiles); 153 filenames(int nfiles, Eptr **files) argument 221 touchfiles(int nfiles, Eptr **files, int *r_edargc, char ***r_edargv) argument [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ftp/ |
H A D | pclose.c | 85 static rlim_t nfiles = 0; variable 95 if (nfiles <= 0) { 97 nfiles = rl.rlim_max; 99 nfiles = NOFILES; 102 popen_pid = (pid_t *)malloc((unsigned)nfiles * 106 for (i = 0; i < nfiles; i++)
|
/illumos-gate/usr/src/cmd/abi/spectrans/parser/ |
H A D | frontend.c | 123 int nfiles, flen, findex, retval = 0, errors = 0; local 125 nfiles = T_info->ti_nfiles; 127 for (findex = 0; findex < nfiles; ++findex) {
|
/illumos-gate/usr/src/cmd/checknr/ |
H A D | checknr.c | 147 static int nfiles; /* number of files to process */ variable 249 nfiles = argc - 1; 251 if (nfiles > 0) { 500 if (nfiles > 1)
|
/illumos-gate/usr/src/cmd/tnf/tnfdump/ |
H A D | main.c | 95 scanargs(int argc, char **argv, int *nfiles, char ***files) argument 116 *nfiles = argc - optind; 117 if (*nfiles <= 0) {
|
/illumos-gate/usr/src/tools/ctf/cvt/ |
H A D | input.c | 255 int nfiles = 0, err = 0; local 265 nfiles++; 274 return (nfiles); 280 int nfiles = 0, err = 0; local 308 nfiles += rc; 311 nfiles++; 325 debug(2, "Found %d files in %d input files\n", nfiles, n); 327 return (nfiles);
|
H A D | ctfmerge.c | 621 wq_init(workqueue_t *wq, int nfiles) argument 635 nslots = MIN(nslots, (nfiles + wq->wq_maxbatchsz - 1) / 663 wq->wq_ninqueue = nfiles;
|
/illumos-gate/usr/src/cmd/rpcgen/ |
H A D | rpc_util.c | 64 int nfiles; variable 261 for (i = 0; i < nfiles; i++) 269 if (nfiles < NFILES) { 270 outfiles[nfiles++] = file;
|
/illumos-gate/usr/src/ucbcmd/sed/ |
H A D | sed0.c | 45 int nfiles; variable 101 nfiles = 1; 497 for(i = nfiles - 1; i >= 0; i--) 502 if(nfiles >= NWFILES) 506 if ((fname[nfiles] = malloc((unsigned)i)) == NULL) { 510 (void) strcpy(fname[nfiles], fnamebuf); 511 if((rep->r1.fcode = fopen(fname[nfiles], "w")) == NULL) { 513 perror(fname[nfiles]); 516 fcode[nfiles++] = rep->r1.fcode; 526 for(i = nfiles [all...] |
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | pcache.c | 110 size_t nfiles; /* The number of filenames currently in files[] */ member in struct:__anon4097 733 cm->nfiles = 0; 793 cm->nfiles = 0; 929 if(mem->nfiles + 1 > mem->files_dim) { 945 mem->files[mem->nfiles++] = copy; 954 qsort(mem->files + mem->nfiles - nfile, nfile, sizeof(*mem->files), 1059 node->nfile = node->mem->nfiles; 1300 node->nfile = node->mem->nfiles;
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctcom.c | 93 nfiles; variable 272 nfiles++; 275 if(nfiles==0) {
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quot/ |
H A D | quot.c | 77 long nfiles; member in struct:du 352 dp->nfiles++; 450 (void) printf("%5ld\t", (*dp)->nfiles);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | fio.c | 843 int fd, nfiles; local 853 cfip->fi_nfiles = nfiles = flist_minsize(pfip); 855 cfip->fi_list = kmem_zalloc(nfiles * sizeof (uf_entry_t), KM_SLEEP); 857 for (fd = 0, pufp = pfip->fi_list, cufp = cfip->fi_list; fd < nfiles; 993 int nfiles; local 1022 nfiles = fip->fi_nfiles; 1024 flist_grow(MAX(start, nfiles));
|
/illumos-gate/usr/src/cmd/pg/ |
H A D | pg.c | 158 static short nfiles; variable 297 nfiles = argc - optind; 319 if (nfiles > 1) 322 if (nfiles == 0) { 324 nfiles++; 326 while (fnum < nfiles) { 1104 if (fnum + nskip > nfiles - 1) { 1105 nskip = (nfiles - 1) - fnum;
|
/illumos-gate/usr/src/cmd/more/ |
H A D | more.c | 183 int nfiles; /* Number of files left to process */ variable 255 nfiles = argc; 266 while (--nfiles > 0) { 302 if (nfiles > 1) 304 if (!no_intty && nfiles == 0) { 357 while (fnum < nfiles) { 373 else if (fnum < nfiles && !no_tty) { 1226 if (fnum >= nfiles - 1) 1488 if (fnum + nskip > nfiles - 1) 1489 nskip = nfiles [all...] |
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | platform.c | 855 int nfiles = 0; /* files found so far */ local 899 if (nfiles > slots - 2) { 908 files[nfiles] = MALLOC(totlen); 909 out(O_VERB, "File %d: \"%s/%s\"", nfiles, 911 (void) snprintf(files[nfiles++], totlen, 921 if (nfiles == 0) 924 files[nfiles] = NULL;
|
/illumos-gate/usr/src/uts/common/fs/proc/ |
H A D | prvnops.c | 4478 ulong_t nfiles; local 4509 nfiles = (type == PR_PIDDIR)? NPIDDIRFILES : NLWPIDDIRFILES; 4511 kmem_zalloc(nfiles * sizeof (vnode_t *), KM_SLEEP); 4599 ulong_t nfiles; local 4618 nfiles = (pnp->pr_type == PR_PIDDIR)? 4620 kmem_free(pnp->pr_files, nfiles * sizeof (vnode_t *));
|
/illumos-gate/usr/src/cmd/ls/ |
H A D | ls.c | 230 static int nfiles = 0; /* number of flist entries in current use */ variable 1169 nfiles = lp; 1174 qsort(&flist[lp], (unsigned)(nfiles - lp), 1178 for (j = nfiles - 1; j >= lp; j--) { 1203 pem(&flist[lp], &flist[nfiles], lflg||sflg); 1542 * status in flist[nfiles] 1602 nfiles--; 1765 * stores a pointer in flist[nfiles] and 1786 if (nfiles >= maxfils) { 1803 * nfiles i [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/fsdb/ |
H A D | fsdb.c | 238 static int nfiles; variable 683 freemem(filenames, nfiles); 684 nfiles = 0; 707 freemem(filenames, nfiles); 708 nfiles = 0; 1263 if (nfiles != 1) { 1268 if (nfiles == 0) 1579 if (error || nfiles == 0) { 1587 if (nfiles) { 1589 qsort((char *)filenames, nfiles, [all...] |
/illumos-gate/usr/src/uts/common/io/scsi/targets/ |
H A D | st.c | 11549 int nfiles; local 11575 nfiles = 0; 11579 nfiles = 1; 11589 nfiles = 0; 11598 nfiles = 0; 11608 nfiles = 1; 11612 nfiles = count; 11626 un->un_pos.lgclblkno += nfiles; 11630 un->un_pos.lgclblkno -= nfiles; 11645 ASSERT(nblks != 0 && nfiles [all...] |