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

Go to the source code of this file.

Functions

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

Function Documentation

◆ main()

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

mcp.c

Copies one file to another, using mmap.

Definition at line 10 of file mcp.c.

References create(), EXIT_FAILURE, EXIT_SUCCESS, filesize(), MAP_FAILED, memcpy(), mmap(), munmap(), open(), and printf().

Here is the call graph for this function: