Discussion:
[ast-developers] glibc stdio fopen extensions vs AST fopen?
Cedric Blancher
2014-10-21 13:22:40 UTC
Permalink
Which of the following glibc stdio extensions are supported by AST stdio?

Glibc notes
The GNU C library allows the following extensions for the
string specified in mode:

c (since glibc 2.3.3)
Do not make the open operation, or subsequent read and
write operations, thread cancellation points. This flag is ignored
for fdopen().

e (since glibc 2.7)
Open the file with the O_CLOEXEC flag. See open(2) for
more information. This flag is ignored for fdopen().

m (since glibc 2.3)
Attempt to access the file using mmap(2), rather than
I/O system calls (read(2), write(2)). Currently, use of mmap(2) is
attempted only for a file opened for
reading.

x Open the file exclusively (like the O_EXCL flag of
open(2)). If the file already exists, fopen() fails, and sets errno
to EEXIST. This flag is ignored for
fdopen().

Ced
--
Cedric Blancher <***@gmail.com>
Institute Pasteur
Cedric Blancher
2015-01-22 20:37:43 UTC
Permalink
Glenn?
Post by Cedric Blancher
Which of the following glibc stdio extensions are supported by AST stdio?
Glibc notes
The GNU C library allows the following extensions for the
c (since glibc 2.3.3)
Do not make the open operation, or subsequent read and
write operations, thread cancellation points. This flag is ignored
for fdopen().
e (since glibc 2.7)
Open the file with the O_CLOEXEC flag. See open(2) for
more information. This flag is ignored for fdopen().
m (since glibc 2.3)
Attempt to access the file using mmap(2), rather than
I/O system calls (read(2), write(2)). Currently, use of mmap(2) is
attempted only for a file opened for
reading.
x Open the file exclusively (like the O_EXCL flag of
open(2)). If the file already exists, fopen() fails, and sets errno
to EEXIST. This flag is ignored for
fdopen().
Ced
--
Institute Pasteur
--
Cedric Blancher <***@gmail.com>
Institute Pasteur
Loading...