aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/os_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/os_file.h')
-rw-r--r--src/util/os_file.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/util/os_file.h b/src/util/os_file.h
index 1972beba32b..58639476f60 100644
--- a/src/util/os_file.h
+++ b/src/util/os_file.h
@@ -32,10 +32,14 @@ char *
os_read_file(const char *filename);
/*
- * Returns true if the two file descriptors passed in can be determined to
- * reference the same file description, false otherwise
+ * Try to determine if two file descriptors reference the same file description
+ *
+ * Return values:
+ * - 0: They reference the same file description
+ * - > 0: They do not reference the same file description
+ * - < 0: Unable to determine whether they reference the same file description
*/
-bool
+int
os_same_file_description(int fd1, int fd2);
#ifdef __cplusplus