about summary refs log tree commit diff
path: root/sami.3
blob: ba6b63be005fd1ad6a09bc43b84ba7ca6a0106f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.Dd August 29, 2025
.Dt SAI 3
.Os
.
.Sh NAME
.Nm sami
.Nd simple actor model implementation
.
.Sh SYNOPSIS
.
.In sami.h
.Ft "int"
.Fn SAMI_make "SAMI *actor" "SAMI_Handler *handler"
.
.Ft "int"
.Fn SAMI_send "SAMI *actor" "void *buf" "size_t length"
.
.Ft "int"
.Fn SAMI_kill "SAMI *actor"
.
.Ft "SAMI *"
.Fn SAMI_parent "void"
.
.Sh DESCRIPTION
.Nm
is a library
for handling actors.
It uses
.Xr fork 2
for making actors,
and
.Xr unix 7
sockets for message delivering.
.
.Sh RETURN VALUE
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
.
.Sh AUTHORS
.An Nakidai Perumenei Aq Mt nakidai@disroot.org