tech-kern archive

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

Re: Adding an option to avoid SIGPIPE for all file descriptors



On Tue, Jan 24, 2012 at 02:04:58PM -0500, Christos Zoulas wrote:
 > | (and I don't suppose we can think of a clever way to stuff the compat
 > | fcntls into libcompat or some such place so they don't bloat out the
 > | core system...)
 > 
 > The compat fcntls, are just 8 lines of code.
 > 
 > #define F_GETFOO X
 > #define F_SETFOO Y
 > 
 > case GETFOO:
 >      return (fp->f_flags & FFOO) != 0;
 > 
 > case SETFOO:
 >      fp->flags |= FFOO;
 >      break;

It's more the semantic / organizational bloat than the size.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index