Searched refs:fd (Results 1 – 3 of 3) sorted by relevance
| /libedit-20250104-3.1/src/ |
| D | vi.c | 1003 int fd; in vi_histedit() local 1020 fd = mkstemp(tempfile); in vi_histedit() 1021 if (fd < 0) in vi_histedit() 1036 write(fd, cp, len); in vi_histedit() 1037 write(fd, "\n", (size_t)1); in vi_histedit() 1043 close(fd); in vi_histedit() 1050 lseek(fd, (off_t)0, SEEK_SET); in vi_histedit() 1051 st = read(fd, cp, TMP_BUFSIZ - 1); in vi_histedit() 1068 close(fd); in vi_histedit() 1075 close(fd); in vi_histedit()
|
| D | read.c | 148 read__fixio(int fd __attribute__((__unused__)), int e) in read__fixio() argument 173 if ((e = fcntl(fd, F_GETFL, 0)) == -1) in read__fixio() 176 if (fcntl(fd, F_SETFL, e & ~O_NDELAY) == -1) in read__fixio() 186 if (ioctl(fd, FIONBIO, &zero) == -1) in read__fixio()
|
| D | readline.c | 1293 int fd; in history_truncate_file() local 1304 if ((fd = mkstemp(template)) == -1) { in history_truncate_file() 1309 if ((tp = fdopen(fd, "r+")) == NULL) { in history_truncate_file() 1310 close(fd); in history_truncate_file()
|