diff options
author | rsc <devnull@localhost> | 2003-12-06 18:05:27 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2003-12-06 18:05:27 +0000 |
commit | e97ceade5e1bba5787e39429384336fa37797906 (patch) | |
tree | 1353f5aa99b04e9c030ecc89cd7b526cb814090d /include | |
parent | c715a6127a46b8090591972b5c4bb04dfabbca8b (diff) | |
download | plan9port-e97ceade5e1bba5787e39429384336fa37797906.tar.gz plan9port-e97ceade5e1bba5787e39429384336fa37797906.tar.bz2 plan9port-e97ceade5e1bba5787e39429384336fa37797906.zip |
various tweaks.
Diffstat (limited to 'include')
-rw-r--r-- | include/fcall.h | 8 | ||||
-rw-r--r-- | include/thread.h | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/include/fcall.h b/include/fcall.h index 20ffe386..f85487bd 100644 --- a/include/fcall.h +++ b/include/fcall.h @@ -1,7 +1,7 @@ #ifndef _FCALL_H_ #define _FCALL_H_ 1 -#if defined(__cplusplus) -extern "C" { +#ifdef __cplusplus +extern "C" { #endif /* #pragma src "/sys/src/libc/9sys" @@ -9,7 +9,6 @@ extern "C" { */ #define VERSION9P "9P2000" - #define MAXWELEM 16 typedef @@ -123,7 +122,8 @@ int read9pmsg(int, void*, uint); #pragma varargck type "M" ulong #pragma varargck type "D" Dir* */ -#if defined(__cplusplus) + +#ifdef __cplusplus } #endif #endif diff --git a/include/thread.h b/include/thread.h index 9c5d2d09..e9dc96e0 100644 --- a/include/thread.h +++ b/include/thread.h @@ -88,6 +88,7 @@ int send(Channel *c, void *v); int sendp(Channel *c, void *v); int sendul(Channel *c, unsigned long v); int threadcreate(void (*f)(void *arg), void *arg, unsigned int stacksize); +int threadcreateidle(void (*f)(void*), void*, unsigned int); void** threaddata(void); void threadexits(char *); void threadexitsall(char *); |