bug-hurd
[Top][All Lists]
Advanced

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

Should trivfs.h include fcntl.h?


From: olafBuddenhagen
Subject: Should trivfs.h include fcntl.h?
Date: Sun, 20 Dec 2009 18:40:10 +0100
User-agent: Mutt/1.5.19 (2009-01-05)

Hi,

While trivfs.h doesn't use any definitions from fcntl.h itself,
trivfs_allow_open takes values like O_READ, which are defined in fcntl.h
-- so a program including trivfs.h will generally need these definitions
as well. Thus I wonder whether trivfs.h shouldn't just include fcntl.h,
so they are always available?

(Admittedly, this logic is not generally applied to libc headers
either...)

-antrik-




reply via email to

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