basic: move missing_fcntl.h -> include/fcntl.h

This commit is contained in:
Yu Watanabe
2025-07-01 12:28:12 +09:00
parent 549f679a49
commit 194a690181
7 changed files with 6 additions and 8 deletions
+1 -2
View File
@@ -16,7 +16,6 @@
#include "format-util.h"
#include "fs-util.h"
#include "log.h"
#include "missing_fcntl.h"
#include "missing_syscall.h"
#include "mountpoint-util.h"
#include "parse-util.h"
@@ -971,7 +970,7 @@ int fd_verify_safe_flags_full(int fd, int extra_flags) {
* and since we refuse O_PATH it should be safe.
*
* RAW_O_LARGEFILE: glibc secretly sets this and neglects to hide it from us if we call fcntl.
* See comment in missing_fcntl.h for more details about this.
* See comment in src/basic/include/fcntl.h for more details about this.
*
* If 'extra_flags' is specified as non-zero the included flags are also allowed.
*/
+1 -1
View File
@@ -2,10 +2,10 @@
#pragma once
#include <dirent.h>
#include <fcntl.h>
#include <stdio.h>
#include "forward.h"
#include "missing_fcntl.h"
/* maximum length of fdname */
#define FDNAME_MAX 255
-1
View File
@@ -16,7 +16,6 @@
#include "label.h"
#include "lock-util.h"
#include "log.h"
#include "missing_fcntl.h"
#include "missing_syscall.h"
#include "mkdir.h"
#include "path-util.h"
@@ -1,7 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <fcntl.h> /* IWYU pragma: export */
#include_next <fcntl.h>
/* This is defined since glibc-2.41. */
#ifndef F_DUPFD_QUERY
+1 -1
View File
@@ -1,6 +1,7 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#pragma once
#include <fcntl.h>
#include <features.h>
#include <linux/fs.h>
#include <linux/mount.h> /* IWYU pragma: export */
@@ -10,7 +11,6 @@
#include <sys/syscall.h>
#include <unistd.h>
#include "missing_fcntl.h"
#include "missing_syscall_def.h"
/* Since glibc-2.37 (774058d72942249f71d74e7f2b639f77184160a6), sys/mount.h includes linux/mount.h, and