<feed xmlns='http://www.w3.org/2005/Atom'>
<title>musl/src/conf, branch v1.1.18</title>
<subtitle>musl - an implementation of the standard library for Linux-based systems</subtitle>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/'/>
<entry>
<title>add missing confstr constants</title>
<updated>2016-10-20T20:55:05+00:00</updated>
<author>
<name>Daniel Sabogal</name>
<email>dsabogalcc@gmail.com</email>
</author>
<published>2016-09-04T14:42:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=104e8a0e3b30f6dda6ce9c1b901a6bb8ee046616'/>
<id>104e8a0e3b30f6dda6ce9c1b901a6bb8ee046616</id>
<content type='text'>
the _CS_V6_ENV and _CS_V7_ENV constants are required to be available for use
with confstr. glibc defines these constants with values 1148 and 1149,
respectively.

the only missing (and required) confstr constants are
_CS_POSIX_V7_THREADS_CFLAGS and _CS_POSIX_V7_THREADS_LDFLAGS which remain
unavailable in glibc.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the _CS_V6_ENV and _CS_V7_ENV constants are required to be available for use
with confstr. glibc defines these constants with values 1148 and 1149,
respectively.

the only missing (and required) confstr constants are
_CS_POSIX_V7_THREADS_CFLAGS and _CS_POSIX_V7_THREADS_LDFLAGS which remain
unavailable in glibc.
</pre>
</div>
</content>
</entry>
<entry>
<title>add legacy functions from sysinfo.h duplicating sysconf functionality</title>
<updated>2015-03-05T03:10:01+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2015-03-05T03:10:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=2b42c8cb37a3ef115bd04de8637078e43cd72f37'/>
<id>2b42c8cb37a3ef115bd04de8637078e43cd72f37</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix off-by-one in bounds check in fpathconf</title>
<updated>2014-09-05T18:01:13+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2014-09-05T18:01:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=3bed89aa7456d9fe30e550cb5e21f8911036695b'/>
<id>3bed89aa7456d9fe30e550cb5e21f8911036695b</id>
<content type='text'>
this error resulted in an out-of-bounds read, as opposed to a reported
error, when calling the function with an argument one greater than the
max valid index.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
this error resulted in an out-of-bounds read, as opposed to a reported
error, when calling the function with an argument one greater than the
max valid index.
</pre>
</div>
</content>
</entry>
<entry>
<title>remove unsupported nonstandard sysconf macros and their table entries</title>
<updated>2014-05-19T16:18:16+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2014-05-19T16:18:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=93be56ba88e1e31f4ba9f16a00b28cc9d15634ca'/>
<id>93be56ba88e1e31f4ba9f16a00b28cc9d15634ca</id>
<content type='text'>
some of these may have been from ancient (pre-SUSv2) POSIX versions;
more likely, they were from POSIX drafts or glibc interpretations of
what ancient versions of POSIX should have added (instead they made
they described functionality mandatory and/or dropped it completely).
others are purely glibc-isms, many of them ill-thought-out, like
providing ways to lookup the min/max values of types at runtime
(despite the impossibility of them changing at runtime and the
impossibility of representing ULONG_MAX in a return value of type
long).

since our sysconf implementation does not support or return meaningful
values for any of these, it's harmful to have the macros around;
applications' build scripts may detect and attempt to use them, only
to get -1/EINVAL as a result.

if removing them does break some applications, and it's determined
that the usage was reasonable, some of these could be added back on an
as-needed basis, but they should return actual meaningful values, not
junk like they were returning before.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
some of these may have been from ancient (pre-SUSv2) POSIX versions;
more likely, they were from POSIX drafts or glibc interpretations of
what ancient versions of POSIX should have added (instead they made
they described functionality mandatory and/or dropped it completely).
others are purely glibc-isms, many of them ill-thought-out, like
providing ways to lookup the min/max values of types at runtime
(despite the impossibility of them changing at runtime and the
impossibility of representing ULONG_MAX in a return value of type
long).

since our sysconf implementation does not support or return meaningful
values for any of these, it's harmful to have the macros around;
applications' build scripts may detect and attempt to use them, only
to get -1/EINVAL as a result.

if removing them does break some applications, and it's determined
that the usage was reasonable, some of these could be added back on an
as-needed basis, but they should return actual meaningful values, not
junk like they were returning before.
</pre>
</div>
</content>
</entry>
<entry>
<title>rework sysconf table to treat zero entries as invalid</title>
<updated>2014-05-19T15:19:49+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2014-05-19T15:19:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=ff78355bc11257744759b5005d330e4a7583a4e4'/>
<id>ff78355bc11257744759b5005d330e4a7583a4e4</id>
<content type='text'>
based on patch by Timo Teräs. previously, the value zero was used as a
literal zero, meaning that all invalid sysconf "names", which should
result in sysconf returning -1, had to be explicitly listed. (in
addition, it was not possible for sysconf to set errno to EINVAL, as
there was no distinction between -1 as an error and -1 as a valid
result.)

now, the value 0 is used for invalid/undefined slots in the table and
a new switch table entry is used for returning literal zeros.

in addition, an off-by-one error in checking against the table size is
fixed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
based on patch by Timo Teräs. previously, the value zero was used as a
literal zero, meaning that all invalid sysconf "names", which should
result in sysconf returning -1, had to be explicitly listed. (in
addition, it was not possible for sysconf to set errno to EINVAL, as
there was no distinction between -1 as an error and -1 as a valid
result.)

now, the value 0 is used for invalid/undefined slots in the table and
a new switch table entry is used for returning literal zeros.

in addition, an off-by-one error in checking against the table size is
fixed.
</pre>
</div>
</content>
</entry>
<entry>
<title>add _SC_PHYS_PAGES and _SC_AVPHYS_PAGES extentions to sysconf</title>
<updated>2014-04-15T22:45:21+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2014-04-15T22:45:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=96315d27b0e5000d53e09fb915c5066b3d47d3d2'/>
<id>96315d27b0e5000d53e09fb915c5066b3d47d3d2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>in sysconf, use getrlimit function rather than raw syscall for rlimits</title>
<updated>2014-04-15T22:05:30+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2014-04-15T22:05:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=6cf7d17f5349df9ee4a2d8c8c7c5d01c18385e08'/>
<id>6cf7d17f5349df9ee4a2d8c8c7c5d01c18385e08</id>
<content type='text'>
the syscall is deprecated (replaced by prlimit64) and does not work
correctly on x32. this change mildly increases size, but is likely
needed anyway for newer archs that might omit deprecated syscalls.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the syscall is deprecated (replaced by prlimit64) and does not work
correctly on x32. this change mildly increases size, but is likely
needed anyway for newer archs that might omit deprecated syscalls.
</pre>
</div>
</content>
</entry>
<entry>
<title>avoid linear-time if/else special cases in sysconf</title>
<updated>2014-04-15T17:30:20+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2014-04-15T17:30:20+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=233767b48a083f526557ee39aa1c773efa345972'/>
<id>233767b48a083f526557ee39aa1c773efa345972</id>
<content type='text'>
the previous handling of cases that could not fit in the 16-bit table
or which required non-constant results was extremely ugly and could
not scale. the new code remaps these keys into a contiguous range
that's efficient for a switch statement.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the previous handling of cases that could not fit in the 16-bit table
or which required non-constant results was extremely ugly and could
not scale. the new code remaps these keys into a contiguous range
that's efficient for a switch statement.
</pre>
</div>
</content>
</entry>
<entry>
<title>fix confstr return value</title>
<updated>2014-03-24T21:33:54+00:00</updated>
<author>
<name>Timo Teräs</name>
<email>timo.teras@iki.fi</email>
</author>
<published>2014-02-19T07:40:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=0a8d98285f46f721dabf38485df916c02d6a4675'/>
<id>0a8d98285f46f721dabf38485df916c02d6a4675</id>
<content type='text'>
per the specification, the terminating null byte is counted.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
per the specification, the terminating null byte is counted.
</pre>
</div>
</content>
</entry>
<entry>
<title>correct the sysconf value for RTSIG_MAX</title>
<updated>2013-09-20T05:49:03+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2013-09-20T05:49:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=d8e283df58eb8bff1aa2f8a99347e294c7f67cb9'/>
<id>d8e283df58eb8bff1aa2f8a99347e294c7f67cb9</id>
<content type='text'>
this is the number of realtime signals available, not the maximum
signal number or total number of signals.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
this is the number of realtime signals available, not the maximum
signal number or total number of signals.
</pre>
</div>
</content>
</entry>
</feed>
