summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Add const to __setrunelocale prototypeAndrey A. Chernov2003-07-061-4/+4
| | | | Notes: svn path=/head/; revision=117274
* Reorganize wrapper around setrunelocale() to mark it as deprecatedAndrey A. Chernov2003-07-063-25/+41
| | | | | | | in FreeBSD 6 Notes: svn path=/head/; revision=117270
* Add more useful cross-references to the SEE ALSO section.Tim J. Robbins2003-07-051-2/+7
| | | | Notes: svn path=/head/; revision=117253
* Catch up with recent FP-related changes to scanf.3 and vfwscanf.c.Tim J. Robbins2003-07-051-31/+16
| | | | Notes: svn path=/head/; revision=117252
* Fix two incorrect uses of sizeof: we need to divide the size of the bufferTim J. Robbins2003-07-051-11/+6
| | | | | | | | | by sizeof(wchar_t) to get the number of wide characters it contains. Remove the !hardway micro-optimisation from the CT_INT case to avoid having to fix it for wide characters. Notes: svn path=/head/; revision=117250
* Merge recent floating point conversion changes from vfscanf.c.Tim J. Robbins2003-07-051-93/+175
| | | | Notes: svn path=/head/; revision=117249
* With the latest mdoc(7), we can now fix the synopsis like this.Ruslan Ermilov2003-07-031-3/+9
| | | | | | | Desired by: bde Notes: svn path=/head/; revision=117204
* When size is 1 should just null terminate the string. The dummy variableJordan K. Hubbard2003-07-021-3/+5
| | | | | | | | | | | | is made an array of two, to explicitly avoid stack corruption due to null-terminating (which is doesn't actually happen due to stack alignment padding). Submitted by: Ed Moy <emoy@apple.com> Obtained from: Apple Computer, Inc. Notes: svn path=/head/; revision=117147
* Add a new mount flag MNT_BYFSID that can be used to unmount a fileIan Dowse2003-07-011-1/+17
| | | | | | | | | | | | | | | | | | | | | system by specifying the file system ID instead of a path. Use this by default in umount(8). This avoids the need to perform any vnode operations to look up the mount point, so it makes it possible to unmount a file system whose root vnode cannot be looked up (e.g. due to a dead NFS server, or a file system that has become detached from the hierarchy because an underlying file system was unmounted). It also provides an unambiguous way to specify which file system is to be unmunted. Since the ability to unmount using a path name is retained only for compatibility, that case now just uses a simple string comparison of the supplied path against f_mntonname of each mounted file system. Discussed on: freebsd-arch mdoc help from: ru Notes: svn path=/head/; revision=117132
* o strmode(3) returns void not 0.Maxim Konovalov2003-07-011-5/+0
| | | | | | | | | PR: docs/53488 Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> MFC after: 1 week Notes: svn path=/head/; revision=117123
* Axe AINC.Ruslan Ermilov2003-07-011-2/+2
| | | | | | | Submitted by: bde Notes: svn path=/head/; revision=117120
* Fixed some style bugs.Bruce Evans2003-07-011-6/+7
| | | | Notes: svn path=/head/; revision=117111
* Don't segfault if setproctitle(3) is called with NULL initially.Alfred Perlstein2003-07-011-0/+1
| | | | | | | | | | | The old buffer was not being initialized and a later str*() op on it would cause a crash if it wasn't initialized by a previous call to setproctitle(3) with an actual string. Noticed by: Ashley Penney <ashp@unloved.org> Notes: svn path=/head/; revision=117102
* Separate the description of the flags for mount(2) and unmount(2)Ian Dowse2003-06-301-14/+16
| | | | | | | | | | | to clarify which system call accepts which arguments. Previously the manual page gave the impression that calling unmount() with flags of (MNT_FORCE | MNT_UPDATE | MNT_RDONLY) would downgrade a read-write mount to read-only, which is clearly untrue; to do that, these flags should be passed to mount() instead. Notes: svn path=/head/; revision=117089
* Add a libc function execvP that takes the search path as an arguement.Gordon Tetlow2003-06-292-15/+40
| | | | | | | | | | | Change execvp to be a wrapper around execvP. This is necessary for some of the /rescue pieces. It may also be more generally applicable as well. Submitted by: Tim Kientzle <kientzle@acm.org> Approved by: Silence on arch@ Notes: svn path=/head/; revision=117030
* Teach fmtcheck(3) about the flags a, A, F, G, t, and z.David Schultz2003-06-291-8/+28
| | | | Notes: svn path=/head/; revision=117014
* mdoc(7) fix: Use the normal AT&T macro (.At) rather than itsRuslan Ermilov2003-06-281-1/+1
| | | | | | | internal string in the macro context. Notes: svn path=/head/; revision=117007
* Update to reflect changes in vfscanf.c,v 1.32. Remove bogusDavid Schultz2003-06-281-35/+14
| | | | | | | | | | documentation for %a, and document it correctly instead. s/one of aefg/one of a, e, f, or g/ Reviewed by: standards@ Notes: svn path=/head/; revision=116968
* Revamp scanf's floating-point-parsing algorithm to supportDavid Schultz2003-06-281-94/+172
| | | | | | | | | | | [+|-]Inf, [+|-]NaN, nan(...), and hexidecimal FP constants. While here, add %a and %A, which are aliases for %e, and add support for long doubles. Reviewed by: standards@ Notes: svn path=/head/; revision=116967
* Correct a misspelled name of time_hi_and_version.Yaroslav Tykhiy2003-06-271-1/+1
| | | | Notes: svn path=/head/; revision=116916
* fix NIS+ YP compat modeJohn W. De Boskey2003-06-271-3/+4
| | | | | | | | PR: bin/52792 Submitted by: TOMITA Yoshinori <yoshint@flab.fujitsu.co.jp> Notes: svn path=/head/; revision=116901
* . style(9)Alexey Zelkin2003-06-267-19/+41
| | | | | | | | . fix/add comments (to cover changes done thru last 20 months) . extend monetary testcase to cover int_* values Notes: svn path=/head/; revision=116875
* Reduce code duplication by separating _PathLocle detection code intoAlexey Zelkin2003-06-253-37/+37
| | | | | | | internal helper function. Notes: svn path=/head/; revision=116847
* Move _PathLocale declaration to more logical place (setlocale.c)Alexey Zelkin2003-06-252-1/+5
| | | | Notes: svn path=/head/; revision=116846
* Catch up with _PATH_LOCALE move from rune.h to paths.hAlexey Zelkin2003-06-251-1/+1
| | | | Notes: svn path=/head/; revision=116845
* mdoc policeDavid E. O'Brien2003-06-251-6/+6
| | | | Notes: svn path=/head/; revision=116843
* Be more specific in BUGS.David E. O'Brien2003-06-251-5/+7
| | | | | | | | | Submitted by: ru Add history. Notes: svn path=/head/; revision=116834
* Push the alloca #error warning farther down to play nicer with some out ofDavid E. O'Brien2003-06-251-2/+4
| | | | | | | | | tree local translator. Requested by: jmallett Notes: svn path=/head/; revision=116833
* Don't statically initialize buf to _PATH_DEV, _PATH_DEV always copied toAndrey A. Chernov2003-06-241-1/+1
| | | | | | | it in any case. Notes: svn path=/head/; revision=116797
* Unify cross-references between sigpending(2), sigprocmask(2),Yaroslav Tykhiy2003-06-243-1/+5
| | | | | | | | | | | and sigsuspend(2), all three of which operate or depend on the process signal mask. Add a missing xref to sigsetops(3), without which the above three syscalls would be useless. Notes: svn path=/head/; revision=116786
* Supplement the cross-references section with those to sigpending(2)Yaroslav Tykhiy2003-06-241-0/+2
| | | | | | | | and sigprocmask(2). These two syscalls are likely to be accompanied by a few sigsetops(3) in a typical piece of code. Notes: svn path=/head/; revision=116785
* Implement signalcontext(). Needed by libpthread (aka libkse).Marcel Moolenaar2003-06-242-1/+123
| | | | Notes: svn path=/head/; revision=116775
* 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