语法重定向到输入/输出到C(UNIX) [英] Syntax to Redirect to Input/Output to in C (UNIX)

查看:147
本文介绍了语法重定向到输入/输出到C(UNIX)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想找到可以让我对重定向命名管道的标准输入输出通过mkfifo()函数,用叉子在创建子进程后的语法。

I am trying to find the syntax that will let me redirect standard input output toward a named pipe after using the mkfifo() function and creating a child process using fork.

哪个男人页,我应该看的语法?

Which man page should I be looking at for the syntax?

谢谢,
阿龙

推荐答案

手册页的各个章节可以为您的各种目的。结果
一般情况下,结果
第1节包含了可执行程序或shell命令语法。

Various sections of man page can serve your various purposes.
Generally,
Section 1 contain syntax for executable programs or shell command .

man mkfifo

第3节包含库调用(C程序中)语法。

Section 3 contain syntax for Library call ( used in c programs).

man 3 mkfifo

编辑:
我想我误解了question..ifü需要的语法重定向命令,检查

I think i misunderstood the question..if u need the syntax for a command for redirection, check

man dup

这篇关于语法重定向到输入/输出到C(UNIX)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆