| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
vocally objected to this safety belt.
Notes:
svn path=/head/; revision=114443
|
| |
|
|
|
|
|
|
|
|
| |
technique) so that we don't wind up calling into an application's
version if the application defines them.
Inspired by: qpopper's interfering and buggy version of strlcpy
Notes:
svn path=/head/; revision=114256
|
| |
|
|
|
|
|
| |
consumption.
Notes:
svn path=/head/; revision=106053
|
| |
|
|
| |
Notes:
svn path=/head/; revision=101727
|
| |
|
|
| |
Notes:
svn path=/head/; revision=101494
|
| |
|
|
|
|
|
| |
Our malloc sometimes forget to set errno, f.e. for size overflow case.
Notes:
svn path=/head/; revision=101490
|
| |
|
|
| |
Notes:
svn path=/head/; revision=101450
|
| |
|
|
|
|
|
|
| |
Try harder to not overwrite failure errno.
style(9) whitespace reformatting for code readability.
Notes:
svn path=/head/; revision=101316
|
| |
|
|
|
|
|
| |
I believe have made all of libc .c's as consistent as possible.
Notes:
svn path=/head/; revision=92986
|
| |
|
|
| |
Notes:
svn path=/head/; revision=81586
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
adding (weak definitions to) stubs for some of the pthread
functions. If the threads library is linked in, the real
pthread functions will pulled in.
Use the following convention for system calls wrapped by the
threads library:
__sys_foo - actual system call
_foo - weak definition to __sys_foo
foo - weak definition to __sys_foo
Change all libc uses of system calls wrapped by the threads
library from foo to _foo. In order to define the prototypes
for _foo(), we introduce namespace.h and un-namespace.h
(suggested by bde). All files that need to reference these
system calls, should include namespace.h before any standard
includes, then include un-namespace.h after the standard
includes and before any local includes. <db.h> is an exception
and shouldn't be included in between namespace.h and
un-namespace.h namespace.h will define foo to _foo, and
un-namespace.h will undefine foo.
Try to eliminate some of the recursive calls to MT-safe
functions in libc/stdio in preparation for adding a mutex
to FILE. We have recursive mutexes, but would like to avoid
using them if possible.
Remove uneeded includes of <errno.h> from a few files.
Add $FreeBSD$ to a few files in order to pass commitprep.
Approved by: -arch
Notes:
svn path=/head/; revision=71579
|
| |
|
|
|
|
|
|
| |
PR: misc/21596
Submitted by: TOGAWA Satoshi <toga@puyo.org>
Notes:
svn path=/head/; revision=66412
|
| |
|
|
| |
Notes:
svn path=/head/; revision=65609
|
| |
|
|
| |
Notes:
svn path=/head/; revision=65476
|
| |
|
|
|
|
|
| |
Found by: ache
Notes:
svn path=/head/; revision=65472
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* rewrite catopen() to remove duplicate code chunks and optimize
* if empty string is passed to catopen() as name argument then
catopen() will set errno to ENOENT (File not found), not EINVAL
* move search code to LOOKUP() macro to shrink amount of duplicated code
* move common resource freeing actions to __nls_free_resources() function
* exclude from build code related to MCLoadAll defintion since it is not
using at all
* style(9) related whitespace changes
Reviewed by: ache
Notes:
svn path=/head/; revision=65436
|
| |
|
|
|
|
|
|
| |
read() syscalls. It not cause static binary size increasing because stdio
already picked via setlocale() called from catopen()
Notes:
svn path=/head/; revision=65417
|
| |
|
|
| |
Notes:
svn path=/head/; revision=65330
|
| |
|
|
|
|
|
|
| |
Resort #include files
Remove SYSV compatibility chunks
Notes:
svn path=/head/; revision=65326
|
| |
|
|
| |
Notes:
svn path=/head/; revision=65324
|
| |
|
|
| |
Notes:
svn path=/head/; revision=65323
|
| |
|
|
| |
Notes:
svn path=/head/; revision=65321
|
| |
|
|
| |
Notes:
svn path=/head/; revision=65320
|
| |
|
|
| |
Notes:
svn path=/head/; revision=65319
|
| |
|
|
|
|
|
| |
cosmetique, use NULL for pointers comparison
Notes:
svn path=/head/; revision=65256
|
| |
|
|
|
|
|
|
|
| |
argument in catopen().
Reviewed by: chris, -audit
Notes:
svn path=/head/; revision=64274
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
just use _foo() <-- foo(). In the case of a libpthread that doesn't do
call conversion (such as linuxthreads and our upcoming libpthread), this
is adequate. In the case of libc_r, we still need three names, which are
now _thread_sys_foo() <-- _foo() <-- foo().
Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(),
nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo().
Remove all internal libc usage of: creat(), pause(), sleep(), system(),
tcdrain(), wait(), and waitpid().
Make thread cancellation fully POSIX-compliant.
Suggested by: deischen
Notes:
svn path=/head/; revision=56698
|
| |
|
|
|
|
|
|
|
| |
points. For library functions, the pattern is __sleep() <--
_libc_sleep() <-- sleep(). The arrows represent weak aliases. For
system calls, the pattern is _read() <-- _libc_read() <-- read().
Notes:
svn path=/head/; revision=55837
|
| |
|
|
| |
Notes:
svn path=/head/; revision=50476
|
| |
|
|
| |
Notes:
svn path=/head/; revision=37643
|
| |
|
|
| |
Notes:
svn path=/head/; revision=35552
|
| |
|
|
| |
Notes:
svn path=/head/; revision=35550
|
| |
|
|
| |
Notes:
svn path=/head/; revision=35549
|
| |
|
|
|
|
|
| |
Manpages cleanup
Notes:
svn path=/head/; revision=35548
|
| |
|
|
|
|
|
| |
Fix error return codes
Notes:
svn path=/head/; revision=35546
|
| |
|
|
|
|
|
| |
do not exist in NetBSD 1.3.
Notes:
svn path=/head/; revision=32524
|
| |
|
|
| |
Notes:
svn path=/head/; revision=25642
|
| |
|
|
|
|
|
|
|
| |
Plug failure memory leaks
Use issetugid now
PR: 3492
Notes:
svn path=/head/; revision=25641
|
| |
|
|
|
|
|
| |
Pointed out by: Everybody but Jordan.
Notes:
svn path=/head/; revision=24254
|
| |
|
|
|
|
|
|
|
| |
Fixes PR 2582
Submitted by: Julian Assange
Notes:
svn path=/head/; revision=24197
|
| |
|
|
| |
Notes:
svn path=/head/; revision=22993
|
| |
|
|
|
|
|
|
|
|
|
| |
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.
Notes:
svn path=/head/; revision=21673
|
| |
|
|
|
|
|
| |
Submitted-By: Kent Vander Velden <graphix@iastate.edu>
Notes:
svn path=/head/; revision=17141
|
| |
|
|
| |
Notes:
svn path=/head/; revision=11662
|
| |
|
|
| |
Notes:
svn path=/head/; revision=9245
|
| |
|
|
| |
Notes:
svn path=/head/; revision=8870
|
|
|
Obtained from: NetBSD
Notes:
svn path=/head/; revision=7494
|