From ad90bc1107ef9a76f4ca530cc41e86d4f352e3d9 Mon Sep 17 00:00:00 2001
From: Laurent Bercot
- int open_readcoe (char const *file)
+ int openc_read (char const *file)
Opens file in read-only, non-blocking mode, close-on-exec.
Returns a valid fd number if it succeeds, or -1 (and sets errno) if it fails.
- int openb_readcoe (char const *file)
+ int openbc_read (char const *file)
Opens file in read-only, blocking mode, close-on-exec.
Returns a valid fd number if it succeeds, or -1 (and sets errno) if it fails.
- int open_readbcoe (char const *file)
+ int openc_readb (char const *file)
Same as above, but the file is opened close-on-exec.
- int open_exclcoe (char const *file)
+ int openc_excl (char const *file)
Opens file in write-only, non-blocking mode, close-on-exec, with the
additional O_EXCL and O_CREAT flags.
Returns a valid fd number if it succeeds, or -1 (and sets errno) if it fails.
@@ -309,7 +309,7 @@ Returns a valid fd number if it succeeds, or -1 (and sets errno) if it fails.
- int open_appendcoe (char const *file)
+ int openc_append (char const *file)
Opens file in write-only, non-blocking mode, close-on-exec, with the
additional O_APPEND and O_CREAT flags.
Returns a valid fd number if it succeeds, or -1 (and sets errno) if it fails.
@@ -323,7 +323,7 @@ Returns a valid fd number if it succeeds, or -1 (and sets errno) if it fails.
- int open_trunccoe (char const *file)
+ int openc_trunc (char const *file)
Opens file in write-only, non-blocking mode, close-on-exec, with the
additional O_TRUNC and O_CREAT flags.
Returns a valid fd number if it succeeds, or -1 (and sets errno) if it fails.
@@ -337,7 +337,7 @@ Returns a valid fd number if it succeeds, or -1 (and sets errno) if it fails.
- int open_createcoe (char const *file)
+ int openc_create (char const *file)
Opens file in write-only, non-blocking mode, close-on-exec, with the
additional O_CREAT flag.
Returns a valid fd number if it succeeds, or -1 (and sets errno) if it fails.
@@ -350,7 +350,7 @@ Returns a valid fd number if it succeeds, or -1 (and sets errno) if it fails.
- int open_writecoe (char const *file)
+ int openc_write (char const *file)
Opens file in write-only, non-blocking mode, close-on-exec.
Returns a valid fd number if it succeeds, or -1 (and sets errno) if it fails.