summaryrefslogtreecommitdiff
path: root/src/libbsd.map
blob: fb2888f733dc04ca885421e5feb083926a1178d5 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
LIBBSD_0.0 {
  global:
    arc4random;
    arc4random_stir;
    arc4random_addrandom;

    bsd_getopt;
    optreset;

    errc;
    warnc;
    verrc;
    vwarnc;

    fgetln;
    fmtcheck;
    heapsort;
    humanize_number;

    inet_net_pton; /* XXX: Already provided by glibc, remove. */

    getprogname;
    setprogname;

    strlcpy;
    strlcat;

    setmode;
    getmode;

    vis;
    strvis;
    strvisx;
    unvis;
    strunvis;
    strunvisx;

    /* The following functions are provided via the system libc or libmd
     * implementations. */
    MD5Init;
    MD5Update;
    MD5Pad;
    MD5Final;
    MD5Transform;
    MD5End;
    MD5File;
    MD5FileChunk;
    MD5Data;

  local:
    *;
};

LIBBSD_0.1 {
    strmode;

    __fdnlist; /* Private symbol, but libkvm uses it. */
    nlist;
} LIBBSD_0.0;

LIBBSD_0.2 {
    strtonum;

    strnvis;
    strnunvis;

    dehumanize_number;

    readpassphrase;

    flopen;

    pidfile_open;
    pidfile_write;
    pidfile_close;
    pidfile_remove;

    arc4random_buf;
    arc4random_uniform;
} LIBBSD_0.1;

LIBBSD_0.3 {
    reallocf;
    getpeereid;

    mergesort;
    radixsort;
    sradixsort;

    fpurge;
} LIBBSD_0.2;

LIBBSD_0.4 {
    closefrom;
    expand_number;
} LIBBSD_0.3;

LIBBSD_0.5 {
    fgetwln;
    fparseln;

    /* Introduced in 0.2 as a stub, implemented in 0.5. */
    setproctitle;

    strnstr;

    wcslcat;
    wcslcpy;
} LIBBSD_0.4;

LIBBSD_0.6 {
    /* Exported to cope with the constructor+dlopen+threads mess. */
    setproctitle_init;
} LIBBSD_0.5;

LIBBSD_0.7 {
    getbsize;

    /* This symbol might not be present on some specific systems, such
     * as musl based ones. It might need to be removed on SOVERSION bump,
     * as it cannot be portabily implemented everywhere. */
    funopen;

    reallocarray;

    sl_init;
    sl_add;
    sl_free;
    sl_find;

    _time32_to_time;
    _time_to_time32;
    _time64_to_time;
    _time_to_time64;
    _time_to_long;
    _long_to_time;
    _time_to_int;
    _int_to_time;
} LIBBSD_0.6;

LIBBSD_0.8 {
    explicit_bzero;
} LIBBSD_0.7;

LIBBSD_0.9 {
    flopenat;

    pidfile_fileno;

    strtoi;
    strtou;

    nvis;
    snvis;
    stravis;
    strenvisx;
    strnunvisx;
    strsenvisx;
    strsnvis;
    strsnvisx;
    strsvis;
    strsvisx;
    svis;
} LIBBSD_0.8;

LIBBSD_0.9.1 {
    /* The strnvis() and strnunvis() symbols changed prototype to match
     * the NetBSD implementation. Provided as versioned nodes in 0.9.1, and
     * exposed here explicitly so that we can redirect at compile-time. */
    strnvis_netbsd;
    strnunvis_netbsd;
} LIBBSD_0.9;

LIBBSD_0.10.0 {
    /* These BSD extensions are available on GNU systems, but not on other
     * systems such as Windows or musl libc based ones. */
    vwarn;
    vwarnx;
    warn;
    warnx;
    verr;
    verrx;
    err;
    errx;
} LIBBSD_0.9.1;

LIBBSD_0.11.0 {
    strnvisx;

    recallocarray;
    freezero;

    gid_from_group;
    group_from_gid;
    uid_from_user;
    user_from_uid;
} LIBBSD_0.10.0;