172 #ifndef LEGATO_FLOCK_INCLUDE_GUARD
173 #define LEGATO_FLOCK_INCLUDE_GUARD
230 const char* pathNamePtr,
265 const char* pathNamePtr,
293 const char* pathNamePtr,
329 const char* pathNamePtr,
370 const char* pathNamePtr,
409 const char* pathNamePtr,
442 const char* pathNamePtr,
482 const char* pathNamePtr,
502 #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:186
le_flock_CreateMode_t
Definition: le_fileLock.h:202
le_result_t
Definition: le_basics.h:34
Opens the file for reading and writing.
Definition: le_fileLock.h:190
Fails if the file already exists.
Definition: le_fileLock.h:206
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:188
le_flock_AccessMode_t
Definition: le_fileLock.h:184
Opens the file for writing.
Definition: le_fileLock.h:187
Opens the file if it already exists.
Definition: le_fileLock.h:204
Replaces the file if it already exists.
Definition: le_fileLock.h:205
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:191
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)