fifo
来自「实战Linux编程的原代码,希望对学驱动的人能有所帮助」· 代码 · 共 32 行
TXT
32 行
#!/bin/sh# Make sure touch works on fifos without hanging.if test "$VERBOSE" = yes; then set -x touch --versionfiframework_failure=0tmp=fifo-$$rm -rf $tmpmkfifo $tmp || framework_failure=1if test $framework_failure = 1; then # Make an exception of this case -- usually we interpret framework-creation # failure as a test failure. However, in this case, when running on a SunOS # system using a disk NFS mounted from OpenBSD, the above fails like this: # mkfifo: cannot make fifo `fifo-10558': Not owner echo '********************************************' echo 'NOTICE: unable to create test prerequisites' echo '********************************************' exit 77fifail=0touch $tmp || fail=1rm -rf $tmpexit $fail
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?