Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The table below contains the list of system calls you will make as well as related header files that contain the declarations. In addition,
The table below contains the list of system calls you will make as well as related header files that contain the declarations. In addition, there are some notes on how the output needs to be formatted for the utility. For sample data, see the screen captures above. Information Current Date Current Time Last reboot # processors configured # processors available # current processes Total usable memory Available memory Shared memory Buffer memory Total swap space Available swap. space Header file / System Call(s) #incude time_t time(time_t *tloc) struct tm localtine(const time_t *timer) #include int sysinfo(struct sysinfo *info) #include int get_nprocs_conf(void) #include int get nprocs(void) #include int sysinfo(struct sysinfo info) Formatting Notes Notice the use of month and weekday names. The functions return numbers. Must be converted to the local time. before printing the values Display in seconds and days, 2 decimal places Try typing "man sysinfo" from your bash shell for information on this struct, or google it. The data is returned as bytes. Convert to GB, 3 decimal places The data is returned as bytes. Convert to GB, 3 decimal places The data is returned as bytes. Convert to MB, 2 decimal places The data is returned as bytes. Convert to MB, 2 decimal places The data is returned as bytes. Convert to MB, 2 decimal places The data is returned as bytes. Convert to MB, 2 decimal places 5. Other Requirements/Notes The following list includes other requirements that your program must perform. The program must print a heading which includes the class name (ACO350) and your name. The data should be displayed neatly, with the fields lined up as shown in the samples. The month and day of the week must display as strings, not numbers. The memory reports should be converted to GB or MB as shown in the table above. Pay attention to the required precision in the numbers. Turn in your source file: sysutil.c. If you created any other source files, submit them as well. There is a small starting file in Mod1/sysutil/sysutil.c and a makefile in the same directory.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started