Fill This Form To Receive Instant Help
Homework answers / question archive / Question must be answered in a
Question must be answered in a .c file, following the POSIX norm, with a Makefile that contains these lines : CC = gcc CFLAGS = -Wall -Wextra CFLAGS += -D_XOPEN_SOURCE=500 CFLAGS += -g Question: Implement a basic version of the stat command, taking only one argument : the file. Your code must use same dedicated system call that the stat command uses to get the metadata it displays. Check the possibles errors and display the informations in the simplest way possible. It must display the type of the file, the access in a octal of 4 numbers (exemple "0664"), the login and the number of the group, you will use for that the getpwuid and the getgrgid functions.
Already member? Sign In