summaryrefslogtreecommitdiff
path: root/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: hard sentence breaks, whitespace at EOL, contractions.Ruslan Ermilov2002-03-151-10/+18
| | | | Notes: svn path=/head/; revision=92355
* mdoc(7) police: Fix xref to timeradd(3).Ruslan Ermilov2002-03-151-1/+1
| | | | Notes: svn path=/head/; revision=92354
* mdoc(7) police: punctuation nit.Ruslan Ermilov2002-03-151-2/+1
| | | | Notes: svn path=/head/; revision=92353
* bde got caught by mdoc(7) police. :-)Ruslan Ermilov2002-03-152-2/+2
| | | | Notes: svn path=/head/; revision=92352
* mdoc(7) police: don't you notice the warnings?Ruslan Ermilov2002-03-151-1/+0
| | | | Notes: svn path=/head/; revision=92351
* Come on guys, you can't just take OpenBSD manpage and commit itRuslan Ermilov2002-03-151-30/+41
| | | | | | | | | | | | over someone else's fixes; this is at least offensive. If you have problems doing a proper merge, we are here, your fellow committers. :-( Reapply markup fixes from revision 1.2 and fix some more. Also fix the $OpenBSD$ tag. Notes: svn path=/head/; revision=92350
* Remove trailing characters from #endif.David E. O'Brien2002-03-151-3/+0
| | | | | | | Actually this #endif is not needed, so remove leading characters also. Notes: svn path=/head/; revision=92319
* Clarify fcntl(2) and flock(2) interoperability.Maxim Konovalov2002-03-141-1/+7
| | | | | | | | | | PR: docs/23353 Reviewed by: ru, dillon Approved by: ru MFC after: 3 days Notes: svn path=/head/; revision=92269
* Fix some bugs that would prevent %fsr to be set correctly, and addThomas Moestl2002-03-114-8/+25
| | | | | | | | | | | | support for fcmp and fcmpe instructions with a condition code specification other than %fcc0. This (primarily the first part) seems to fix a lot of problems that people were seeing, e.g. perl and gawk failures. Reported and analyzed by: wollman Notes: svn path=/head/; revision=92055
* Account for <machine/fsr.h> no longer being usable for assembler code.Thomas Moestl2002-03-112-2/+6
| | | | Notes: svn path=/head/; revision=92054
* Fix __dtoul to work on sparc64 (it used a half-way v8 stack layout),Thomas Moestl2002-03-111-13/+13
| | | | | | | and make it PIC-aware. Notes: svn path=/head/; revision=92053
* Save/restore the %y register around calls to the C user trap handler;Thomas Moestl2002-03-111-0/+4
| | | | | | | | | gcc emits the deprecated sparc v8 instructions that use this register when optimizing for UltraSparc machines because they are apparetly faster then their v9 counterpars there. Notes: svn path=/head/; revision=92049
* cosmetic: spell 'cashe' as 'cache'Bill Fumerola2002-03-103-3/+3
| | | | Notes: svn path=/head/; revision=91999
* Don't refer the reader to look for a word that doesn't exist anywhereDima Dorfman2002-03-101-1/+3
| | | | | | | | | | else in the page. PR: 35623 Submitted by: Gary W. Swearingen <swear@blarg.net> Notes: svn path=/head/; revision=91995
* If syslog fails to talk to syslogd, then it tries to write a messageDavid Malone2002-03-091-4/+4
| | | | | | | | | | | | | | to the console in a final attempt to log something. Make this final attempt non-blocking so that a blocking console doesn't end up blocking process which attempt to syslog something. In particular, this means you should be able to su and fix the problem if the console becomes blocking. MFC after: 3 weeks Notes: svn path=/head/; revision=91940
* Correct a typo.Dima Dorfman2002-03-091-1/+1
| | | | | | | Submitted by: peter.kusenda@accenture.com Notes: svn path=/head/; revision=91935
* This API will appear in FreeBSD 4.6.Dima Dorfman2002-03-091-1/+1
| | | | Notes: svn path=/head/; revision=91930
* Bring a comment in line with the code, and fix some spelling errorsDima Dorfman2002-03-091-4/+3
| | | | | | | | | | while I'm here. PR: 35394 Submitted by: andrew@ugh.net.au Notes: svn path=/head/; revision=91925
* Fix build. I commented out getpass() in readpassphrase.c because theBrian Feldman2002-03-091-3/+3
| | | | | | | | | | | | implementation did not match our manpage description (i.e., it could return NULL). I mistakenly thought we were still using getpass.c because, for some reason, CVS never removed it from the tree. Pointy hat received from: alfred Kick in the groin to: CVS Notes: svn path=/head/; revision=91922
* Update readpassphrase(3)to the latest revisions. Changes are mainly dueBrian Feldman2002-03-082-57/+146
| | | | | | | | | | to return value constraints now changing as well as more intelligent handling of signals. Obtained from: OpenBSD Notes: svn path=/head/; revision=91913
* Improve punctuation consistency: all errors had a '.' after themRobert Watson2002-03-081-1/+1
| | | | | | | except ENOATTR. Notes: svn path=/head/; revision=91912
* Add new errno ``ENOATTR''.Brian Feldman2002-03-072-0/+5
| | | | Notes: svn path=/head/; revision=91814
* Add GETPID to the list of operations for which semctl(2) returns the value.Maxim Konovalov2002-03-061-1/+1
| | | | | | | | | Reviewed by: alfred, ru Approved by: ru MFC after: 3 days Notes: svn path=/head/; revision=91748
* Add a carriage return to each function declaration, and make use of ID tagEric Melville2002-03-061-8/+12
| | | | | | | | | macros. MFC after: 1 day Notes: svn path=/head/; revision=91725
* When multiple threads call atexit at the same time, some operations mustTor Egge2002-03-051-2/+28
| | | | | | | | | | | | | be serialized. A mutex is used to protect the critical regions. sbrk() and brk() are not thread safe. Replace use of sbrk() with a call to malloc to avoid race when one thread calls atexit while another thread calls malloc. Reviewed by: deischen Notes: svn path=/head/; revision=91697
* Add fpsetmask(). Needed to build miniperl.Jake Burkholder2002-03-052-2/+29
| | | | | | | Obtained from: netbsd Notes: svn path=/head/; revision=91663
* Fix a bug where siglongjmp would clobber the argument to return fromJake Burkholder2002-03-051-2/+2
| | | | | | | | | sigsetjmp. It would return the value of the signal flag, instead. Pointy hat to: jake Notes: svn path=/head/; revision=91662
* Connect the sparc64 userland fp emulator to the build.Thomas Moestl2002-03-051-0/+2
| | | | Notes: svn path=/head/; revision=91649
* Check if string is not NULL, not *string, before setting *string.Brian Feldman2002-02-271-2/+2
| | | | Notes: svn path=/head/; revision=91428
* Introduce a version field to `struct xucred' in place of one of theDima Dorfman2002-02-272-1/+5
| | | | | | | | | | | | | | | spares (the size of the field was changed from u_short to u_int to reflect what it really ends up being). Accordingly, change users of xucred to set and check this field as appropriate. In the kernel, this is being done inside the new cru2x() routine which takes a `struct ucred' and fills out a `struct xucred' according to the former. This also has the pleasant sideaffect of removing some duplicate code. Reviewed by: rwatson Notes: svn path=/head/; revision=91354
* use _GENERIC_DIRSIZ(dp) to avoid copying too much of the dirent overAlfred Perlstein2002-02-261-2/+2
| | | | | | | | the user supplied buffer. this can be a problem when the user doesn't supply a full dirent and we corrupt their memory. Notes: svn path=/head/; revision=91330
* Per POSIX <grp.h> doesn't require <sys/types.h>.Maxim Sobolev2002-02-251-1/+0
| | | | | | | Submitted by: ache Notes: svn path=/head/; revision=91245
* Add userland floating point emulator code for sparc64. This is a portThomas Moestl2002-02-2317-1/+3520
| | | | | | | | of the (never committed) in-kernel version (with some optimizations and cleanups), which in turn was ported from NetBSD. Notes: svn path=/head/; revision=91174
* Add ifdefs for sparc64.Jake Burkholder2002-02-233-2/+7
| | | | Notes: svn path=/head/; revision=91161
* Fix wrong offsets. Add offsets for %fsr and %tstate.Jake Burkholder2002-02-231-6/+11
| | | | | | | Submitted by: tmm Notes: svn path=/head/; revision=91160
* Add space for %fsr and %tstate to utrapframe. Save them in the genericJake Burkholder2002-02-232-1/+14
| | | | | | | | | | user trap entry code. Restore %asi and %ccr from the saved %tstate before returning to the trapping user code. Submitted by: tmm Notes: svn path=/head/; revision=91159
* o style(9) and consistency fix:Chris D. Faulhaber2002-02-211-2/+2
| | | | | | | | | | | - if (!var) -> if (var == NULL) o spelling fix (althouh -> although) Reviewed by: rwatson Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=91035
* o style(9) and consistency fixes:Chris D. Faulhaber2002-02-215-44/+41
| | | | | | | | | | | - if (!var) -> if (var == NULL) - return val; -> return (val); Reviewed by: rwatson Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=91034
* Add more argument checkingChris D. Faulhaber2002-02-212-0/+17
| | | | | | | | Reviewed by: rwatson Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=91033
* static'ize and declare functionsChris D. Faulhaber2002-02-211-1/+5
| | | | | | | | Reviewed by: rwatson Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=91032
* Fixed divots that I created when I moved prototypes of group_from_gidWarner Losh2002-02-192-2/+3
| | | | | | | | | | and user_from_uid to grp.h and pwd.h. Update the man pages. Submitted by: David Malone Pointy hat to: imp Notes: svn path=/head/; revision=90878
* o Move NTOHL() and associated macros into <sys/param.h>. These areMike Barcroft2002-02-1835-33/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | deprecated in favor of the POSIX-defined lowercase variants. o Change all occurrences of NTOHL() and associated marcros in the source tree to use the lowercase function variants. o Add missing license bits to sparc64's <machine/endian.h>. Approved by: jake o Clean up <machine/endian.h> files. o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>. o Remove prototypes for non-existent bswapXX() functions. o Include <machine/endian.h> in <arpa/inet.h> to define the POSIX-required ntohl() family of functions. o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>, and <sys/param.h>. o Prepend underscores to the ntohl() family to help deal with complexities associated with having MD (asm and inline) versions, and having to prevent exposure of these functions in other headers that happen to make use of endian-specific defines. o Create weak aliases to the canonical function name to help deal with third-party software forgetting to include an appropriate header. o Remove some now unneeded pollution from <sys/types.h>. o Add missing <arpa/inet.h> includes in userland. Tested on: alpha, i386 Reviewed by: bde, jake, tmm Notes: svn path=/head/; revision=90868
* o style and consistency fixes:Chris D. Faulhaber2002-02-176-40/+40
| | | | | | | | | - if (!var) -> if (var == NULL) - return val; -> return (val); o update copyright Notes: svn path=/head/; revision=90781
* Fix two file descriptor leaks in the internal function local_rpcb()Ian Dowse2002-02-161-1/+8
| | | | | | | | | | | that is used by a number of rpcbind-related library functions. Also fix a rpc client leak in rpcb_set(). Submitted by: mbr Obtained from: NetBSD Notes: svn path=/head/; revision=90735
* Document that the type of st_flags is now fflags_t.Garrett Wollman2002-02-151-2/+2
| | | | Notes: svn path=/head/; revision=90712
* Don't leave stack garbage in the reserved fields of the header.Bruce Evans2002-02-151-0/+1
| | | | Notes: svn path=/head/; revision=90668
* Fixed style bugs in rev.1.5:Bruce Evans2002-02-151-4/+5
| | | | | | | | | | | | | - missing whitespace - strange version of warn() built out of warnx() + strerror(). Just use warn(). - conversion of just one of the two perror()'s to warn*() Actually use _warn() instead of _warn(), to keep up with namespace- unpollution for warn(). Notes: svn path=/head/; revision=90667
* Use new-style function declations.Warner Losh2002-02-131-6/+2
| | | | Notes: svn path=/head/; revision=90605
* Don't make it seem like vm.max_proc_mmap only affects MAP_FIXED.Dima Dorfman2002-02-101-4/+4
| | | | | | | | | PR: 34005 Submitted by: Steven Grady <grady@digitaldeck..com>, Hiten Pandya <hitmaster2k@yahoo.com> Notes: svn path=/head/; revision=90482
* Part III: Update extended attribute system call interface documentation.Robert Watson2002-02-101-18/+39
| | | | | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=90450