Searched refs:fd (Results 1 - 12 of 12) sorted by relevance

/libmicro/
H A Dfcntl_ndelay.c50 static int fd = -1; variable
66 fd = socket(AF_INET, SOCK_STREAM, 0);
67 if (fd == -1) {
83 if (fcntl(fd, F_GETFL, &flags) < 0)
87 if (fcntl(fd, F_SETFL, &flags) < 0)
90 if (fcntl(fd, F_GETFL, &flags) < 0)
94 if (fcntl(fd, F_SETFL, &flags) < 0)
H A Dfcntl.c46 static int fd = -1; variable
78 if ((fd = open(optf, O_RDONLY)) == -1) {
93 if (fcntl(fd, F_GETFL, &flags) == -1)
H A Dpwrite.c52 static int fd = -1; variable
95 fd = open(optf, O_WRONLY);
96 if (fd == -1) {
137 if (pwrite(fd, ts->ts_buf, opts, 0) != opts) {
H A Dmsync.c123 int fd; local
125 if ((fd = open(optf, O_RDWR)) < 0) {
130 (void) ftruncate(fd, optl);
134 fd, 0L)) == MAP_FAILED) {
136 (void) close(fd);
H A Ddup.c45 static int fd; variable
86 fd = (open(optf, O_RDONLY));
118 ts->ts_fds[i] = dup(fd);
H A Dpread.c52 static int fd = -1; variable
95 fd = open(optf, O_RDONLY);
121 if (pread(fd, ts->ts_buf, opts, 0) != opts) {
H A Dmprotect.c56 static int fd = -1; variable
120 fd = open(optf, O_RDWR);
126 flags, anon ? -1 : fd, 0L);
H A Dmunmap.c56 static int fd = -1; variable
110 fd = open(optf, O_RDWR);
139 fd, 0L);
H A Dmmap.c55 static int fd = -1; variable
183 fd = open(optf, O_RDWR);
228 fd, 0L);
H A Dcascade_flock.c54 extern int flock(int fd, int operation);
H A Dconnection.c250 pollfd.fd = ts->ts_cons[i];
271 pollfd.fd = ts->ts_lsns[i];
H A Dpoll.c70 " [-x] (start -r option with highest fd first; "
176 ts->ts_pfds[i].fd = fds[i];

Completed in 14 milliseconds