summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Do not fail doing rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.a if thepeter2001-11-031-1/+1
| | | | | intermediate directories dont exist. (eg: when building standalone includes, using the beforeinstall target in src/lib)
* Put in an attempt at stack trace/unwind records.peter2001-11-031-0/+8
|
* Do not ``build'' (ie remove, and put in stub libraries) for libresolvpeter2001-11-031-3/+8
| | | | | | | | | | | and/or libgnumalloc on anything but i386. The other platforms post-date this mistake. Do not build libc_r for ia64. There are some fundamental issues that need to be resolved (ie: it cannot use setjmp/longjmp for thread switching, which isn't likely to be fixed soon. libc_r has to be reimplemented using something like makecontext()/swapcontext() etc in order to work in ia64.)
* Dont fail if ${DESTDIR}${LIBDIR}/ or any of its components dontpeter2001-11-031-1/+2
| | | | exist for the rm -f of libresolv.a
* Dont fail if the intermediate directories in ${DESTDIR}/usr/lib/compat/*peter2001-11-031-1/+1
| | | | dont exist. IMHO, this is kinda silly.
* phkmalloc->evilchecks++;phk2001-11-021-3/+13
| | | | | | | | If zero bytes are allocated, return pointer to the middle of page-zero (which is protected) so that the program will crash if it dereferences this illgotten pointer. Inspired & Urged by: Theo de Raadt <deraadt@cvs.openbsd.org>
* Add notice about early use from malloc.c forbidding malloc use fromphk2001-11-021-0/+5
| | | | this function.
* Add a long-overdue nail to the deprecated /dev/urandom interfacemarkm2001-10-302-2/+2
| | | | | by asking some things that need unpredictable numbers to read /dev/random instead.
* Mostly cosmetic. Use indentation that is reasonably close to otherpeter2001-10-292-20/+20
| | | | | | | ia64 *.S files in our tree (eg: locore.s). Put the rest of the args in the .section lines. Reviewed by: dfr
* Update for the new toolchain. ld doesn't provide _GLOBAL_OFFSET_TABLE_peter2001-10-291-1/+8
| | | | | | in 2.11.2, so use a relocatable method of calculating gp. Reviewed by: dfr
* Make the output from assert() look more like the example in the C99mike2001-10-292-6/+6
| | | | | | standard. Requested by: bde
* Add time_to_int(), int_to_time(), time_to_long(), long_to_time().dillon2001-10-281-0/+40
|
* Add routines to convert time_t to/from fixed-bit fields. These routinesdillon2001-10-282-1/+62
| | | | | | | | | | | | | | | | | | | serve two purposes: (1) so we can maintain backwards compatibility with protocols (rwhod, dump, etc...) that either assume time_t is 32 bits or assume sizeof(time_t) == sizeof(int), or make other similar assumptions. (2) To tag such routines (by the presence of these calls) for future cleanup/extension work. The 32->64 routine, time32_to_time() (when time_t is 64 bits, that is), is defined specifically to implement temporal locality to properly set the msb bits of a 64 bit time_t quantity, using the 50 year rule. The locality code has not been implemented yet (and doesn't need to be for a while), but that is the intent. This will allow us to maintain backwards protocol compatibility past 2038. These routines are intended to be platform and time_t agnostic. MFC after: 1 week
* sparc64 verions of the crt initialization and finalization files requiredobrien2001-10-282-0/+100
| | | | by the ELF ABI.
* Only provide function information in compile environments that supportmike2001-10-272-9/+17
| | | | | | | the C99 variable __func__ and never for C++. Provide a more meaningful example in the assert(3) manual. Reviewed by: asmodai, bde
* Restore K&R prototype. Fix other style bugs.mike2001-10-271-2/+3
| | | | Reviewed by: asmodai, bde
* Add missing crti.S and crtn.S files. I have tested these with -staticpeter2001-10-272-0/+92
| | | | linking only. They may require some gp relative tweaks for dynamic use.
* Sync with other platforms.obrien2001-10-271-2/+3
|
* minor style updatingobrien2001-10-273-13/+9
|
* Update for reality and syncing with other FreeBSD platforms.obrien2001-10-271-6/+5
|
* Feh, it helps to include a file other than yourself... wonder howobrien2001-10-271-1/+1
| | | | | | GCC cpp liked that. Properly include the branding info.
* Explicitly use int32_t for on-disk records for pw_change and pw_expire,peter2001-10-271-2/+5
| | | | | | since that is what we use now and this insulates us from any time_t tweaks here. We can define a record format that uses 64 bit times if/when we need to.
* Remove the -I../libc/${MACHINE_ARCH} that was there solely forpeter2001-10-261-3/+0
| | | | the #include "DEFS.h" that was only used on i386 (which has been fixed).
* Make libc_r check the kern.usrstack sysctl instead of using internalpeter2001-10-269-18/+60
| | | | | | | kernel #defines to figure out where the stack is located. This stops libc_r from exploding when the kernel is compiled with a different KVM size. IMHO this is all kinda bogus, it would be better to just check %esp and work from that.
* Style: sort __sys_foo() prototypes, tabs -> spaces, etc.ru2001-10-263-234/+234
|
* Removed:ru2001-10-2610-250/+30
| | | | | | | | | | | | | | | | | | | | | | | | - uthread_signal.c; libc_r does not wrap signal() since 1998/04/29. - uthread_attr_setprio.c; it was never connected to the build, and pthread_attr_setprio() does not exist in POSIX. - uthread_sigblock.c and uthread_sigsetmask.c; these were no-ops bloating libc_r's space. pthread_private.h: - Removed prototypes of non-syscalls: send(). - Removed prototypes of unused syscalls: sigpending(), sigsuspend(), and select(). - Fixed prototype of fork(). - MFS: Fixed prototypes of <sys/socket.h> syscalls. Reviewed by: deischen Approved by: deischen, jasone
* Remove the internal implementation details of wrapping syscalls,ru2001-10-2619-505/+0
| | | | | | which do not match the reality anyway. Approved by: deischen, bde
* Compensate for the way that _setjmp aligns the start of jmp_buf.dfr2001-10-262-5/+23
|
* Fix nit in copyright.obrien2001-10-261-2/+2
|
* Use the new machine-independent versions of crtbegin and crtendobrien2001-10-262-108/+0
| | | | from the "common" directory.
* Minimal libc for sparc64.jake2001-10-2619-0/+874
| | | | Reviewed by: obrien
* In > LONG_MAX test use sseek return value and not _offset which can be notache2001-10-251-3/+4
| | | | active.
* Don't put an extra space after password prompts, because it violates POLA,sobomax2001-10-252-7/+7
| | | | | | makes FreeBSD inconsistent with previous releases and "other unices" as well as with some internal password-asking services (e.g. ftp) within the same release.
* Implement va->pa translation for kernel virtual addresses. This isdfr2001-10-251-30/+59
| | | | untested - it only seems to be used for crashdumps.
* Fix bugs in NgSendMsg() and NgSendAsciiMsg() where the wrong tokenarchie2001-10-251-2/+2
| | | | | | | value could be returned when the debug level was non-zero. Submitted by: Harti Brandt <brandt@fokus.gmd.de> MFC after: 5 days
* Change #include "DEFS.h" to <machine/asm.h>.peter2001-10-254-4/+4
|
* De-orbit DEFS.h - the other arches do not use it, and it got replacedpeter2001-10-2442-82/+35
| | | | | | with <machine/asm.h>. Reviewed by: bde
* Add __FBSDID.asmodai2001-10-241-3/+5
| | | | | Change __assert() function to print failing function name. This makes us C99 conforming.
* Add __FBSDID.asmodai2001-10-241-5/+10
| | | | | | Change __assert() function to print failing function name. #if 0 the sccsid block. This makes us C99 conforming.
* Help to recover from bad seek (i.e. negative or too big) happens beyondache2001-10-242-5/+12
| | | | | our pre-check control. Do the same way as refill.c does when it set __SERR, i.e. clear read and ungetc buffers. Clear EOF flag too.
* Back out read buffer invalidating via __SMOD.ache2001-10-232-7/+2
| | | | | It was correct, but not needed because internal buffer cleared on each seek outside of it.
* Change comment explaining another usage of __SMODache2001-10-231-2/+2
|
* Disallow fseek() optimization in internal read buffer, if pointer is moved byache2001-10-231-0/+5
| | | | | seek. It means that beginning of read buffer becomes not the same as current file position.
* Partially port kvm to ia64 - virtual to physical translation is incomplete.dfr2001-10-231-0/+167
|
* Allow users to specify a command to use as remote command instead ofimp2001-10-234-6/+257
| | | | | | | | | | using rcmd directly. This has been in my tree for a long time, but we may need to sync with OpenBSD before MFC. Obtained from: openbsd PR: 15830 MFC after: 2 months
* Refer to chflags(2) instead of chflags(1) (since we're a section 2dd2001-10-231-3/+2
| | | | | | | manual page), fix capitalization, and remove chflags reference from SEE ALSO since the only time it's referenced is with an .Xr, anyway. Submitted by: bde
* Fix WAW dependency. p6 is written in the syscall epilogue.peter2001-10-221-0/+1
|
* Fix a few more dependancy violations.dfr2001-10-221-3/+3
|
* In the words of the submitter:deischen2001-10-211-2/+10
| | | | | | | | | | | | | In libc_r, if _FDLOCKS_ENABLED is not defined, there is no guarantee in many of the sycall wrappers that _thread_fd_table[fd] is initialized. This causes problems for programs that pass in file descriptors and execve() another program; when the exec'ed program tries to do an fcntl() or other syscall on the passed-in fd, it fails. Add calls to initialize the FD table entry for _thread_fd_lock and _thread_fd_lock_debug. Submitted by: Peter S. Housel <housel@acm.org>
* Implement setjmp, longjmp, sigsetjmp and siglongjmp.dfr2001-10-203-104/+53
|
OpenPOWER on IntegriCloud