summaryrefslogtreecommitdiffstats
path: root/lib/libc/i386
Commit message (Collapse)AuthorAgeFilesLines
* Add wrappers for pread and pwrite syscalls.dt1999-04-041-3/+3
|
* EACESS -> EACCESalex1999-03-151-2/+2
|
* Reviewed by: Luoqi Chen, Jordan Hubbardjulian1998-12-191-3/+5
| | | | | | | | | | | | Submitted by: "Richard Seaman, Jr." <lists@tar.com> Obtained from: linux :-) Code to allow Linux Threads to run under FreeBSD. By default not enabled This code is dependent on the conditional COMPAT_LINUX_THREADS (suggested by Garret) This is not yet a 'real' option but will be within some number of hours.
* 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 missing header in synopsis.bde1998-08-031-1/+2
|
* Fixed disordering in previous commit.bde1998-07-291-4/+4
|
* u_int --> unsigned int, remove (now unneeded) <sys/types.h>jlemon1998-07-283-15/+13
|
* oops, forgot to do ``cvs add'' first.jlemon1998-07-285-0/+338
|
* 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()
* Fix a bunch of spelling errors.steve1998-06-041-2/+2
| | | | | PR: 6856 Submitted by: Josh Gilliam <josh@quick.net>
* 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 unused file. It just forces a return value of 0 on successbde1997-10-181-48/+0
| | | | | (no carry), but mount() in the kernel has returned 0 on success since prehistoric times.
* Handle machine-dependent (stdlib) sources more automatically.bde1997-10-161-2/+2
| | | | | | | This fixes bugs in the manual handling. abs.[cS] was handled too specially and the wrong (.c) variant for each of div.[cS], labs.[cS] and ldiv.[cS] was added to SRCS. This caused the .c variant to be used if `depend' was made and the .S version to be used otherwise.
* 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.
* Handle machine-dependent (m-d) (string) sources more automatically.bde1997-10-161-6/+4
| | | | | | | | | | | | | | | | | | | | | The names of m-d variants are now added (manually) to MDSRCS instead of to SRCS, and the names of all machine-independent (m-i) variants that can reasonably be replaced by an m-d variant are now added (manually) to MISRCS instead of to SRCS, so that a simple substitution can be used to discard the unused m-i variants. MISRCS is potentially all m-i sources, but the substitution is too simple to be fast, so MISRCS should be kept reasonably small. libc/Makefile.inc: Do the substitution. libc/i386/string/Makefile.inc: Add to MDSRCS instead of to SRCS. Add the names of all sources in this directory, but no others. libc/string/Makefile.inc Add to MISRCS instead of to SRCS. Add the names of all sources in this directory. Don't use (broken) explicit rules for special cases.
* Moved `SRCS+= frexp.c' to the correct Makefile.inc.bde1997-10-141-3/+3
| | | | Sorted SRCS.
* kill the undeadpeter1997-07-1331-1689/+0
|
* This commit was generated by cvs2svn to compensate for changes in r27180,bde1997-07-0331-0/+1689
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Import Lite2's src/lib, except for non-i386 machine-dependent directories,bde1997-07-0331-0/+1689
| | | | | | | | | | libc/db, libc/gen/crypt.* and libtelnet. All affected files except 3 unimportant ones have already left the vendor branch.
| * Import CSRG 4.4BSD-Lite2 lib/libc onto vendor branchpeter1997-03-1123-264/+111
| |
| * recording cvs-1.6 file deathpeter1995-12-3031-1689/+0
| |
| * This commit was manufactured by cvs2svn to create branch 'CSRG'.cvs2svn1995-06-2723-0/+1448
| |
* | 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.
* | Use separate routines for memmove() and memcpy(). This lets me dropbde1997-04-201-0/+2
| | | | | | | | | | | | | | the (buggy) support for alternative entry points. ALTENTRY() was only used for memmove(). Optimizing for space was particularly silly because memcpy() is rarely used (gcc normally inlines it). Obtained from: NetBSD
* | Use separate routines for memmove() and memcpy(). This lets me dropbde1997-04-202-94/+4
| | | | | | | | | | | | | | | | the (buggy) support for alternative entry points. ALTENTRY() was only used for memmove(). Optimizing for space was particularly silly because memcpy() is rarely used (gcc normally inlines it). Obtained from: NetBSD
* | Merged with the 1996/11/12 NetBSD version:bde1997-04-201-10/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - use a slightly less bogus copyright. This file was never contributed to Berkeley. It still claims to be copright by the Regents. - use <machine/asm.h> instead of "DEFS.h". - use RCSID($Id$) instead of explicit assembly code and messy ifdefs. The rcsid won't be put into the object file until we make RCSID() non-null. NetBSD uses a LIBC_SCCS ifdef here. We used a LIBC_RCS instead, but I want RCSID() to be controlled directly by LIBC_RCS (actually by LIB_RCS). This is the only difference with the NetBSD version. - added ifdefs to support generation of memcpy() and memmove(). The other changes are "while I'm here" to get this. - improved style of the copy backwards case.
* | Fixed long lines.bde1997-04-191-8/+9
| | | | | | | | | | | | Removed unused macros CALL() and ASMSTR. Reviewed by: jdp
* | Second stage of moving this to in <machine/asm.h>: just includebde1997-04-151-82/+2
| | | | | | | | <machine/asm.h> here.
* | Revert $FreeBSD$ to $Id$peter1997-02-2263-117/+117
| |
* | Moved definitions of PIC macros from SYS.h to DEFS.h so that SYS.hbde1997-02-142-21/+21
| | | | | | | | | | | | | | | | 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-1463-117/+117
| | | | | | | | | | | | | | | | 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-206-44/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0520-160/+204
| | | | | | | | | | | | | | | | | | | | | | 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.
* | rfork/minherit glue in libcpeter1996-02-231-0/+51
| | | | | | | | man pages adapted from OpenBSD's versions.
* | Put in missing '_' in call to wrapper _thread_sys_sigsetmask() function.peter1996-02-171-3/+3
| |
OpenPOWER on IntegriCloud