| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
| |
make sure the changes are on disk. The people at pfSense noticed that
it didn't always make it to the disk soon enough with soft updates.
Differential Revision: https://reviews.freebsd.org/D5186
Reviewed by: garga, vangyzen, bapt, se
MFC after: 1 week
Notes:
svn path=/head/; revision=295924
|
|
|
|
|
|
|
|
|
|
| |
pointers.
Obtained from: CheriBSD (e3a69027cc5a384431156d61c90d4304387a9b9d)
Sponsored by: DARPA, AFRL
Notes:
svn path=/head/; revision=295031
|
|
|
|
| |
Notes:
svn path=/head/; revision=288042
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
are aliases for the syscall stubs and are plt-interposed, to the
libc-private aliases of internally interposed sigprocmask() etc.
Since e.g. _sigaction is not interposed by libthr, calling signal()
removes thr_sighandler() from the handler slot etc. The result was
breaking signal semantic and rtld locking.
The added __libc_sigprocmask and other symbols are hidden, they are
not exported and cannot be called through PLT. The setjmp/longjmp
functions for x86 were changed to use direct calls, and since
PIC_PROLOGUE only needed for functional PLT indirection on i386, it is
removed as well.
The PowerPC bug of calling the syscall directly in the setjmp/longjmp
implementation is kept as is.
Reported by: Pete French <petefrench@ingresso.co.uk>
Tested by: Michiel Boland <boland37@xs4all.nl>
Reviewed by: jilles (previous version)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Notes:
svn path=/head/; revision=287292
|
|
|
|
|
|
|
|
| |
Reported by: Clang static analyzer
Obtained from: NetBSD
Notes:
svn path=/head/; revision=283068
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
if not already defined. This allows building libc from outside of
lib/libc using a reach-over makefile.
A typical use-case is to build a standard ILP32 version and a COMPAT32
version in a single iteration by building the COMPAT32 version using a
reach-over makefile.
Obtained from: Juniper Networks, Inc.
Notes:
svn path=/head/; revision=262722
|
|
|
|
| |
Notes:
svn path=/head/; revision=254289
|
|
|
|
|
|
|
|
|
| |
In particular, a hash db is used by getpwnam() and getpwuid().
MFC after: 1 week
Notes:
svn path=/head/; revision=254222
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This fix mostly matters after r206129 that made it possible for
st_blksize to be greater than 4K. For this reason, this change should
be MFC-ed before r206129.
Also, it seems that all FreeBSD uitlities that use db(3) hash databases
and create new databases in files, specify their own block size value
and thus do not depend on block size autotuning.
PR: bin/144446
Submitted by: Peter Jeremy <peterjeremy@acm.org>
MFC after: 5 days
Notes:
svn path=/head/; revision=206178
|
|
|
|
|
|
|
|
| |
a historical behavior that has been changed by revision 190491, and has seen
to break exim.
Notes:
svn path=/head/; revision=196525
|
|
|
|
| |
Notes:
svn path=/head/; revision=190500
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This does not include the new hash routines since they will cause problems
when reading old hash files.
Since mpool(3) has been changed, provide a compatibility shim for older
binaries.
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=190498
|
|
|
|
|
|
|
| |
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=190496
|
|
|
|
|
|
|
|
|
|
|
| |
open(). The previous logic only initializes the database when O_CREAT is
set, but as long as we can open and write the database, and the database
is empty, we should initialize it anyway.
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=190495
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
an invariant (actually, an ugly hack) to fail, and all Hell would break
loose.
When deleting a big key, the offset of an empty page should be bsize, not
bsize-1; otherwise an insertion into the empty page will cause the new key to
be elongated by 1 byte.
Make the packing more dense in a couple of cases.
- fix NULL dereference exposed on big bsize values;
Obtained from: NetBSD via OpenBSD
Notes:
svn path=/head/; revision=190494
|
|
|
|
|
|
|
|
|
| |
information.
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=190493
|
|
|
|
|
|
|
|
|
|
| |
LRU page.
- Fix for sequential retrieval failure when using large key/data pairs.
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=190492
|
|
|
|
|
|
|
| |
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=190491
|
|
|
|
|
|
|
|
|
| |
pairs, not onto a page containing the end of a big pair.
Obtained from: NetBSD via OpenBSD
Notes:
svn path=/head/; revision=190490
|
|
|
|
| |
Notes:
svn path=/head/; revision=190489
|
|
|
|
|
|
|
|
|
| |
in one more case.
Obtained from: NetBSD via OpenBSD
Notes:
svn path=/head/; revision=190487
|
|
|
|
|
|
|
| |
Obtained from: NetBSD via OpenBSD
Notes:
svn path=/head/; revision=190486
|
|
|
|
|
|
|
|
|
|
|
|
| |
if the result is truncated.
db/hash/hash_page.c: use the same way to create temporary file as
bt_open.c; check snprintf() return value.
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=190485
|
|
|
|
| |
Notes:
svn path=/head/; revision=190484
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
all; before freeing memory, zero out them before we release it as free
heap. This will eliminate some potential information leak issue.
While there, remove the PURIFY option. There is a slight difference between
the new behavior and the old -DPURIFY behavior, with the latter initializes
memory with 0xff's. The difference between old and new approach does not
generate observable difference.
Obtained from: OpenBSD (partly).
Notes:
svn path=/head/; revision=190482
|
|
|
|
|
|
|
| |
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=189330
|
|
|
|
|
|
|
| |
commit does not affect MD5 of object file.
Notes:
svn path=/head/; revision=189327
|
|
|
|
|
|
|
|
|
|
|
| |
(This is part of a larger changeset which is intended to reduce diff only,
thus some prototypes were left intact since they will be changed in the
future).
Verified with: md5(1)
Notes:
svn path=/head/; revision=189291
|
|
|
|
|
|
|
|
| |
the internal interface instead of casting away the constant
constraint upon calling.
Notes:
svn path=/head/; revision=169979
|
|
|
|
|
|
|
|
|
| |
clause.
# If I've done so improperly on a file, please let me know.
Notes:
svn path=/head/; revision=165903
|
|
|
|
| |
Notes:
svn path=/head/; revision=135024
|
|
|
|
|
|
|
|
|
|
| |
Only warnings that could be fixed without changing the generated object
code and without restructuring the source code have been handled.
Reviewed by: /sbin/md5
Notes:
svn path=/head/; revision=111010
|
|
|
|
| |
Notes:
svn path=/head/; revision=107052
|
|
|
|
|
|
|
| |
I believe have made all of libc .h's as consistent as possible.
Notes:
svn path=/head/; revision=92991
|
|
|
|
|
|
|
| |
I believe have made all of libc .c's as consistent as possible.
Notes:
svn path=/head/; revision=92986
|
|
|
|
| |
Notes:
svn path=/head/; revision=92941
|
|
|
|
| |
Notes:
svn path=/head/; revision=92905
|
|
|
|
| |
Notes:
svn path=/head/; revision=92889
|
|
|
|
|
|
|
|
| |
Obtained from: NetBSD
MFC after: 1 month
Notes:
svn path=/head/; revision=76613
|
|
|
|
|
|
|
|
|
| |
Compatability is not an existing english word.
Add $FreeBSD$.
Notes:
svn path=/head/; revision=72092
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
remove (comment out) functions defined or depricated elsewhere:
bsearch, lfind, lsearch, insque, remque
change hcreate to take a size_t rather than uint (essentially the same)
since hcreate/hdestroy are now in <search.h>, remove private search.h
in lib/libc/db/hash/
add $FreeBSD tags to hsearch.c
Notes:
svn path=/head/; revision=62684
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
so that all these makefiles can be used to build libc_r too.
Added .if ${LIB} == "c" tests to restrict man page builds to libc
to avoid needlessly building them with libc_r too.
Split libc Makefile into Makefile and Makefile.inc to allow the
libc_r Makefile to include Makefile.inc too.
Notes:
svn path=/head/; revision=25401
|
|
|
|
|
|
|
|
| |
Guard against possible buffer overrun in filename passed.
Another candidate for 2.2.
Notes:
svn path=/head/; revision=22736
|
|
|
|
|
|
|
|
|
| |
changes from the vendor branch as well, backing the db-1.82 changes.
This file should now be the same as it was in rev 1.1.1.2.
Notes:
svn path=/head/; revision=19029
|
|
|
|
|
|
|
|
|
| |
Somehow, I also managed to get quite some other changes in this file at
the same time. All I did was checkout the file and made a single change.
If someone has an explanation how these PURIFFY defines got in...
Notes:
svn path=/head/; revision=19024
|
|
|
|
|
|
|
|
|
| |
This should solve the bug where a coredumping ftpd reveals
encrypted passwords.
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=18997
|