summaryrefslogtreecommitdiffstats
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* Add support for gb18030 encodingache2003-07-293-1/+170
| | | | | PR: 51729 Submitted by: Kang Liu <liukang@bjpu.edu.cn>
* * Merge index(3) and rindex(3) to index(3) since the two functions aresimon2003-07-285-216/+61
| | | | | | | | | | | | | almost identical. * Merge strchr(3) and strrchr(3) to strchr(3) since the two functions are almost identical. * Make the wording of index(3) and strchr(3) more similar. * mdoc(7) cleanup. Submitted by: SUZUKI Koichi <metal@gc5.so-net.ne.jp>, keramida, myself PR: docs/32054 Reviewed by: ru Approved by: ceri (mentor)
* Set mc_len to sizeof(mcontext_t), otherwise it is an invalid context.davidxu2003-07-261-0/+1
|
* Revert previous commit. We don't use setjmp()/longjmp() for contextmarcel2003-07-251-4/+2
| | | | | | switching anymore, so there's no need to save and restore GP. This change breaks threaded applications linked against libc_r. Pull the tier 2 card again: relink. This will link against libthr instead.
* An u_int8_t can never be bigger than 255, so remove a useless check.mux2003-07-251-2/+0
| | | | Spotted by: GCC
* Print group name in getfacl output when calculating an effectiverwatson2003-07-241-2/+3
| | | | | | permission set based on a more restrictive mask. Submitted by: Glen Gibb <grg@ridley.unimelb.edu.au>
* Document an additional error return value. The connect(2) call can alsodds2003-07-231-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | return EACCES on non-Unix domain sockets as demonstrated by the following program: #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> int main(int argc, char *argv[]) { struct sockaddr_in rem_addr; int sock; if ((sock = socket(AF_INET, SOCK_STREAM, 0)) < 0) { perror("socket"); exit(1); } bzero((char *)&rem_addr, sizeof(rem_addr)); rem_addr.sin_family = AF_INET; rem_addr.sin_addr.s_addr = INADDR_NONE; rem_addr.sin_port = htons(10000); if (connect(sock, (struct sockaddr *)&rem_addr, sizeof(rem_addr)) < 0) { perror("connect"); exit(1); } } The call chain returning this value is probably: kern/uipc_syscalls.c:connect kern/uipc_socket.c:soconnect netinet/tcp_usrreq.c:tcp_usr_connect netinet/tcp_output.c:tcp_output netinet/ip_output.c:ip_output Reviewed by: schweikh (mentor) MFC after: 2 weeks
* Instantiate explicit callable versions of the machine/ieeefp.h inlinespeter2003-07-229-1/+67
| | | | for the use of non-GCC compilers and C++ code.
* Turn off the libc/quad functions since they are not needed for amd64peter2003-07-221-0/+9
| | | | and just cause lots of warnings.
* Make raise and _raise as weak symbols, so they can be overriden bydavidxu2003-07-191-1/+4
| | | | | | thread library. Reviewed by: deischen
* Add amd64 versions of makecontext() and signalcontext() neededdeischen2003-07-193-1/+208
| | | | | for libkse (makecontext() is also needed for libthr). These probably will need some tweaking.
* Rewrite to reflect slight change in semantics for C99, and note a bugwollman2003-07-191-22/+39
| | | | in the standard. Defer to gettimeofday(2) for error indications.
* C99 compliance: time() always sets its return value in both placeswollman2003-07-191-4/+7
| | | | | | (if present), even on error. Pointed out by: Wojtek Lerch, on the Austin Group mailing-list
* Revert to using yp_order() to probe for master.paswd.by* maps andwpaul2003-07-181-7/+14
| | | | | | | | | | | | | | | don't probe the server at all for passwd.by* maps. This fixes interoperability with the Services For UNIX NIS server (which is really a front end to Captive^WActiveDirectory). This server incorrectly returns success for all YPPROC_MASTER requests, even for maps that don't exist, which makes it impossible to (ab)use it to probe for the existence of the master.passwd.by* maps. This is a little kludgey, but basically restores the original behavior of getpwent.c as it is in -stable, and works around both the lack of YPPROC_ORDER on NIS+ servers as well as the broken YPPROC_MASTER on Services For UNIX servers.
* Whitespace after keywords per style(9).wollman2003-07-181-2/+2
|
* Back out revision 1.22.ceri2003-07-151-1/+1
| | | | Requested by: bde
* ioctl macros and defines are now present in ioccom.h, not ioctl.h.ceri2003-07-131-1/+1
| | | | | | | Update the manpage to reflect this. PR: docs/54235 Submitted by: Karen Thode <thode12@msn.com>
* Add const to __setrunelocale prototypeache2003-07-061-4/+4
|
* Reorganize wrapper around setrunelocale() to mark it as deprecatedache2003-07-063-25/+41
| | | | in FreeBSD 6
* Add more useful cross-references to the SEE ALSO section.tjr2003-07-051-2/+7
|
* Catch up with recent FP-related changes to scanf.3 and vfwscanf.c.tjr2003-07-051-31/+16
|
* Fix two incorrect uses of sizeof: we need to divide the size of the buffertjr2003-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.
* Merge recent floating point conversion changes from vfscanf.c.tjr2003-07-051-93/+175
|
* With the latest mdoc(7), we can now fix the synopsis like this.ru2003-07-031-3/+9
| | | | Desired by: bde
* When size is 1 should just null terminate the string. The dummy variablejkh2003-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.
* Add a new mount flag MNT_BYFSID that can be used to unmount a fileiedowse2003-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
* o strmode(3) returns void not 0.maxim2003-07-011-5/+0
| | | | | | PR: docs/53488 Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> MFC after: 1 week
* Axe AINC.ru2003-07-011-2/+2
| | | | Submitted by: bde
* Fixed some style bugs.bde2003-07-011-6/+7
|
* Don't segfault if setproctitle(3) is called with NULL initially.alfred2003-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>
* Separate the description of the flags for mount(2) and unmount(2)iedowse2003-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.
* Add a libc function execvP that takes the search path as an arguement.gordon2003-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@
* Teach fmtcheck(3) about the flags a, A, F, G, t, and z.das2003-06-291-8/+28
|
* mdoc(7) fix: Use the normal AT&T macro (.At) rather than itsru2003-06-281-1/+1
| | | | internal string in the macro context.
* Update to reflect changes in vfscanf.c,v 1.32. Remove bogusdas2003-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@
* Revamp scanf's floating-point-parsing algorithm to supportdas2003-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@
* Correct a misspelled name of time_hi_and_version.yar2003-06-271-1/+1
|
* fix NIS+ YP compat modejwd2003-06-271-3/+4
| | | | | PR: bin/52792 Submitted by: TOMITA Yoshinori <yoshint@flab.fujitsu.co.jp>
* . style(9)phantom2003-06-267-19/+41
| | | | | . fix/add comments (to cover changes done thru last 20 months) . extend monetary testcase to cover int_* values
* Reduce code duplication by separating _PathLocle detection code intophantom2003-06-253-37/+37
| | | | internal helper function.
* Move _PathLocale declaration to more logical place (setlocale.c)phantom2003-06-252-1/+5
|
* Catch up with _PATH_LOCALE move from rune.h to paths.hphantom2003-06-251-1/+1
|
* mdoc policeobrien2003-06-251-6/+6
|
* Be more specific in BUGS.obrien2003-06-251-5/+7
| | | | | | Submitted by: ru Add history.
* Push the alloca #error warning farther down to play nicer with some out ofobrien2003-06-251-2/+4
| | | | | | tree local translator. Requested by: jmallett
* Don't statically initialize buf to _PATH_DEV, _PATH_DEV always copied toache2003-06-241-1/+1
| | | | it in any case.
* Unify cross-references between sigpending(2), sigprocmask(2),yar2003-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.
* Supplement the cross-references section with those to sigpending(2)yar2003-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.
* Implement signalcontext(). Needed by libpthread (aka libkse).marcel2003-06-242-1/+123
|
* 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
OpenPOWER on IntegriCloud