Commit Graph

81580 Commits

Author SHA1 Message Date
jeff
ec9727e8a4 - Remove the do { } while(0) from the VOP lock assert macros. This was
not optimized away by the compiler in time for it to still leave the VOP
   functions as inlines.

Submitted by:	bde
2002-10-13 04:19:44 +00:00
marcel
c6eea350fc ia64 specific CFLAGS change:
Fix the "@gprel relocation against dynamic symbol xxx" linker error.

Variables defined in the link unit and small enough to be put in the
short data section will have a gp-relative access sequence (using the
@gprel relocation). It is invalid to have @gprel relocations in shared
libraries, because they are to be resolved by the static linker and
not the dynamic linker. The -fpic option will cause @ltoff relocations
for @gprel relocations, but the side-effects are untested (if any).
Instead, disable/eliminate the short data section to achieve the same.
2002-10-13 02:52:22 +00:00
kris
cf195c5ed6 Prevent stack-smashing buffer overflows in -D and -r options by using
buffer-safe string functions.  The rest of the code is still probably
unsafe.

MFC after:	1 week
2002-10-13 01:18:33 +00:00
gshapiro
010f2e9171 MFS: Fix smrsh bypass bug. 2002-10-13 00:56:58 +00:00
mike
4d58825054 o Fix a silly requirement for <machine/signal.h> to be included in the
middle of this header.
o Remove unneeded conditionals to hide SIG* in the POSIX case.
  (C allows implementations to define additional SIG* constants.)
o Add comments about missing features.
o Move the location of the sigset_t typedef.
o Update standards visibility conditionals.
o Fix some assumptions about what pid_t and uid_t are defined as.
o Remove size_t typedef and use __size_t in struct sigaltstack
  instead.
2002-10-13 00:33:52 +00:00
mike
0768501a2f Add standards visibility conditionals. Change any uses of sigset_t to
struct __sigset to avoid depending on objects from <sys/signal.h>.
2002-10-13 00:31:46 +00:00
mike
a856de411e Assume POSIX/XSI is always visible in the __BSD_VISIBLE case. Fix a
mix-up with siginterrupt().
2002-10-13 00:29:06 +00:00
jake
d4349d3d83 Removed unused tl0_syscall. 2002-10-12 23:43:04 +00:00
marcel
c751d92ae7 o Fix typo in previous commit: s/sc-nsect/sc->nsect/
o  Fix printf format error for %d format with long argument.
2002-10-12 23:00:40 +00:00
marcel
f02cbfb108 Plug two holes where we returned to userland without restoring
the predicate registers. Even though the ITLB and DTLB interrupts
happen often enough, this bug didn't do much harm. The reason
is that the interrupt handlers only modify p1 and since this is
a preserved (callee-saved) register it is hardly used in code
generated by the compiler. Compilers use scratch registers by
default. Changing the interrupt handlers to use p6 (ie a scratch
register) proved that the bug was in fact fatal.
2002-10-12 22:42:48 +00:00
alfred
f178c67fb0 whitespace fixes. 2002-10-12 22:26:41 +00:00
marcel
635c63996c Have the linker collect and combine all unwind_info and unwind
sections so that the resulting load module has a single unwind
table. This matches the behaviour in userland.
2002-10-12 22:24:41 +00:00
kris
78372d114d Use buffer-safe string functions for paranoia. 2002-10-12 22:03:22 +00:00
kris
ab2f5d80c1 Zero memory after malloc. This stops sysinstall from dumping core
during disk probing with malloc debugging enabled.

MFC after:	1 week
2002-10-12 22:01:57 +00:00
mp
573c813412 Document import of gdb-5.2.1. 2002-10-12 21:33:49 +00:00
mp
372f065cc6 Remove dependency on version.in for version information.
Submitted by:	obrien
2002-10-12 21:23:53 +00:00
marcel
238cc38f20 Polish previous commit:
o  Replace KSTACK_PAGES with pages on panic() in pmap_new_thread(),
o  Fix style bugs in adjacent code,
o  Use NULL instead of 0 for pointers,
o  Save the virtual kstack address if we create an alternate
   kstack because 1) we can derive the physical (RR7) address
   from it and 2) we need the virtual address for contigfree()
   in pmap_dispose_thread(). Thus td_altkstack saves
   td_md.md_kstackvirt.
2002-10-12 21:04:01 +00:00
marcel
8d2455183c MFp4: Include machine/vmparam.h to pull in definition of IA64_RR_BASE.
Obtained from: peter
2002-10-12 20:54:05 +00:00
marcel
f3bd8dcc22 Make this compile on 64-bit architectures (e.g. ia64) by not assuming
pointers (but more precisely vm_offset_t) can be printed with %x. Use
%p instead and cast the argument to caddr_t.
2002-10-12 20:40:36 +00:00
marcel
e7eb3591f6 Remove the dependency on ia64_cpu.h by not defining pmap_kextract()
as a trivial function that only calls ia64_tpa() and hence requires
the prototype of ia64_tpa(), but by defining pmap_kextract as
ia64_tpa. This solves the inclusion ordering issue in ddb/db_watch.c
2002-10-12 20:35:56 +00:00
kris
2fdf0ba50e Disallow libdialog to be used in setugid applications; it is chock full
of buffer overflows.

MFC after:      3 days
2002-10-12 20:32:03 +00:00
ue
36889c5b1b And the MFbed for the German version of the -current release notes, this
time before the release (novel concept for me, I know :( )

Translation updates:
hardware/alpha/proc-alpha.sgml:		1.41  -> 1.44
hardware/common/dev.sgml:		1.91  -> 1.106
hardware/i386/proc-i386.sgml:		1.2   -> 1.3
relnotes/common/new.sgml:		1.355 -> 1.432
relnotes/common/relnotes.ent:		1.2   -> 1.3

Translation fixes:
hardware/sparc64/proc-sparc64.sgml
installation/common/install.sgml
installation/common/trouble.sgml
installation/sparc64/install.sgml
readme/article.sgml

Affected by the removal of the seperate release.ent file (FINALLY!):
errata/article.sgml
hardware/alpha/article.sgml
hardware/i386/article.sgml
hardware/ia64/article.sgml
hardware/sparc64/article.sgml
installation/alpha/article.sgml
installation/i386/article.sgml
installation/sparc64/article.sgml
relnotes/alpha/article.sgml
relnotes/i386/article.sgml
relnotes/sparc64/article.sgml
share/sgml/catalog
share/sgml/release.dsl
share/sgml/release.ent

Changed for the addition of the PC98 release notes, German version
hardware/Makefile
installation/Makefile
relnotes/Makefile
hardware/common/hw.ent

(and of course all the new files for pc98)

Thanks again to Martin Heinen for cleanup.
2002-10-12 19:00:34 +00:00
anders
0ba96181bb Add self. 2002-10-12 18:10:13 +00:00
mp
a03dd822b1 Fix function parameter lists to be correct and eliminate compiler warnings. 2002-10-12 18:08:44 +00:00
mp
8ee3bb591c Resolve conflicts with gdb-5.2.1 import. 2002-10-12 17:56:57 +00:00
mp
d1dc488817 This commit was generated by cvs2svn to compensate for changes in r104990,
which included commits to RCS files with non-trunk default branches.
2002-10-12 17:47:36 +00:00
mp
88f121ea81 Import gdb-5.2.1 2002-10-12 17:47:36 +00:00
mike
4d6bf1c3fb Add restrict type-qualifier. 2002-10-12 16:13:41 +00:00
schweikh
ca8c4bef3b Fix a dozen typos, among them dmr's last name :-) and the ever so
popular "dependant" (which the original reference manual does not have).

Nuke whitespace at EOL.
2002-10-12 14:50:50 +00:00
schweikh
3e436232c1 s/dependancy/dependency/ 2002-10-12 13:49:21 +00:00
bde
d3a326857d Fixed syntax errors and printf format errors. 2002-10-12 13:48:21 +00:00
mike
7460c4d6d4 o Add typedefs for size_t and ssize_t.
o Add typedefs for gid_t, off_t, pid_t, and uid_t in the non-standards
  case.
o Add struct iovec (also defined in <sys/uio.h>).
o Add visibility conditionals to avoid defining non-standard
  extentions in the standards case.
o Change spelling of some types so they work without including
  <sys/types.h> (u_char -> unsigned char, u_short -> unsigned short,
  int64 -> __int64, caddr_t -> char *)
o Add comments about missing restrict type-qualifiers and missing
  function.
2002-10-12 11:39:19 +00:00
ache
6ee6cab0af Cosmetic: use LCMONETARY_SIZE_{FULL,MIN} defines like in other places 2002-10-12 11:31:07 +00:00
schweikh
b7d8725365 Fix style bugs:
* Space -> tabs conversion.
* Removed blanks before semicolon in "if ... ; then".
* Proper indentation of misindented lines.
* Put a full stop after some comments.
* Removed whitespace at end of line.

Approved by:	silence from gordon
2002-10-12 10:31:31 +00:00
ache
c60d03847f This commit was generated by cvs2svn to compensate for changes in r104977,
which included commits to RCS files with non-trunk default branches.
2002-10-12 10:22:52 +00:00
ache
bbc1d3e75c Fix problem with missing pseudographics on stock xterm* entries -
import official fix onto the vendor branch.

Submitted by:	Thomas Dickey <dickey@herndon4.his.com>
Approved by:	no response from maintainer
2002-10-12 10:22:52 +00:00
tjr
aaa87a36c4 Describe the restrictions on seeking on wide character streams, and also
point out that fseek() clears the ungetwc() buffer.
2002-10-12 09:22:25 +00:00
seanc
a442bb8280 Increase the max dummynet hash size from 1024 to 65536. Default is still
1024.

Silence on:	-net, -ipfw 4weeks+
Reviewed by:	dd
Approved by:	knu (mentor)
MFC after:	3 weeks
2002-10-12 07:45:23 +00:00
phk
c407ddb93b Remove NO_GEOM option. No outstanding show-stoppers.
Sponsored by:	DARPA & NAI Labs.
2002-10-12 07:26:48 +00:00
dd
1729d6240e Aesthetics: Output a prefix before sourcing rc.local as the old rc
script did.  Stuff in rc.local frequently has lines like
"echo -n ' service_name'" which look ugly without a prefix and a
trailing period.  Likewise for rc.shutdown.local for consistency.
2002-10-12 07:23:43 +00:00
dd
17052f13f4 Aesthetics: Most (all?) other messages output at boot time have
trailing periods, so why shouldn't this one?
2002-10-12 07:21:18 +00:00
jeff
192c891c08 - Add a section on logging ktr entries to disk via ALQ. 2002-10-12 05:50:47 +00:00
jmallett
1e4091ec2b The -a and -d flags are mutually exclusive, show them as such in usage() and
manual page for showmount(8)

Sponsored by:	Bright Path Solutions
MFC after:	2 weeks
2002-10-12 05:45:01 +00:00
jeff
1f93c97112 - kserunnable() is now sched_runnable() change instances of these where
appropriate.
 - include sched.h to see this new api.
2002-10-12 05:37:26 +00:00
jeff
ef4d4e378e - Create a new scheduler api that is defined in sys/sched.h
- Begin moving scheduler specific functionality into sched_4bsd.c
 - Replace direct manipulation of scheduler data with hooks provided by the
   new api.
 - Remove KSE specific state modifications and single runq assumptions from
   kern_switch.c

Reviewed by:	-arch
2002-10-12 05:32:24 +00:00
tjr
cf318b70e5 Fix a typo causing incorrect formatting for negative values in some locales
(at least the French ones), a memory leak upon successful termination, a
pointer arithmetic error causing heap corruption, and an off-by-one bug
causing incorrect amounts of padding at the right of the value.
2002-10-12 04:38:35 +00:00
obrien
1411aacb26 Update for 2.13 10-Oct-2002 import. 2002-10-12 04:38:20 +00:00
obrien
99a0609081 Update for 2.13 10-Oct-2002 import. 2002-10-12 04:24:35 +00:00
obrien
c8a413b441 Shut up GCC, don't shadow Version 6 standard functions. 2002-10-12 04:06:13 +00:00
obrien
21dc3119fa Talk about punting and not going to any trouble to DTRT:
contrib/binutils/include/getopt.h
	/* Many other libraries have conflicting prototypes for getopt, with
	   differences in the consts, in stdlib.h.  To avoid compilation
	   errors, only prototype getopt for the GNU C library.  */

so manually define HAVE_DECL_GETOPT since configure doesn't offer any way
to set it... and its unistd.h not stdlib.h dang it.
2002-10-12 03:55:09 +00:00