[New-bugs-announce] [issue11016] Add S_ISDOOR to the stat module

Antoine Pitrou report at bugs.python.org
Wed Jan 26 11:57:26 CET 2011


New submission from Antoine Pitrou <pitrou at free.fr>:

Solaris has an additional kind of special files named doors. The standard headers define the following macro:

#define      S_ISDOOR(mode)  (((mode)&0xF000) == 0xd000)

Perhaps it would be nice to include the equivalent in the stat module.

(although funnily even the "stat" command doesn't recognize them and displayed "weird file" instead:

$ stat /var/run/syslog_door 
  File: `/var/run/syslog_door'
  Size: 0               Blocks: 0          IO Block: 0      weird file
Device: 8bc0000h/146538496d     Inode: 44          Links: 1
Access: (0644/Drw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-01-26 11:52:34.332492612 +0100
Modify: 2011-01-26 11:52:34.332492612 +0100
Change: 2011-01-26 11:52:34.332499428 +0100
)

----------
components: Library (Lib)
messages: 127100
nosy: jcea, loewis, movement, pitrou
priority: normal
severity: normal
status: open
title: Add S_ISDOOR to the stat module
type: feature request
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11016>
_______________________________________


More information about the New-bugs-announce mailing list