Home | History | Annotate | Download | only in open

Lines Matching defs:first

26  *	First get the file descriptor table size which is set for a process.
41 static int fd, ifile, mypid, first;
73 close(first);
92 first = fd = open(fname, O_RDWR | O_CREAT, 0777);
93 if (first == -1)
94 tst_brkm(TBROK, cleanup, "Cannot open first file");
97 close(first);
101 buf = malloc(sizeof(int) * nfile - first);
105 for (ifile = first; ifile <= nfile; ifile++) {
115 buf[ifile - first] = fd;
121 close(first);
123 for (ifile = first; ifile < nfile; ifile++) {
125 close(buf[ifile - first]);