NOTES 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(). |
[링크 : https://stackoverflow.com/questions/33312900/how-to-forbid-multiple-fopen-of-same-file]
[링크 : https://stackoverflow.com/questions/16806998/is-fopen-a-thread-safe-function-in-linux]
'Programming > C Win32 MFC' 카테고리의 다른 글
MSB / LSB 변환 (0) | 2022.08.29 |
---|---|
kore - c restful api server (0) | 2022.07.07 |
vs2019 sdi , mdi 프로젝트 생성하기 (0) | 2021.07.08 |
vkey win32 / linux (0) | 2021.04.30 |
strptime (0) | 2021.02.17 |