Lines Matching refs:newfd
1149 int newfd;
1167 if ((newfd = open(newpath, O_RDWR|O_NONBLOCK, 0)) != -1) {
1168 if (fstat(newfd, &buf) != -1) {
1175 if (!wait_restore(newfd, keystore_file,
1180 (void) close(newfd);
1189 (void) close(newfd);
1197 (void) close(newfd);
1207 wait_restore(int newfd, char *keystore_file,
1215 if (file_lock(newfd, F_WRLCK, 1) == -1) {
1222 if (fstat(newfd, &buf) != -1) {
1231 newstream = fdopen(newfd, "r");
1255 (void) close(newfd);
1262 (void) close(newfd);
1272 (void) close(newfd);
1282 (void) close(newfd);