Home
last modified time | relevance | path

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

/netbsd-src/external/bsd/am-utils/dist/amd/
H A Damq_svc.c104 if (pipe(mp->am_fd) == -1) { in amq_fork()
105 mp->am_fd[0] = -1; in amq_fork()
106 mp->am_fd[1] = -1; in amq_fork()
132 close(mp->am_fd[1]); /* close output end of pipe */ in amq_fork()
133 mp->am_fd[1] = -1; in amq_fork()
137 close(mp->am_fd[0]); /* close input end of pipe */ in amq_fork()
138 mp->am_fd[0] = -1; in amq_fork()
H A Dmap.c432 mp->am_fd[0] = -1; in init_map()
433 mp->am_fd[1] = -1; in init_map()
443 if (mp->am_fd[1] >= 0) { /* we have a child process */ in notify_child()
448 err = write(mp->am_fd[1], &rv, sizeof(rv)); in notify_child()
453 close(mp->am_fd[1]); in notify_child()
454 mp->am_fd[1] = -1; in notify_child()
468 if (mp->am_fd[1] != -1) in free_map()
H A Dautil.c730 fake_mp.am_fd[1] = mp->am_fd[1]; in am_unmounted()
731 mp->am_fd[1] = -1; in am_unmounted()
H A Damq_subr.c119 if (mp && mp->am_fd[0] >= 0) { in amqproc_sync_umnt_1_svc_child()
120 n = read(mp->am_fd[0], &buf, sizeof(buf)); in amqproc_sync_umnt_1_svc_child()
H A Damd.h528 int am_fd[2]; /* parent child pipe fd's for sync umount */ member