solaris DOOR类型文件

    今天在solaris上测试文件类型。 S_ISDIR(), S_ISCHR()等等。用了七个函数判断文件类型。 后来发现并没有发现DOOR这种文件类型。

man ls:

.......

D  the entry is a door.

........


它是door类型。 而且在<sys/stat.h>中可以查到 S_ISDOOR()函数。 

继续跟踪查door,在google的网上论坛上找到了DOORdescription。 

如下:

Well, the manual page for "door" in Solaris 2.5 says:

    DESCRIPTION

         This family of system calls provide a new flavor of
         interprocess communication between client and server
         processes. The doors mechanism is not yet available for public
         consumption because the interface is still evolving and will
         undergo a major rework in a future release of Solaris. In
         Solaris 2.5, doors are used as part of the implementation of
         the name service cache daemon, nscd(1M).

    WARNING

         Please do not attempt to reverse-engineer the interface and
         program to it. If you do, your program will almost certainly
         fail to run on future versions of Solaris, and may even be
         broken by a patch. This document does not constitute an API.
         Doors may not exist or may have a completely different set of
         semantics in a future release.

    NOTES

         This manual page is here solely for the benefit of anyone who
         noticed door_call() in truss(1) output and thought, "Gee, I
         wonder what that does..."

         Processes that appear to be "stuck" waiting in door_call(2)
         are probably waiting for nscd(1M) to reply to a name service
         lookup.

总的来说它提供了一种新的形式的接口,用于客户端和服务器的应用进程之间通信的文件。

具体使用方法,还得待查。



  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值