| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
Our malloc sometimes forget to set errno, f.e. for size overflow case.
|
| |
|
|
|
|
|
| |
Try harder to not overwrite failure errno.
style(9) whitespace reformatting for code readability.
|
|
|
|
| |
I believe have made all of libc .c's as consistent as possible.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
| |
PR: misc/21596
Submitted by: TOGAWA Satoshi <toga@puyo.org>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Found by: ache
|
|
|
|
|
|
|
| |
* mdoc cleanup
* document missing errno values (ERRORS section)
Reviewed by: sheldonh
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
| |
read() syscalls. It not cause static binary size increasing because stdio
already picked via setlocale() called from catopen()
|
| |
|
|
|
|
|
| |
Resort #include files
Remove SYSV compatibility chunks
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
cosmetique, use NULL for pointers comparison
|
| |
|
|
|
|
|
|
| |
argument in catopen().
Reviewed by: chris, -audit
|
|
|
|
| |
More libraries manpages updates following.
|
|
|
|
|
| |
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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().
|
|
|
|
|
| |
PR: docs/13658
Submitted by: Zahemszky Gabor <zgabor@code.hu>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Manpages cleanup
|
|
|
|
| |
Fix error return codes
|
|
|
|
| |
do not exist in NetBSD 1.3.
|
|
|
|
|
| |
were a workaround for limitations in bsd.man.mk that were fixed about
2 years ago.
|
| |
|