Searched defs:fd (Results 1 - 9 of 9) 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 | 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 | 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 | mmap.c | 55 static int fd = -1; variable 183 fd = open(optf, O_RDWR); 228 fd, 0L);
|
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 | 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 | munmap.c | 56 static int fd = -1; variable 110 fd = open(optf, O_RDWR); 139 fd, 0L);
|
Completed in 8 milliseconds