summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch/m68k (follow)
Commit message (Collapse)AuthorAgeFilesLines
* __tfork() needs to set the stack address of the new thread in the kernel,guenther2012-06-211-7/+6
| | | | | | | | | so that it can't get a signal while still running on the parent thread's stack. Also, pass in sizeof(struct __tfork) to provide forward compat when more members are added. This is an ABI change, so switch syscall numbers and bump lib majors this time. ok deraadt@ matthew@
* rely on the compiler giving us a built-in alloca. any new architecturederaadt2012-04-192-50/+1
| | | | | or compiler we use will. ok millert
* alloca.c cannot be usedderaadt2012-04-121-2/+1
|
* remove rfork(); ok guenther miodderaadt2012-04-121-40/+0
|
* Move __tfork_thread() from rthreads (libpthread) to libc so thatguenther2012-03-221-0/+70
| | | | | | it can be used for not-strictly-threading purposes ok matthew@ kurt@
* sigstack() is long dead, and the compat sigaltstack syscall is gone too.guenther2011-11-221-2/+2
| | | | | | Correct the namespace protections for sigreturn(), sigwait(), and psignal() ok millert@
* Revert (leaving the complex math part alone). Some stuff is dependingmartynas2011-07-083-3/+100
| | | | | on this historical behavior; so we're stuck in this stupid situation. No cookie for me.
* Move fabs(3), frexp(3), and modf(3) to libm--nothing has been usingmartynas2011-07-083-100/+3
| | | | them in libc for a very long time. OK guenther@.
* On the a.out architectures, WEAK_ALIAS does an implicit _C_LABEL()deraadt2011-04-091-2/+2
| | | | ok miod
* Move __cerror to ___cerror with a weak alias so that rthreads can override it.guenther2011-04-041-2/+4
| | | | | | On mips64, also correct the name called from plain cerror to __cerror. "looks correct" miod@
* more rcsid/sccs cleanupderaadt2009-10-287-37/+2
|
* these were not neededmartynas2008-12-091-2/+1
|
* ditto frexpl and ldexplmartynas2008-12-091-1/+2
|
* - add long double signbitmartynas2008-12-096-6/+38
| | | | | | | | | | | | | - make long double versions weak aliases to double versions, on archs where long doubles are 64 bits - no need to have two finites. finite() and finitef() are non-standard 3BSD obsolete versions of isfinite. remove from libm. make them weak_alias in libc to __isfinite and __isfinitef instead. similarly make 3BSD obsolete versions of isinf, isinff, isnan, isnanf weak_aliases to C99's __isinf, __isinff, __isnan, __isnanf - bump major ok millert@
* - replace dtoa w/ David's gdtoa, version 2008-03-15martynas2008-09-0710-1/+222
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - provide proper dtoa locks - use the real strtof implementation - add strtold, __hdtoa, __hldtoa - add %a/%A support - don't lose precision in printf, don't round to double anymore - implement extended-precision versions of libc functions: fpclassify, isnan, isinf, signbit, isnormal, isfinite, now that the ieee.h is fixed - separate vax versions of strtof, and __hdtoa - add complex math support. added functions: cacos, casin, catan, ccos, csin, ctan, cacosh, casinh, catanh, ccosh, csinh, ctanh, cexp, clog, cabs, cpow, csqrt, carg, cimag, conj, cproj, creal, cacosf, casinf, catanf, ccosf, csinf, ctanf, cacoshf, casinhf, catanhf, ccoshf, csinhf, ctanhf, cexpf, clogf, cabsf, cpowf, csqrtf, cargf, cimagf, conjf, cprojf, crealf - add fdim, fmax, fmin - add log2. (adapted implementation e_log.c. could be more acruate & faster, but it's good enough for now) - remove wrappers & cruft in libm, supposed to work-around mistakes in SVID, etc.; use ieee versions. fixes issues in python 2.6 for djm@ - make _digittoint static - proper definitions for i386, and amd64 in ieee.h - sh, powerpc don't really have extended-precision - add missing definitions for mips64 (quad), m{6,8}k (96-bit) float.h for LDBL_* - merge lead to frac for m{6,8}k, for gdtoa to work properly - add FRAC*BITS & EXT_TO_ARRAY32 definitions in ieee.h, for hdtoa&ldtoa to use - add EXT_IMPLICIT_NBIT definition, which indicates implicit normalization bit - add regression tests for libc: fpclassify and printf - arith.h & gd_qnan.h definitions - update ieee.h: hppa doesn't have quad-precision, hppa64 does - add missing prototypes to gdtoaimp - on 64-bit platforms make sure gdtoa doesn't use a long when it really wants an int - etc., what i may have forgotten... - bump libm major, due to removed&changed symbols - no libc bump, since this is riding on djm's libc major crank from a day ago discussed with / requested by / testing theo, sthen@, djm@, jsg@, merdely@, jsing@, tedu@, brad@, jakemsr@, and others. looks good to millert@ parts of the diff ok kettenis@ this commit does not include: - man page changes
* - move isinf, isnan dups to gen, since most is ieee 754martynas2008-07-244-97/+12
| | | | | | | | | | | | | | | | - is{inf,nan} should be macros for real-floating, so rename to __is{inf,nan}, per C99 - implement C99 __fpclassify(), __fpclassifyf(), __isfinite(), __isfinitef(), __isnormal(), __isnormalf(), __signbit(), __signbitf() - long functions added, but not yet enabled, till ieee.h is fixed - implement vax equivalents of the functions - reimplement isinff, isnanf in a better way, and move to libc - add qnan bytes for all archs - bump major man pages will follow ok millert@. arm bits looked over by drahn@ discussed w/ theo, who showed the right direction, to put these functions in libc
* if we pull in a .S file, we must fake out the lint with a .c filederaadt2005-11-291-2/+5
| | | | | for this first cut, we will do this for alloca() using alloca.c by adding it to LSRCS
* zap rcsid.espie2005-08-0778-388/+78
| | | | okay deraadt@ (tested them all)
* Replace broken frexp() with a working one from FreeBSD. There'smillert2005-02-012-76/+2
| | | | | | no need to have a copy for each platform with ieee floating point, only vax needs a special version (which probably has similar bugs). OK and with help from otto@
* Use an unsigned comparison against minbrk.miod2003-12-251-2/+2
| | | | ok deraadt@
* warn about unsafe APIs at link time. Conditional on libc/Makefile definingderaadt2003-07-242-2/+17
| | | | | APIWARN; disabled by default. In use by many developers for quite some time, now they have a common knob to enable/disable this
* Sync with share/misc/license.template and add missing DARPA creditmillert2003-06-171-8/+8
| | | | where applicable.
* oopsderaadt2003-06-112-12/+2
|
* ansification; checked by pvalderaadt2003-06-112-2/+12
|
* Use an ISC-tyle license for all my code; it is simpler and more permissive.millert2003-06-031-22/+11
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-0273-443/+151
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* assembler versions of insque and remque for m68k, also from 4.4BSDmillert2003-05-092-0/+116
|
* Oops, unbrek libc_pmiod2002-11-181-2/+2
|
* Move the weak definition from before the syscall's entry point tomillert2002-11-061-13/+11
| | | | | after. This avoids a bunch of reloc warnings by working around a deficiency in the a.out loader. miod@ OK
* thread safe libc -- 2nd try. OK miod@, millert@marc2002-11-051-18/+19
| | | | Thanks to miod@ for m68k and vax fixes
* Rename cerror to __cerror and curbrk to __curbrk, to avoid namespacemiod2002-11-059-28/+28
| | | | pollution. Conforming to art@'s evil plans.
* back out previous patch.. there are still some vax/m68k issuesmarc2002-11-031-1/+13
|
* libc changes for thread safety. Tested on:marc2002-11-031-13/+1
| | | | | | | alpha (millert@), i386 (marc@), m68k (millert@ and miod@), powerpc (drahn@ and dhartmei@), sparc (millert@ and marc@), sparc64 (marc@), and vax (millert@ and miod@). Thanks to millert@, miod@, and mickey@ for fixes along the way.
* Rewrite to get proper Copyright.espie2002-06-181-15/+40
| | | | | | Should even be slightly better than the old one. Checked and fixed by miod@, my initial version was not 100% right (writing m68k loops blindly doesn't always work).
* We need to keep K&R compat macros for some ports where the assemnbler ismillert2002-02-191-4/+12
| | | | still using -traditional-cpp.
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-12/+4
|
* rfork() needs a fork.S-like stub as well; ok artderaadt2002-02-171-0/+48
|
* Fix incorrect number of args to __SYSCALL. Somehow this managed tomillert2001-09-211-9/+5
| | | | | work in my test on static libs -- I've no idea how though. While I'm here, remove __RSYSCALL since it is the same as __PSEUDO.
* Add PSEUDO_NOERROR similar to that used by NetBSD.millert2001-09-201-17/+30
| | | | | | | | | | | Some ports were setting errno in PSEUDO and some were not. Now errno is set for all in PSEUDO and PSEUDO_NOERROR is provided for the non-errno case (only used by _exit). Needs testing on vax and m88k. XXX - hppa and powerpc still lack a real PSEUDO_NOERROR implementation. Currently PSEUDO_NOERROR and PSEUDO are the same (so builds don't break on those platforms).
* Use the LBL isnan() and isinf() on all platforms with ieee floating point.millert2001-09-103-29/+72
|
* Use the LBL frexp() on all platforms with ieee floating point.millert2001-09-101-15/+28
|
* #(endif|else) foo is incorrect, make it #endif /* foo */heko2001-08-122-5/+5
| | | | deraadt@ ok
* replacement pipe() system call; copies data into place inside kernel, soderaadt1999-06-071-50/+0
| | | | that EFAULT return value is possible
* It is faster to split this into separate length and copy operationsmillert1999-05-011-22/+34
|
* don't use a2millert1999-04-301-3/+2
|
* fix register usage (program logic is unchanged)millert1999-04-301-15/+15
|
* missing parts from last commitmillert1999-04-251-3/+3
|
* m68k assembler version of strlcpy(3)millert1999-04-252-3/+63
|
* mi ptraced1999-02-011-61/+0
|
* _THREAD_SAFEd1999-01-066-23/+61
|