All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
le_fileLock.h
Go to the documentation of this file.
1 
164  //--------------------------------------------------------------------------------------------------
172 #ifndef LEGATO_FLOCK_INCLUDE_GUARD
173 #define LEGATO_FLOCK_INCLUDE_GUARD
174 
175 
176 //--------------------------------------------------------------------------------------------------
183 //--------------------------------------------------------------------------------------------------
184 typedef enum
185 {
192 }
195 
196 
197 //--------------------------------------------------------------------------------------------------
201 //--------------------------------------------------------------------------------------------------
202 typedef enum
203 {
207 }
209 
210 
211 //--------------------------------------------------------------------------------------------------
227 //--------------------------------------------------------------------------------------------------
228 int le_flock_Open
229 (
230  const char* pathNamePtr,
231  le_flock_AccessMode_t accessMode
232 );
233 
234 
235 //--------------------------------------------------------------------------------------------------
262 //--------------------------------------------------------------------------------------------------
263 int le_flock_Create
264 (
265  const char* pathNamePtr,
266  le_flock_AccessMode_t accessMode,
267  le_flock_CreateMode_t createMode,
268  mode_t permissions
269 );
271 
272 
273 //--------------------------------------------------------------------------------------------------
290 //--------------------------------------------------------------------------------------------------
292 (
293  const char* pathNamePtr,
294  le_flock_AccessMode_t accessMode
295 );
296 
297 
298 //--------------------------------------------------------------------------------------------------
326 //--------------------------------------------------------------------------------------------------
328 (
329  const char* pathNamePtr,
330  le_flock_AccessMode_t accessMode,
331  le_flock_CreateMode_t createMode,
332  mode_t permissions
333 );
335 
336 
337 //--------------------------------------------------------------------------------------------------
341 //--------------------------------------------------------------------------------------------------
342 void le_flock_Close
343 (
344  int fd
345 );
346 
347 
348 //--------------------------------------------------------------------------------------------------
367 //--------------------------------------------------------------------------------------------------
369 (
370  const char* pathNamePtr,
371  le_flock_AccessMode_t accessMode,
372  le_result_t* resultPtr
373 );
375 
376 
377 //--------------------------------------------------------------------------------------------------
406 //--------------------------------------------------------------------------------------------------
408 (
409  const char* pathNamePtr,
410  le_flock_AccessMode_t accessMode,
411  le_flock_CreateMode_t createMode,
412  mode_t permissions,
413  le_result_t* resultPtr
415 );
417 
418 
419 //--------------------------------------------------------------------------------------------------
439 //--------------------------------------------------------------------------------------------------
441 (
442  const char* pathNamePtr,
443  le_flock_AccessMode_t accessMode,
444  le_result_t* resultPtr
445 );
446 
447 
448 //--------------------------------------------------------------------------------------------------
479 //--------------------------------------------------------------------------------------------------
481 (
482  const char* pathNamePtr,
483  le_flock_AccessMode_t accessMode,
484  le_flock_CreateMode_t createMode,
485  mode_t permissions,
486  le_result_t* resultPtr
488 );
489 
490 
491 //--------------------------------------------------------------------------------------------------
495 //--------------------------------------------------------------------------------------------------
497 (
498  FILE* fileStreamPtr
499 );
500 
501 
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)