Lines Matching refs:optn
45 static int optn = DEFN;
85 optn = atoi(optarg);
109 if (optn % 2 != 0) {
111 optn = optr = optw = 0;
115 if (optn < 0 || optr < 0 || optw < 0) {
117 optn = optr = optw = 0;
121 if (optr > optn || optw > optn) {
123 optn = optr = optw = 0;
127 fds = (int *)malloc(optn * sizeof (int));
130 optn = optr = optw = 0;
134 (void) setfdlimit(optn + 10);
137 for (i = 0; i < optn; i += 2) {
148 target = MIN(optr + optw, optn);
149 for (i = 0, j = optn - 1; i < optr; i++, j--) {
170 ts->ts_pfds = (pfd_t *)malloc(optn * sizeof (pfd_t));
175 for (i = 0; i < optn; i++) {
195 if (poll(ts->ts_pfds, optn, 0) != target) {
215 (void) sprintf(result, "%8d %5s", optn, flags);