CHANGELOG.rst 6.12 KB
Newer Older
A. Wilcox's avatar
A. Wilcox committed
1
2
3
4
5
6
7
==========================
 Changelog for libgcompat
==========================
:Author:
  * **A. Wilcox**, documentation writer
  * **Contributors**, code
:Copyright:
8
  © 2016-2019 Adélie Linux and contributors.  NCSA open source licence.
A. Wilcox's avatar
A. Wilcox committed
9
10


A. Wilcox's avatar
A. Wilcox committed
11
0.9.0 (2020-07-06)
A. Wilcox's avatar
A. Wilcox committed
12
13
==================

14
15
16
17
18
locale
------

* New module.

19
* Add newlocale and freelocale, which provide a glibc-compatible locale_t ABI.
20
21
  This is necessary for software using the libstdc++ <locale>/<ctype> modules.

22
23
24
25
26
27
28
time
----

* New module.

* Add __strftime_l.

29
30
31
32
33
unistd
------

* Add execv/execve/execvp family of functions to catch exec of /proc/self/exe.

A. Wilcox's avatar
A. Wilcox committed
34
35
36
37
38
wchar
-----

* Add __wcscpy_chk.

A. Wilcox's avatar
A. Wilcox committed
39

A. Wilcox's avatar
A. Wilcox committed
40
0.4.0 (2019-05-03)
A. Wilcox's avatar
A. Wilcox committed
41
42
==================

43
44
45
46
Build system
------------

* Allow building against libobstack.
47
* Fix compatibility with Linux 4.17 and newer.
A. Wilcox's avatar
A. Wilcox committed
48
49
50
51
52
53
* Travis CI is now used.

Documentation
-------------

* README rewritten to conform to Adélie project standards.
54

55
56
57
58
59
malloc
------

* Add mtrace and muntrace.

60
61
62
63
64
pthread
-------

* Add pthread_getname_np.

A. Wilcox's avatar
A. Wilcox committed
65
66
67
68
69
string
------

* Add __strdup.

A. Wilcox's avatar
A. Wilcox committed
70
71
72
73
74
wchar
-----

* Add __wcstol_internal.

A. Wilcox's avatar
A. Wilcox committed
75

A. Wilcox's avatar
A. Wilcox committed
76

A. Wilcox's avatar
A. Wilcox committed
77
0.3.0 (2018-09-21)
78
79
80
81
82
83
84
==================

Build system
------------

* Allow building against libucontext.

Samuel Holland's avatar
Samuel Holland committed
85
86
87
88
89
90
ctype
-----

* Add __ctype_b.


91
92
93
94
95
cxx_thread
----------

* Add __cxa_thread_atexit_impl.

96

A. Wilcox's avatar
A. Wilcox committed
97
98
99
100
math
----

* Add most __*_finite functions, courtesy of Elizabeth Myers.
101
102


103
104
readlink/realpath
-----------------
105

106
* Intercept realpath as well as readlink.
107
* Report EIO on /proc read failure.
108
109
110
* Report ENOSYS on dlsym failure.


A. Wilcox's avatar
A. Wilcox committed
111
112
113
114
115
116
resolv
------

* Add __res_search -> res_search alias.


117
118
119
socket
------

Elizabeth Myers's avatar
Elizabeth Myers committed
120
* Add __poll_chk
A. Wilcox's avatar
A. Wilcox committed
121

A. Wilcox's avatar
A. Wilcox committed
122

123
124
125
126
127
128
stdlib
------

* Add secure_getenv alias to __secure_getenv.


A. Wilcox's avatar
A. Wilcox committed
129
130
131
132
string
------

* Add __strcspn_c2.
133
134
* Add memfrob.
* Add strfry.
A. Wilcox's avatar
A. Wilcox committed
135

136
137
138
139
140
unistd
------

* Add __open_2/__open64_2.

A. Wilcox's avatar
A. Wilcox committed
141

Elizabeth Myers's avatar
Elizabeth Myers committed
142
143
144
145
146
147
malloc
------

* Add malloc_trim


A. Wilcox's avatar
A. Wilcox committed
148
0.2.0 (2018-02-20)
149
==================
150
151
152
153
154
155
156

Build system
------------

* Ensure correct compilation on GCC 4.x.


A. Wilcox's avatar
A. Wilcox committed
157
158
159
160
161
162
163
164
Loader
------

* Catch attempts to exec the loader itself and handle gracefully.

* Fix problems caught by valgrind memcheck.


A. Wilcox's avatar
A. Wilcox committed
165
166
167
168
169
170
malloc
------

* Add __sbrk.


A. Wilcox's avatar
A. Wilcox committed
171
172
173
174
175
176
socket
------

* Add __cmsg_nxthdr.


177
178
179
180
181
182
183
sysctl
------

* Don't build where SYS__sysctl is not defined (at least aarch64), credit to
  Michael Gehring of VoidLinux for finding this error.


184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
Thanks to Samuel Holland for all of the following improvements and additions,
along with documentation improvements and other contributions:


error
-----

* Implement error().


execinfo
--------

* Implement backtrace_symbols_fd.

* Fix return value in backtrace.


grp
---

* Implement fgetgrent_r/getgrent_r.


Loader
------

* Handle programs that have a DT_NEEDED entry for glibc's ld.so.

* Handle when LD_PRELOAD is already set.

* Use the --argv0 option to properly set argv[0] in the target program.

* Ensure the the argument list is terminated with a NULL sentinel.

* Document the details of the loader's implementation.

* Intercept readlink("/proc/self/exe") to return the executable's absolute
  path, instead of musl's path.


math
----

* Add finite() variants.

* Add remaining long double variants of existing functions.


misc
----

* New module.

* Adds __chk_fail, __cxa_at_quick_exit, gnu_dev_major, gnu_dev_makedev,
  and gnu_dev_minor.


netdb
-----

* New module.

* Adds re-entrant (_r) versions of getprotoby[name,number], getprotoent,
  and getservent.


pwd
---

* Correctly implement fgetpwent_r/getpwent_r.


signal
------

* New module.

* Adds __xpg_sigpause.


socket
------

* New module.

* Adds __recv_chk and __recvfrom_chk.


stdio
-----

* Add all (non-wchar) stdio functions from LSB, plus those found in use
  in other applications. Document those functions from LSB as such.

* Use a consistent structure and paramater names for all functions.

* flag == 0 means FORTIFY_SOURCE=1, so the implemented checks should be
  unconditional.

* Add all possible checks without parsing the format string.

* Move functions from wchar.h to their own appropriately-named file.


stdlib
------

* Fix prototype of __realpath_chk.

* Add all strto* functions from LSB, plus the ones that were previously
  incorrectly in string.c.


string
------

* Add all checked string functions from LSB, plus those found in use
  in other applications. Document those functions from LSB as such.

* Use a consistent structure and paramater names for all functions.

* Fix multiple off-by-one errors.

* Use a less hacky and more optimized rawmemchr.


syslog
------

* New module.

* Adds __syslog_chk and __vsyslog_chk.


unistd
------

* New module.

* Adds __confstr_chk, __getcwd_chk, __getgroups_chk, __gethostname_chk,
  __getlogin_r_chk, __getpagesize, __getpgid, __pread_chk, __pread64_chk,
  __readlink_chk, __sysconf, __ttyname_r_chk, and group_member.


utmp
----

* New module.

* Adds stub getutent_r.


337
338


A. Wilcox's avatar
A. Wilcox committed
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
0.1.0 (2017-10-15)
==================

ucontext
--------
* new module

* Adds getcontext(), which always sets errno to ENOSYS and returns -1.


resolv
------
* new module

* Adds res_ninit and res_nclose methods which wrap around standard
  res_init and res_close.


string
------
* Adds strtoll_l and strtoull_l 'locale-aware' methods.  Currently, these
  do nothing but call the non-locale-aware versions as musl does not implement
  `LC_NUMERIC`.


malloc
------
* Adds __libc_memalign which is a thin shim to musl's __memalign.

* Adds __libc_malloc, __libc_calloc, __libc_realloc, and __libc_free which are
  used by some system-level software.  These just call directly to musl's free
  and malloc/calloc/realloc.


math
----
* Adds non-prefixed isinf, isinff, isnan, and isnanf, needed since these are
  implemented as macros in musl.


Build system
------------
* A patch from Daniel James of VoidLinux has been applied, which allows use of
  CC instead of hard-coding `gcc`.


Documentation
-------------
* Updates the README.

* Adds contribution guide, a copy of the license, and this changelog.


pthread
-------
* Adds __pthread_register_cancel and __pthread_unregister_cancel stubs, which
  do nothing because they are not relevant to musl's pthread implementation.

* Adds __register_atfork stub.

* Removes pthread_setname_np since musl now provides it.


pwd
---
* new module

* Adds getpwent_r and fgetpwent_r.


sysctl
------
* new module

* Adds sysctl.