Commit Graph

102 Commits

Author SHA1 Message Date
mrg 0b9686b0cc these were only relevant for a.out builds; time to sleep forever... 2010-07-06 06:04:58 +00:00
mrg 4c92852a80 remove almost all the ability to build netbsd with an a.out target.
we're ELF now, and there are many missing checks against OBJECT_FMT.
if we ever consider switching, the we can figure out what new ones
we need but for now it's just clutter.

this doesn't remove any of the support for exec_aout or any actually
required-for-boot a.out support, only the ability to build a netbsd
release in a.out format.  ie, most of this code has been dead for
over a decade.

i've tested builds on vax, amd64, i386, mac68k, macppc, sparc, atari,
amiga, shark, cats, dreamcast, landisk, mmeye and x68k.  this covers
the 5 MACHINE_ARCH's affected, and all the other arch code touched.
it also includes some actual run-time testing of sparc, i386 and
shark, and i performed binary comparison upon amiga and x68k as well.


some minor details relevant:
- move shlib.[ch] from ld.aout_so into ldconfig proper, and cut them
  down to only the parts ldconfig needs
- remove various unused source files
- switch amiga bootblocks to using elf2bb.h instead of aout2bb.h
2010-07-06 05:59:50 +00:00
tnozaki 9efec5bce3 1. MB_LEN_MAX switch MD to MI.
2. unfortunately hppa's MB_LEN_MAX is defined incorrectly 6 instead of 32
   so we have to add more setlocale(3) __RENAME func, __setlocale50.
3. move setlocale1.c and setlocale32.c to lib/libc/compat/locale/*
   prepareing for next libc major crunk.
4. bump libc minor version.
2010-06-07 13:52:28 +00:00
drochner 87941501db use the local versions of ldexp/frexp/modf again rather than pulling
in libm source code. The libm functions depend on other libm functions,
this requires symbol renaming, and with the reachover method this
is going to be a mess. Also, bundling the dependencies into one .o
file has the potential to cause symbol conflicts on static linking.
2010-04-23 19:04:54 +00:00
drochner 6cbc5cbff1 fix behavior in case of +-Inf or NaN input: return the proper
values and set *iptr
(This code is only used under non-default build options, and on m68k.)
2010-01-27 14:10:41 +00:00
matt f45a8c29f5 Merge from matt-nb5-mips64 2009-12-14 03:04:33 +00:00
matt 2288207161 Merge from matt-nb5-mips64. 2009-12-14 01:07:41 +00:00
snj 32381fa0dd Follow upstream license changes for files with Michael Shalayeff's
copyright.  In most cases, this means dropping the 3rd and 4th clauses.
2009-11-03 05:07:25 +00:00
christos 236714187a PR/42201: NAKAJIMA Yoshihiro: fts(3): broken compatibility
As new field types were added, we did not provide overrides for older compat
versions. This restores compatibility.
2009-10-19 17:52:01 +00:00
christos f227975929 Version fts one more time! This is the most versioned API ever... Bump
fts_level from short to int to avoid a potential DoS.
From Maksymilian Arciemowicz
2009-08-16 19:33:38 +00:00
yamt 8a29be6be3 fix NULL dereferences in the compat versions of getpwent, getpwnam,
and getpwuid.
2009-06-01 06:04:37 +00:00
christos 2c266c8a4c version alphasort. 2009-02-24 18:41:40 +00:00
dholland 45e10be5f4 Add __warn_references to getdirentries(), per PR 37730. Okayed by Christos
a while back.
2009-02-22 06:33:38 +00:00
lukem a99197aa1c sign-compare fix 2009-02-03 04:58:38 +00:00
drochner 92b9f070f2 remove stale getdevmajor() declarations, fixes lint(1) warning
reported by Bernd Ernesti
2009-01-26 15:05:56 +00:00
drochner ad965be01b cleanup after devmajor_t:
-since getdevmajor(3) is now binary compatible again with <=5.0
 there is no need to rename, I've just left a __getdevmajor50 symbol
 temporarily for those who track -current
-update manpage
2009-01-20 20:08:12 +00:00
drochner d767912be3 Change major()/minor() to return 32-bit types again, called
devmajor_t/devminor_t, as proposed on tech-kern.
This avoids 64-bit arithmetics and 64-bit printf formats in parts
of the kernel where it is not really useful, and helps clarity.
2009-01-20 18:20:47 +00:00
christos 209f6eb5bd add another directory the cvs did not merge. 2009-01-11 03:56:22 +00:00
christos f943330f91 merge another directory that cvs missed. 2009-01-11 03:46:25 +00:00
christos 404fbe5fb9 cvs does not -j new directories, do it manually. 2009-01-11 03:41:28 +00:00
christos 461a86f9bd merge christos-time_t 2009-01-11 02:45:45 +00:00
mrg 2f0d0e12bf define and use LIBCDIR in terms of .CURDIR. fixes compat/lib/libc build. 2008-10-26 07:43:07 +00:00
christos 910c3de51d this needs finite and scalbn 2008-09-28 18:54:30 +00:00
christos 519d922f3a having 2 separate implementations of frexp ldexp and modf (one here and
one in libm) that produce different results does not make any sense. Use
the one from libm to build instead.
2008-09-28 15:19:09 +00:00
drochner dc7ba38823 fix the -0.0 case, fixes a gm4 test error reported by wiz
(normally, the libm implementation should be used)
2008-09-14 13:38:38 +00:00
tonnerre 34f7daa87e Fix a bug in the implementation of seekdir(). If the first entry in
a block has been unlinked, seekdir() may overshoot by one entry.
Thus, _readdir_unlinked() must not skip deleted entries when being
called from seekdir().
Christos agreed.
2008-05-04 18:53:26 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
simonb d8de5b102b Remove support for NetBSD/pc532. 2008-01-09 11:25:58 +00:00
uwe a34b3f871d In handwritten asm use -fPIC code instead of -fpic, our libc has grown
large enough for GOT to be larger than 8k.

While here kill redundant PIC ifdefs in setjmp.S - sparc "call"
instruction is piccy by itself.

Tested by martin@
2007-10-08 13:06:00 +00:00
dsl 9145137adc Fix the return value so the MNT_GETARGS returns 0, not the buffer length. 2007-07-18 20:10:47 +00:00
dsl 4d09898946 Change libc system callstub from 'mount' to '__mount50', add compat call. 2007-07-14 15:53:04 +00:00
scw 5764a76889 Remove support for NetBSD/{,evb}sh5. 2007-04-08 09:35:21 +00:00
hubertf 9fa07b0591 - Remove unused ctype.h header
- ANSIfy prototype

From: Slava Semushin <php-coder@altlinux.ru>
2007-03-10 01:13:14 +00:00
nakayama b0cfe41e9b PR lib/34210: Avoid bus error (unaligned 64-bit access) on sparc64. 2007-03-02 13:18:55 +00:00
cbiere 4b14bb6309 Changed error message of ENOPROTOOPT to "Protocol option not available". 2006-10-31 00:38:06 +00:00
cherry f264f80b8e Further ia64 libc compat bits 2006-09-23 17:38:03 +00:00
matt 95ff9c00a4 Move ns_addr and ns_ntoa to compat libc. Add a stripped version of
<netns/ns.h> which only include struct ns_addr and the ns_addr and ns_ntoa
function prototypes.
2006-08-26 16:07:01 +00:00
yamt 0872061b2c add missing const. 2006-08-04 17:06:56 +00:00
yamt 273fdcedb9 whitespace. 2006-08-04 16:36:44 +00:00
yamt 6e8d813f5e remove the support of variable-sized filehandle from compat version of
syscalls.  (strictly speaking, it breaks abi.  i don't think it's a problem
because this feature is short-lived and there are no affected in-tree
filesystems.)
2006-08-04 16:30:22 +00:00
martin b4cb63a646 Make filehandles opaque to userland 2006-07-31 16:34:42 +00:00
christos 3d7fe67b05 fts_data is defined to be something else now. Avoid syntax error. 2006-07-27 18:11:19 +00:00
christos b44f868f77 Turn fts_number to a quad. 2006-07-27 15:46:30 +00:00
martin 629693c760 Lint insists on this. 2006-07-13 19:09:06 +00:00
martin 688ce05cf5 Ooops, forgot to add this with the last commit 2006-07-13 13:07:31 +00:00
martin a3b5baed42 Fix alignement problems for fhandle_t, exposed by gcc4.1.
While touching all vptofh/fhtovp functions, get rid of VFS_MAXFIDSIZ,
version the getfh(2) syscall and explicitly pass the size available in
the filehandle from userland.

Discussed on tech-kern, with lots of help from yamt (thanks!).
2006-07-13 12:00:24 +00:00
ross 5c30c35cd8 urk, need these too 2006-07-07 06:59:04 +00:00
drochner 71b1fb929e Remove a comment questioning correct denormal handling.
This has been fixed.
2006-07-03 13:33:39 +00:00
drochner 46b4d67318 build {frexp,ldexp,modf} in the "compat" subtree
(Drop the modf assembler version. We have the same code in libm.)
(Drop the ldexp inline-assembler version. The same code is in libm as
scalbn; the ldexp there is just a wrapper providing error handling.)
2006-07-03 13:13:53 +00:00
drochner 5ea27734ec build frexp_ieee754 and ldexp_ieee754 in the "compat" subtree
(There is an assembler version of modf which needs to be checked.)
2006-07-03 13:06:12 +00:00