Commit Graph

10979 Commits

Author SHA1 Message Date
mrg e487cf62f5 add a .globl to MD_SECTION_PROLOGUE so that the symbol is exported.
this fixes build problems with GCC4 (which will use smaller/faster call
methods for local/static functions) and is the right thing anyway.
2006-06-12 22:05:49 +00:00
chuck f4e3e7fe3b sigtimedwait: if we collect a queued signal via pt_siglist, do not
forget to clear it out of pt_siglist, otherwise we will keep getting
it over and over again.   fixes a problem introduced in rev 1.43.

problem observed with mysqld where sending it a SIGHUP after it has
set an alarm (e.g. due to some package like rt3 using it) caused the
signal handler thread to go into a tight loop (collecting a SIGALRM
[via sigwait() in mysqld.cc] that would not go away due to the above
issue).   mysqld appears to get a SIGHUP when /etc/rc exits, so it
can go into this tight loop after a reboot (but not if you restart
it by hand).   the bad sequence is:
	/etc/rc runs:
		- starts mysqld
		- starts web server with rt3 fastcgi starts
		- fastcgi/rt3 talks to mysqld (causing it to set an alarm)
		- /etc/rc exits, SIGHUP goes to mysqld
		- mysqld catches SIGHUP, signal handler thread gets
			stuck in loop (database continues to operate, slowly).

you can also trigger the problem by sending mysqld a SIGHUP by hand after
you've caused it to set an alarm by connecting to it.
2006-06-12 16:45:14 +00:00
simonb a4052de411 Use PRId64 instead of a cast to long long and %lld to print an int64_t. 2006-06-08 21:08:56 +00:00
tnozaki b29e60b31d if INIT0 specified, use it instead of ASCII. 2006-06-07 16:28:34 +00:00
chap f3ef5715ba Document the recent trunk changes to ntp_gettime(2) (Hi Matthias!). 2006-06-04 15:46:08 +00:00
christos 98f3ad2656 Document SA_NOKERNINFO. 2006-06-03 18:23:52 +00:00
tnozaki a55e9cdf1a fix lib/33476:
added following manpages (derived from FreeBSD),
    wcwidth(3) wcswidth(3)
    wcstol(3) wcstoll(3) wcstoimax(3)
    wcstoul(3) wcstoull(3) wcstoumax(3)
  and update doc/TODO.i18n.
2006-06-03 04:36:43 +00:00
mrg db19e89e04 remove support for building (with) GCC 2.95. also:
- always install <stdbool.h>
- don't generate a fake one for vax / gettext.
2006-06-02 22:16:18 +00:00
mrg e69cf86f15 remove GCC2 support 2006-06-02 19:47:15 +00:00
mrg da78757b0f initialise some variables for gcc. 2006-06-02 19:46:56 +00:00
jnemeth 74cf788741 PR/30730 force changing password via chsh fails
PR/33502 password aging not working
copy old_pwd to new_pwd before modifying
2006-05-30 19:48:07 +00:00
jnemeth d7635ff0b0 missed check for malloc() returning NULL 2006-05-29 21:55:41 +00:00
drochner 837ecb8ce8 support the new ntp_gettime() syscall and add compatibility for the old one 2006-05-29 10:02:56 +00:00
drochner f5015685d4 mention error return value, like getrawpartition(3) 2006-05-26 12:36:59 +00:00
christos d49dbefade Coverity CID 3783: Fix uninit variable. 2006-05-25 15:27:35 +00:00
wiz cb3fc8886b \- is a minus. 2006-05-25 10:56:08 +00:00
christos dc46554fdb Document that this can fail. 2006-05-25 00:41:24 +00:00
oster 4f500646a9 Add a missing ')' to fix the example code. Already fixed in openssl upstream. 2006-05-24 16:44:34 +00:00
christos 4d02435f76 Coverity CID 3677: Plug memory leak 2006-05-23 00:58:42 +00:00
wiz 6f524b4705 Punctuation nit. 2006-05-22 21:55:01 +00:00
kleink bf44a81954 Clarify that strerror() doesn't return EINVAL but stores in errno;
prompted by Thomas Klausner.
2006-05-22 21:40:33 +00:00
mrg e795c5750a use -O0 for blocksort.o on sh3 & GCC4. 2006-05-21 03:34:57 +00:00
mrg 15fc3900ea add a local prototype for fabs() 2006-05-21 02:51:15 +00:00
christos 351fa65664 Instead of using -I- -I${.CURDIR} and #include "dot_init.h", use:
-I${.CURDIR} and #include <dot_init.h>, since -I- is obsoleted in gcc-4,
and it is too confusing anyway.
2006-05-19 19:11:12 +00:00
tsutsui d2152dcfde - getvfsstat(2) isn't in 2.1 but 3.0
- getffstat() -> getfsstat()
2006-05-19 17:59:28 +00:00
tsutsui d3eabd24ce fhstatvfs(2) isn't in NetBSD 2.1 but 3.0. 2006-05-19 17:57:37 +00:00
christos 8444694a42 cast shift argument in macro. 2006-05-19 14:40:15 +00:00
christos f5bdde5936 Coverity CID 3651: Don't leak ifaddrs on getaddrinfo failure. 2006-05-18 20:42:52 +00:00
christos 96473fa808 change __weak_extern to __weak_reference so that gcc4 works. 2006-05-18 17:54:19 +00:00
christos ca130c6a90 Explicitly mention that telldir values are only valid for the lifetime of
the DIR pointer. Pointed out by Klaus Klein.
2006-05-18 15:30:36 +00:00
thorpej 3e69f1b2a5 - Add prop_array_equals(), prop_dictionary_equals(), and
prop_dictionary_keysym_equals(), and prop_object_equals() functions.
- Use realloc() where it makes sense.  There will be more changes in this
  area.
- Add a _prop_object_type structure that is used internally to keep
  information about the object types.  Decreases the footprint of the
  objects slightly by replacing several pointers with just one.
2006-05-18 03:05:19 +00:00
christos cfd3aebca4 PR/24324: Arne H Juul: Re-implement seekdir/telldir using a pointer of
locations per directory instead of a global hash table to avoid memory
leak issues, and incorrect results.
2006-05-17 20:36:50 +00:00
christos 065d43d6c4 Revert previous changes which are unnecessary now the _DYNAMIC is marked
weak.
2006-05-17 17:08:54 +00:00
christos e08e654f06 Mark _DYNAMIC to have attribute __weakref__, so that gcc-4 does not optimize
&_DYNAMIC == NULL away. From Matt Thomas.
2006-05-17 17:08:07 +00:00
christos f32828209d Back out accidental commit that changed -I- 2006-05-17 17:02:16 +00:00
christos 6f1784f6d3 Fool gcc to compare against a null variable instead of the NULL constant
so that it does not optimize the &_DYNAMIC == NULL away. Idea from Matt.
2006-05-17 17:01:12 +00:00
christos 94b00d6e09 Avoid weak symbol related bug with _DYNAMIC not being referenced in the
code at all for gcc-4. Fixes statically linked binaries, but the fix is
bogus.
2006-05-17 16:39:25 +00:00
mrg 8726b401d3 if SOFTFLOAT_FOR_GCC is not defined, don't declare float_detect_tininess. 2006-05-16 20:55:51 +00:00
mrg 640873a430 make sure there is a prototype in scope. 2006-05-16 05:29:16 +00:00
elad 04d63f90b5 Introduce PaX MPROTECT -- mprotect(2) restrictions used to strengthen
W^X mappings.

Disabled by default.

First proposed in:

	http://mail-index.netbsd.org/tech-security/2005/12/18/0000.html

More information in:

	http://pax.grsecurity.net/docs/mprotect.txt

Read relevant parts of options(4) and sysctl(3) before using!

Lots of thanks to the PaX author and Matt Thomas.
2006-05-16 00:08:24 +00:00
christos 06f18c1c0d XXX: GCC uninitialized variable. 2006-05-14 02:15:31 +00:00
mrg 169832563d with GCC4 we *need* to pass -fno-unit-at-a-time otherwise GCC
reorders things breaking _init() and _fini().

for i386, the {init,fini}_fallthru() functions were being output
_before_ the _init()/ _fini(), and instead of falling through to
the rest of the .init/.fini section, it would fall through to
_init()/_fini() again, and again, and again, until the stack was
exhausted.

now i386 works, but i have not checked that this works for
sparc64 as well.
2006-05-13 01:40:34 +00:00
mrg 6a3e7ce9e1 apply -fno-strict-aliasing to changepw.c 2006-05-12 18:00:06 +00:00
mrg 52874db1aa since we rename and provide a weak symbol for MD2Transform make it non-static. 2006-05-12 02:49:00 +00:00
mrg 340a97942e if SOFTFLOAT_FOR_GCC is not defined, don't declare float_detect_tininess. 2006-05-11 23:53:14 +00:00
mrg aadd7d4847 sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4. 2006-05-11 23:16:28 +00:00
mrg e221bc9fb9 in _m_gmon_destructor(0 when traversing the list, add (void *) to the cast
chain.
2006-05-11 17:19:15 +00:00
mrg 6f4493cd5c xdr sucks. sprinkle some (void *) casts into it's functions taking void **,
and shut up GCC4.
2006-05-11 17:11:57 +00:00
mrg 77c7eed08d add128() wants bits64 * as it's 5th argument. 2006-05-11 16:38:44 +00:00
christos b0a429fdb3 Document more MSG_ flags. From FreeBSD 2006-05-11 15:48:48 +00:00