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*/
};
宣言の何が問題なのか理解できず、2 番目のstruct
開始行に次のエラーが表示されます。
「構造体」の前に「;」、識別子、または「(」が必要です。