summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Add clarifications about the information that ntp_gettime returns.imp2003-06-211-8/+18
| | | | | | | | | | TAI is a timescale, just like UTC. The tai field returns the offset between the two, and isn't really used for precision time keeping. Explain in brief what a positive and a negative leap seconds are. Add some URLs to very useful web pages about time and time keeping for more information on using this API. Reviewed by: phk
* Userland spinlocks bad. Sleep locks good.das2003-06-211-2/+5
| | | | | | Use the latter for gdtoa. Requested by: deischen (far too long ago)
* ttyname(3) must return absolute pathnames.phk2003-06-211-2/+8
| | | | Noticed by: kris
* Use devname(3) to do the task.phk2003-06-201-66/+2
| | | | Reviewed by: imp
* Explain the relationship to POSIX.wollman2003-06-201-0/+14
|
* ntp_adjtime returns the current state of the clock (TIME_*) on successimp2003-06-201-1/+4
| | | | | | | or -1 on failure. The manual used to say it returned 0 or -1. Both examination of the kernel sources, and ntpd show that this is the case. MFC After: 3 days
* Add devname_r(3) which takes a buffer as argument.phk2003-06-202-56/+21
|
* Remove bogus non-reentrant "temporary" implementation of gethostbyaddr_r()kris2003-06-191-19/+0
| | | | | | | that has been here for 6 years and 9 months. Reviewed by: deischen MFC After: 1 week
* Make the execle() synopsis look (again) like a normal C prototype.ru2003-06-181-3/+3
| | | | | | | | | Also fixed the rest of ell (list) functions prototypes to include a (commented out) terminating null pointer. Pointed out by: bde Obtained from: POSIX.1-2001 Glanced at by: imp
* Xref policy: exit(2) -> _exit(2).sobomax2003-06-171-1/+1
|
* Fix the execle(3) synopsis to include the environment pointer.phk2003-06-171-1/+1
| | | | Confused: anordby
* Kill prototype for __msgwrite too. It is not needed anymore.mbr2003-06-151-1/+0
|
* Replace the old SCM_CREDS cred procedures. They can now bembr2003-06-151-122/+21
| | | | | | | | | replaced just fine with getpeereid() and the whole code gets a lot simpler. We don't break the ABI, since all server programms use __rpc_get_local_uid(), and we just change library internals. Reviewed by: des
* Only use this with a non-GCC compiler.obrien2003-06-141-0/+2
|
* Document ENOSPC.trhodes2003-06-131-0/+2
| | | | | PR: 52612 Submitted by: Marc Olzheim <marcolz@ilse.nl>
* This is unusable on amd64. Remove it before it causes more confusion.peter2003-06-131-53/+0
| | | | | | It is only possible to do this on an ABI that has a compulsory frame pointer, which the amd64 ABI does not. Thus, it is only possible to implement this as a compiler builtin.
* Mark the following interfaces as OBSOLETE_IN_6:tjr2003-06-134-4/+16
| | | | | | | fgetrune(), fputrune(), fungetrune(), mbrune(), mbrrune(), mbmb(), setinvalidrune(), UTF2 encoding method. These have been marked as being deprecated in their manual pages since 5.0, and their use causes a linker warning.
* Fixes to locale code to properly use indirect pointers in order to preventjkh2003-06-136-11/+11
| | | | | | | memory leaks (fixes bugs earlier purported to be fixed). Submitted by: Ed Moy <emoy@apple.com> Obtained from: Apple Computer, Inc. MFC after: 2 weeks
* Use C99 compatible ASM statements.obrien2003-06-101-1/+1
| | | | | (untested, but existing state breaks http://triangle.rtp.freebsd.org/~des/tinderbox-CURRENT-amd64-amd64.brief)
* Remove transition period hackache2003-06-101-32/+3
|
* Remove stale reference to the deprecated USER_LDT option. The associatedjhb2003-06-091-4/+0
| | | | | | | code is always compiled into the kernel now. Submitted by: Hubert Tournier <hubert@frbsd.org> PR: docs/53068
* The .Fn functioncharnier2003-06-081-3/+6
|
* .Xr p1003_1b moved to .St -p1003.1b-93charnier2003-06-082-6/+6
|
* .Xr -> .Lb for librairy. There is no manual page corresponding to .Xr.charnier2003-06-081-1/+1
|
* Add or correct section number in .Xr. Use .Vt or .Fncharnier2003-06-088-13/+13
| | | | instead of .Xr when needed
* Recognize the magic NODEV value.phk2003-06-051-3/+3
| | | | Format other unknown devices consistently in hex.
* Document the new explicit listing API for extended attributes; noterwatson2003-06-041-6/+32
| | | | | | | | | that the old API (passing "" as the attribute name to the _get_ interface) is now deprecated (and was probably a bad idea). Pointed out by: Dominic Giampaolo <dbg@apple.com> Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Document that kldload(2) can also return EEXIST.hmp2003-06-031-0/+4
| | | | Approved by: des (mentor)
* Cosmetic; record offsets used within jmpbufpeter2003-06-023-30/+30
|
* Fix sigsetjmp(). It helps if we do not try to save the old signal maskpeter2003-06-021-0/+1
| | | | to a random memory location. Perl works a lot better with this.
* Use C99 compatible ASM statements.obrien2003-06-022-3/+3
|
* o Fix a cut-n-paste bug. We were clobbering rp with gp...marcel2003-06-021-2/+2
| | | | | | o Make sure the arguments to ctx_wrapper() are loaded from the backing store by forcing an underflow. Do this by making all registers in the register frame local.
* Match style of source and headers.jmallett2003-06-011-1/+1
| | | | Submitted by: bde
* Assorted mdoc(7) fixes.ru2003-06-016-180/+190
|
* Add GBK encodingache2003-06-013-2/+121
| | | | | PR: 51504 Submitted by: Statue <statue@freebsd.sinica.edu.tw>
* Clarify the code a bit.phk2003-06-011-1/+2
| | | | Submitted by: Nadav Eiron <nadav@TheEirons.org>
* Make prototype match code with regard to constness of args to thejmallett2003-06-011-1/+1
| | | | function pointer passed in.
* Fix grammar bogons.schweikh2003-05-311-1/+1
| | | | MFC after: 3 days
* Rough implement of makecontext() needed to support libthr.marcel2003-05-312-1/+122
| | | | | | | | | | | | | | o Up to 8 arguments are allowed. This is the number of arguments passed in registers. Subsequent registers are passed on the stack. Trying to deal with this is not easy in C and likely forces us to use assembly code. Let's avoid that for now. There's no indication that more than 8 arguments is a strong requirement (Linux also has an 8 argument limit). o We expect that the stack base is 16-byte aligned and the stack size is a multiple of 16-byte. We bomb out if this is not the case. We probably want to be less strict by enforcing it ourselves. For now it's better to not hide gross alignment bogons by silently correcting it.
* Fix a sizeof error in __bt_put: when writing they key and data sizestmm2003-05-301-3/+5
| | | | | | | | | | to a buffer in the big key/data case, memmove() was used on pointers to size_ts, but only sizeof(u_int32_t) bytes where copied. This broke on big_endian architectures where sizeof(size_t) > sizeof(u_int32_t). This bug broke portupgrade (by way of ruby_bdb1) on sparc64. Approved by: re (rwatson)
* Add an stub for _rtld_thread_init. This is a part I missed inkan2003-05-301-0/+7
| | | | | | my last commit. Approved by: re (scottl)
* Don't return -1 and abort if msg.msg_controllen is 0. Formbr2003-05-291-2/+1
| | | | | | | | some strange reason recvmsg() never sets errno to EAGAIN on a non-blocking socket and just returns 0. Reviewed by: jhb Approved by: re
* Fix a problem introduced in the last commit. sa and cmmbr2003-05-291-2/+2
| | | | | | | | | are not initialized at this place. Move the initializing before the non-blocking check. Submitted by: Marius Strobl <marius@alchemy.franken.de> Reviewed by: jhb Approved by: re
* If AF_LOCAL is used, we need to use __msgread_withcred() instead ofmbr2003-05-281-1/+6
| | | | | | | | | just read() in non-blocking mode too. The reason is obvious. NetBSD uses a complete different way to get the credentials so this patch only applies to FreeBSD. Reviewed by: rwatson Approved by: re
* Fix amd(8) clients, if a FreeBSD mountd(8) server is used.mbr2003-05-281-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Remove the special treatment of non-blocking mode in the "look ahead function" xdrrec_eof(). It currently assumes that the last read() in a row of several reads does not have zero lenght. If this is the case, svc_vc_stat() does return XPRT_MOREREQS, and the RPC-request aborts because there is no data to read anymore. To fix this, go back to the original version of the code for non-blocking mode until NetBSD comes up with another possible fix like this one in xdrrec_eof() if (rstrm->last_frag && rstrm->in_finger == rstrm->in_boundry) { return TRUE; } Return always FALSE in set_input_fragment() for non-blocking mode. Since this was not used in FreeBSD, I omitted it at the first time. Now we use this function and we should always return FALSE for it. Reviewed by: rwatson Approved by: re
* Fix stripping last path component when only one path component left.fjoe2003-05-281-2/+2
| | | | | PR: 52686 MFC after: 1 day
* mdoc(7) fixes.ru2003-05-241-6/+5
| | | | Approved by: re (blanket)
* Repair PIC mode. It seems I was a bit too excited about thepeter2003-05-247-15/+89
| | | | implications of native PC relative addressing.
* Assorted mdoc(7) fixes.ru2003-05-2213-76/+85
| | | | Approved by: re (blanket)
* Fixed troff(1) and mdoc(7) warnings.ru2003-05-184-5/+6
| | | | Approved by: re (blanket)
OpenPOWER on IntegriCloud