summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Add clarifications about the information that ntp_gettime returns.Warner Losh2003-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 Notes: svn path=/head/; revision=116656
* Userland spinlocks bad. Sleep locks good.David Schultz2003-06-211-2/+5
| | | | | | | | | Use the latter for gdtoa. Requested by: deischen (far too long ago) Notes: svn path=/head/; revision=116652
* ttyname(3) must return absolute pathnames.Poul-Henning Kamp2003-06-211-2/+8
| | | | | | | Noticed by: kris Notes: svn path=/head/; revision=116651
* Use devname(3) to do the task.Poul-Henning Kamp2003-06-201-66/+2
| | | | | | | Reviewed by: imp Notes: svn path=/head/; revision=116636
* Explain the relationship to POSIX.Garrett Wollman2003-06-201-0/+14
| | | | Notes: svn path=/head/; revision=116635
* ntp_adjtime returns the current state of the clock (TIME_*) on successWarner Losh2003-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 Notes: svn path=/head/; revision=116631
* Add devname_r(3) which takes a buffer as argument.Poul-Henning Kamp2003-06-202-56/+21
| | | | Notes: svn path=/head/; revision=116610
* Remove bogus non-reentrant "temporary" implementation of gethostbyaddr_r()Kris Kennaway2003-06-191-19/+0
| | | | | | | | | | that has been here for 6 years and 9 months. Reviewed by: deischen MFC After: 1 week Notes: svn path=/head/; revision=116574
* Make the execle() synopsis look (again) like a normal C prototype.Ruslan Ermilov2003-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 Notes: svn path=/head/; revision=116537
* Xref policy: exit(2) -> _exit(2).Maxim Sobolev2003-06-171-1/+1
| | | | Notes: svn path=/head/; revision=116476
* Fix the execle(3) synopsis to include the environment pointer.Poul-Henning Kamp2003-06-171-1/+1
| | | | | | | Confused: anordby Notes: svn path=/head/; revision=116471
* Kill prototype for __msgwrite too. It is not needed anymore.Martin Blapp2003-06-151-1/+0
| | | | Notes: svn path=/head/; revision=116395
* Replace the old SCM_CREDS cred procedures. They can now beMartin Blapp2003-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 Notes: svn path=/head/; revision=116391
* Only use this with a non-GCC compiler.David E. O'Brien2003-06-141-0/+2
| | | | Notes: svn path=/head/; revision=116327
* Document ENOSPC.Tom Rhodes2003-06-131-0/+2
| | | | | | | | PR: 52612 Submitted by: Marc Olzheim <marcolz@ilse.nl> Notes: svn path=/head/; revision=116323
* This is unusable on amd64. Remove it before it causes more confusion.Peter Wemm2003-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. Notes: svn path=/head/; revision=116317
* Mark the following interfaces as OBSOLETE_IN_6:Tim J. Robbins2003-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. Notes: svn path=/head/; revision=116283
* Fixes to locale code to properly use indirect pointers in order to preventJordan K. Hubbard2003-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 Notes: svn path=/head/; revision=116274
* Use C99 compatible ASM statements.David E. O'Brien2003-06-101-1/+1
| | | | | | | | (untested, but existing state breaks http://triangle.rtp.freebsd.org/~des/tinderbox-CURRENT-amd64-amd64.brief) Notes: svn path=/head/; revision=116172
* Remove transition period hackAndrey A. Chernov2003-06-101-32/+3
| | | | Notes: svn path=/head/; revision=116134
* Remove stale reference to the deprecated USER_LDT option. The associatedJohn Baldwin2003-06-091-4/+0
| | | | | | | | | | code is always compiled into the kernel now. Submitted by: Hubert Tournier <hubert@frbsd.org> PR: docs/53068 Notes: svn path=/head/; revision=116091
* The .Fn functionPhilippe Charnier2003-06-081-3/+6
| | | | Notes: svn path=/head/; revision=116025
* .Xr p1003_1b moved to .St -p1003.1b-93Philippe Charnier2003-06-082-6/+6
| | | | Notes: svn path=/head/; revision=116023
* .Xr -> .Lb for librairy. There is no manual page corresponding to .Xr.Philippe Charnier2003-06-081-1/+1
| | | | Notes: svn path=/head/; revision=116022
* Add or correct section number in .Xr. Use .Vt or .FnPhilippe Charnier2003-06-088-13/+13
| | | | | | | instead of .Xr when needed Notes: svn path=/head/; revision=116021
* Recognize the magic NODEV value.Poul-Henning Kamp2003-06-051-3/+3
| | | | | | | Format other unknown devices consistently in hex. Notes: svn path=/head/; revision=115881
* Document the new explicit listing API for extended attributes; noteRobert Watson2003-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 Notes: svn path=/head/; revision=115802
* Document that kldload(2) can also return EEXIST.Hiten Pandya2003-06-031-0/+4
| | | | | | | Approved by: des (mentor) Notes: svn path=/head/; revision=115771
* Cosmetic; record offsets used within jmpbufPeter Wemm2003-06-023-30/+30
| | | | Notes: svn path=/head/; revision=115745
* Fix sigsetjmp(). It helps if we do not try to save the old signal maskPeter Wemm2003-06-021-0/+1
| | | | | | | to a random memory location. Perl works a lot better with this. Notes: svn path=/head/; revision=115738
* Use C99 compatible ASM statements.David E. O'Brien2003-06-022-3/+3
| | | | Notes: svn path=/head/; revision=115665
* o Fix a cut-n-paste bug. We were clobbering rp with gp...Marcel Moolenaar2003-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. Notes: svn path=/head/; revision=115657
* Match style of source and headers.Juli Mallett2003-06-011-1/+1
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=115641
* Assorted mdoc(7) fixes.Ruslan Ermilov2003-06-016-180/+190
| | | | Notes: svn path=/head/; revision=115631
* Add GBK encodingAndrey A. Chernov2003-06-013-2/+121
| | | | | | | | PR: 51504 Submitted by: Statue <statue@freebsd.sinica.edu.tw> Notes: svn path=/head/; revision=115626
* Clarify the code a bit.Poul-Henning Kamp2003-06-011-1/+2
| | | | | | | Submitted by: Nadav Eiron <nadav@TheEirons.org> Notes: svn path=/head/; revision=115610
* Make prototype match code with regard to constness of args to theJuli Mallett2003-06-011-1/+1
| | | | | | | function pointer passed in. Notes: svn path=/head/; revision=115604
* Fix grammar bogons.Jens Schweikhardt2003-05-311-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=115571
* Rough implement of makecontext() needed to support libthr.Marcel Moolenaar2003-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. Notes: svn path=/head/; revision=115518
* Fix a sizeof error in __bt_put: when writing they key and data sizesThomas Moestl2003-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) Notes: svn path=/head/; revision=115411
* Add an stub for _rtld_thread_init. This is a part I missed inAlexander Kabaev2003-05-301-0/+7
| | | | | | | | | my last commit. Approved by: re (scottl) Notes: svn path=/head/; revision=115401
* Don't return -1 and abort if msg.msg_controllen is 0. ForMartin Blapp2003-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 Notes: svn path=/head/; revision=115394
* Fix a problem introduced in the last commit. sa and cmMartin Blapp2003-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 Notes: svn path=/head/; revision=115385
* If AF_LOCAL is used, we need to use __msgread_withcred() instead ofMartin Blapp2003-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 Notes: svn path=/head/; revision=115364
* Fix amd(8) clients, if a FreeBSD mountd(8) server is used.Martin Blapp2003-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 Notes: svn path=/head/; revision=115363
* Fix stripping last path component when only one path component left.Max Khon2003-05-281-2/+2
| | | | | | | | PR: 52686 MFC after: 1 day Notes: svn path=/head/; revision=115362
* mdoc(7) fixes.Ruslan Ermilov2003-05-241-6/+5
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=115288
* Repair PIC mode. It seems I was a bit too excited about thePeter Wemm2003-05-247-15/+89
| | | | | | | implications of native PC relative addressing. Notes: svn path=/head/; revision=115279
* Assorted mdoc(7) fixes.Ruslan Ermilov2003-05-2213-76/+85
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=115225
* Fixed troff(1) and mdoc(7) warnings.Ruslan Ermilov2003-05-184-5/+6
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=115143