This repository has been archived by the owner on Oct 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libcoopgamma_get_methods.3
65 lines (64 loc) · 1.59 KB
/
libcoopgamma_get_methods.3
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
.TH LIBCOOPGAMMA_GET_METHODS 3 LIBCOOPGAMMA
.SH "NAME"
libcoopgamma_get_methods - List all recognised adjustment method
.SH "SYNOPSIS"
.nf
#include <libcoopgamma.h>
char **libcoopgamma_get_methods(void);
.fi
.P
Link with
.IR -lcoopgamma .
.SH "DESCRIPTION"
Newcomers are advices to postpone learning the
.BR libcoopgamma_get_methods ()
function until they have a functional program.
.P
The
.BR libcoopgamma_get_methods ()
function consults
.BR coopgammad (1)
to construct a list of all adjustment method name
recognised by
.BR coopgammad (1).
.P
For the duration of the function call,
.I SIGCHLD
most neither be ignored nor blocked. It is the
user of this library's responsibility to ensure
this. The
.BR libcoopgamma_get_methods ()
function will not temporarily reset handling of
.I SIGCHLD
itself.
.SH "RETURN VALUES"
Upon successful completion, the
.BR libcoopgamma_get_methods ()
function returns a list of recognised
adjustment method name. The list is terminated
by a
.I NULL
element and will contain no other
.I NULL
elements. Elements in the list are subpointers
of the returned pointer and most not be freed.
The user shall however free the returned pointer,
effectively freeing all elements stored in the list.
On error,
.I NULL
is returned and
.I errno
is set appropriately.
.SH "ERRORS"
The
.BR libcoopgamma_get_methods ()
function may fail for any reason specified for
.BR malloc (3),
.BR realloc (3),
and
.BR libcoopgamma_get_method_and_site (3).
.SH "SEE ALSO"
.BR libcoopgamma_get_method_and_site (3),
.BR libcoopgamma_get_pid_file (3),
.BR libcoopgamma_get_socket_file (3),
.BR libcoopgamma_context_initialise (3)