search for: root_fd

Displaying 1 result from an estimated 1 matches for "root_fd".

Did you mean: root_fs
2016 Jan 15
0
[klibc:master] Remove open_cloexec()
...2-bit platforms; see llseek.c */ diff --git a/usr/kinit/initrd.c b/usr/kinit/initrd.c index d2efc59..7eece2c 100644 --- a/usr/kinit/initrd.c +++ b/usr/kinit/initrd.c @@ -103,8 +103,8 @@ static int run_linuxrc(int argc, char *argv[], dev_t root_dev) fclose(fp); mkdir("/old", 0700); - root_fd = open_cloexec("/", O_RDONLY | O_DIRECTORY, 0); - old_fd = open_cloexec("/old", O_RDONLY | O_DIRECTORY, 0); + root_fd = open("/", O_RDONLY|O_DIRECTORY|O_CLOEXEC, 0); + old_fd = open("/old", O_RDONLY|O_DIRECTORY|O_CLOEXEC, 0); if (root_fd < 0 || old_fd...