jlemon
a2829cbe90
Add wrapper for kevent() syscall
...
Noted as missing by: nicolas.leonard@animaths.com
2000-08-07 16:51:56 +00:00
jlemon
94f1716a2e
Document return value of ENOENT for nonexistent/invalid filter entries.
2000-08-07 16:47:35 +00:00
ru
f4ce82e2fd
Adjust TCP checksum rather than compute it afresh.
...
Submitted by: Erik Salander <erik@whistle.com>
2000-08-07 09:51:04 +00:00
nyan
a5a5fe7a4b
Don't use kern.disks sysctl on PC-98 because the wd driver doesn't call
...
disk_create() function.
2000-08-07 02:14:44 +00:00
green
a76d7b0016
Good, fixing the header showed incorrect usage of it! #define _KERNEL
...
here for the include of sys/select.h.
2000-08-06 17:03:09 +00:00
ben
5266882947
Fix description of argv[0] passed to interpreted scripts; it's the name of
...
the interpreter, _not_ the argv[0] passed in the original exec() call.
2000-08-05 16:38:24 +00:00
kris
b0f07577a0
Prevent internal buffer overflow due to expansion of $LANG and/or name
...
argument in catopen().
Reviewed by: chris, -audit
2000-08-05 04:56:43 +00:00
ru
62abb92c7c
src/Makefile.inc1 sets DESTDIR=${WORLDTMP} for `buildworld' stage
...
causing pre-processed manual pages, like terminfo(5), to point to
the temporary build tree.
2000-08-04 15:38:32 +00:00
kris
0e4bd7a9c8
Return an error instead of overflowing the buffer in the case of a long
...
$HOME in ruserpass()
2000-08-04 11:15:48 +00:00
kris
f4c20382ae
Calculate the string length of a u_long at compile-time, instead of using a
...
hardcoded value.
2000-08-04 11:07:57 +00:00
kris
815170b5ea
Correct factor-of-10 error in INT_STRLEN_MAXIMUM() calculation.
2000-08-04 11:03:20 +00:00
kris
0075188ddd
Correct string length bounds checking.
2000-08-04 10:53:37 +00:00
kris
f838ced4d9
Prevent TMPDIR overflow.
2000-08-04 10:50:21 +00:00
kris
9798d86665
Don't overflow the internal buffer in clnt_sperror()
2000-08-04 10:34:59 +00:00
kris
b7c08e22c6
sprintf -> snprintf paranoia
2000-08-04 10:23:42 +00:00
kris
6023a7fed5
Limit the amount of data copied to the error buffer to _POSIX2_LINE_MAX.
...
This is the documented size which the user-provided buffer must be.
2000-08-04 09:23:07 +00:00
kris
308f342303
Prevent buffer overflows.
2000-08-04 06:25:30 +00:00
jhb
264e175bf6
Cleanup warnings by adding missint prototypes, removing unneeded duplicate
...
prototypes, and adding in several 'const's. Also, add some missing
$FreeBSD$'s.
Found by: BDECFLAGS
2000-08-03 09:08:29 +00:00
des
9b71966edf
Fix signedness bogon.
2000-08-02 11:25:21 +00:00
jasone
1ff9faf229
Make sem_post() safe to call from within a signal handler, as required by
...
POSIX/SUSv2.
2000-08-01 21:19:09 +00:00
peter
9fb04257a0
Revert the temporary hack in rev 1.79.
2000-08-01 18:50:29 +00:00
ps
a8748dafd1
If the format string passed to setproctitle begins with a '-'
...
character, skip the program name when setting the process title.
Ansified with extreme prejudice.
Reviewed by: peter
2000-08-01 06:37:09 +00:00
sheldonh
316dbe7b07
Whitespace only:
...
Fix an overlong line and trailing whitespace that crept in, in the
previous commit.
2000-07-31 13:49:21 +00:00
peter
c766a66aeb
Add pointers to rfork_thread(3)
2000-07-31 05:43:43 +00:00
peter
365414f82e
Add a skeleton rfork_thread(3) man page.
2000-07-29 12:12:39 +00:00
peter
1fc82abee8
Take a shot at implementing a functional rfork_thread() for alpha. This
...
was not fun and I am not entirely certain of the correctness, but it seems
to work. (in fact, side by side testing of this code vs the x86 version
turned up hidden bugs in the x86 code).
2000-07-29 11:43:21 +00:00
peter
e4403e6f3f
Fix some rather interesting bugs that managed to not turn up in various
...
testing and real-life applications:
1) If you returned from the thread function, you got a segv instead of
calling _exit() with your return code.
2) clean up some bogus stack management. There was also an underflow
on function return.
3) when making syscalls, the kernel is expecting to have to leave space
for the function's return address. We need to duplicate this. It was
an accident that the rfork syscall actually worked here. :-/
2000-07-29 11:34:01 +00:00
peter
cf3847fe70
rfork(2) wrapper for simple rfork-style threads. I have lost count of
...
the number of times I have given this to people and got asked: why isn't
it in libc? It is impossible to do this without assembler glue to reset
the stack for the new child process.
int rfork_thread(flags, stack_addr, start_fnc, start_arg)
int flags; Flags to rfork system call. See rfork(2).
void *stack_addr; Top of stack for thread.
int (*start_fnc)(void *); Address of thread function to call in child.
void *start_arg; Argument to pass to the thread function in child.
This is deliberately not documented or prototyped in includes until the
corresponding alpha version is written.
2000-07-29 07:14:04 +00:00
peter
b7af2544c9
Deal with the exit entry in MIASM changing to sys_exit.
...
This Is A Hack(TM).
2000-07-29 00:28:44 +00:00
ache
14aed6ba2c
Teach library about Home/End keys
2000-07-28 00:42:54 +00:00
ache
58cbd1f1a9
Fully preserve original tty settings outside of line edition mode. Old variant
...
preserve them only partially, so tty state becomes different after el_*
functions used.
PR: 20138
2000-07-28 00:07:40 +00:00
ache
792e42e270
Move terminal descriptor flush before stty to eliminate potential problems
...
whith characters conversion changed like \n -> \r\n and so on.
2000-07-27 23:58:35 +00:00
des
bd46c89e4f
Don't fail if _ftp_stat() reports a protocol error, since that most likely
...
means that the server doesn't understand SIZE or MDTM, which should not be a
hard failure.
Submitted by: ume
2000-07-27 08:48:48 +00:00
ache
8b6811d9df
Fix temp. singnals blocking. Only one signal was blocked due to typo pasted
...
many times.
2000-07-26 23:46:28 +00:00
archie
674667d047
Add address translation support for RTSP/RTP used by RealPlayer and
...
Quicktime streaming media applications.
Add a BUGS section to the man page.
Submitted by: Erik Salander <erik@whistle.com>
2000-07-26 23:15:46 +00:00
dillon
48adcd61e9
MFC 1.11.2.3 from -stable to -current
2000-07-25 18:50:22 +00:00
des
515e5bdd5d
If the server reports the size as 0, treat it as unknown. This works around
...
a bug in some ftp servers (most notably ftp.vmunix.com) which report the
size of a file correctly in ascii mode, but report it as 0 in binary mode.
Reported by: asmodai
Also remove an unneeded initialization.
2000-07-25 14:41:02 +00:00
des
3a09dd575f
Centralize the default port finding code.
...
Work around YA Apache bug: don't send port in Host: header if it's the
default port.
2000-07-25 11:45:38 +00:00
sheldonh
c8b4c157ed
Clean up some nits, with the permission of the author:
...
* Grammar fixes.
* Mark up rfork and vnode as cross-references.
* Clarify the use of the RFFDG flag to rfork(2).
2000-07-24 18:03:53 +00:00
sheldonh
99e6d4b3b7
Remove the reference to KERN_UPDATEINTERVAL and syncer(4), since
...
KERN_UPDATEINTERVAL can't be used to control sched_sync(). In
fact, there's no easy way to control the syncer with sysctls.
Reported by: bde
2000-07-22 15:36:36 +00:00
des
d8951f60e7
Ignore environment variables that are set but empty.
...
Sort out the size / length confusion. Always try to report the *real* file
size in the url_stat structure, no matter how much of it is actually being
sent, and try to detect inconsistencies between sizes.
Rearrange the request loop to avoid having to add meaningless code just to
silence compiler warnings.
Switch to a more sensible and consistent interface for the _http_parse*()
functions.
2000-07-21 11:02:43 +00:00
des
73a4a2b185
Document the proxy support better.
2000-07-21 10:57:15 +00:00
des
f62bb80e66
The decision to use an HTTP proxy for FTP documents belongs in the FTP code
2000-07-21 10:46:22 +00:00
des
869d881335
Don't send port number to proxy unless it's not the standard FTP port
2000-07-21 10:25:33 +00:00
dfr
5c6b23bd7c
Call _thread_init() from pthread_once() if it has not already been called.
...
This fixes a segfault in some C++ programs which use exceptions before
main() has been called (i.e. from global constructors).
Reviewed by: deischen
2000-07-21 09:31:13 +00:00
jasone
3923cdcf46
Use _close() instead of close() in addrconfig() to keep it from becoming a
...
potential cancellation point in libc_r.
2000-07-21 04:22:39 +00:00
obrien
66b64cd709
Fix problem where original author thought `unsigned long' was the best
...
32-bit type (rather than define his own type based on the type of box
being compiled on).
Submitted by: Mark Abene <phiber@radicalmedia.com>
(however I applied a slightly different fix)
2000-07-20 20:11:36 +00:00
ume
dd0e3c30fe
Copy canonname for *ahost, into static buffer.
...
Obtained from: KAME Project
2000-07-20 18:49:35 +00:00
alfred
e1524a0154
use .Pp instead of faking it with an extra newline
...
Pointed out by: sheldonh
2000-07-20 11:05:52 +00:00
alfred
347d1868c9
document get/set sockopt usage with accept_filter(9)
2000-07-20 10:33:08 +00:00