/src/tests/lib/libc/sys/ |
t_ptrace_kill.c | 57 child(int *fdto, int *fdfrom) 61 write(fdfrom[1], &p, 1); 64 write(fdfrom[1], &p, 1); 92 int fdto[2], fdfrom[2]; local in function:ATF_TC_BODY 98 SYSCALL(pipe(fdfrom), 0); 101 child(fdto, fdfrom); 108 SYSCALL(read(fdfrom[0], &q, 1), 1); 116 SYSCALL(read(fdfrom[0], &p, 1), 1);
|
t_ptrace_kill.c | 57 child(int *fdto, int *fdfrom) 61 write(fdfrom[1], &p, 1); 64 write(fdfrom[1], &p, 1); 92 int fdto[2], fdfrom[2]; local in function:ATF_TC_BODY 98 SYSCALL(pipe(fdfrom), 0); 101 child(fdto, fdfrom); 108 SYSCALL(read(fdfrom[0], &q, 1), 1); 116 SYSCALL(read(fdfrom[0], &p, 1), 1);
|
/src/share/examples/refuse/fanoutfs/ |
fanoutfs.c | 164 int fdfrom; local in function:copyfile 169 if ((fdfrom = open(from, O_RDONLY, 0666)) < 0) { 173 (void) fstat(fdfrom, &st); 176 close(fdfrom); 179 for (ret = 1 ; ret && (cc = read(fdfrom, buf, sizeof(buf))) > 0 ; ) { 189 (void) close(fdfrom);
|
fanoutfs.c | 164 int fdfrom; local in function:copyfile 169 if ((fdfrom = open(from, O_RDONLY, 0666)) < 0) { 173 (void) fstat(fdfrom, &st); 176 close(fdfrom); 179 for (ret = 1 ; ret && (cc = read(fdfrom, buf, sizeof(buf))) > 0 ; ) { 189 (void) close(fdfrom);
|