summaryrefslogtreecommitdiffstats
path: root/lib/libc/arm
Commit message (Collapse)AuthorAgeFilesLines
* revert r191633; this breaks at91 & xscale (likely all arm)sam2009-05-061-4/+4
|
* Change the test at the beginning of strncmp(), from being if (len - 1) < 0cognet2009-04-281-4/+4
| | | | | | | | | to if (len == 0). The length is supposed to be unsigned, so len - 1 < 0 won't happen except if len == 0 anyway, and it would return 0 when it shouldn't, if len was > INT_MAX. Spotted out by: Channa <channa kad gmail com>
* These warnings are only relevant on NetBSD it seems. They don't seemimp2009-02-191-3/+0
| | | | to be relevant to FreeBSD at all.
* Add support for the FPA floating-point format on ARM. Themarcel2008-12-232-3/+14
| | | | | | | | | FPA floating-point format is identical to the VFP format, but is always stored in big-endian. Introduce _IEEE_WORD_ORDER to describe the byte-order of the FP representation. Obtained from: Juniper Networks, Inc
* Mark uname(), getdomainname() and setdomainname() with COMPAT_FREEBSD4.ed2008-11-091-2/+1
| | | | | | | | | | | | | | | | | | | | | Looking at our source code history, it seems the uname(), getdomainname() and setdomainname() system calls got deprecated somewhere after FreeBSD 1.1, but they have never been phased out properly. Because we don't have a COMPAT_FREEBSD1, just use COMPAT_FREEBSD4. Also fix the Linuxolator to build without the setdomainname() routine by just making it call userland_sysctl on kern.domainname. Also replace the setdomainname()'s implementation to use this approach, because we're duplicating code with sysctl_domainname(). I wasn't able to keep these three routines working in our COMPAT_FREEBSD32, because that would require yet another keyword for syscalls.master (COMPAT4+NOPROTO). Because this routine is probably unused already, this won't be a problem in practice. If it turns out to be a problem, we'll just restore this functionality. Reviewed by: rdivacky, kib
* Let libstand(3) build on ARM.raj2008-10-141-0/+4
| | | | This is a pre-requisite for loader(8) + U-Boot support library on this arch.
* Arrange so that the NaN returned by strtod("nan", NULL) is the same asdas2007-12-161-4/+4
| | | | the NaN returned by strtod("nan()", NULL).
* Unbreak arm build by removing duplicate symbols.cognet2007-10-181-8/+0
|
* MFKernel: do not use __XSCALE__ to detect if clz/pld/ldrd/strd arecognet2007-10-133-9/+9
| | | | | | available, use _ARM_ARCH_5/_ARM_ARCH_5E instead. MFC After: 3 days
* Fix remaining syntax errors (missing semicolons)peter2007-07-051-2/+2
| | | | | Submitted by: Björn König <bkoenig@cs.tu-berlin.de> Approved by: re (kensmith, followup commits)
* Add missing \ characters in PSEUDO() macro on arm. Oops.peter2007-07-041-2/+2
| | | | | Submitted by: cognet Approved by: re (kensmith)
* Classify mmap, lseek, pread, pwrite, truncate, ftruncate as pseudopeter2007-07-041-3/+6
| | | | | | | | | | syscalls, unless WITHOUT_SYSCALL_COMPAT is defined. The default case will have the .c wrappers still. If you define WITHOUT_SYSCALL_COMPAT, the .c wrappers will go away and libc will make direct syscalls. After 7-stable starts, the direct syscall method will be default. Approved by: re (kensmith)
* Adjust the syscall stub macros to be consistent in their meaning. Inpeter2007-07-041-14/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | particular: SYSCALL() makes a syscall, with errno handling, and continues execution directly after the macro in the non-error case. RSYSCALL() is just like SYSCALL(), but returns after success. Both SYSCALL(name) and RSYSCALL(name) export "__sys_name" as a strong symbol, with "_name" and "name" as weak aliases. PSEUDO() is just like RSYSCALL(), but skipping the "name" weak alias. It still does "__sys_name" and "_name". Change i386 to add errno handling to PSEUDO. The same for amd64 and sparc64, with appear to have copied the behavior. ia64 was correct (as was alpha). Just remove some apparently unused variants of the macros. (untested!) I believe powerpc is correct. Fix arm to not export "name" from the PSEUDO case. Remove apparently extra unused variants. (untested!) The errno problem manifested on i386/amd64/sparc64 by having "PSEUDO" classified syscalls return without setting errno. eg: "addr = mmap()" could return with "addr" = 22 instead of setting errno to 22 and returning -1. Approved by: re (kensmith)
* Fix sbrk.S to use _end symbol the same way brk.s was fixed some timekan2007-06-271-2/+2
| | | | | | | ago. sbrk.S should have gotten the same change then but was forgotten. Approved by: re (bmah) PR: kern/114049
* Some libc symbol map cleanups.deischen2007-05-311-4/+0
| | | | | | | | | | | | | | | | | | | | | net: endhostdnsent is named _endhostdnsent and is private to netdb family of functions. posix1e: acl_size.c has been never compiled in, so there's no "acl_size". rpc: "getnetid" is a static function. stdtime: "gtime" is #ifdef'ed out in the source. some symbols are specific only to some architectures, e.g., ___tls_get_addr is only defined on i386. __htonl, __htons, __ntohl and __ntohs are no longer functions, they are now (internal) defines in <machine/endian.h>. Submitted by: ru
* Use __mcount() instead of _mcount() to reduce diffs with NetBSD.cognet2007-05-191-1/+1
|
* Use built-in _end symbol insteadof 'end' for consistency with otherkan2007-05-191-2/+2
| | | | architectures. Linker defines end is synonym for _end.
* Do not declare float_detect_tininess as external if it will be re-delaredkan2007-05-191-0/+2
| | | | as static later.
* Do not export 'end' symbol. It is not meant to be visible to outsidekan2007-05-161-1/+1
| | | | | world and it wreak havoc if libc collides with other versioned libraries.
* Remove .mcount from gmon's Symbol map and add it to the appropriatedeischen2007-05-131-1/+24
| | | | | | | arch. It can be named differently depending on the arch (.mcount, _mcount). Submitted by: marius
* Use C comments since we now preprocess these files with CPP.deischen2007-04-291-11/+13
|
* The distinction between quiet and signaling NaN formats isdas2007-01-031-0/+23
| | | | | machine-dependent; these files tell the latest version of gdtoa what to do.
* Cleanup: we always have to use __error() now, and we shouldn't provide acognet2006-11-092-58/+1
| | | | | | errno symbol, so completely remove the !_REENTRANT case. Spotted out by: ru
* Remove a forgotten file.ru2006-11-081-4/+0
|
* Instead of re-implementing hton[ls] and friends for each arch, add a new MIcognet2006-11-064-198/+0
| | | | | | | file, net/ntoh.c, which just implement them using the inline functions from <sys/endian.h>. Suggested by: bde
* Provide definitions suitable for arm big-endian.cognet2006-11-061-0/+5
|
* If __ARMEB__ is defined, we're already using the network byte order, socognet2006-08-214-0/+8
| | | | | | | there's no need to to anything in the hton* functions, beside returning the parameter. Spotted out by: Oleksandr Tymoshenko <gonzo@freebsd.org>
* GC old a.out and K&R support.imp2006-05-231-9/+0
|
* Add each directory's symbol map file to SYM_MAPS.deischen2006-03-131-0/+1
|
* Add symbol maps and initial symbol version definitions to libc.deischen2006-03-131-0/+66
| | | | Reviewed by: davidxu
* Fix a long line in copyright notice.cognet2005-10-031-1/+2
| | | | Pointed out by: Gavin Atkinson gavin.atkinson ury york ac uk
* Add an asm version of strlen() for arm (how useful).cognet2005-10-032-1/+78
|
* Use the correct values for softfloat, in both the little endian and the bigcognet2005-03-202-8/+13
| | | | endian cases.
* Define LDBL_NBIT to be a mask indicating the position of the integerdas2005-03-071-1/+2
| | | | | | | | bit in a long double. For architectures that don't have such a bit, LDBL_NBIT is 0. This makes it possible to say `mantissa & ~LDBL_NBIT' in places that previously used an #ifdef to select the right expression. The optimizer should dispense with the extra arithmetic when LDBL_NBIT is 0.
* Update my email address.das2005-02-061-1/+1
|
* Replace the ldexp() implementation in libc with a renamed copy of thedas2005-01-221-155/+0
| | | | | | | | | | | | | | | | scalbn() implementation from libm. (The two functions are defined to be identical, but ldexp() lives in libc for backwards compatibility.) The old ldexp() implementation... - was more complicated than this one - set errno instead of raising FP exceptions - got some corner cases wrong (e.g. ldexp(1.0, 2000) in round-to-zero mode) The new implementation lives in libc/gen instead of libc/$MACHINE_ARCH/gen, since we don't need N copies of a machine-independent file. The amd64 and i386 platforms retain their fast and correct MD implementations and override this one.
* Eliminate gdtoa.mk and move its contents to ${MACHINE_ARCH}/Makefile.inc.das2005-01-152-5/+4
| | | | | The purpose of having a separate file involved an abandoned scheme that would have kept contrib/gdtoa out of the include path for the rest of libc.
* Use the RET macro.cognet2004-11-0917-52/+52
| | | | | For setjmp() and longjmp(), put the signal mask where it's supposed to be, instead of in the space reserved for fp regs.
* Add a week alias __siglongjmp => siglongjmp.cognet2004-11-091-0/+1
|
* MFKernel: Implement ffs with clz on Xscale.cognet2004-11-071-0/+6
|
* Don't define SOFTFLOAT directly in source files, it's now done in the Makefile.cognet2004-11-052-2/+1
|
* Fix signalcontext and makecontext.cognet2004-11-053-14/+17
|
* Remove getcontext.S, it is not needed.cognet2004-11-052-64/+1
|
* Import a Makefile for arm.cognet2004-11-051-0/+8
|
* Make setjmp()/longjmp() use sigprocmask.cognet2004-09-231-9/+9
|
* Add a dummy set_tp().cognet2004-09-232-1/+36
|
* Always use bx for returning on Xscale.cognet2004-09-231-76/+76
| | | | Obtained from: NetBSD
* Fix the align-to-32-bits code.cognet2004-09-231-2/+2
| | | | Obtained from: NetBSD
* Replace seven nominally MD implementations of frexp() that are brokendas2004-07-182-68/+1
| | | | for subnormals with one implementation that works.
* Implement the classification macros isfinite(), isinf(), isnan(), anddas2004-07-092-71/+1
| | | | | | | | | | | | | | | | | | | | | isnormal() the hard way, rather than relying on fpclassify(). This is a lose in the sense that we need a total of 12 functions, but it is necessary for binary compatibility because we have never bumped libm's major version number. In particular, isinf(), isnan(), and isnanf() were BSD libc functions before they were C99 macros, so we can't reimplement them in terms of fpclassify() without adding a dependency on libc.so.5. I have tried to arrange things so that programs that could be compiled in FreeBSD 4.X will generate the same external references when compiled in 5.X. At the same time, the new macros should remain C99-compliant. The isinf() and isnan() functions remain in libc for historical reasons; however, I have moved the functions that implement the macros isfinite() and isnormal() to libm where they belong. Moreover, half a dozen MD versions of isinf() and isnan() have been replaced with MI versions that work equally well. Prodded by: kris
OpenPOWER on IntegriCloud