projects
/
pintos-anon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bf1a64b
)
Clarifications.
author
Ben Pfaff
<blp@cs.stanford.edu>
Thu, 21 Oct 2004 06:09:39 +0000
(06:09 +0000)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Thu, 21 Oct 2004 06:09:39 +0000
(06:09 +0000)
doc/userprog.texi
patch
|
blob
|
history
diff --git
a/doc/userprog.texi
b/doc/userprog.texi
index 817c8a0b31ade12e43477dc1eee70ad236349285..9277b087f5d9d9ba30e5a90d20ab8951f9b1284d 100644
(file)
--- a/
doc/userprog.texi
+++ b/
doc/userprog.texi
@@
-273,9
+273,10
@@
called by user programs are prototyped in @file{lib/user/syscall.h}:
@table @code
@item SYS_halt
@itemx void halt (void)
@table @code
@item SYS_halt
@itemx void halt (void)
-Stops Pintos and prints out performance statistics. Note that this
-should be seldom used, since then you lose some information about
-possible deadlock situations, etc.
+Stops Pintos by calling @func{power_off} (declared in
+@file{threads/init.h}). Note that this should be seldom used, since
+then you lose some information about possible deadlock situations,
+etc.
@item SYS_exit
@itemx void exit (int @var{status})
@item SYS_exit
@itemx void exit (int @var{status})
@@
-299,8
+300,9
@@
process, the return value is undefined (but kernel operation must not
be disrupted).
@item SYS_create
be disrupted).
@item SYS_create
-@itemx bool create (const char *@var{file})
-Create a new file called @var{file}. Returns -1 if failed, 0 if OK.
+@itemx bool create (const char *@var{file}, unsigned @var{initial_size})
+Create a new file called @var{file} initially @var{initial_size} bytes
+in size. Returns -1 if failed, 0 if OK.
@item SYS_remove
@itemx bool remove (const char *@var{file})
@item SYS_remove
@itemx bool remove (const char *@var{file})