Home
last modified time | relevance | path

Searched refs:out_fd (Results 1 – 14 of 14) sorted by relevance

/freebsd-12.1/crypto/heimdal/lib/roken/
H A Dsimple_exec.c147 int in_fd[2], out_fd[2], err_fd[2]; in pipe_execv() local
155 pipe(out_fd); in pipe_execv()
171 close(out_fd[0]); in pipe_execv()
179 out_fd[1] = open(_PATH_DEVNULL, O_WRONLY); in pipe_execv()
188 if(out_fd[1] != STDOUT_FILENO) { in pipe_execv()
189 dup2(out_fd[1], STDOUT_FILENO); in pipe_execv()
190 close(out_fd[1]); in pipe_execv()
207 close(out_fd[0]); in pipe_execv()
208 close(out_fd[1]); in pipe_execv()
221 close(out_fd[1]); in pipe_execv()
[all …]
/freebsd-12.1/usr.sbin/nandtool/
H A Dnand_read.c44 int fd = -1, out_fd = -1, done = 0, ret = 0; in nand_read() local
55 out_fd = open(out, O_WRONLY|O_CREAT, 0666); in nand_read()
56 if (out_fd == -1) { in nand_read()
118 if (out_fd != -1) { in nand_read()
120 if ((ret = write(out_fd, buf, chip_params.page_size)) != in nand_read()
134 if (out_fd != -1) in nand_read()
135 close(out_fd); in nand_read()
/freebsd-12.1/contrib/pf/tftp-proxy/
H A Dtftp-proxy.c73 int c, fd = 0, on = 1, out_fd = 0, peer, reqsize = 0; in main() local
232 if ((out_fd = socket(((struct sockaddr *)&from)->sa_family, in main()
241 if (bind(out_fd, (struct sockaddr *)&sock_out, sizeof(sock_out)) < 0) { in main()
246 if (connect(out_fd, (struct sockaddr *)&server, in main()
253 if ((getsockname(out_fd, (struct sockaddr *)&proxy_to_server, in main()
320 if (send(out_fd, tp, reqsize, 0) < 0) { in main()
/freebsd-12.1/contrib/mandoc/
H A Dcatman.c124 int in_fd, out_fd; in process_manpage() local
132 if ((out_fd = openat(dstdir_fd, path, in process_manpage()
140 irc = sock_fd_write(srv_fd, in_fd, out_fd, STDERR_FILENO); in process_manpage()
143 close(out_fd); in process_manpage()
/freebsd-12.1/contrib/ofed/opensm/opensm/
H A Dosm_console_io.c117 p_oct->out_fd = -1; in cio_close()
153 p_oct->out_fd = p_oct->in_fd; in cio_open()
194 p_oct->out_fd = fileno(stdout); in osm_console_init()
246 p_oct->out_fd = -1; in osm_console_init()
/freebsd-12.1/crypto/heimdal/appl/push/
H A Dpush.c224 int out_fd; in doit() local
243 out_fd = -1; in doit()
260 out_fd = open(outfilename, O_WRONLY | O_APPEND | O_CREAT, 0666); in doit()
261 if (out_fd < 0) in doit()
284 write_state_init (&write_state, out_fd); in doit()
375 if (fsync (out_fd) < 0) in doit()
377 close(out_fd); in doit()
/freebsd-12.1/contrib/processor-trace/libipt/src/posix/
H A Dpt_section_posix.c223 goto out_fd; in pt_section_map()
238 goto out_fd; in pt_section_map()
250 out_fd: in pt_section_map()
/freebsd-12.1/contrib/wpa/src/utils/
H A Dwpa_debug.c553 int out_fd; in wpa_debug_open_file() local
564 out_fd = open(path, O_CREAT | O_APPEND | O_WRONLY, in wpa_debug_open_file()
566 if (out_fd < 0) { in wpa_debug_open_file()
574 if (fcntl(out_fd, F_SETFD, FD_CLOEXEC) < 0) { in wpa_debug_open_file()
581 out_file = fdopen(out_fd, "a"); in wpa_debug_open_file()
585 close(out_fd); in wpa_debug_open_file()
/freebsd-12.1/contrib/processor-trace/libipt/src/windows/
H A Dpt_section_windows.c285 goto out_fd; in pt_section_map()
301 goto out_fd; in pt_section_map()
314 out_fd: in pt_section_map()
/freebsd-12.1/contrib/ofed/opensm/include/opensm/
H A Dosm_console_io.h74 int out_fd; member
/freebsd-12.1/contrib/compiler-rt/include/sanitizer/
H A Dlinux_syscall_hooks.h783 #define __sanitizer_syscall_pre_sendfile(out_fd, in_fd, offset, count) \ argument
784 __sanitizer_syscall_pre_impl_sendfile((long)(out_fd), (long)(in_fd), \
786 #define __sanitizer_syscall_post_sendfile(res, out_fd, in_fd, offset, count) \ argument
787 __sanitizer_syscall_post_impl_sendfile(res, (long)(out_fd), (long)(in_fd), \
789 #define __sanitizer_syscall_pre_sendfile64(out_fd, in_fd, offset, count) \ argument
790 __sanitizer_syscall_pre_impl_sendfile64((long)(out_fd), (long)(in_fd), \
792 #define __sanitizer_syscall_post_sendfile64(res, out_fd, in_fd, offset, count) \ argument
793 __sanitizer_syscall_post_impl_sendfile64(res, (long)(out_fd), (long)(in_fd), \
2444 void __sanitizer_syscall_pre_impl_sendfile(long out_fd, long in_fd, long offset,
2446 void __sanitizer_syscall_post_impl_sendfile(long res, long out_fd, long in_fd,
[all …]
/freebsd-12.1/contrib/ofed/librdmacm/
H A Dpreload.c89 ssize_t (*sendfile)(int out_fd, int in_fd, off_t *offset, size_t count);
1153 ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count) in sendfile() argument
1159 if (fd_get(out_fd, &fd) != fd_rsocket) in sendfile()
/freebsd-12.1/contrib/gcc/
H A Dmips-tfile.c4828 int out_fd; in main() local
4835 out_fd = open (obj_in_name, O_WRONLY | O_CREAT | O_TRUNC, 0666); in main()
4836 if (out_fd < 0) in main()
4841 len2 = write (out_fd, buffer, len); in main()
4857 if (close (out_fd) < 0) in main()
/freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_syscalls.inc1360 PRE_SYSCALL(sendfile)(long out_fd, long in_fd, void *offset, long count) {}
1362 POST_SYSCALL(sendfile)(long res, long out_fd, long in_fd,
1369 PRE_SYSCALL(sendfile64)(long out_fd, long in_fd, void *offset, long count) {}
1371 POST_SYSCALL(sendfile64)(long res, long out_fd, long in_fd,