1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-09 22:38:01 -08:00
Commit Graph

111293 Commits

Author SHA1 Message Date
sobrado
a9050c90c4 Usage -> usage. 2008-11-12 16:13:46 +00:00
sthen
a77f5536c1 fix typo in debug printf; ok ratchov@ 2008-11-12 16:01:09 +00:00
sobrado
1bf1e788b0 we should not document each operand in the usage of a command,
it is an usual practice on BSDs and make the synopsis and usage
more robust when operands are added or removed; synchronize the
usage with the synopsis on the manual page; while here, remove
superfluous information from the usage.

ok jmc@
2008-11-12 16:01:08 +00:00
otto
e40b671714 avoid a few strlen calls for constant strings; prompted by tg; ok djm@ 2008-11-12 09:41:49 +00:00
deraadt
f641ad14cf sync 2008-11-12 03:00:29 +00:00
kurt
e8e072b5be Compile crt0.o, crtbegin.o and crtend.o with -fpie/-fPIE. This requires
gcc with pie support to be built first.

ok kettenis@
2008-11-11 23:49:46 +00:00
kurt
3497dfe12e Add support for position independent executables. This adds compile flags
-fpie & -fPIE which are similar to -fpic & -fPIC except that the resulting
objects can not be used in shared libraries due to an additional
optimization for pie. This also adds the -pie link flag which produces a
pie executable given pic or pie objects.  Combining -pie with -static is
currently disabled. The only gcc3 arch that doesn't support pie at moment
is arm due to binutils relocation bugs.

ok kettenis@
2008-11-11 23:48:19 +00:00
krw
69ee9c011c Drop svnd lines from the munged fstab for upgrades, to avoid confusing
fsck. Reported by Sebastian Rother via tech@.

"sure" deraadt@
2008-11-11 23:36:13 +00:00
kurt
15135fad20 Enable support for debugging pie programs. Code from Elena Zannoni's
<ezannoni at redhat dot com> pie branch in gdb cvs, less extraneous
parts and with some bug fixes. Debugging w/core files for pie programs
isn't working yet since AUXV data isn't included in our core files at
the moment.

feedback and ok kettenis@
2008-11-11 22:57:48 +00:00
jmc
22c6a57d9b tweak previous; 2008-11-11 21:45:03 +00:00
ratchov
8d673bd4ec if the device disappear the mixer and demultiplexer chains are
destroyed. If this happen then warn and exit, rather than crashing.
2008-11-11 21:26:21 +00:00
gilles
29ee1e5255 - mistakenly removed this lock 2008-11-11 21:17:49 +00:00
gilles
851c912ec6 - introduce queue_init_submissions() which will sanitize the disk-based
queue at startup: catches left overs from interrupted sessions,
	reset F_MESSAGE_INPROCESS so that messages which were in MTA or
	MDA gets scheduled again.
- temporarily comment chl@'s O_EXLOCK -> fcntl change until we figure
	why it locks my mailbox under load
2008-11-11 21:13:14 +00:00
oga
e2ba6b9872 Remove the (unworking to the point it doens't even compile) viadrm driver.
Eventually a drm driver for via hardware may be written, but it will be
utterly different to this one.

No one objected, ok matthieu@.
2008-11-11 21:06:18 +00:00
gilles
75f3590040 - temporarily comment chl@'s O_EXLOCK -> fcntl() change until we understand
what causes the mailbox lock bug i'm observing under heavy load.
2008-11-11 21:02:20 +00:00
gilles
756d3a0185 - now that we fdopen() message file descriptor, do not forget to fclose() 2008-11-11 20:59:11 +00:00
ratchov
a302c703d8 remove the SIGNALS sections, describe signals in DESCRIPTION
from jmc@
2008-11-11 19:44:19 +00:00
ratchov
634fa8c151 expose a volume knob in the sndio API: add sio_setvol(3) and
sio_onvol(3) functions. The audio(4) backend tries to use the
inputs.dac, outputs.dac, outputs.output and outputs.master
controls (in this order). Add a sample file in
regress/lib/libsndio/vol/vol.c
2008-11-11 19:39:35 +00:00
ratchov
d4e1905928 expose the volume knob in server mode too 2008-11-11 19:21:20 +00:00
pedro
2dae5de94b Fix prototype for drm_addmap(), okay oga@. 2008-11-11 16:46:42 +00:00
deraadt
436455af1b for ^T support, grab all the information from the process before going
into a potentially sleeping function... ok tedu.
2008-11-11 15:33:02 +00:00
hshoexer
f2a4628341 Use rfc2409 conform notification message when client identities are
not valid during phase 2.

From Dirk Mast <condor2k at googlemail dot com>, thanks!

ok markus@
2008-11-11 15:11:28 +00:00
ratchov
c4e6537041 termninate non-server aucat when it's idle rather that using
the hackish {MIX,SUB}_AUTOQUIT features. This way we don't
have to care about possible references on destroyed objects.
2008-11-11 13:12:03 +00:00
ratchov
5e429d4b6c when not in server mode, aucat terminates automatically using
the {MIX,SUB}_AUTAQUIT features. In this case we're not
allowed to directly touch dev_mix and dev_sub because they
can disappar. So disable the ``suspend'' and ``quit'' bits
when {MIX,SUB}_AUTAQUIT are used.
2008-11-11 12:56:02 +00:00
mglocker
5ce1c1ef84 Spacing. 2008-11-11 12:37:07 +00:00
espie
96ede575d7 allocate job only when it's needed.
okay otto@
2008-11-11 09:32:20 +00:00
jmc
0bc6b7c5fc escape minus signs; 2008-11-11 07:47:48 +00:00
stevesk
3af73591de for sshd -T print 'permitopen any' vs. 'permitopen' for case of no
permitopen's; ok and input dtucker@
2008-11-11 03:55:11 +00:00
stevesk
39d5ce731b USE_AFS not referenced so remove #ifdef. fixes sshd -T not printing
kerberosgetafstoken. ok dtucker@
2008-11-11 02:58:09 +00:00
tedu
cd5fb898fd some small improvements. ok gilles 2008-11-11 02:14:58 +00:00
tedu
9aaca6d3f2 slightly optimized the ptrace stat allocation to only happen when needed.
ok deraadt
2008-11-11 02:13:14 +00:00
tedu
7f4c1854d7 make sure that any messing we do with a process's directories happens atomically and not after sleeping.
ok deraadt pedro
2008-11-11 02:11:25 +00:00
gilles
93e859c46a - queue process no longer schedules messages which do not have flag
F_MESSAGE_COMPLETE
- submit recipients to the queue as we read them from RCPT instead of
	submiting them all at once when DATA is over. this prevents us
	from having to keep a potentially large number of recipients in
	memory during the whole session.
- remove all code that dealt with the recipients queue of a message as
	it is no longer used.
- several small changes to make sure the server is always in a recoverable
	state in case of an unexpected shutdown.
2008-11-11 01:08:08 +00:00
chl
4277a387fe remove the use of O_EXLOCK, when open()ing a file, and use flock() instead.
ok gilles@
2008-11-11 01:01:39 +00:00
krw
cdb7d48829 Replace some 4 space knf spacing with install space paranoia tabs, saving
33 characters.
2008-11-11 00:55:21 +00:00
ratchov
23be494310 add a per-stream ``soft volume'' knob and the corresponding -v option.
The code will be useful later for the volume knob in the sndio API.
2008-11-10 23:25:37 +00:00
gilles
7f96bf692c - open the message file earlier after a successful MAIL command instead of
waiting for the DATA command. this currently has no impact on the
	session but is needed for another change that will make submission
	of recipients safer with regard to "unexpected shutdowns at bad
	timings"
2008-11-10 23:18:47 +00:00
gilles
e5836a4449 - define MAX_LINE_SIZE which is the maximum length of a line we allow from
a client. it must be set to the highest value we have from all of
	the extensions which are/will be implemented.
- replace all occurences of STRLEN define with MAX_LINE_SIZE, kill STRLEN
2008-11-10 22:35:23 +00:00
chl
bd5bb70c9d rename h_errno field into getaddrinfo_error, to avoid confusion with errno.
h_errno has been obsoleted since the gethostbyname() --> getaddrinfo() replacement.

ok gilles@
2008-11-10 21:29:18 +00:00
chl
b3c9634417 fix store_write_header() prototype.
ok gilles@
2008-11-10 20:10:38 +00:00
oga
2aef40463f typo: be -> by in comment
``of course'' deraadt@.
2008-11-10 18:11:59 +00:00
claudio
2d6ec8084b Clear ifindex2ifnet[] in if_detach() this is needed because link local
addressing in IPv6 likes to do ifp = ifindex2ifnet[ifindex] without properly
checking if the ifindex is valid. As a side-effect this solves parts of
PR 5981. Debugged by jsing@. OK jsing@, deraadt@
2008-11-10 18:08:42 +00:00
deraadt
4aa892c616 clean namespace a fair bit; wrap kernel-use-only structures and gunk in
#ifdef _KERNEL
2008-11-10 18:04:41 +00:00
sthen
2205c4abd2 fix some situations where it was impossible to buy a hotel,
and make the game closer to the rules (may only buy a hotel
after 4 houses are owned on all properties in the group).

from Olivier ANTOINE in PR 5976.
2008-11-10 18:02:17 +00:00
deraadt
c5d798e9fe delete operation not needed; from naddy 2008-11-10 17:55:36 +00:00
deraadt
b1819451cb #if 0 a function which we have we do not use, and where the call to it is in #if 0 as well 2008-11-10 17:49:46 +00:00
oga
6a40061a7c Fix the bits to enable bus mastering mode on some newer chips. From
Alex Deuchar via drm git.
2008-11-10 17:35:05 +00:00
deraadt
f8c0a882a2 spaces fixed while reading code 2008-11-10 17:24:24 +00:00
deraadt
2f3d2c487d If a bind() spuriously fails (as appears to happen once in a blue moon due
to some stupid ipv6 bug in particular), remove that 'listen' from the list
and continue operation.  issue spotted by naddy
ok henning
2008-11-10 16:59:33 +00:00
oga
8de9cb902f Make writeback work on after a suspend. From Dave Airlie via drm git. 2008-11-10 16:55:47 +00:00