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
開始:錯誤:預期「;」,標識符或「(」「結構」
你能發佈在此之前的代碼嗎? – Blender