Searched refs:histfd (Results 1 – 2 of 2) sorted by relevance
41 static int histfd; variable572 if (histfd) {574 (void) close(histfd);575 histfd = 0;777 if (histfd && dowrite)840 histfd = savefd(fd, 0);842 (void) flock(histfd, LOCK_EX);848 if (sprinkle(histfd)) {1136 (void) write(histfd, hdr, 5);1149 (void) close(histfd); in hist_finish()[all …]
68 static int histfd = -1; variable545 if (histfd != -1) { in sethistfile()548 histfd = -1; in sethistfile()590 if (histfd != -1) { in histsync()793 if (histfd != fd) in hist_persist_init()796 mksh_lockfd(histfd); in hist_persist_init()888 mksh_unlkfd(histfd); in hist_persist_init()968 mksh_lockfd(histfd); in writehistfile()1008 mksh_unlkfd(histfd); in writehistfile()1029 if (histfd >= 0) { in hist_finish()[all …]