PKUOS - Pintos
Pintos source browser for PKU Operating System course
Functions
mcat.c File Reference
#include <stdio.h>
#include <syscall.h>
Include dependency graph for mcat.c:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 mcat.c More...
 

Function Documentation

◆ main()

int main ( int argc   ,
char *  argv[] 
)

mcat.c

Prints files specified on command line to the console, using mmap.

Definition at line 10 of file mcat.c.

References EXIT_FAILURE, EXIT_SUCCESS, filesize(), MAP_FAILED, mmap(), munmap(), open(), printf(), STDOUT_FILENO, and write().

Here is the call graph for this function: