Lines Matching defs:fd
23 int fd, rc;
37 fd = open(path, O_RDONLY);
39 if (fd < 0)
51 ret = read(fd, buf, size - 1);
71 close(fd);
80 int fd, rc;
94 fd = open(path, O_RDWR);
96 if (fd < 0)
100 ret = write(fd, context, strlen(context) + 1);
104 ret = write(fd, NULL, 0); /* clear */
107 close(fd);