Commit Graph

9708 Commits

Author SHA1 Message Date
christos
3504287a90 fix bug in previous change (sz should be the size of the newly allocated
buffer).
2013-12-25 19:42:23 +00:00
wiz
e033636c5e Sort errors. Use parentheses instead of Pq in normal text. 2013-12-25 02:49:52 +00:00
dholland
d5c275e596 typo 2013-12-25 00:58:50 +00:00
dholland
efb018a64b Rewrite for clarity and add an example. 2013-12-24 22:31:11 +00:00
christos
3d0abaffba - don't clobber hp in the RES_USE_INET6 case
- increment naddrs in the yp case
- don't use __hostalias(), it is not thread-safe.
2013-12-22 02:45:16 +00:00
christos
a296e15ea3 this is supposed to be re-entrant, call don't call __hostalias that uses
a static buffer.
2013-12-22 02:40:48 +00:00
joerg
06ad76dac8 Only apply -fno-tree-vrp for GCC. 2013-12-19 22:20:01 +00:00
rmind
4aae4db7db Add shm_open(3) and shm_unlink(3) to support POSIX shared memory objects.
They are implemented using tmpfs (mounted at /var/shm).

Discussed on tech-{kern,userlevel} (quite a while ago).
2013-12-19 19:11:50 +00:00
christos
e73d0381b5 It's been many years since realloc(NULL, size) == malloc(size). Also don't
destroy pointers on allocation errors so someone can free them later.
2013-12-14 18:04:56 +00:00
christos
4008ee50a3 knf, reduce pointer gymnastics 2013-12-14 18:04:00 +00:00
christos
dd8afc980f time_t_{min,max} are only used in localtime.c 2013-12-13 10:37:24 +00:00
christos
71b51eb841 add a cast for sparc64 where int_fast32_t is long (should it be?), and
time_t is int32_t (for compat)
2013-12-13 10:34:47 +00:00
joerg
75a5993e4d Moved to src/common. 2013-12-11 01:29:29 +00:00
joerg
aceb213538 Allow kernel code to access constant databases by moving cdbr(3) and the
required mi_vector_hash(3) into src/common.
2013-12-11 01:24:08 +00:00
christos
2c96d15abe CID 1135779: Fix resource leak 2013-12-10 20:58:45 +00:00
wiz
d860f590d4 Fix typo ("then" instead of "than") 2013-12-09 09:35:16 +00:00
dholland
79ecfd8450 add note about gets() 2013-12-08 21:29:15 +00:00
joerg
fcff7df126 Add cdbr_open_mem. 2013-12-05 21:17:23 +00:00
joerg
094e2c7925 Don't include bswap for ARM right now, the routines require ARMv6.
Separate the soft-float code and don't include it in the libgcc case.
2013-12-03 16:14:50 +00:00
joerg
baf8298edf Add ARM (EABI) specific sources. Split off code that requires C11,
unwind support in libc or overlaps with soft-float in preparation for
using compiler-rt in the non-clang case.
2013-12-03 02:28:51 +00:00
lneto
c4a02e0a12 changed lua_Number to int64_t 2013-12-02 04:39:10 +00:00
christos
b605a13ba6 - centralize opening of regular and temp files to avoid code duplication
- don't cast malloc
- use malloc sizeof(*var) instead of sizeof(type)
2013-12-01 00:22:48 +00:00
joerg
828e70428b fabsl alias. 2013-11-30 22:39:04 +00:00
joerg
526051f644 Use PLT_SYM. 2013-11-30 20:54:14 +00:00
joerg
d0dcd65c88 Use PLT_SYM. 2013-11-30 20:20:42 +00:00
joerg
6a37a8bcd1 Add fabsl alias if necessary. 2013-11-29 22:15:26 +00:00
khorben
cb0d35143e The document date was not updated as it should have been. 2013-11-28 03:45:31 +00:00
khorben
c45aa5be46 Fixed a typo in the example code for select(2) 2013-11-28 02:46:37 +00:00
christos
46b322ca46 No need for bzero, memset provides it. 2013-11-24 03:50:17 +00:00
jakllsch
40814e46f2 Remove now-non-existant bzero.S from sources list. 2013-11-23 22:23:31 +00:00
martin
e2f095e02f Fix very stupid typo 2013-11-23 11:40:56 +00:00
martin
1751681322 Fix a cast from the lint cleanup that made small exponents (i.e. values < 1)
sign extend wrong and overflow, causing an underflow in all 128 bit sqrt
calculations.
2013-11-22 17:04:24 +00:00
christos
c64e72248f switch from circleq to tailq, from FreeBSD 2013-11-22 16:25:51 +00:00
martin
60fdeb717f Make ext_fraclm and ext_frachm parts of the long double mantissa optional
in generic code
2013-11-21 14:14:13 +00:00
martin
acdd726fe5 PR 48384: reorganize struct ieee_ext for sparc64 to only use a high/low
part for the mantissa.
Adjust arch specific code accordingly.
2013-11-20 22:22:20 +00:00
wiz
c0e2590a8c Remove annoying comma and sort SEE ALSO. 2013-11-14 00:13:41 +00:00
christos
fad7083044 PR/48379: mention kqueue functionality 2013-11-13 23:58:51 +00:00
joerg
367a793559 Sort out relationship with crt0.o on major bump. 2013-11-10 20:59:27 +00:00
njoly
1efda77ecf Add utimens/lutimens man pages links. 2013-11-09 13:05:59 +00:00
christos
baa7071088 we don't support stpncpy until gcc does 2013-11-07 02:01:42 +00:00
tron
27c36eab53 Fix build problems. 2013-11-06 21:05:27 +00:00
christos
eb33cee45c handle old gcc 2013-11-06 16:58:58 +00:00
christos
c15ffc1416 add stp{,n}cpy 2013-11-06 16:31:08 +00:00
christos
cd2724da71 fix doc for strcpy, strcat
add stp{,n}cpy
2013-11-06 16:30:55 +00:00
christos
1fd1820dad simplify 2013-11-06 16:30:27 +00:00
christos
c67d63d207 fix old style decls 2013-11-02 23:54:04 +00:00
wiz
acfbbe39c1 Try improving the description. 2013-10-31 00:30:14 +00:00
mrg
a078c85622 convert to ANSI C definitions. 2013-10-28 01:06:36 +00:00
joerg
2f95103bdc Add entries for ctor/dtor switch. 2013-10-24 19:37:35 +00:00
matt
9818090a90 Reduce amount of casts and make LP64 safe. 2013-10-22 08:08:51 +00:00
skrll
c78bffbcda Fix bug introduced in revision 1.13 which meant longjmp would never
work on EABI where VFP didn't exist.

Hi gimpy!
2013-10-21 08:28:14 +00:00
wiz
db0dcb5a00 Minor fixes. 2013-10-19 23:34:48 +00:00
christos
e29c34aa52 document the scopeid functions 2013-10-19 19:56:56 +00:00
christos
1f484a2734 use new constants 2013-10-19 15:47:02 +00:00
christos
c2541c7c76 add inet6_scopeid 2013-10-19 00:08:34 +00:00
christos
9912eb3f0e bump for scopeid functions 2013-10-19 00:06:50 +00:00
mrg
23d3e330cb convert to full ANSI C. 2013-10-18 02:19:12 +00:00
christos
fc8781bab9 Avoid casting gymnastics that lead to pointer aliasing by introducing an
inline function.
2013-10-17 23:58:05 +00:00
christos
b9ba14885c remove always inline because new gcc bitches. 2013-10-17 23:56:17 +00:00
njoly
349036b521 Change mknodat(2) device argument type from uint32_t to dev_t.
Adds needed extra PAD argument for 64bit alignment, and libc wrapper.
2013-10-17 18:01:11 +00:00
njoly
a837ea1a5b Adjust needed includes for fchmodat/mkdirat/mkfifoat/mknodat/fstatat
syscalls.
2013-10-15 11:43:21 +00:00
joerg
aa6e9499ca Rename USE_LIBGCC to HAVE_LIBGCC and retry using it as flag on unwind.h. 2013-10-14 16:00:16 +00:00
joerg
d06922ddf4 Include compiler-rt and libunwind in libc for Clang/x86 builds. 2013-10-14 01:30:21 +00:00
ast
9994c709c8 Fixed spelling of 'appeared'. 2013-10-05 21:24:36 +00:00
njoly
6c208a44f4 Add missing El macro. 2013-10-05 09:18:56 +00:00
christos
fda5f877e5 prefix compat with __ in case __dso_hidden is not available 2013-10-04 21:07:37 +00:00
christos
ca2d95d15f avoid linker warning for compat symbols that are used internally in libc,
by introducing a hidden compat_foo() function, using that internally in
libc, and exposing foo as a strong alias to compat_foo(). I am open for
better ideas.
2013-10-04 20:49:16 +00:00
mlelstv
6bd854d718 Don't return 0x1.0p31 for every input value 2^N.
There is also no need to special case the value 1.
2013-09-30 19:32:14 +00:00
pooka
f42f517708 Make compile with -DNO_FLOATING_POINT 2013-09-23 12:41:37 +00:00
apb
b2b514d90a Attempt to clarify that fsync() is like fsync_range() with the
FFILESYNC flag but not the FDISKSYNC flag.

Add a paragraph of weasel words about how writing to a permanent
storage device does not necessarily write to permanent storage media
within that device.

Move the description of FDISKSYNC into the same list as FDATASYNC
and FFILESYNC.

Change the order of paragraphs or sentences in an attempt to
improve the flow.
2013-09-22 10:02:05 +00:00
christos
33d9f9e08d Welcome to tzcode 2013e:
Changes affecting API

    The 'zic' command now outputs a dummy transition when far-future
    data can't be summarized using a TZ string, and uses a 402-year
    window rather than a 400-year window.  For the current data, this
    affects only the Asia/Tehran file.  It does not affect any of the
    time stamps that this file represents, so zdump outputs the same
    information as before.  (Thanks to Andrew Main (Zefram).)

    The 'date' command has a new '-r' option, which lets you specify
    the integer time to display, a la FreeBSD.

    The 'tzselect' command has two new options '-c' and '-n', which lets you
    select a zone based on latitude and longitude.

    The 'zic' command's '-v' option now warns about constructs that
    require the new version-3 binary file format.  (Thanks to Arthur
    David Olson for the suggestion.)

    Support for floating-point time_t has been removed.
    It was always dicey, and POSIX no longer requires it.
    (Thanks to Eric Blake for suggesting to the POSIX committee to
    remove it, and thanks to Alan Barrett, Clive D.W. Feather, Andy
    Heninger, Arthur David Olson, and Alois Treindl, for reporting
    bugs and elucidating some of the corners of the old floating-point
    implementation.)

    The signatures of 'offtime', 'timeoff', and 'gtime' have been
    changed back to the old practice of using 'long' to represent UT
    offsets.  This had been inadvertently and mistakenly changed to
    'int_fast32_t'.  (Thanks to Christos Zoulos.)

    The code avoids undefined behavior on integer overflow in some
    more places, including gmtime, localtime, mktime and zdump.

  Changes affecting the zdump utility

    zdump now outputs "UT" when referring to Universal Time, not "UTC".
    "UTC" does not make sense for time stamps that predate the introduction
    of UTC, whereas "UT", a more-generic term, does.  (Thanks to Steve Allen
    for clarifying UT vs UTC.)

  Data changes affecting behavior of tzselect and similar programs

    Country code BQ is now called the more-common name "Caribbean Netherlands"
    rather than the more-official "Bonaire, St Eustatius & Saba".

    Remove from zone.tab the names America/Montreal, America/Shiprock,
    and Antarctica/South_Pole, as they are equivalent to existing
    same-country-code zones for post-1970 time stamps.  The data for
    these names are unchanged, so the names continue to work as before.

  Changes affecting code internals

    zic -c now runs way faster on 64-bit hosts when given large numbers.

    zic now uses vfprintf to avoid allocating and freeing some memory.

    tzselect now computes the list of continents from the data,
    rather than have it hard-coded.

    Minor changes pacify GCC 4.7.3 and GCC 4.8.1.

  Changes affecting the build procedure

    The 'leapseconds' file is now generated automatically from a
    new file 'leap-seconds.list', which is a copy of
    <ftp://time.nist.gov/pub/leap-seconds.list>.
    A new source file 'leapseconds.awk' implements this.
    The goal is simplification of the future maintenance of 'leapseconds'.

    When building the 'posix' or 'right' subdirectories, if the
    subdirectory would be a copy of the default subdirectory, it is
    now made a symbolic link if that is supported.  This saves about
    2 MB of file system space.

    The links America/Shiprock and Antarctica/South_Pole have been
    moved to the 'backward' file.  This affects only nondefault builds
    that omit 'backward'.

  Changes affecting documentation and commentary

    Changes to the 'tzfile' man page

      It now mentions that the binary file format may be extended in
      future versions by appending data.

      It now refers to the 'zdump' and 'zic' man pages.

    Changes to the 'zic' man page

      It lists conditions that elicit a warning with '-v'.

      It says that the behavior is unspecified when duplicate names
      are given, or if the source of one link is the target of another.

      Its examples are updated to match the latest data.

      The definition of white space has been clarified slightly.
      (Thanks to Michael Deckers.)

    Changes to the 'Theory' file

      There is a new section about the accuracy of the tz database,
      describing the many ways that errors can creep in, and
      explaining why so many of the pre-1970 time stamps are wrong or
      misleading (thanks to Steve Allen, Lester Caine, and Garrett
      Wollman for discussions that contributed to this).

      The 'Theory' file describes LMT better (this follows a
      suggestion by Guy Harris).

      It refers to the 2013 edition of POSIX rather than the 2004 edition.

      It's mentioned that excluding 'backward' should not affect the
      other data, and it suggests at least one zone.tab name per
      inhabited country (thanks to Stephen Colebourne).

      Some longstanding restrictions on names are documented, e.g.,
      'America/New_York' precludes 'America/New_York/Bronx'.

      It gives more reasons for the 1970 cutoff.

      It now mentions which time_t variants are supported, such as
      signed integer time_t.  (Thanks to Paul Goyette for reporting
      typos in an experimental version of this change.)

      (Thanks to Philip Newton for correcting typos in these changes.)

    Documentation and commentary is more careful to distinguish UT in
    general from UTC in particular.  (Thanks to Steve Allen.)

    Add a better source for the Zurich 1894 transition.
    (Thanks to Pierre-Yves Berger.)

    Update shapefile citations in tz-link.htm.  (Thanks to Guy Harris.)
2013-09-20 19:06:54 +00:00
christos
4fd46030a6 look in the right place for the modules of compat binaries 2013-09-19 21:19:13 +00:00
christos
8bdd0253b8 Pass MLIBDIR to CPPFLAGS. 2013-09-19 21:18:17 +00:00
joerg
db0a20e19e GC put16.
XXX Use sys/endian.h
2013-09-14 13:05:51 +00:00
njoly
0336046eb1 Add needed sys/stat.h include for utimens functions. 2013-09-14 10:41:18 +00:00
nakayama
c7b602785c Redo previous to fix build break. 2013-09-14 05:38:00 +00:00
joerg
bdfde3da9a Redo the locale cache to be constant. It now contains the localeconv()
data and which LC_MONETARY and LC_NUMERIC values it is derived from.
In newlocale(3) and setlocale(3), check for the existing entries and on
miss, create a new entry. This is currently not using a lock for the
list as the worst case is a small memory leak.
2013-09-13 13:13:32 +00:00
joerg
4d12bfcd15 Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is small
vs big PIC mode. Retire -DPIC and -DBIGPIC.
2013-09-12 15:36:14 +00:00
joerg
1bf0d67629 NetBSD certainly supports TLS in static applications if it supports TLS
on the platform at all.
2013-09-12 15:35:15 +00:00
tron
1ad2891b6d Don't scrub the environment unless we are going to change it. This should
prevent crashes in applications which carefully and manually construct
a temporary environment and later restore the original environment
like Emacs 24.

Problem reported by Thomas Klausner on "pkgsrc-users" mailing list.
2013-09-09 10:21:28 +00:00
matt
66ad0cf771 detect whether hw divide is present. 2013-09-08 13:15:53 +00:00
matt
98efa985ed Detect presence of hardware divide. 2013-09-08 12:11:56 +00:00
yamt
cfc4d5466a document MD ways to access private data for some platforms 2013-09-06 17:54:09 +00:00
pooka
0c778f0d54 Avoid strict-alias problem flagged by certain compilers (e.g. Centos one):
libc/gen/utmpx.c:89: error: dereferencing pointer 'otv' does break strict-aliasing rules

reviewed by Christos (thanks!)
2013-09-05 17:35:11 +00:00
matt
df25d88db7 Fix the .cfi correctly. 2013-09-04 23:08:29 +00:00
htodd
3bf56cd237 Fix build by matching .cfi/#if. 2013-09-04 22:38:09 +00:00
matt
cb89adbb61 only emit cfi if __ARM_EABI__ && __UNWIND_TABLES__ 2013-09-04 21:17:15 +00:00
ryoon
27e03817f7 Fix typos from FreeMiNT's db-1.86 patch. 2013-09-04 13:03:22 +00:00
matt
2a674d4fc6 Use less got, add END(), make thumb tolerant. 2013-09-03 00:30:19 +00:00
joerg
08a6753cbd Missing alias for strerror_l. 2013-09-02 07:59:32 +00:00
matt
bff961dda2 Use a constructor to get the cache_info.
However memset can be called before the constructor is called, just treat
those as simple fills.
Add CACHE_INFO_DCACHE_LINE_SIZE to assym.h and use it
2013-08-30 21:28:59 +00:00
riastradh
719254e9b5 Bump libc minor for consttime_memequal and explicit_memset. 2013-08-28 18:01:22 +00:00
riastradh
1239c2bb08 Publish explicit_memset and consttime_memequal in userland libc.
Remove the double-underscore from the userland versions, and do the
weak alias dance instead, now that these are public parts of libc.

As discussed on tech-userlevel:

https://mail-index.netbsd.org/tech-userlevel/2013/06/24/msg007843.html
(option 3)
2013-08-28 17:47:07 +00:00
riastradh
495fdb7e9a Make explicit_memset match memset's return value. 2013-08-28 15:46:23 +00:00
riastradh
cc79193075 Fix sense of consttime_memequal and update all callers.
Now it returns true (nonzero) to mean equal and false (zero) to mean
inequal, as the name suggests.

As promised on tech-userlevel back in June:

https://mail-index.netbsd.org/tech-userlevel/2013/06/24/msg007843.html
2013-08-28 15:24:41 +00:00
christos
4d322dedff move the host file getbyname and getbyaddr functions to sethostent.c so
that they are in a separate file from the dns ones in order for libhack
to use them.
2013-08-27 09:56:12 +00:00
skrll
b0df966c1e Whitespace. 2013-08-24 07:12:12 +00:00
matt
7d46aa31f0 Add IEEE 754 versions of
fixdfdi.c fixsfdi.c fixunsdfdi.c fixunssfdi.c
	floatdidf.c floatdisf.c floatundidf.c floatundisf.c
These don't FP so are well suited to softfloat implementation.
2013-08-24 00:51:48 +00:00
matt
809bd8df99 Add IEEE 754 versions of __float{,}disf which use no floating point. 2013-08-23 17:41:03 +00:00
matt
0ec618ca27 Add __floatunsi{sd}f for IEEE754.
Unlike the quad versions, these don't use floating point.
2013-08-23 16:01:35 +00:00
christos
d8e9352de5 get rid of bogus + 1 2013-08-22 10:04:28 +00:00
matt
5f4e9e418a divide.S need -marm 2013-08-21 03:09:39 +00:00
matt
67f92d5a99 If not earmv7, use -marm on all assembly files 2013-08-21 03:09:08 +00:00
matt
8538835a75 Add -marm to those sources who aren't thumb friendly. 2013-08-21 03:05:35 +00:00
joerg
a5d934954f Disable -w for lint again. It clearly creates more issues than it ever
solved.
2013-08-20 23:19:28 +00:00
joerg
52b1859854 Extract the data for nl_langinfo directly from the corresponding
part implementation using a category/offset table.
2013-08-20 19:58:30 +00:00
joerg
a5358f3607 Remove most LC_CTYPE specific parts of locale.cache. 2013-08-19 22:43:28 +00:00
matt
8caf10303e Put the startup code in .text.startup 2013-08-19 22:14:37 +00:00
matt
f163a9dc44 Group all syscalls together. 2013-08-19 22:13:34 +00:00
matt
2cf5e9962b Use _INVOKE_CERROR() and movs 2013-08-19 22:11:50 +00:00
matt
538e5fbc35 Always compile as ARM even if -mthumb is given. 2013-08-19 22:10:51 +00:00
joerg
8b770def41 Missing locale specific change. 2013-08-19 20:41:15 +00:00
joerg
7efdee83f2 Add strerror_l. 2013-08-19 13:03:12 +00:00
joerg
6dd204a623 GC __indr_reference wrappers. 2013-08-19 10:59:39 +00:00
joerg
325fca1539 Shut up lint. 2013-08-19 09:12:58 +00:00
joerg
9c11b12444 Add nl_langinfo_l, catopen_l and wcsftime_l. 2013-08-19 08:03:33 +00:00
christos
2c0b172d86 fix gethostbyaddr prototype per TOG. 2013-08-19 07:18:42 +00:00
joerg
2933c53464 Rename fixup to update_global to better reflect the purpose.
Remove the various Current pointers, they are implementation internals
that shouldn't be leaked. Remove _CATEGORY_DEFAULT related handling and
directly pick the implemenation pointer from the C locale.
Merge the C locale data into global_locale.c with the exception of
_DefaultRuneLocale. Mark that one hidden. Move _RUNE_LOCALE and
_CITRUS_CTYPE into multibyte.h and pick up the correct rl_citrus_ctype
for non-default locales.
2013-08-18 20:03:48 +00:00
skrll
e1e1d514de Revert previous. 2013-08-18 16:55:47 +00:00
wiz
47f6874b73 Update comment. 2013-08-18 10:40:06 +00:00
christos
5211d3a5ee getnameinfo is now thread-safe so remove bugs section. 2013-08-18 10:00:57 +00:00
christos
298ec155a2 appease lint. 2013-08-18 09:57:16 +00:00
skrll
ece6044b61 Only add in __aeabi_read_tp.S when building for earm. 2013-08-18 07:57:29 +00:00
joerg
8c3abf72ef Remove empty file. 2013-08-17 18:48:01 +00:00
matt
3216032c71 Enforce that this must be not compiled using Thumb1 2013-08-17 01:08:35 +00:00
matt
d0837c3349 Thumbify & add END 2013-08-17 01:07:45 +00:00
matt
2fa2fc254f Add END 2013-08-16 23:20:59 +00:00
matt
a54ea9aa42 Save r3 instead of r4 when calling CERROR in thumb mode. 2013-08-16 22:30:28 +00:00
matt
14df2d6c20 thumbify and add END 2013-08-16 22:28:05 +00:00
matt
3243e35bad Thumbify & optimize a little 2013-08-16 22:27:32 +00:00
matt
f013dd5175 Use _INVOKE_CERROR
use stmia instead of two str
add END
2013-08-16 22:21:59 +00:00
matt
9c2cd4b10a Rework SYSTRAP for thumb.
Add END to PSEUDO_NOERROR and PSEUDO
2013-08-16 22:20:49 +00:00
matt
9ba4e12cec Make _libc_arm_fpu_present hidden 2013-08-16 17:09:27 +00:00
christos
02dd244775 Add not advertised reentrant functions: {get,set,end}hostent_r,
gethostbyname{,2}_r, gethostbyaddr_r. Make getnameinfo(3) use
gethostbyaddr_r(3) so it is re-entrant (ahem __ypdomain). These
are not being advertised because there is a bunch of different
implementation of them that have a variety of type signatures.

If people want to follow someone's implementation, it is now easy.
2013-08-16 15:27:12 +00:00
christos
aef0332e31 CID 1060853: Negative array index read (REVERSE_NEGATIVE) 2013-08-06 05:48:39 +00:00
wiz
22815a188d Use more markup and improve table formatting. 2013-08-02 20:13:09 +00:00
elric
845f0d2fb7 Update accept(2) to indicate that paccept honours SOCK_NOSIGPIPE in its
flags argument.
2013-08-02 14:10:46 +00:00
matt
29673540c6 Use vmrs instead of mrc 2013-08-02 02:07:00 +00:00
matt
14480f30a0 Only include <arm/aeabi.h> when __ARM_PCS_VFP is defined. 2013-08-01 23:21:19 +00:00
matt
f4797bbdbc Make sure to <arm/aeabi.h> if we are doing using EABI. 2013-08-01 22:18:50 +00:00
matt
3eafa9878b CERROR is now hidden so no need to call it via the PLT 2013-08-01 05:54:24 +00:00
matt
31fc835fe9 Make __minbrk, __curbrk, and CERROR hidden and avoid using the GOT to access
them.
2013-08-01 05:32:33 +00:00
joerg
49cecb845d Don't depend on implicit rounding from non-integral float constant. 2013-07-30 15:30:37 +00:00
joerg
02bc918a66 Don't pass assembler flags to cpp for genassym. 2013-07-30 15:28:47 +00:00
njoly
9b6bbe2755 Add mknodat(2) specific errors. 2013-07-30 13:45:38 +00:00
njoly
31ec74aafc Add mkfifoat(2) specific errors. 2013-07-30 13:15:07 +00:00
njoly
a8ca9489d6 Add fchownat(2) specific errors. 2013-07-30 12:38:16 +00:00
skrll
c026930a7e include namespace.h - this fixes 48091 2013-07-30 10:47:44 +00:00
njoly
3d23719d01 Add chmodat(2) specific errors. 2013-07-29 19:18:37 +00:00
njoly
ff85dd2c24 Add openat(2) specific errors. 2013-07-29 18:37:16 +00:00
njoly
c37d15ffcf Add utimensat(2) specific errors. 2013-07-29 14:34:59 +00:00
wiz
9a6c0ab37a Bump date for previous. 2013-07-29 11:49:31 +00:00
njoly
3e084f2c58 Add symlinkat(2) specific errors. 2013-07-29 11:40:04 +00:00
njoly
2580dac907 Add readlinkat(2) specific errors. 2013-07-28 21:24:12 +00:00
njoly
5376926384 Add linkat(2) specific errors. 2013-07-28 18:40:40 +00:00
njoly
d878899f75 Add fstatat(2) specific errors. 2013-07-28 15:46:34 +00:00
njoly
82798aec15 Add mkdirat(2) specific errors. 2013-07-28 14:38:25 +00:00
njoly
85cc963274 Add unlinkat(2) specific errors. 2013-07-28 13:53:04 +00:00
njoly
dcea1bf790 Add renameat(2) specific errors. 2013-07-28 10:24:59 +00:00
wiz
d3cdb3f120 Fix punctuation formatting and sort errors. 2013-07-28 09:27:07 +00:00
njoly
53aa452fce Adjust EFAULT error description to use arguments name from synopsis. 2013-07-28 09:07:55 +00:00
matt
7c78a65eeb Fix some more CERROR inversions 2013-07-25 22:08:15 +00:00
matt
10392817ff Only jump to CERROR if carry is set, not clear. 2013-07-24 15:38:07 +00:00
skrll
dd5eecf954 Bump date for previous. 2013-07-24 11:54:04 +00:00
skrll
9c3b844c69 Clarify msgsz. 2013-07-24 11:42:50 +00:00
msaitoh
56e70cb375 Both increment_overflow() and normalize_overflow() have two different
declarations. One must be *32(). Fixes compile error observed on sparc64.
2013-07-22 04:55:09 +00:00
wiz
a5684d07dd Use Mt for email addresses. 2013-07-20 21:39:55 +00:00
matt
af4aa0e2b7 Don't use the fs* variants, just use the f* ones. 2013-07-19 22:32:04 +00:00
matt
8162b56a77 Adjust for coldfire 2013-07-18 21:37:47 +00:00
matt
78e6d1f298 Remove hardfloat now that it's someplace else. 2013-07-18 21:36:37 +00:00
matt
9c8222884d Fix typo. Don't define map if it isn't used. 2013-07-18 21:36:08 +00:00
matt
097c4bc4f9 Cleanup. hardfloat stuff is now in its own directory 2013-07-18 21:34:33 +00:00
matt
5ef4c1b707 Move hardfloat support to its own directory 2013-07-18 21:31:22 +00:00
matt
7f6ec7c998 Coldfire doesn't do FLOATX80 2013-07-18 21:30:40 +00:00
matt
a66ddcbe13 Add the Makefile 2013-07-18 21:29:31 +00:00
matt
6125de07bf Update to compile on coldfire. 2013-07-18 21:29:08 +00:00
matt
a25010752c Add for softfloat compatibility 2013-07-18 21:25:11 +00:00
matt
003bb39b53 ${MACHINE_ARCH} != "m68000" --> ${MACHINE_ARCH} == "m68k" 2013-07-18 21:19:50 +00:00
matt
434ca5fbec Use stack adjustment in the lnk instruction to adjust the stack.
Saves one word on the following moveml
2013-07-18 21:18:36 +00:00
matt
9bc4e22366 Make __curbrk & __minbrk hidden. 2013-07-18 12:27:01 +00:00
matt
3aae98db4e Remove non-__ELF__ defines 2013-07-18 12:21:52 +00:00
matt
0bcd9d746a Use pcrel access and avoid GOT entries. Restructure a little to be more
efficient.
2013-07-18 12:20:41 +00:00
matt
90b4c890b1 Add more softfloat compatible functions 2013-07-18 12:05:30 +00:00
christos
2361750063 remove "register" in new code
fix backwards check for overflow
2013-07-17 23:09:26 +00:00
matt
88723221e0 Missed these. Convert to motorola format. 2013-07-17 21:29:01 +00:00
christos
a37624b5b0 welcome to 2013d 2013-07-17 20:13:04 +00:00
matt
c1bc7ededb Use __HAVE_FPU__ instead __HAVE_68881__ 2013-07-17 06:43:32 +00:00
matt
d35c388600 Move the hardfloat stuff to its own directory.
Rewrite fp{get,set}{mask,round,sticky} in C
2013-07-17 06:39:06 +00:00
matt
7a54509455 Use a more portable series of instructions. 2013-07-17 04:57:55 +00:00
matt
a4ef47e089 Use a more compact instruction sequence that also works on coldfire 2013-07-17 04:56:14 +00:00
matt
4c5ed3b22b Use assym.h 2013-07-17 03:01:27 +00:00
matt
387bfc7df7 Add genassym / assym.h support 2013-07-17 01:41:17 +00:00
matt
2d913a7c7d Use SYSTRAP.
Don't use the PLT to call CERROR
Use LEA_LCL / GOT_SETUP
Remove non-__ELF__ code.
Make __minbrk and __curbrk hidden and avoid using the GOT for them.
Convert to motorola syntax.
2013-07-16 23:00:15 +00:00
matt
5c5fa67e4a Use SYSTRAP
Use a branch for CERROR (avoid the PLT)
2013-07-16 22:20:35 +00:00
matt
4a2ab9f9a7 Add END(func) 2013-07-16 22:19:37 +00:00
matt
d4d3821c9c Add END(func)
Use SYSTRAP
2013-07-16 22:19:16 +00:00
matt
e198e9ac6c Make CERROR hidden. Use END() appropriately. 2013-07-16 22:18:14 +00:00
matt
942581824f Add END(func) 2013-07-16 22:12:20 +00:00
matt
dd123293f0 Add END(func) 2013-07-16 21:49:45 +00:00
matt
440d829b3c WEAK_ALIAS is always present
Use END(func)
2013-07-16 21:48:32 +00:00
matt
82416e4fed Add END(func) 2013-07-16 21:46:42 +00:00
matt
07a0a32561 Convert to normal Motorola syntax for addressing.
%r@ -> (%r)
%r@- -> -(%r)
%r@+ -> (%r)+
%r@(n) n(%r)
etc.
No object differences.
2013-07-16 20:49:41 +00:00
njoly
dd3d742fd5 Switch a few remaining system/pathname configuration variables from
"Dv {xxx}" to "Brq Dv xxx".
2013-07-14 14:29:09 +00:00
joerg
5228cbf9e9 Build glue for including compiler-rt in libc, not hooked up yet. 2013-07-04 22:14:43 +00:00
wiz
0ed5815bd6 Strings are NUL-terminated, not NULL-terminated. 2013-06-30 19:19:12 +00:00
wiz
7b3d8f12ac Fix second problem noted by Henning Petersen in PR 47975:
renameat is in unistd.h. Bump date.
2013-06-30 11:48:42 +00:00
wiz
4afb2cfe8c Fix typo in SYNOPSIS. From Henning Petersen in PR 47975. 2013-06-30 11:47:00 +00:00
martin
6caac9d0e7 Rearrange to make lint deal with it (to unbreak the build).
Someone please (1) fix lint and then (2) back this out ;-)
2013-06-30 10:07:43 +00:00
matt
138bf8b9ef When opening a ttys files, try path.<machine> first. This helps
machine archs which have multiple ttys files (arm, mips, powerpc, m68k, sh3)
2013-06-30 07:50:54 +00:00
matt
cd85a4cc3f Use t1 instead of v1 2013-06-26 08:38:34 +00:00
joerg
5f5c1f0096 Fix header guard, courtesy of clang. 2013-06-24 17:28:35 +00:00
wiz
ec0c2a14eb Fix xref. 2013-06-24 07:56:49 +00:00
riastradh
82db4b9858 Replace consttime_bcmp/explicit_bzero by consttime_memequal/explicit_memset.
consttime_memequal is the same as the old consttime_bcmp.
explicit_memset is to memset as explicit_bzero was to bcmp.

Passes amd64 release and i386/ALL, but I'm sure I missed some spots,
so please let me know.
2013-06-24 04:21:19 +00:00
riastradh
d1790daeea Add consttime_bcmp(3) and explicit_bzero(3) to makefile and set lists. 2013-06-24 01:12:08 +00:00
riastradh
75f5a58349 Add man pages and xrefs for consttime_bcmp and explicit_bzero.
ok wiz
2013-06-23 16:44:06 +00:00
msaitoh
7af86a8aeb Fix compile error. 2013-06-20 17:53:01 +00:00
matt
57df06aa6b modsi3/umodsi3 is not needed for earm since __aeabi_*divmod takes care of it. 2013-06-20 07:18:40 +00:00
kardel
01ae5b4204 Bring description in sync with errors-section and implementation reality.
(changing super-user only flags is not silently ignored)
2013-06-08 06:05:03 +00:00
christos
8265b8412c mark __libc_thr_exit_stub dead here too 2013-05-28 17:29:41 +00:00
joerg
85a67e61f7 Add mbsnrtowcs and wcsnrtombs. Approved by core. 2013-05-28 16:57:56 +00:00
wiz
15848daca9 More markup. Merge two error entries for the same error. 2013-05-24 09:35:11 +00:00
enami
d47f3c1bfa Update ERRORS section:
- Remove some system calls from the list of functions which may set errno
  during the execution of realpath(3) since they are no longer used
  to implement it.
- Document some errno set by the realpath(3) itself.
2013-05-24 03:20:18 +00:00
christos
eb9ea33272 don't cast malloc 2013-05-19 21:45:00 +00:00
christos
d3a4e77c47 from kre: Don't fail if we are seeking on a pipe, clear the append bit
since we always append.
2013-05-19 17:07:04 +00:00
joerg
e0ac190e1e Provide explicit LC_C_LOCALE accessor and drop the various NULL checks.
Provide LC_GLOBAL_LOCALE in a way that works with all locale functions.
Merge constant data used by the initial global locale and the C locale.
Drop function call layer for _current_locale() and directly return the
locale reference, not a pointer to it. Use protected access for global
variables, so that libc references can avoid the GOT overhead.
2013-05-17 12:55:56 +00:00
christos
748fc2c7c9 CVE 1020946: Fix res leak. 2013-05-13 17:54:55 +00:00
christos
961429e30c CVE 1020938: Fix memory leak 2013-05-13 13:59:39 +00:00
wiz
9da71ac3fd conforms -> conform, since it's the verb for three nouns and thus plural. 2013-05-12 10:44:23 +00:00
rodent
f53b79ea5c s/conform/conforms/1 2013-05-11 19:20:30 +00:00
wiz
ce13c0c0df New sentence, new line. Fix minus. Avoid <>.
Remove trailing whitespace.
2013-05-08 18:18:32 +00:00
christos
814d1846cc Clarify which functions are only in libresolv. 2013-05-08 18:06:46 +00:00
christos
f50e99db7e welcome to 2013c! 2013-05-08 15:49:43 +00:00
christos
1eb9e03aa2 - add __clnt_sigfillset() that does not blindly block all signals but excludes
the tty generated ones (int, quit, tstp), plus term and hup. This makes
  command line clients behave on connect(2) where before they would need
  to be killed from a different tty. Much easier than making the file
  descriptor non-blocking for the duration of connect and then using
  pselect/pollts to detect when actual connection or timeout occured using
  a different sigmask.
- factor out some of the error paths.
2013-05-07 21:08:44 +00:00
wiz
9ce1a24bd5 End sentence with a dot. 2013-05-06 13:29:12 +00:00
wiz
70daec796f Grammar. 2013-05-04 19:17:38 +00:00
christos
b5fd8f5747 _ss improvements 2013-05-04 18:35:53 +00:00
christos
e72cf68c19 move prototypes to stdio.h 2013-05-04 18:31:47 +00:00
wiz
3a2c836a74 New sentence, new line. 2013-05-03 21:13:34 +00:00
christos
dfecb5b774 document AI_SRV 2013-05-03 19:34:54 +00:00
christos
c641632a69 PR/32373, PR/25827: Add SRV lookup in getaddrinfo(3)
Per DNS-SD (RFC 2782), but only enabled if AI_SRV is set.
2013-05-03 19:31:13 +00:00
christos
0a312e0850 KNF, whitespace police -- no code changes 2013-05-03 19:24:52 +00:00
skrll
361e2d0ba7 include assym.h 2013-04-30 19:42:56 +00:00
skrll
3e638bdccb Don't hardcode offset in assembler. This ensures the return value in the
context is the correct value (0) on earm*
2013-04-30 15:59:34 +00:00
skrll
094d684a50 Don't hardcode offset in assembler. This ensures the return value in the
context is the correct value (0) on earm*
2013-04-30 12:24:31 +00:00
matt
9163f0b126 Include softfloat-for-gcc.h for __ARM_EABI__ to get aeabi aliases. 2013-04-30 01:44:07 +00:00
matt
780a5525be ARM EABI needs left shift logical too. 2013-04-30 01:43:01 +00:00
matt
7d2c6b2414 Match against LIBC_MACHINE_ARCH for MKCOMPAT 2013-04-30 01:42:03 +00:00
joerg
81d0329e8d Make that to process PATH_LOCALE the first time _find_category is
called. Use this to implement newlocale and provide duplocale/freelocale
as well. Based on patches by Takehiko Nozaki with simplications and fix
for the init order by myself.
2013-04-30 00:45:04 +00:00
joerg
eb3cdf8761 Provide stubs for pthread_detach/pthread_join. 2013-04-27 20:36:47 +00:00
matt
343c2f33c0 Just build the legacy stuff for earm (for now). 2013-04-27 08:00:40 +00:00