summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Sync up with kern/subr_prf.c. This adds %ll, %j, %q, %z, etc.peter2003-04-061-47/+115
|
* Rework the floating point code in printf(). Significant changes:das2003-04-052-151/+191
| | | | | | | | | | | | | | | | | | - We used to round long double arguments to double. Now we print them properly. - Bugs involving '%F', corner cases of '#' and 'g' format specifiers, and the '.*' precision specifier have been fixed. - Added support for the "'" specifier to print thousands' grouping characters in a locale-dependent manner. - Implement the __vfprintf() side of hexadecimal floating point support. All that is still needed is a routine to convert the mantissa to hex digits one nibble at a time in the style of ultoa(). Reviewed by: silence on standards@
* Add __ldtoa(), a wrapper around gdtoa() to make it look like dtoa().das2003-04-058-1/+135
| | | | | | | In support of this, add some MD macros to assist in converting long doubles to the format expected by gdtoa(). Reviewed by: silence on standards@
* Add missing #include to unbreak previous commit.das2003-04-051-0/+1
|
* Correct some buffer sizes.das2003-04-053-23/+42
| | | | | | | | | | - __vfprintf()'s 'buf' has never been used for floating point, so don't define it in terms of (incorrect) constants describing floating point numbers. The actual size needed depends on sizeof(uintmax_t) and locale details, so I slightly overestimated. - We don't need a 308-character buffer to store the string "308". With long doubles and %a we need more than three characters, though.
* Migrate to a new way of dealing with building from old revisions ofimp2003-04-052-8/+0
| | | | | | | | | | | | | | | | | FreeBSD. This method attempts to centralize all the necessary hacks or work arounds in one of two places in the tree (src/Makefile.inc1 and src/tools/build). We build a small compatibility library (libbuild.a) as well as selectively installing necessary include files. We then include this directory when building host binaries. This removes all the past release compatibilty hacks from various places in the tree. We still build on tip of stable and current. I will work with those that want to support more, although I anticipate it will just work. Many thanks to ru@, obrien@ and jhb@ for providing valuable input at various stage of implementation, as well as for working together to positively effect a change for the better.
* MFp4: Link strtof.3 and strtold.3 to strtod.3.tjr2003-04-051-0/+1
|
* Zero out the struct tm supplied by the caller. Otherwise,mtm2003-04-051-0/+1
| | | | | | | | strange things might happen when garbage values in the struct get passed in to localtime_r() and family. Noticed by: marcus Approved by: markm (mentor)(implicit)
* MFp4: Pentium/Athlon-optimised implementation of wcschr().tjr2003-04-052-1/+78
|
* Use sized cast matching the sized pointer.phk2003-04-041-1/+1
|
* Libdisk does not need to include <sys/diskslice.h> any more.phk2003-04-049-9/+0
| | | | | | | | | Move the remaining bits of <sys/diskslice.h> to <i386/include/bootinfo.h> Move i386/pc98 specific bits from <sys/reboot.h> to <i386/include/bootinfo.h> as well. Adjust includes in sys/boot accordingly.
* Fix braino in definition of isfinite().das2003-04-041-1/+1
| | | | | Noticed by: marcus Pointy hat to: das
* No need to have ifdef < FreeBSD 4.0-current in here. Remove it toimp2003-04-042-12/+0
| | | | avoid false positive while searching for __FreeBSD_version abuse.
* - Pass a ucontext_t to _set_curthread. If non-NULL the new thread is setjake2003-04-035-11/+18
| | | | | | | | as curthread in the new context, so that it will be set automatically when the thread is switched to. This fixes a race where we'd run for a little while with curthread unset in _thread_start. Reviewed by: jeff
* - Don't overrun the ldt buffer.jeff2003-04-021-2/+2
| | | | Submitted by: gordan@freebsd.org
* Implement _get_curthread and _set_curthread. This is especially easy.jake2003-04-022-0/+58
|
* - Define curthread as _get_curthread() and remove all direct calls tojeff2003-04-0220-96/+21
| | | | | | | _get_curthread(). This is similar to the kernel's curthread. Doing this saves stack overhead and is more convenient to the programmer. - Pass the pointer to the newly created thread to _thread_init(). - Remove _get_curthread_slow().
* Add MD makefile.jake2003-04-011-0/+3
|
* Implement makecontext.jake2003-04-013-3/+129
|
* - Don't drop and reacquire giant in thread_suspend(). Change callers to dojeff2003-04-013-38/+8
| | | | | this manually. This will facilitate the unrolling of giant. - Don't allow giant to recurse anymore. This should never happen.
* - Reenable setschedparam and the prioceiling code now that the mutex codejeff2003-04-012-19/+10
| | | | has been restored.
* - Restore old mutex code from libc_r. It is more standards compliant.jeff2003-04-012-205/+1364
| | | | | | | This was changed because originally we were blocking on the umtx and allowing the kernel to do the queueing. It was decided that the lib should queue and start the threads in the order it decides and the umtx code would just be used like spinlocks.
* [1] - Document EHOSTUNREACH as a possible errorceri2003-04-011-1/+3
| | | | | | | | [2] - Remove a contraction PR: docs/50401 Submitted by: [1] Slaven Rezic <slaven@rezic.de> MFC after: 1 week
* - Adjust the makefiles so we have a per architecture makefile.jeff2003-04-013-1/+7
|
* - Spell SIGSETOR correctly.jeff2003-04-011-1/+1
|
* - Commit the forgotten libthr/sys bits.jeff2003-04-012-0/+64
|
* - Add libthr but don't hook it up to the regular build yet. This is anjeff2003-04-0149-0/+7686
| | | | | adaptation of libc_r for the thr system call interface. This is beta quality code.
* - Catch up with kernel signal changes.jeff2003-03-311-1/+2
|
* Add a facility allowing processes to inform the VM subsystem they arewes2003-03-311-0/+9
| | | | | | | | critical and should not be killed when pageout is looking for more memory pages in all the wrong places. Reviewed by: arch@ Sponsored by: St. Bernard Software
* Experimental pam_chroot module (not connected to the build)des2003-03-303-0/+193
|
* MFp4: Fix copy&paste English error.jmallett2003-03-301-1/+1
|
* BDE'ifyfjoe2003-03-291-79/+89
|
* fix truncation check and buffer overflow checkfjoe2003-03-291-11/+11
|
* Align signal frame placed on stack to 16 bytes so that SSE FPU registerdeischen2003-03-291-1/+2
| | | | | | restores can work. Also correct allocation for signal frame size. Reviewed by: mini
* Don't dereference flags if NULL (see http.c rev 1.87)des2003-03-291-1/+1
|
* Fill in the rest of the fields in the resulting struct tmmtm2003-03-291-2/+3
| | | | | | | | | | from strptime(3). Previously, they would get filled only for the %s specifier and as a side effect of using the the %Z specifier with a GMT time zone. PR: misc/48993 Approved by: markm (mentor) Silence on: -standards
* - MAXPATHLEN -> PATH_MAX (pass correct buffer size to readlink as well)fjoe2003-03-281-17/+17
| | | | Requested by: bde
* Close the disk file descriptor that is RO before trying to open thejmallett2003-03-281-4/+1
| | | | | | | | | new one, and do not fall back to the RO fd. There was a bug here in that the RO fd was never closed, if the RDRW open succeeded, but this code is bogus anyway, and it breaks newfs of floppies, at least for me, due to "Device busy." Anything that wants to fall back is doing something significantly odd that it should have some more complex code on its end.
* Make realpath() thread-safe. New implementation does not use chdir(2) at all.fjoe2003-03-272-111/+128
| | | | Submitted by: Constantin S. Svintsoff <kostik (at) iclub.nsu.ru>
* Run a revision on the OAM api.phk2003-03-272-93/+136
| | | | | | | Use prefix gctl_ systematically. Add flag with access perms for each argument. Add ro/rw versions of argument building functions. General cleanup.
* - Define a _spinunlock() function so that threading implementations may dojeff2003-03-265-1/+31
| | | | | | more complicated things than just setting the lock to 0. - Implement stubs for this function in libc and the two threading libraries that are currently in the tree.
* Back off WARNS until I've had a chance to deal with the problems onmdodd2003-03-251-1/+1
| | | | sparc64/alpha.
* Fix warnings.mdodd2003-03-256-18/+24
|
* The .Fn functioncharnier2003-03-244-7/+11
| | | | The ... 2 system call
* The .Fn function. Use .Xr where appropriate.charnier2003-03-2436-89/+166
|
* The .Fn functioncharnier2003-03-2417-48/+84
|
* The .Nm librarycharnier2003-03-241-2/+3
|
* The .Fn functioncharnier2003-03-245-13/+23
| | | | The .Fa argument
* The .Fn functioncharnier2003-03-241-5/+10
| | | | The .Nm library
* Add marshalling functions for OAM api.phk2003-03-233-1/+262
|
OpenPOWER on IntegriCloud