Lines Matching refs:fds
49 int i, n, fds[10];
76 * To test the fds[] array, we open /dev/null (a file with reliable
79 fds[n++] = open(file, O_RDONLY);
80 fds[n++] = open(file, O_WRONLY);
81 fds[n++] = open(file, O_RDWR);
83 fds[n++] = open(file, O_RDWR | O_APPEND | O_CREAT | O_DSYNC |
87 fds[n++] = open(file, O_RDWR);
88 (void) lseek(fds[n - 1], 123, SEEK_SET);
93 * our DTrace script into recording the content of the fds[] array.
96 (void) ioctl(fds[i], -1, NULL);
98 assert(n <= sizeof (fds) / sizeof (fds[0]));