mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 02:21:44 +03:00
missing: move entries defined in magic.h to missing_magic.h
This commit is contained in:
parent
31c2ddabea
commit
1e54f0ab15
@ -101,6 +101,7 @@ basic_sources = files('''
|
||||
missing_if_tunnel.h
|
||||
missing_input.h
|
||||
missing_keyctl.h
|
||||
missing_magic.h
|
||||
missing_network.h
|
||||
missing_securebits.h
|
||||
missing_syscall.h
|
||||
|
@ -143,46 +143,10 @@ struct sockaddr_vm {
|
||||
#define FS_NOCOW_FL 0x00800000
|
||||
#endif
|
||||
|
||||
#ifndef BTRFS_SUPER_MAGIC
|
||||
#define BTRFS_SUPER_MAGIC 0x9123683E
|
||||
#endif
|
||||
|
||||
#ifndef CGROUP_SUPER_MAGIC
|
||||
#define CGROUP_SUPER_MAGIC 0x27e0eb
|
||||
#endif
|
||||
|
||||
#ifndef CGROUP2_SUPER_MAGIC
|
||||
#define CGROUP2_SUPER_MAGIC 0x63677270
|
||||
#endif
|
||||
|
||||
#ifndef CLONE_NEWCGROUP
|
||||
#define CLONE_NEWCGROUP 0x02000000
|
||||
#endif
|
||||
|
||||
#ifndef TMPFS_MAGIC
|
||||
#define TMPFS_MAGIC 0x01021994
|
||||
#endif
|
||||
|
||||
#ifndef MQUEUE_MAGIC
|
||||
#define MQUEUE_MAGIC 0x19800202
|
||||
#endif
|
||||
|
||||
#ifndef SECURITYFS_MAGIC
|
||||
#define SECURITYFS_MAGIC 0x73636673
|
||||
#endif
|
||||
|
||||
#ifndef TRACEFS_MAGIC
|
||||
#define TRACEFS_MAGIC 0x74726163
|
||||
#endif
|
||||
|
||||
#ifndef BPF_FS_MAGIC
|
||||
#define BPF_FS_MAGIC 0xcafe4a11
|
||||
#endif
|
||||
|
||||
#ifndef OCFS2_SUPER_MAGIC
|
||||
#define OCFS2_SUPER_MAGIC 0x7461636f
|
||||
#endif
|
||||
|
||||
#ifndef MS_MOVE
|
||||
#define MS_MOVE 8192
|
||||
#endif
|
||||
@ -251,14 +215,6 @@ struct sockaddr_vm {
|
||||
#define PR_SET_MM_ENV_END 11
|
||||
#endif
|
||||
|
||||
#ifndef EFIVARFS_MAGIC
|
||||
#define EFIVARFS_MAGIC 0xde5e81e4
|
||||
#endif
|
||||
|
||||
#ifndef SMACK_MAGIC
|
||||
#define SMACK_MAGIC 0x43415d53
|
||||
#endif
|
||||
|
||||
#ifndef DM_DEFERRED_REMOVE
|
||||
#define DM_DEFERRED_REMOVE (1 << 17)
|
||||
#endif
|
||||
@ -416,10 +372,6 @@ struct sockaddr_vm {
|
||||
# define EXT4_IOC_RESIZE_FS _IOW('f', 16, __u64)
|
||||
#endif
|
||||
|
||||
#ifndef NSFS_MAGIC
|
||||
#define NSFS_MAGIC 0x6e736673
|
||||
#endif
|
||||
|
||||
#ifndef NS_GET_NSTYPE
|
||||
#define NS_GET_NSTYPE _IO(0xb7, 0x3)
|
||||
#endif
|
||||
@ -484,5 +436,6 @@ struct statx {
|
||||
|
||||
#include "missing_btrfs_tree.h"
|
||||
#include "missing_input.h"
|
||||
#include "missing_magic.h"
|
||||
#include "missing_network.h"
|
||||
#include "missing_syscall.h"
|
||||
|
34
src/basic/missing_magic.h
Normal file
34
src/basic/missing_magic.h
Normal file
@ -0,0 +1,34 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1+ */
|
||||
#pragma once
|
||||
|
||||
#include <linux/magic.h>
|
||||
|
||||
/* 62aa81d7c4c24b90fdb61da70ac0dbbc414f9939 (4.13) */
|
||||
#ifndef OCFS2_SUPER_MAGIC
|
||||
#define OCFS2_SUPER_MAGIC 0x7461636f
|
||||
#endif
|
||||
|
||||
/* 67e9c74b8a873408c27ac9a8e4c1d1c8d72c93ff (4.5) */
|
||||
#ifndef CGROUP2_SUPER_MAGIC
|
||||
#define CGROUP2_SUPER_MAGIC 0x63677270
|
||||
#endif
|
||||
|
||||
/* 4282d60689d4f21b40692029080440cc58e8a17d (4.1) */
|
||||
#ifndef TRACEFS_MAGIC
|
||||
#define TRACEFS_MAGIC 0x74726163
|
||||
#endif
|
||||
|
||||
/* e149ed2b805fefdccf7ccdfc19eca22fdd4514ac (3.19) */
|
||||
#ifndef NSFS_MAGIC
|
||||
#define NSFS_MAGIC 0x6e736673
|
||||
#endif
|
||||
|
||||
/* b2197755b2633e164a439682fb05a9b5ea48f706 (4.4) */
|
||||
#ifndef BPF_FS_MAGIC
|
||||
#define BPF_FS_MAGIC 0xcafe4a11
|
||||
#endif
|
||||
|
||||
/* Not exposed yet (4.20). Defined at ipc/mqueue.c */
|
||||
#ifndef MQUEUE_MAGIC
|
||||
#define MQUEUE_MAGIC 0x19800202
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user