Lines Matching refs:nfd
564 int nfd, i;
569 nfd = -1;
577 nfd = open(file, O_RDONLY);
578 if (nfd == -1) {
590 i = read(nfd, &ipn, sizeof(ipn));
613 i = read(nfd, s, n);
656 close(nfd);
657 nfd = -1;
699 if (nfd != -1)
700 close(nfd);
711 int nfd = -1;
717 nfd = open(file, O_WRONLY|O_TRUNC|O_CREAT, 0600);
718 if (nfd == -1) {
734 close(nfd);
765 close(nfd);
773 if (write(nfd, ipnp, ipnp->ipn_dsize) != ipnp->ipn_dsize) {
775 close(nfd);
783 close(nfd);