文件操作 - extra_opts.h
返回文件管理
返回主菜单
删除本文件
文件: /usr/local/src/nagios-plugins-2.4.2/lib/extra_opts.h
编辑文件内容
#ifndef NAGIOS_EXTRA_OPTS_H_INCLUDED #define NAGIOS_EXTRA_OPTS_H_INCLUDED /* * extra_opts.h: routines for loading nagios-plugin defaults from ini * configuration files. */ /* np_extra_opts: Process the --extra-opts arguments and create a new argument * array with ini-processed and argument-passed arguments together. The * ini-procesed arguments always come first (in the order of --extra-opts * arguments). If no --extra-opts arguments are provided or returned nothing * it returns **argv otherwise the new array is returned. --extra-opts are * always removed from **argv. The original pointers from **argv are kept in * the new array to preserve ability to overwrite arguments in processlist. * * The new array can be easily freed as long as a pointer to the original one * is kept. See my_free() in lib/tests/test_opts1.c for an example. */ char **np_extra_opts(int *argc, char **argv, const char *plugin_name); #endif /* NAGIOS_EXTRA_OPTS_H_INCLUDED */
修改文件时间
将文件时间修改为当前时间的前一年
删除文件