struct proc_time /* info and times about a single process*/
{
pid_t pid; /* pid of the process*/
char name[16]; /* file name of the program executed*/
unsigned long start_time; /* start time of the process*/
unsigned long real_time; /* real time of the process execution*/
unsigned long user_time; /* user time of the process*/
unsigned long sys_time; /* system time of the process*/
};
struct proctimes /* info and times about all processes we need*/
{
struct proc_time proc; /* process with given pid or current process */
struct proc_time parent_proc; /* parent process*/
struct proc_time oldest_child_proc; /* oldest child process*/
struct proc_time oldest_sibling_proc; /* oldest sibling process*/
};
我无法理解我的声明出了什么问题,并且在第二行struct
开始时出现以下错误:
预期 ';'、标识符或 '(' 在 'struct' 之前"。