Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Last active April 25, 2017 07:50
Show Gist options
  • Save kjunichi/0c90b33081a531fa7616f0c2220493cb to your computer and use it in GitHub Desktop.
Save kjunichi/0c90b33081a531fa7616f0c2220493cb to your computer and use it in GitHub Desktop.
2017/1/13

pipe,_pipe

pipe

パイプを生成する。 パイプは、プロセス間通信に使用できる単方向のデータチャネル 配列 pipefd は、パイプの両端を参照する二つのファイルディスクリプターを 返すのに使用

pipefd[0] がパイプの読み出し側、 pipefd[1] がパイプの書き込み側

_pipe

int _pipe(  
int *pfds,  
unsigned int psize,  
int textmode   
);  

パラメーター

  • pfds[2] 読み取りおよび書き込みファイル記述子を格納する配列。

  • psize 予約するメモリの量。

  • textmode ファイル モード。

関連記事

関連

アクセス解析タグ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment