From 0158bceec78c7891a7ef672770bf42e65fd064dd Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 8 Jan 2020 22:47:51 -0500 Subject: libthread: run first thread in proc on system stack For pthread systems that are fussy about which stack is used, this makes sure that threadmain runs on a system stack. If you only use proccreate (never threadcreate), all threads run on system stacks. --- man/man3/thread.3 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'man/man3') diff --git a/man/man3/thread.3 b/man/man3/thread.3 index 0ebbddd0..9088ae2e 100644 --- a/man/man3/thread.3 +++ b/man/man3/thread.3 @@ -169,6 +169,14 @@ initialized to the desired value .B mainstacksize .B = .BR 1024 ). +When using the +.I pthread +library, +.B mainstacksize +is ignored, as is the stack size argument to +.BR proccreate : +the first thread in each proc +runs on the native system stack. .PP .I Threadcreate creates a new thread in the calling proc, returning a unique integer -- cgit v1.2.3 From 125cfe1c0d29541135eac6da676ed9b48930e38b Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Mon, 13 Jan 2020 23:11:45 -0500 Subject: mouse(3): fix definition of Mousectl --- man/man3/mouse.3 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'man/man3') diff --git a/man/man3/mouse.3 b/man/man3/mouse.3 index 216c72b0..b5061fd9 100644 --- a/man/man3/mouse.3 +++ b/man/man3/mouse.3 @@ -88,15 +88,15 @@ returns a structure through which one may access the mouse: typedef struct Mousectl Mousectl; struct Mousectl { - Mouse; - Channel *c; /* chan(Mouse)[16] */ + Mouse m; + Channel *c; /* chan(Mouse)[16] */ Channel *resizec; /* chan(int)[2] */ char *file; int mfd; /* to mouse file */ int cfd; /* to cursor file */ int pid; /* of slave proc */ - Image* image; /* of associated window/display */ + Image* image; /* of associated window/display */ }; .EE .PP @@ -142,7 +142,9 @@ to reconnect to the window. .I Readmouse updates the .B Mouse -structure held in the +structure +.B m +held in the .BR Mousectl , blocking if the state has not changed since the last .I readmouse -- cgit v1.2.3