Lines Matching refs:acctfd
129 static int acctfd;
149 if((acctfd=sh_open(acctfile,
151 (unsigned)acctfd < 10)
154 if((n = fcntl(acctfd, F_DUPFD, 10)) >= 0)
156 close(acctfd);
157 acctfd = n;
160 if(acctfd < 0)
162 acctfd = 0;
168 sfsprintf(newfile,sizeof(newfile),"%.8s%d\0",e_devfdNN,acctfd);
172 fcntl(acctfd,F_SETFD,FD_CLOEXEC);
426 if(acctfd)
428 close(acctfd);
429 acctfd = 0;
810 if(acctfd)
817 lseek(acctfd, (off_t)0, SEEK_END);
818 write(acctfd, stakptr(offset), size - 2 + timechars);