diff options
| author | Nakidai <nakidai@disroot.org> | 2025-08-30 15:16:25 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2025-08-30 15:16:25 +0300 |
| commit | 7a3999d7d809d6a3c25aeaa05f9acd17113b0709 (patch) | |
| tree | 8f6aa95411a9dd81cae7fa5cd01fc0e2d302bc52 /sami.3 | |
| parent | 793f83080b8eb91f8c70fadc5911d0ea4f9829ff (diff) | |
| download | sami-7a3999d7d809d6a3c25aeaa05f9acd17113b0709.tar.gz sami-7a3999d7d809d6a3c25aeaa05f9acd17113b0709.zip | |
Change API
- now there's no SAMI_recv(), but handler is called each time message is received - children can send messages to their parent, which is obtainable using SAMI_parent()
Diffstat (limited to 'sami.3')
| -rw-r--r-- | sami.3 | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sami.3 b/sami.3 index 371c682..ba6b63b 100644 --- a/sami.3 +++ b/sami.3 @@ -10,17 +10,17 @@ . .In sami.h .Ft "int" -.Fn SAMI_make "SAMI *actor" "SAMI_Handler *handler" "void *arg" +.Fn SAMI_make "SAMI *actor" "SAMI_Handler *handler" . .Ft "int" .Fn SAMI_send "SAMI *actor" "void *buf" "size_t length" . .Ft "int" -.Fn SAMI_recv "void *buf" "size_t length" -. -.Ft "int" .Fn SAMI_kill "SAMI *actor" . +.Ft "SAMI *" +.Fn SAMI_parent "void" +. .Sh DESCRIPTION .Nm is a library @@ -33,12 +33,16 @@ and sockets for message delivering. . .Sh RETURN VALUE -All functions return 0 on success, +Functions usually return 0 on success, and any other number on failure. Consider checking .Xr errno 7 in the latter case. . +.Pp +.Fn SAMI_parent +returns a valid pointer. +. .Sh SEE ALSO .Xr fork 2 , .Xr unix 7 |