Home
last modified time | relevance | path

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

/titanic_50/usr/src/lib/libshell/common/edit/
H A Dhistory.c129 static int acctfd; variable
149 if((acctfd=sh_open(acctfile, in acctinit()
151 (unsigned)acctfd < 10) in acctinit()
154 if((n = fcntl(acctfd, F_DUPFD, 10)) >= 0) in acctinit()
156 close(acctfd); in acctinit()
157 acctfd = n; in acctinit()
160 if(acctfd < 0) in acctinit()
162 acctfd = 0; in acctinit()
168 sfsprintf(newfile,sizeof(newfile),"%.8s%d\0",e_devfdNN,acctfd); in acctinit()
172 fcntl(acctfd,F_SETFD,FD_CLOEXEC); in acctinit()
[all …]