Flags as a system call API design pattern
Flags as a system call API design pattern
Posted Feb 13, 2014 12:49 UTC (Thu) by sorokin (guest, #88478)Parent article: Flags as a system call API design pattern
Using flags to completely change function semantic is a bad thing I suppose.
Posted Feb 13, 2014 14:25 UTC (Thu)
by mathstuf (subscriber, #69389)
[Link]
As for behavior change based on flags, one coworker was working with a tool which output to stdout/stderr by default, was silent with -E (no argument), but -EE took an argument for where to write the output (but just the output data from the conversion, not logging), so there's some insanity out there. I hope the kernel avoids such...behavior for a single syscall (outside of *ctl calls).
Flags as a system call API design pattern