summaryrefslogtreecommitdiffstats
path: root/lib/libc/amd64
Commit message (Collapse)AuthorAgeFilesLines
* Remove osig* from NOASM. It bogus now.marcel1999-10-141-2/+1
|
* \begin{quote}marcel1999-10-101-1/+1
| | | | | | | | | | | setjmp() gets the jmp_buf pointer from the wrong place (the place where the return address is) in the shlib case, and uses it (only) to fetch the current signal mask to address (return_address + 28). This address is normally read-only (I hope), so the sigprocmask() call has no effect except to return an error code. \end{quote} Submitted by: bde
* Remove syscall wrappers.marcel1999-10-091-3/+2
|
* sigset_t change (part 5 of 5)marcel1999-09-294-34/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ----------------------------- Most of the userland changes are in libc. For both the alpha and the i386 setjmp has been changed to accomodate for the new sigset_t. Internally, libc is mostly rewritten to use the new syscalls. The exception is in compat-43/sigcompat.c The POSIX thread library has also been rewritten to use the new sigset_t. Except, that it currently only handles NSIG signals instead of the maximum _SIG_MAXSIG. This should not be a problem because current applications don't use any signals higher than NSIG. There are version bumps for the following libraries: libdialog libreadline libc libc_r libedit libftpio libss These libraries either a) have one of the modified structures visible in the interface, or b) use sigset_t internally and may cause breakage if new binaries are used against libraries that don't have the sigset_t change. This not an immediate issue, but will be as soon as applications start using the new range to its fullest. NOTE: libncurses already had an version bump and has not been given one now. NOTE: doscmd is a real casualty and has been disconnected for the moment. Reconnection will eventually happen after doscmd has been fixed. I'm aware that being the last one to touch it, I'm automaticly promoted to being maintainer. According to good taste this means that I will receive a badge which either will be glued or mechanically stapled, drilled or otherwise violently forced onto me :-) NOTE: pcvt/vttest cannot be compiled with -traditional. The change cause sys/types to be included along the way which contains the const and volatile modifiers. I don't consider this a solution, but more a workaround.
* $Id$ -> $FreeBSD$peter1999-08-2825-45/+45
|
* Add wrappers for pread and pwrite syscalls.dt1999-04-041-3/+3
|
* Simplify implementation and eliminate a register preservation problem.luoqi1998-09-181-24/+10
| | | | Reviewed by: Bruce Evans <bde@zeta.org.au>
* Fix a cut 'n paste mistake.luoqi1998-09-131-4/+4
|
* In libc_r, rename vfork syscall to _thread_sys_vfork and make vfork an aliasdt1998-09-121-2/+6
| | | | | | | to fork. It is difficult to do real vfork in libc_r, since almost every operation with file descriptsor changes _thread_fd_table and friends. popen(3) works much better with this change.
* Fixed disordering in previous commit.bde1998-07-291-4/+4
|
* Add wrappers for i386_*_ioperm, i386_vm86 so userland code doesjlemon1998-07-281-3/+5
| | | | | not have to call sysarch() directly. Added man pages for above, as well as sysarch()
* Use the thread-aware errno definition all the time.jb1998-05-051-22/+3
|
* Build the syscalls (in libc, not libc_r) with weak symbols so thatjb1998-05-051-3/+9
| | | | libpthread can override them as required.
* Oops, backout the previous change having confused my underscores.jb1998-04-301-3/+2
| | | | | | __thread_create is a syscall that uses the default asm. It is _thread_create that contains specific asm code, but that lives in libpthread.
* Make cerror thread aware by calling __error() to get a pointer to thejb1998-04-301-22/+5
| | | | | thread-specific error variable. This change make libc use the same cerror code that libc_r has been using.
* The syscall that creates a kernel thread is coming, but it doesn't use thejb1998-04-301-4/+3
| | | | | | default syscall asm, so add it to NOASM. The other syscalls that manipulate kernel threads use the default asm code, so they just get built automatically.
* Stop renaming these in libc_r because wrappered versions don't make sense.jb1998-04-293-30/+6
| | | | PR: i386/4826, bin/5953
* Nearly missed this one.jb1998-03-091-1/+20
| | | | | | | List non-default asm sources in MDASM so that they replace the defaults. For funny or incomplete syscalls, list them in NOASM to stop them from getting built as defaults.
* Removed bogus .PATH statement.bde1997-10-161-3/+1
|
* Removed the subdirectory paths from the definitions of MAN[1-9]. Theybde1997-10-161-3/+2
| | | | | were a workaround for limitations in bsd.man.mk that were fixed about 2 years ago.
* Moved `SRCS+= frexp.c' to the correct Makefile.inc.bde1997-10-141-3/+3
| | | | Sorted SRCS.
* Changed all paths to be relative to src/lib instead of src/lib/libcjb1997-05-031-2/+5
| | | | | | | | | | so that all these makefiles can be used to build libc_r too. Added .if ${LIB} == "c" tests to restrict man page builds to libc to avoid needlessly building them with libc_r too. Split libc Makefile into Makefile and Makefile.inc to allow the libc_r Makefile to include Makefile.inc too.
* Fixed long lines.bde1997-04-191-8/+9
| | | | | | Removed unused macros CALL() and ASMSTR. Reviewed by: jdp
* Revert $FreeBSD$ to $Id$peter1997-02-2225-45/+45
|
* Moved definitions of PIC macros from SYS.h to DEFS.h so that SYS.hbde1997-02-141-20/+0
| | | | | | | | doesn't need to be included in files that have nothing to do with syscalls. Added missing `.text' to START_ENTRY so that ENTRY() works when invoked in the data section.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-1425-45/+45
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Correct a "spelling" error in a comment.dyson1996-10-311-2/+2
|
* Submitted by: john birell (jb@cimlogic.com.au)julian1996-08-221-3/+3
| | | | | fixups for makefiles and for Thread-safe sycalls
* Submitted by: John Birrell <cimaxp1!jb@werple.net.au>julian1996-08-203-23/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here are the diffs for libc_r to get it one step closer to P1003.1c These make most of the thread/mutex/condvar structures opaque to the user. There are three functions which have been renamed with _np suffixes because they are extensions to P1003.1c (I did them for JAVA, which needs to suspend/resume threads and also start threads suspended). I've created a new header (pthread_np.h) for the non-POSIX stuff. The egrep tags stuff in /usr/src/lib/libc_r/Makefile that I uncommented doesn't work. I think its best to delete it. I don't think libc_r needs tags anyway, 'cause most of the source is in libc which does have tags. also: Here's the first batch of man pages for the thread functions. The diff to /usr/src/lib/libc_r/Makefile removes some stuff that was inherited from /usr/src/lib/libc/Makefile that should only be done with libc. also: I should have sent this diff with the pthread(3) man page. It allows people to type make -DWANT_LIBC_R world to get libc_r built with the rest of the world. I put this in the pthread(3) man page. The default is still not to build libc_r. also: The diff attached adds a pthread(3) man page to /usr/src/share/man/man3. The idea is that without libc_r installed, this man page will give people enough info to know that they have to build libc_r.
* General -Wall warning cleanup, part I.jkh1996-07-121-2/+4
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* Fixed comparisons so that preposterously large (>= 0x80000000) brk valuesbde1996-06-251-5/+5
| | | | | | | | | | aren't silently converted to minbrk. This stops malloc(INT_MAX) from dumping core. Small values are still silently converted. They should be an error. sbrk() doesn't do any range checking or conversions or overflow checking. Moved PIC_EPILOGUE invocation to a more natural place where it obviously doesn't interfere with the comparison.
* Fix a bug caused by the collision of a local assembler label with anotherjdp1996-05-111-8/+8
| | | | | use of the same label in a recently-introduced PIC_PROLOGUE. This should solve the recent core dumps from pdksh.
* Fix a bogon in the pic + threadsafe version of cerror, it was missingpeter1996-05-101-3/+5
| | | | | | a PIC_EPILOGUE (leaving an extra long on the stack). Submitted by: John Polstra <jdp@polstra.com>
* Add support to enable libc to be compiled in ELF format. (#ifdef __ELF__)peter1996-05-0512-121/+132
| | | | | | | | | | | In a nutshell, this macroizes the local/global symbol scoping rules that are different in a.out and ELF. It also makes the i386 assembler stubs conform to i386 PIC calling conventions - the a.out ld.so didn't object, but the ELF one needs it as it implements PIC jumps via PLT's as well as calls. The a.out rtld only worked because it was accidently snooping the grandparent calling function's return address off the stack.. This also affects the libc_r code a little, because of cpp macro nesting.
* Put in missing '_' in call to wrapper _thread_sys_sigsetmask() function.peter1996-02-171-3/+3
|
* Reviewed by: julian and (hsu?)julian1996-01-228-18/+119
| | | | | | Submitted by: John Birrel(L?) changes for threadsafe operations
* remove GCC support functions from libc.phk1995-10-051-2/+1
| | | | Should never have been here in the first place.
* Calling sbrk(2) with zero argument doesn't need to generate a syscall.phk1995-10-041-4/+10
| | | | Reviewed by: bde
* First round of changes to clean up the RCSID mess in libc:dg1995-01-2323-74/+112
| | | | | | | | 1) Changed LIB_SCCS and SYSLIB_SCCS to LIB_RCS and SYSLIB_RCS. 2) Changed sccsid[] variables to rcsid[] 3) Moved all RCSID strings into .text 4) Converted all SCCSID's to RCS $Id$'s 5) Added missing $Id$'s after copyright.
* sigsetjmp.S:bde1994-12-271-3/+2
| | | | Remove unnecessary .text statement.
* Remove unnecessary .align statement.bde1994-12-272-2/+0
|
* Reenable sigsetjmp.S. Preserve the FP state. Rearrange offsetsbde1994-10-252-7/+25
| | | | to match setjmp.S.
* This is weird. I *added this*, but it went away again! Ummm.. Mumble.jkh1994-08-221-0/+6
| | | | | I'm confused.. Submitted by: jkh
* Put __infinity back here again until someone does the right thing andjkh1994-08-201-1/+1
| | | | | | repartitions libc into something human again. I don't have that kind of time right now myself, unfortunately. Submitted by: jkh
* Fixed problem with returning -1 on error when the return value is adg1994-08-131-1/+2
| | | | | | | | long long. Done by plugging both eax and edx with -1. This will clobber edx unnecessarily when the return value is only 32bit...though probably always an okay thing to do, it could stand a better fix. This was the cause of gawk being broken (boy was THAT ever a subtle bug!!!).
* First crack at making libc work with the new make macros. It compiles onwollman1994-08-0520-12/+1126
| | | | | my machine, and a simple static (genassym) and shared (sysctl) executable both work. Still to be done: RPCand YP merge.
* Pull in GNU2 fix for this from FreeBSD, allows ldexp.c to compile withrgrimes1994-05-271-0/+10
| | | | gcc2.x
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-276-0/+256
|
* Add $Id$ to all, clean up multiple spacesrgrimes1994-02-211-2/+3
|
* WINE/user LDT support from John Brezak, ported to FreeBSD by Jeffrey Hsudg1994-01-311-0/+9
<hsu@soda.berkeley.edu>.
OpenPOWER on IntegriCloud