Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 3 of 3) sorted by relevance

/libedit-20250104-3.1/src/
Dvi.c1003 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()
Dread.c148 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()
Dreadline.c1293 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()