[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: monitoring FIFOs permissions

From: Jan-Henrik Haukeland
Subject: Re: monitoring FIFOs permissions
Date: Tue, 27 Dec 2005 15:43:49 +0100

On 26. des. 2005, at 22.39, Martin Pala wrote:

We already covered almost all basic types (stat system call - types):

check file:
 S_ISREG(m)  is it a regular file?

check directory:
 S_ISDIR(m)  directory?

check device:
 S_ISCHR(m)  character device?
 S_ISBLK(m)  block device?

check fifo (maybe?):
 S_ISFIFO(m) FIFO (named pipe)?

not implemented currently (and probably not needed):
 S_ISLNK(m)  symbolic link? (Not in POSIX.1-1996.)
 S_ISSOCK(m) socket? (Not in POSIX.1-1996.)

For these reasons, i think the new 'check fifo' is better then sharing the 'check file' statement.

What do you think?

Good points, I yield on that and here's my +1 for adding your fifo patch :)

Jan-Henrik Haukeland
Mobil +47 97141255

reply via email to

[Prev in Thread] Current Thread [Next in Thread]