spipe.c

来自「unix环境高级编程第二版配套源代码 unix环境高级编程第二版配套源代码」· C语言 代码 · 共 13 行

C
13
字号
#include "apue.h"#include <sys/socket.h>/* * Returns a full-duplex "stream" pipe (a UNIX domain socket) * with the two file descriptors returned in fd[0] and fd[1]. */ints_pipe(int fd[2]){	return(socketpair(AF_UNIX, SOCK_STREAM, 0, fd));}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?