hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit af3f91dfe92a1f144cf9307c9b234acb14fd9d82
parent 7db5a18202953c543f2ba0f22f75ad95c2f38afa
Author: Sebastian <sebastian@sebsite.pw>
Date:   Sun, 27 Aug 2023 03:08:08 -0400

unix::signal+freebsd: s/POLL/IO/g

So, SIGPOLL is specified by POSIX, but FreeBSD doesn't support it. Ok,
fine, whatever. But some things in FreeBSD are documented as though
SIGPOLL is supported. Like, the code enum this commit touches, this was
copied directly from FreeBSD's sys/signal.h. And the comments there just
straight up reference a signal which doesn't exist.

On Linux, SIGPOLL is synonymous with SIGIO, so I updated the docs here
to reference that instead.

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Munix/signal/+freebsd.ha | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/unix/signal/+freebsd.ha b/unix/signal/+freebsd.ha @@ -248,12 +248,12 @@ export type code = enum int { STOPPED = 5, // sig::CHLD: child has stopped CONTINUED = 6, // sig::CHLD: stopped child has continued - IN = 1, // sig::POLL: data input available - OUT = 2, // sig::POLL: output buffers available - MSG = 3, // sig::POLL: input message available - ERR = 4, // sig::POLL: I/O error - PRI = 5, // sig::POLL: high priority input available - HUP = 6, // sig::POLL: device disconnected + IN = 1, // sig::IO: data input available + OUT = 2, // sig::IO: output buffers available + MSG = 3, // sig::IO: input message available + ERR = 4, // sig::IO: I/O error + PRI = 5, // sig::IO: high priority input available + HUP = 6, // sig::IO: device disconnected }; // Flags used to configure the behavior of a signal handler.