Searched defs:fd (Results 1 - 9 of 9) 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 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 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 Dmmap.c55 static int fd = -1; variable
183 fd = open(optf, O_RDWR);
228 fd, 0L);
H A Dmprotect.c56 static int fd = -1; variable
120 fd = open(optf, O_RDWR);
126 flags, anon ? -1 : fd, 0L);
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 Dmunmap.c56 static int fd = -1; variable
110 fd = open(optf, O_RDWR);
139 fd, 0L);

Completed in 12 milliseconds