Searched refs:fd (Results 1 - 12 of 12) sorted by relevance
/libmicro/ |
H A D | fcntl_ndelay.c | 50 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 D | fcntl.c | 46 static int fd = -1; variable 78 if ((fd = open(optf, O_RDONLY)) == -1) { 93 if (fcntl(fd, F_GETFL, &flags) == -1)
|
H A D | pwrite.c | 52 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 D | msync.c | 123 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 D | dup.c | 45 static int fd; variable 86 fd = (open(optf, O_RDONLY)); 118 ts->ts_fds[i] = dup(fd);
|
H A D | pread.c | 52 static int fd = -1; variable 95 fd = open(optf, O_RDONLY); 121 if (pread(fd, ts->ts_buf, opts, 0) != opts) {
|
H A D | mprotect.c | 56 static int fd = -1; variable 120 fd = open(optf, O_RDWR); 126 flags, anon ? -1 : fd, 0L);
|
H A D | munmap.c | 56 static int fd = -1; variable 110 fd = open(optf, O_RDWR); 139 fd, 0L);
|
H A D | mmap.c | 55 static int fd = -1; variable 183 fd = open(optf, O_RDWR); 228 fd, 0L);
|
H A D | cascade_flock.c | 54 extern int flock(int fd, int operation);
|
H A D | connection.c | 250 pollfd.fd = ts->ts_cons[i]; 271 pollfd.fd = ts->ts_lsns[i];
|
H A D | poll.c | 70 " [-x] (start -r option with highest fd first; " 176 ts->ts_pfds[i].fd = fds[i];
|
Completed in 14 milliseconds