| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
errno during a successful malloc() call.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
but also assumes that they are 32-bits. This is one place where I don't
think it is appropriate to change 'long' to 'int'. I don't see why the
code couldn't be fixed so that using natural long variables does the
right thing. It's spaggetti code so it'll take some effort. Obviously
NetBSD thought so too because they change 'long' to 'int32_t' etc
and left it at that. As a temporary measure FreeBSD/Alpha can use the
NetBSD code and put this on the list of things to fix.
|
| |
|
|
|
|
|
|
|
| |
and non-threaded programs. This makes malloc thread safe for linking
with libpthread and kernel threads.
Reviewed by: phk
|
|
|
|
| |
autoinitialiser gets linked in and therefore called before main().
|
| |
|
| |
|
|
|
|
|
|
| |
PR: 6240
Reviewed by: phk
Submitted by: Niall Smart rotel@indigo.ie
|
|
|
|
|
|
|
|
| |
libc to determine if locking is required. This is needed in libc
for use with kernel threads, but until a thread is created, we don't
really want to bother locking things. The variable was added here
because the crt code calls exit(main()) so all programs will get the
variable.
|
| |
|
| |
|
|
|
|
| |
__NETBSD_SYSCALLS is defined.
|
| |
|
| |
|
|
|
|
|
|
|
| |
a malloc. The signal handler creates a thread which requires a malloc...
For now, the only thing to do is to block signals. When we move user
pthreads to use the kernel threads, mutexes will be implemented in kernel
space and then malloc can revert.
|
| |
|
|
|
|
|
|
|
| |
This fixes bugs in the manual handling. abs.[cS] was handled too
specially and the wrong (.c) variant for each of div.[cS], labs.[cS]
and ldiv.[cS] was added to SRCS. This caused the .c variant to be
used if `depend' was made and the .S version to be used otherwise.
|
|
|
|
|
| |
were a workaround for limitations in bsd.man.mk that were fixed about
2 years ago.
|
| |
|
|
|
|
|
| |
Reviewed by: phk
Submitted by: jdp
|
|
|
|
|
|
|
| |
This makes 64bit operation more likely.
Reviewed by: phk
Submitted by: jdp
|
| |
|
|
|
|
|
| |
PR: misc/3575
Submitted by: Bruce Evans <bde@zeta.org.au>
|
| |
|
|
|
|
|
|
| |
PR: 3911
Reviewed by: phk
Submitted by: Shigio Yamaguchi <shigio@wafu.netgate.net>
|
| |
|
|\
| |
| |
| | |
which included commits to RCS files with non-trunk default branches.
|
| |
| |
| |
| |
| | |
libc/db, libc/gen/crypt.* and libtelnet. All affected files except 3
unimportant ones have already left the vendor branch.
|
| |
| |
| |
| |
| | |
PR: 4002
Pointed out by: bde
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
Various cleanup from Keith Bostic
Reinstate calloc() as a separate funtion, in its own source/object file.
leave the manpage integrated with malloc.3 and friends. Too many things
were broken in this respect.
PR: 4002
Reviewed by: phk
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
Submitted by: Keith Bostic <bostic@bostic.com>
|
| |
| |
| |
| | |
manpage is being viewed.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Various portability and stylistic cleanups.
Kill MALLOC_STATS & the 'D' option.
Fix the 'V' option.
Major overhaul of the man-page.
You milage should not vary.
Reviewed by: Keith Bostic <bostic@bostic.com>
Submitted by: Keith Bostic <bostic@bostic.com>
|
| | |
|
| |
| |
| |
| |
| |
| | |
implement (better) falback code inside srandomdev() itself.
Change return type from int to void (binary compatibility surprisely
achieved). Userland code will be changed soon.
|
| |
| |
| |
| | |
Prompted by: X11 & XFree86
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Malloc cannot use pthread_mutex_init() to initialize a mutex because
the mutex initialization process does a malloc!
libc_r internals skip the malloc and assign an initializer to a static
structure and point the opaque type (pthread_mutex_t in this case) to
that structure. This is done on the assumption that the mutex will never
be destroyed. This style of initialization is only valid inside libc_r
because the structure that is assigned is opaque to the user.
This fix allows a simple program to get to main() again. 8-)
|
| |
| |
| |
| |
| |
| |
| | |
Untested support for Solaris from John-Mark Gurney
Reviewed by: phk
Submitted by: (partially) John-Mark Gurney <gurney_j@resnet.uoregon.edu>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
PR: #3178
Submitted by: Josh Gilliam <soil@quick.net>
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Submitted by: wollman & me (add type casts and remove unneded loop)
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Tested by: Joel Maslak <j@pobox.com>
Closes: PR kern/2964
|