This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFC] Consodilate file open mode logic


As I fixed fopen, fdopen, fmemopen bugs it come as afterthought that one
of causes is duplicating parsing logic. 

A better way could be add function say

int __fmode(char *mode)

which returns bitmask with flags described by mode.

Comments?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]