文件操作 - rh_flags.h
返回文件管理
返回主菜单
删除本文件
文件: /usr/src/kernels/4.18.0-553.144.1.el8_10.x86_64/include/linux/rh_flags.h
编辑文件内容
/* SPDX-License-Identifier: GPL-2.0 */ /* * rh_flags.h -- Red Hat flags tracking * * Copyright (c) 2018 Red Hat, Inc. -- Jiri Benc <jbenc@redhat.com> * * The intent of the flag tracking is to provide better and more focused * support. Only those flags that are of a special interest for customer * support should be tracked. * * THE FLAGS DO NOT EXPRESS ANY SUPPORT POLICIES. */ #ifndef _LINUX_RH_FLAGS_H #define _LINUX_RH_FLAGS_H #if defined CONFIG_RHEL_DIFFERENCES bool __rh_add_flag(const char *flag_name); void rh_print_flags(void); #define rh_add_flag(flag_name) \ ({ \ static bool __mark_once __read_mostly; \ bool __ret_mark_once = !__mark_once; \ \ if (!__mark_once) \ __mark_once = __rh_add_flag(flag_name); \ unlikely(__ret_mark_once); \ }) #else void rh_print_flags(void) { }; void rh_add_flag(const char *flag_name) { }; #endif #endif
修改文件时间
将文件时间修改为当前时间的前一年
删除文件