CS318 - Pintos
Pintos source browser for JHU CS318 course
|
Go to the documentation of this file.
10 main (
int argc,
char *argv[])
14 for (i = 1; i < argc; i++)
18 void *data = (
void *) 0x10000000;
25 printf (
"%s: open failed\n", argv[i]);
31 map =
mmap (fd, data);
34 printf (
"%s: mmap failed\n", argv[i]);
int write(int fd, const void *buffer, unsigned size)
int main(int argc, char *argv[])
mcat.c
#define EXIT_FAILURE
Unsuccessful execution.
int printf(const char *format,...)
Writes formatted output to the console.
int open(const char *file)
#define EXIT_SUCCESS
Typical return values from main() and arguments to exit().
mapid_t mmap(int fd, void *addr)
Project 3 and optionally project 4.
void munmap(mapid_t mapid)
int mapid_t
Map region identifier.