Commit Graph

21003 Commits

Author SHA1 Message Date
christos ff905cdb8e add the script I used to convert the FreeBSD code. 2024-01-24 04:14:07 +00:00
christos 85f5e301f5 fix nested extern warnings 2024-01-23 17:24:38 +00:00
christos 3f3b0ded09 move inclusion of <machine/ieee.h> to the ieee source files instead of
including it in math_private.h which is also used by the vax which is not ieee.
2024-01-23 15:45:07 +00:00
christos 89f106fbc2 handle sizeof(off_t) > sizeof(size_t) 2024-01-23 15:32:54 +00:00
christos 37feec7425 Add vax 2024-01-23 15:32:18 +00:00
christos 72f355ee42 fix vax build (unused variable) 2024-01-23 15:31:58 +00:00
christos 844ea6ac6a more annotation for powerpc 2024-01-23 12:23:34 +00:00
kre 10af4d8cb4 Bump libm minor rev (libm.so.0.13 -> libm.so.0.14) after addition of
all the long double functions (with actual implementations).
2024-01-22 15:19:38 +00:00
kre fcd5401592 Simply an overly complex way of saying "0 or 1" into a cleaner version.
While here add a commment about how the __i386__ magic LD80C macro
might no longer work on all other arch's as well (if someone can verify
that it still does, or can fix it so that it still works on i386, but
also works everywhere else, then please remove that XXX comment.
The issue I am (perhaps imagining) is the (uint32_t) cast.
2024-01-22 14:26:18 +00:00
kre 1bb3b9e157 This set of changes seem to be sufficient to make at least the
amd64 port build again after the long double math function infusion
from yesterday.

Feel free (without consulting me, I'm just hacking about) to revert
any of this and do it a better way.

Note: this is not intended to be complete, in particular, in <math.h>
I added prototypes only for the functions that are needed for a
successful build, not all of the new ones...
2024-01-22 12:15:19 +00:00
uwe af45bdc82c snprintb(3): restore empty string in snprintb_m example
Restore the empty string at the end of snprintb_m output that was
accidentally removed along with empty string placeholders in the
format strings.  While here, move that example to be next to its
snprintb counterpart.
2024-01-22 00:11:21 +00:00
uwe 635b447434 snprintb(3): update mmap example
Bring over the prettier version of the mmap format string that we have
in the header file for some time now.  Clarify that the final NUL of
the new format string is supplied by the compiler, g/c explicit final
\0 from the example that had it.
2024-01-21 23:57:49 +00:00
uwe 56fe87ce20 snprintb(3): try to improve narration
Try to make the narration more coherent.  Make the old and new
syntaxes easy to distinguish and go out of our way to highlight that
the old syntax uses 1-based bit positions.
2024-01-21 23:44:30 +00:00
rillig cebd2029a2 snprintb.3: remove empty string literals from examples
Suggested by uwe@, as gaps in bitmasks are quite common and thus
shouldn't clutter the code.
2024-01-21 22:06:46 +00:00
rillig 1d4fa4e59b snprintb.3: fix examples
The first example broke the format string at boundaries that didn't
highlight the structure of the format string and also didn't make it
clear that a few bits were omitted from having descriptions.

The second example contained an off-by-one error for SIXTEEN, which was
actually FIFTEEN.

The snprintb_m example repeated the above off-by-one error, and its
output was shown wrong, due to concatenated escape sequences.
2024-01-21 21:31:23 +00:00
christos cfe182f36b Bring in more long double functions from FreeBSD. 2024-01-21 18:53:15 +00:00
kre c3aea5f47d Unwrap a line which wasn't wrapped before it had an __UNCONST() added
to it, and now that that is gone again, doesn't need wrapping any more.

That line is now unaltered from what it was 3 revs ago (bit for bit).

NFC.
2024-01-21 12:58:10 +00:00
christos dba48cb953 fix more alpha 2024-01-21 00:43:34 +00:00
christos f863b8a944 fix alpha, grr. 2024-01-21 00:35:57 +00:00
christos 0c834cb523 generate strtou.3 from strtoi.3, grammar police 2024-01-20 16:45:07 +00:00
christos 258f56e039 Make the first argument of ip6_str2scopeid const, instead of __UNCONST.
Thanks kre@. While here s/u_int32_t/uint32_t/
2024-01-20 16:18:56 +00:00
christos f1987b28c8 PR/57828: Alejandro Colomar: Prioritize test for ERANGE before testing for
fully consuming the string. Adjust strtonum(3) to behave as before. Document
the order of the tests and sync the man pages (I should really autogenerate
one of the two man pages...)
2024-01-20 16:13:39 +00:00
christos ace5b9b5fe Catch up with all the lint warnings since exit on warning was disabled.
Disable 'missing header declaration' and 'nested extern' warnings for now.
2024-01-20 14:52:45 +00:00
christos a34711bbb2 Add missing headers 2024-01-19 19:55:03 +00:00
christos 9ba017e662 more extern decls 2024-01-19 19:31:41 +00:00
christos a88bd0da18 declare _libc_init() in header. 2024-01-19 19:22:17 +00:00
christos cd771ab073 add lint flags for compiler_rt 2024-01-19 18:45:01 +00:00
christos 689fdc5827 add some const 2024-01-19 18:41:38 +00:00
christos 2072232780 Add lint flags for jemalloc 2024-01-19 18:41:30 +00:00
rin b1652dc39b fixunstf[sd]i_ieee754: Explicitly include stddef.h for size_t
Fix build for mips{,n}64. Note that stddef.h has been implicitly
included via eabi.h for aarch64, on the other hand.
2024-01-05 09:41:58 +00:00
christos 4be2f99d7b tidy up some extern declarations 2024-01-03 18:41:53 +00:00
christos 53e64a7779 pass lint. 2024-01-02 19:27:26 +00:00
christos 559c967b97 Import tzcode 2023d:
localtime.c no longer mishandles TZif files that contain a single
    transition into a DST regime.  Previously, it incorrectly assumed
    DST was in effect before the transition too.  (Thanks to Alois
    Treindl for debugging help.)

    localtime.c's timeoff no longer collides with OpenBSD 7.4.

    The C code now uses _Generic only if __STDC_VERSION__ says the
    compiler is C11 or later.

    tzselect now optionally reads zonenow.tab, to simplify when
    configuring only for timestamps dated from now on.

    tzselect no longer creates temporary files.

    tzselect no longer mishandles the following:

      Spaces and most other special characters in BUGEMAIL, PACKAGE,
      TZDIR, and VERSION.

      TZ strings when using mawk 1.4.3, which mishandles regular
      expressions of the form /X{2,}/.

      ISO 6709 coordinates when using an awk that lacks the GNU
      extension of newlines in -v option-arguments.

      Non UTF-8 locales when using an iconv command that lacks the GNU
      //TRANSLIT extension.

    zic no longer mishandles data for Palestine after the year 2075.
    Previously, it incorrectly omitted post-2075 transitions that are
    predicted for just before and just after Ramadan.  (Thanks to Ken
    Murchison for debugging help.)

    zic now works again on Linux 2.6.16 and 2.6.17 (2006).
2023-12-23 20:48:38 +00:00
jklos b56afa4dc8 Fix building with M68040 and M68060 options. 2023-12-21 06:32:20 +00:00
mrg 6b3ee451d6 make malloc_usable_size() visible with old jemalloc.
it's in <malloc.h> and applications like firefox expect it.

XXX: pullup-10
2023-12-13 23:53:50 +00:00
mlelstv 2d9177bfbe pathconf needs to return EINVAL when the variable is invalid
or cannot be associated with a file. This also needs to be true
when the node doesn't implement the pathconf function at all.
2023-12-11 12:42:18 +00:00
kre 9473af8f9a Fix yet another wording (editing) botch noticed by uwe@ 2023-12-07 23:42:28 +00:00
uwe b03d4c66a4 zic(8): missed a .Ql 2023-12-07 23:21:21 +00:00
kre 058a868134 Fix a couple of (not very likely) memory leaks, reported by enh@google.com
who attributed them:

  the malloc one was reported to Android (as
  https://android-review.googlesource.com/c/platform/bionic/+/2856549)
  by wuhaitao3 <wuhaitao3@xiaomi.corp-partner.google.com>; Chris Ferris
  <cferris@google.com> then spotted the goto nospc one.
2023-12-07 22:33:49 +00:00
kre c62a59b56e Fix a wording botch noticed by uwe@ (and one more smaller one), and
a few more markup issues.   While here, consistemntly use minus when
minus is meant, rather that just using a hyphen.
2023-12-07 20:13:37 +00:00
riastradh 57b4a3d756 pthread: Document the setstack vs setguardsize bug.
Suggest the safe, compatible workaround.
2023-12-07 16:55:01 +00:00
uwe 2f0b3b676b zic(8): more markup fixes
Still need to go over the tables.
2023-12-07 16:16:03 +00:00
kre 82a0628ec4 A couple more (relatively minor) markup fixes. 2023-12-06 21:45:11 +00:00
kre 52b305fe69 More markup fixes. This man page remains exceedingly ugly (particularly
relating to vertical space - which often is missing where it would be
better if it weren't, or is present and wasteful/ugly).
2023-12-06 21:42:01 +00:00
christos 8b64b36896 PR/57757: Izumi Tsutsui: Fix markup errors 2023-12-06 20:01:44 +00:00
riastradh 20941a42e9 pthread: Don't adjust user-allocated stack addresses by guardsize.
PR lib/57721

XXX pullup-10
XXX pullup-9
XXX pullup-8
2023-11-28 02:54:33 +00:00
christos 82eb5ce2b3 Restore original code now that the broken test has been fixed. 2023-11-27 19:46:14 +00:00
christos d5d5b72237 minimize diffs with FreeBSD. 2023-11-19 18:57:11 +00:00
christos 4e48317f57 don't expose extra symbols. 2023-11-15 03:35:04 +00:00
christos 21fd2bf912 provide materialized functions for the ssp overriden inlines 2023-11-15 03:15:28 +00:00