summaryrefslogtreecommitdiff
path: root/CHANGELOG.rst
blob: fbdb762c77ad9eaccf69187bbe3597f3de381ff6 (plain) (blame)
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
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
337
338
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
==========================
 Changelog for libgcompat
==========================
:Author:
  * **A. Wilcox**, documentation writer
  * **Contributors**, code
:Copyright:
  © 2016-2019 Adélie Linux and contributors.  NCSA open source licence.


0.4.0 (201?-??-??)
==================

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

* Allow building against libobstack.
* Fix compatibility with Linux 4.17 and newer.

malloc
------

* Add mtrace and muntrace.

pthread
-------

* Add pthread_getname_np.

wchar
-----

* Add __wcstol_internal.



0.3.0 (2018-09-21)
==================

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

* Allow building against libucontext.

ctype
-----

* Add __ctype_b.


cxx_thread
----------

* Add __cxa_thread_atexit_impl.


math
----

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


readlink/realpath
-----------------

* Intercept realpath as well as readlink.
* Report EIO on /proc read failure.
* Report ENOSYS on dlsym failure.


resolv
------

* Add __res_search -> res_search alias.


socket
------

* Add __poll_chk


stdlib
------

* Add secure_getenv alias to __secure_getenv.


string
------

* Add __strcspn_c2.
* Add memfrob.
* Add strfry.

unistd
------

* Add __open_2/__open64_2.


malloc
------

* Add malloc_trim


0.2.0 (2018-02-20)
==================

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

* Ensure correct compilation on GCC 4.x.


Loader
------

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

* Fix problems caught by valgrind memcheck.


malloc
------

* Add __sbrk.


socket
------

* Add __cmsg_nxthdr.


sysctl
------

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


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.




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.