免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2355 | 回复: 3
打印 上一主题 下一主题

解决:pfctl: /dev/fd/4: No such file or directory [复制链接]

论坛徽章:
1
寅虎
日期:2013-09-29 23:15:15
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-06 20:33 |只看该作者 |倒序浏览
一个关于PF authpf的问题就这样解决了^_^


/usr/src/UPDATING
20050503:
        The packet filter (pf) code has been updated to OpenBSD 3.7
        Please note the changed anchor syntax and the fact that
        authpf(8) now needs a mounted fdescfs(5) to function.


# man fdescfs
FDESCFS(5)                FreeBSD File Formats Manual               FDESCFS(5)

NAME
     fdescfs -- file-descriptor file system

SYNOPSIS
     fdescfs /dev/fd fdescfs rw 0 0

DESCRIPTION
     The file-descriptor file system, or fdescfs, provides access to the per-
     process file descriptor namespace in the global file system namespace.
     The conventional mount point is /dev/fd.

     The file system's contents appear as a list of numbered files which cor-
     respond to the open files of the process reading the directory.  The
     files /dev/fd/0 through /dev/fd/# refer to file descriptors which can be
     accessed through the file system.  If the file descriptor is open and the
     mode the file is being opened with is a subset of the mode of the exist-
     ing descriptor, the call:

           fd = open("/dev/fd/0", mode);

     and the call:

           fd = fcntl(0, F_DUPFD, 0);

     are equivalent.

     Flags to the open(2) call other than O_RDONLY, O_WRONLY and O_RDWR are
     ignored.

FILES
     /dev/fd/#

SEE ALSO
     mount_devfs(8), mount_fdescfs(8)

HISTORY
     The fdescfs file system first appeared in 4.4BSD.  The fdescfs manual
     page first appeared in FreeBSD 2.2.

AUTHORS
     The fdescfs manual page was written by Mike Pritchard <mpp@FreeBSD.org>,
     and was based on the mount_fdescfs(8) manual page written by Jan-Simon
     Pendry.

FreeBSD 6.2                    December 14, 1996                   FreeBSD 6.2

[ 本帖最后由 congli 于 2007-3-6 21:03 编辑 ]

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
2 [报告]
发表于 2007-03-06 20:35 |只看该作者
有符号我编辑了一下 没想到有人比我快

论坛徽章:
1
寅虎
日期:2013-09-29 23:15:15
3 [报告]
发表于 2007-03-06 20:37 |只看该作者
原帖由 大大狗 于 2007-3-6 20:35 发表
有符号我编辑了一下 没想到有人比我快

哈哈^_^

论坛徽章:
0
4 [报告]
发表于 2007-03-06 21:24 |只看该作者
好极了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP