summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Mark libfetch as c99-clean. Always build at WARNS level 2 rather thanDag-Erling Smørgrav2003-05-011-2/+2
| | | | | | | | juggling with levels 2 and 3, as this has lead to world breakage for NOCRYPT users in the past. Notes: svn path=/head/; revision=114420
* AMD64 support (another IEEEFP platform)Peter Wemm2003-04-301-1/+1
| | | | Notes: svn path=/head/; revision=114331
* AMD64 support; repocopied from i386Peter Wemm2003-04-301-3/+3
| | | | Notes: svn path=/head/; revision=114330
* Teach libdisk that AMD64 works just like i386Peter Wemm2003-04-305-8/+14
| | | | Notes: svn path=/head/; revision=114329
* Add __amd64__ to the list of things that use IEEEFPPeter Wemm2003-04-301-1/+1
| | | | Notes: svn path=/head/; revision=114322
* Tell malloc.c that AMD64 uses the same pagesize as i386.Peter Wemm2003-04-301-0/+4
| | | | Notes: svn path=/head/; revision=114321
* Add __amd64__ to the list of things that use HIDENAME() to hide minbrkPeter Wemm2003-04-301-1/+1
| | | | Notes: svn path=/head/; revision=114320
* Update for AMD64. repocopied from i386-elf/crt1.c. Deal with regparmPeter Wemm2003-04-301-20/+5
| | | | | | | | argument passing rather than stack based args. The kernel passes the base of the argument/env vector in %rdi (arg1). Notes: svn path=/head/; revision=114319
* Turn off libstand for amd64 for the time being. It is built in i386Peter Wemm2003-04-301-1/+2
| | | | | | | mode, and we do not need the complications for now. Notes: svn path=/head/; revision=114315
* Delete i386_* syscall wrappers and manpages. Rename Ovfork.S to vfork.S.Peter Wemm2003-04-301-12/+2
| | | | Notes: svn path=/head/; revision=114314
* Update for AMD64 after repocopy from i386/sys/*. This means:Peter Wemm2003-04-306-105/+35
| | | | | | | | | | - strip out the nasty PIC_PROLOGUE/EPILOGUE stuff, since we dont have to lose a register in PIC mode anymore (we use %rip-relative addressing). - update for C register argument passing conventions. - convert 32 bit to 64 bit register sizes etc. Notes: svn path=/head/; revision=114313
* I have no idea why the reboot(2) syscall wrapper ends with iret, butPeter Wemm2003-04-301-1/+1
| | | | | | | update it to be iretq for completeness. Notes: svn path=/head/; revision=114312
* Update for AMD64. Depend on %rdi (first syscall argument) being preservedPeter Wemm2003-04-301-4/+3
| | | | | | | across a "syscall"-style syscall Notes: svn path=/head/; revision=114311
* Update for AMD64 (repocopied from i386/sys/Ovfork.S - why is it O?)Peter Wemm2003-04-301-5/+4
| | | | | | | | Depend on %rsi being preserved across the "syscall"-style syscall and strip out the PIC stuff (this cpu has full PC-relative addressing, at last!) Notes: svn path=/head/; revision=114310
* Update for AMD64 contexts. Note that this still has some x87-style FPUPeter Wemm2003-04-303-105/+112
| | | | | | | | instructions here, these may need to be updated for SSE. (Repocopied from i386/gen) Notes: svn path=/head/; revision=114309
* Reduce the SRCS to what compilesPeter Wemm2003-04-301-3/+3
| | | | Notes: svn path=/head/; revision=114308
* Update for AMD64 (repocopied from i386/net). We can depend on havingPeter Wemm2003-04-304-10/+6
| | | | | | | | the bswap instruction (yay!). Update for register parameter passing instead of i386 style stack based param passing. Notes: svn path=/head/; revision=114307
* Update for AMD64-style syscalls. Repocopied from i386/SYS.h.Peter Wemm2003-04-301-7/+4
| | | | | | | | | | | | | Note that the syscall instruction clobbers %rcx, which is inconvenient because it is the fourth syscall argument, so we use %r10 (another scratch register) for the 4th syscall arg instead (I picked %r10 to be the same as NetBSD). int 0x80 is still possible though, and it uses %rcx as usual. Note that the syscall style syscall does *NOT* preserve all the registers, unlike int 0x80. We do not preserve the scratch registers except for %rdi and %rsi. int 0x80 does preserve everything but the return values. Notes: svn path=/head/; revision=114306
* Only define platform once -- in a C file.David E. O'Brien2003-04-302-20/+23
| | | | Notes: svn path=/head/; revision=114300
* Floating point libc functions traditionally written in ASM.David E. O'Brien2003-04-302-0/+113
| | | | | | | | | | AMD64 does away with the x87 in 64-bit long mode, so we have to play the SSE/SSE2 game now. Obtained from: NetBSD/x86-64 Notes: svn path=/head/; revision=114298
* Symlink with -f.David E. O'Brien2003-04-302-2/+2
| | | | Notes: svn path=/head/; revision=114297
* No libc_r for AMD64.David E. O'Brien2003-04-301-0/+2
| | | | Notes: svn path=/head/; revision=114296
* Move the mailbox to the beginning of the thread and align theDaniel Eischen2003-04-3010-14/+48
| | | | | | | thread so that the context (SSE FPU state) is also aligned. Notes: svn path=/head/; revision=114295
* Backout my changes in rev. 1.32 and 1.33. There is some code that dependsMike Makonnen2003-04-301-4/+2
| | | | | | | | | | on the previous behaviour. This also brings strptime(3) behaviour back in line with the other BSDs. Approved by: markm (mentor) Notes: svn path=/head/; revision=114285
* Fixed alignment.Ruslan Ermilov2003-04-301-1/+1
| | | | Notes: svn path=/head/; revision=114279
* Call kse_wakeup_mutli() after remove current thread from RUNQ to avoidDavid Xu2003-04-302-2/+2
| | | | | | | doing unnecessary idle kse wakeup. Notes: svn path=/head/; revision=114267
* Call kse_wakeup_multi() to wakeup idle KSEs when there are threads readyDavid Xu2003-04-302-0/+2
| | | | | | | to run. Notes: svn path=/head/; revision=114266
* Make sure rhostip is always initialized.Dag-Erling Smørgrav2003-04-301-1/+1
| | | | | | | | PR: bin/51508 Submitted by: Peter Grimshaw <peter@tesseract.demon.co.uk> Notes: svn path=/head/; revision=114265
* Treat an empty PAM_RHOST the same as a NULL one.Dag-Erling Smørgrav2003-04-304-5/+5
| | | | | | | PR: bin/51508 Notes: svn path=/head/; revision=114264
* Set $HOME to the correct directory (within the chroot tree).Dag-Erling Smørgrav2003-04-301-0/+1
| | | | Notes: svn path=/head/; revision=114262
* `Hide' strlcpy and strlcat (using the namespace.h / __weak_referenceJacques Vidrine2003-04-2920-51/+71
| | | | | | | | | | technique) so that we don't wind up calling into an application's version if the application defines them. Inspired by: qpopper's interfering and buggy version of strlcpy Notes: svn path=/head/; revision=114256
* Jump to the correct label upon detecting an error.Daniel Eischen2003-04-291-2/+2
| | | | Notes: svn path=/head/; revision=114255
* Create the thread signal lock as a KSE lock (as opposed toDaniel Eischen2003-04-296-44/+46
| | | | | | | | | | | | | | | a thread lock). Better protect access to thread state while searching for threads to handle a signal. Better protect access to process pending signals while processing a thread in sigwait(). Submitted by: davidxu Notes: svn path=/head/; revision=114254
* Document VM86_INTCALL.Matthew N. Dodd2003-04-291-4/+35
| | | | | | | Submitted by: Bruce M Simpson Notes: svn path=/head/; revision=114203
* o Don't add a scope system thread's KSE to the list of availableDaniel Eischen2003-04-2835-316/+640
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | KSEs when it's thread exits; allow the GC handler to do that. o Make spinlock/spinlock critical regions. The following were submitted by davidxu o Alow thr_switch() to take a null mailbox argument. o Better protect cancellation checks. o Don't set KSE specific data when creating new KSEs; rely on the first upcall of the KSE to set it. o Add the ability to set the maximum concurrency level and do this automatically. We should have a way to enable/disable this with some sort of tunable because some applications may not want this to be the default. o Hold the scheduling lock across thread switch calls. o If scheduling of a thread fails, make sure to remove it from the list of active threads. o Better protect accesses to a joining threads when the target thread is exited and detached. o Remove some macro definitions that are now provided by <sys/kse.h>. o Don't leave the library in threaded mode if creation of the initial KSE fails. o Wakeup idle KSEs when there are threads ready to run. o Maintain the number of threads active in the priority queue. Notes: svn path=/head/; revision=114187
* Use the correct link entry for walking the list of threads.Daniel Eischen2003-04-282-18/+4
| | | | | | | | | | | While I'm here, use the TAILQ_FOREACH macro instead of a more manual method which was inherited from libc_r (so we could remove elements from the list which isn't needed for libpthread). Submitted by: Kazuaki Oda <kaakun@highway.ne.jp> Notes: svn path=/head/; revision=114180
* Replace the return value of rfork_thread(3) in its manual pageRobert Drehmel2003-04-271-1/+1
| | | | | | | | function prototype with `pid_t' to match the declaration in <unistd.h>. Notes: svn path=/head/; revision=114132
* Correct the return value of vfork(2) and rfork(2) in theirRobert Drehmel2003-04-272-2/+2
| | | | | | | manual page function prototypes. Notes: svn path=/head/; revision=114131
* Add vmemoryuse to the list.Tom Rhodes2003-04-261-0/+1
| | | | | | | | PR: 50796 Submitted by: Dmitry Sivachenko <mitya@cavia.pp.ru> Notes: svn path=/head/; revision=114065
* Add sys/user.h to the list of includes. Without it you lack a definition ofTom Rhodes2003-04-261-0/+1
| | | | | | | | | 'struct kinfo_proc' for calls to kvm_getargv() and kvm_getenvv(). PR: 51322 Notes: svn path=/head/; revision=114064
* Add some strategic whitespace.Robert Watson2003-04-261-0/+1
| | | | Notes: svn path=/head/; revision=114051
* When using `compat' mode, be sure to re-dispatch setpwent, endpwent,Jacques Vidrine2003-04-252-0/+58
| | | | | | | | | | | | | setgrent, and endgrent also. (The previous NSS implementation used to simply twiddle the internal data of the various modules directly.) A symptom (group list set incorrectly in sshd) was Reported by: Glenn Johnson <gjohnson@srrc.ars.usda.gov> Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=114021
* Restore bzip2(1) support in loader(8) after Peter's renames ofRuslan Ermilov2003-04-251-2/+11
| | | | | | | malloc() to Malloc(), and free() to Free(), in zalloc_malloc.c. Notes: svn path=/head/; revision=114004
* Connect libpthread to the (i386) world. It is currently installedDaniel Eischen2003-04-251-1/+4
| | | | | | | | | | as libkse and will once again be renamed libpthread after more testing. Approved by: re Notes: svn path=/head/; revision=113997
* Remove the %gs restoring hack (already commented out).Daniel Eischen2003-04-252-12/+2
| | | | | | | | | | Don't install man pages. Temporarily (again) rename the library to libkse. It will be put back to libpthread after more wide-spread testing. Notes: svn path=/head/; revision=113996
* In compat mode, we `redispatch' the lookup. It is probably a goodJacques Vidrine2003-04-241-0/+1
| | | | | | | | | | | idea to re-initialize `struct passwd', because e.g. pw_class might get set by one module, but not by another. Add another call to the internal pwd_init function to accomplish this. Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113992
* Catch up with nsdispatch.c: nsdispatch(3) is now `hidden' byJacques Vidrine2003-04-241-1/+3
| | | | | | | | | namespace.h. Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113984
* Don't complain about missing NSS methods when built statically. It isJacques Vidrine2003-04-241-1/+3
| | | | | | | | | annoying and not very useful. Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113983
* Catch up with nsdispatch.c: nsdispatch(3) is now `hidden' byJacques Vidrine2003-04-242-4/+8
| | | | | | | | | namespace.h. Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113977
* Catch up with nsdispatch.c: nsdispatch(3) is now `hidden' byJacques Vidrine2003-04-242-3/+3
| | | | | | | | | namespace.h. Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=113976