hare

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

commit 2df85f435b0a78f122f03b92757eb17f8506764e
parent 20f14a0d4b54596eea6a00d023549c902cb18ae0
Author: Tom Lebreux <me@tomlebreux.com>
Date:   Sat, 18 Feb 2023 08:31:05 -0500

net: add getflags

Signed-off-by: Tom Lebreux <me@tomlebreux.com>

Diffstat:
Mnet/msg.ha | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/net/msg.ha b/net/msg.ha @@ -54,6 +54,11 @@ export fn setflags(msg: *msghdr, flags: int) void = { msg.native.msg_flags = flags; }; +// Get flags for this message. +export fn getflags(msg: *msghdr) int = { + return msg.native.msg_flags; +}; + // Adds a control message of the desired length to a [[msghdr]], returning a // buffer in which the ancillary data may be written in a domain-specific // format.