shithub: riscv

Download patch

ref: a600610fded8cd7b5a2b24787d10b2fdaea50d7e
parent: 19166f2cf32725b1907c8032ae224282a1fa3f8f
author: cinap_lenrek <[email protected]>
date: Wed Sep 26 11:24:29 EDT 2018

provide procsetname(2) manpage

--- /dev/null
+++ b/sys/man/2/procsetname
@@ -1,0 +1,21 @@
+.TH PROCSETNAME 2
+.SH NAME
+procsetname \- set process arguments
+.SH SYNOPSIS
+.B #include <u.h>
+.br
+.B #include <libc.h>
+.PP
+.B
+void procsetname(char *fmt, ...)
+.SH DESCRIPTION
+.I Procsetname
+overrides the current process arguments by writing to its
+.BI /proc/ pid /args
+file.
+The process arguments are informational only.
+.SH SOURCE
+.B /sys/src/libc/9sys/procsetname.c
+.SH SEE ALSO
+.IR thread (2),
+.IR proc (3)