fd_util: removed creat_cloexec()

Add a "mode" argument to open_cloexec() instead.
This commit is contained in:
Max Kellermann
2009-11-10 16:53:24 +01:00
parent 3d2a9d3545
commit e0e6813a1d
9 changed files with 13 additions and 39 deletions

@@ -51,7 +51,7 @@ input_file_open(struct input_stream *is, const char *filename)
*slash = '\0';
}
fd = open_cloexec(pathname, O_RDONLY);
fd = open_cloexec(pathname, O_RDONLY, 0);
if (fd < 0) {
is->error = errno;
g_debug("Failed to open \"%s\": %s",