163 #ifndef LEGATO_FLOCK_INCLUDE_GUARD
164 #define LEGATO_FLOCK_INCLUDE_GUARD
221 const char* pathNamePtr,
256 const char* pathNamePtr,
284 const char* pathNamePtr,
320 const char* pathNamePtr,
361 const char* pathNamePtr,
400 const char* pathNamePtr,
433 const char* pathNamePtr,
473 const char* pathNamePtr,
493 #endif //LEGATO_FLOCK_INCLUDE_GUARD
int le_flock_TryCreate(const char *pathNamePtr, le_flock_AccessMode_t accessMode, le_flock_CreateMode_t createMode, mode_t permissions)
Opens the file for reading.
Definition: le_fileLock.h:177
le_flock_CreateMode_t
Definition: le_fileLock.h:193
le_result_t
Definition: le_basics.h:35
Opens the file for reading and writing.
Definition: le_fileLock.h:181
Fails if the file already exists.
Definition: le_fileLock.h:197
int le_flock_Open(const char *pathNamePtr, le_flock_AccessMode_t accessMode)
void le_flock_Close(int fd)
FILE * le_flock_TryOpenStream(const char *pathNamePtr, le_flock_AccessMode_t accessMode, le_result_t *resultPtr)
Definition: le_fileLock.h:179
le_flock_AccessMode_t
Definition: le_fileLock.h:175
Opens the file for writing.
Definition: le_fileLock.h:178
Opens the file if it already exists.
Definition: le_fileLock.h:195
Replaces the file if it already exists.
Definition: le_fileLock.h:196
void le_flock_CloseStream(FILE *fileStreamPtr)
FILE * le_flock_CreateStream(const char *pathNamePtr, le_flock_AccessMode_t accessMode, le_flock_CreateMode_t createMode, mode_t permissions, le_result_t *resultPtr)
Definition: le_fileLock.h:182
FILE * le_flock_OpenStream(const char *pathNamePtr, le_flock_AccessMode_t accessMode, le_result_t *resultPtr)
int le_flock_TryOpen(const char *pathNamePtr, le_flock_AccessMode_t accessMode)
int le_flock_Create(const char *pathNamePtr, le_flock_AccessMode_t accessMode, le_flock_CreateMode_t createMode, mode_t permissions)
FILE * le_flock_TryCreateStream(const char *pathNamePtr, le_flock_AccessMode_t accessMode, le_flock_CreateMode_t createMode, mode_t permissions, le_result_t *resultPtr)