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

Go to the source code of this file.

Functions

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

Function Documentation

◆ main()

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

cat.c

Prints files specified on command line to the console.

Definition at line 9 of file cat.c.

References buffer, close(), EXIT_FAILURE, EXIT_SUCCESS, open(), printf(), read(), STDOUT_FILENO, and write().

Here is the call graph for this function: