aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-10-11 04:13:43 +0200
committerMattias Andrée <maandree@operamail.com>2015-10-11 04:13:43 +0200
commit8b30852a55a206bd9206d3af960e5e812ad5aa03 (patch)
treead66a3b05327c0ecb1d80fd65af0abf852f813aa /src
parentWhilst POSIX leaves it explicitly unspecify whether close(2) closes the fildes on interruption, Linux (and possibly some other kernels) specify tha... (diff)
downloadmds-8b30852a55a206bd9206d3af960e5e812ad5aa03.tar.gz
mds-8b30852a55a206bd9206d3af960e5e812ad5aa03.tar.bz2
mds-8b30852a55a206bd9206d3af960e5e812ad5aa03.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/libmdsserver/macros.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libmdsserver/macros.h b/src/libmdsserver/macros.h
index 71d26f1..f849fef 100644
--- a/src/libmdsserver/macros.h
+++ b/src/libmdsserver/macros.h
@@ -397,7 +397,8 @@
* @param fd:int The file descriptor
*/
#if 1 /* For kernels that ensure that close(2) always closes valid file descriptors. */
-# define xclose(fd) close(fd)
+# define xclose(fd) \
+ close(fd)
#else /* For kernels that ensure that close(2) never closes valid file descriptors on interruption. */
# ifdef MDS_LIBMDSSERVER_MACROS_DEFINED_TEMP_FAILURE_RETRY
# define xclose(fd) \
@@ -416,7 +417,8 @@
* @param f:FILE* The stream
*/
#if 1 /* For kernels that ensure that close(2) always closes valid file descriptors. */
-# define xfclose(f) fclose(f)
+# define xfclose(f) \
+ fclose(f)
#else /* For kernels that ensure that close(2) never closes valid file descriptors on interruption. */
# ifdef MDS_LIBMDSSERVER_MACROS_DEFINED_TEMP_FAILURE_RETRY
# define xfclose(f) \