]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/man/3/proc
exec(2): fix prototypes
[plan9front.git] / sys / man / 3 / proc
index c5863dc73c74d93e10f76717fe190b3b49f54cdd..a97a5449ee79fb965b5105f860d370043423f6b3 100644 (file)
@@ -132,15 +132,17 @@ the six 11-character numbers also held in the process's
 .B #c/cputime
 file
 .IP \-
-the amount of memory used by the process, except its stack,
-in units of 1024 bytes
+the amount of memory used by the process in units of 1024 bytes
 .IP \-
 the base and current scheduling priority, each 11 character numbers
 .PP
-The read-only
+The
 .B args
 file contains the arguments of the program when it was created by
 .IR exec (2).
+Writing to the
+.B args
+file will overwrite its contents.
 If the program was not created by
 .BR exec ,
 such as by
@@ -299,32 +301,39 @@ This bit is inherited across
 and
 .IR exec (2).
 .TP 10n
-.B "close\ \fIn
-Close file descriptor
-.I n
-in the process.
-.TP 10n
-.B closefiles
-Close all open file descriptors in the process.
-.TP 10n
 .B nohang
 Clear the hang bit.
 .TP 10n
+.B private
+Make it impossible to read the process's user memory.
+This property is inherited on
+.IR fork (2),
+cleared on
+.IR exec (2),
+and is not otherwise resettable.
+.TP 10n
 .B noswap
 Don't allow this process to be swapped out.  This should
 be used carefully and sparingly or the system could run
 out of memory.  It is meant for processes that can't be
-swapped, like the ones implementing the swap device and for
-processes containing sensitive data.
+swapped, like the local fileserver implementing the swap
+device and for processes containing sensitive data.
+This property is inherited on
+.IR fork (2),
+cleared on
+.IR exec (2),
+and is not otherwise resettable.
 .TP 10n
 .B kill
 Kill the process the next time it crosses the user/kernel boundary.
 .TP 10n
-.B private
-Make it impossible to read the process's user memory.
-This property is inherited on fork, cleared on
-.IR exec (2),
-and is not otherwise resettable.
+.B "close\ \fIn
+Close file descriptor
+.I n
+in the process.
+.TP 10n
+.B closefiles
+Close all open file descriptors in the process.
 .TP 10n
 .B "pri\ \fIn
 Set the base priority for the process to the integer
@@ -341,6 +350,15 @@ Without an argument, toggle trace event generation for this process into
 With a zero argument, tracing for the proc is turned off, with a non-zero numeric
 argument, it is turned on.
 .TP 10n
+.B interrupt
+Interrupt a blocking system call. If no blocking call was in progress,
+the interrupt will be pending and the next attempt to block will be interrupted.
+This is similar to posting a note but, unlike notes, a pending interrupt is not
+cleared when crossing the user/kernel boundary.
+.TP 10n
+.B nointerrupt
+Clear a pending interrupt.
+.TP 10n
 .B "period\ \fInu
 Set the real-time scheduling period of the process to
 .IR nu ,