文件操作 - struct.h
返回文件管理
返回主菜单
删除本文件
文件: /usr/include/net-snmp/agent/struct.h
编辑文件内容
#ifndef UCD_SNMP_STRUCT #define UCD_SNMP_STRUCT #define STRMAX 1024 #define SHPROC 1 #define EXECPROC 2 #define PASSTHRU 3 #define PASSTHRU_PERSIST 4 #define MIBMAX 30 struct extensible { char name[STRMAX]; char command[STRMAX]; char fixcmd[STRMAX]; int type; int result; char output[STRMAX]; struct extensible *next; oid miboid[MIBMAX]; size_t miblen; int mibpriority; netsnmp_pid_t pid; #if defined(WIN32) HANDLE tid; /* WIN32 thread */ #endif }; struct myproc { char name[STRMAX]; char fixcmd[STRMAX]; int min; int max; struct myproc *next; }; /* * struct mibinfo * { * int numid; * unsigned long mibid[10]; * char *name; * void (*handle) (); * }; */ #endif
修改文件时间
将文件时间修改为当前时间的前一年
删除文件