This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[RFC] Consodilate file open mode logic
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: libc-alpha at sourceware dot org
- Date: Fri, 24 May 2013 09:14:11 +0200
- Subject: [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?