Dima Dorfman
1794af5592
Don't claim to be mp(3).
2001-08-21 20:05:39 +00:00
Dima Dorfman
2c0dd4d134
Use .In, .Ux, and .Rv where appropriate. Also consistently call this
...
a "function" instead of a "routine".
Submitted by: ru
2001-08-21 19:32:47 +00:00
Dima Dorfman
ccbe835258
Expand the ?: construct into an if/else.
...
Submitted by: nectar
2001-08-21 19:27:07 +00:00
Dima Dorfman
c9fa8f40fe
The setprogname() function sets the name of the program to be the last
...
component of the progname argument.
2001-08-21 18:49:58 +00:00
Dima Dorfman
f7bec57b78
Fix style bug.
2001-08-21 18:46:33 +00:00
Ruslan Ermilov
c45f3b47c8
Fixed warnings.
2001-08-21 17:28:39 +00:00
Jacques Vidrine
80578ef3c9
Pass the pointy hat, please.
...
Submitted by: ru
2001-08-21 17:16:32 +00:00
Jacques Vidrine
dbdb228cf7
setprogname() should set __progname to the last component of the given
...
path.
2001-08-21 16:55:34 +00:00
Doug Rabson
d2cb5f3137
Make sure stack is aligned to 16 bytes.
2001-08-21 16:53:23 +00:00
Ruslan Ermilov
d86293dbea
Added TFTP support.
...
Submitted by: Joe Clarke <marcus@marcuscom.com>
MFC after: 2 weeks
2001-08-21 16:25:38 +00:00
Ruslan Ermilov
04c3e33949
Close the "IRC DCC" security breach reported recently on Bugtraq.
...
Submitted by: Makoto MATSUSHITA <matusita@jp.FreeBSD.org>
2001-08-21 11:21:08 +00:00
Peter Wemm
868d3ce781
Rebuild libcrypto.so.1 and libssl.so.1 from 4.2-RELEASE, but this time
...
without the silly librsaINTL.so and/or librsaUSA.so dependencies.
4.2-RELEASE appears to be after the demolition of the librsa* stuff, so
I'm not sure where ps got these binaries from. Anyway, this makes old
binaries work again since we dont ship librsaINTL.so and/or librsaUSA.so
in the compat dists. I believe RELENG_4 is affected still too.
2001-08-21 07:48:58 +00:00
Kenneth D. Merry
4fb9d38429
Fix some style inconsistencies introduced in rev 1.10, as well as some
...
other inconsistencies that I missed in my review of rev 1.7. Also fix
a cut-n-paste error from an earlier revision.
2001-08-21 05:23:37 +00:00
Brian Somers
f68e0a68d8
Make the copyright consistent.
...
Previously approved by: Charles Mott <cmott@scientech.com>
2001-08-20 22:57:33 +00:00
Brian Somers
778de35906
Handle snprintf() returning < 0 (not just -1)
...
MFC after: 2 weeks
2001-08-20 15:44:17 +00:00
Brian Somers
6d3e1426db
Better snprintf() handling.
...
Prompted by: bde
2001-08-20 15:43:14 +00:00
Brian Somers
5f32890558
Handle snrintf overflows.
...
Spotted by: bde
2001-08-20 13:44:13 +00:00
Kris Kennaway
6dac8ac9e5
Mark some functions as __printflike() and/or taking const char * arguments
...
instead of char *.
MFC after: 2 weeks
2001-08-20 12:53:36 +00:00
Brian Somers
2449bf28ad
Handle snprintf() returning -1.
...
MFC after: 2 weeks
2001-08-20 12:50:21 +00:00
Mark Murray
47965f01dd
Add 'try_mapped_pass' standard option.
...
Asked for by: lukeh@PADL.COM
2001-08-20 12:43:19 +00:00
Brian Somers
3c321a686f
Handle snprintf() returning -1
...
MFC after: 2 weeks
2001-08-20 12:41:36 +00:00
Brian Somers
a53a9f6906
Handle snrintf() returning -1.
...
MFC after: 2 weeks
2001-08-20 12:31:13 +00:00
Brian Somers
7806546c39
Handle snprintf() returning -1
...
MFC after: 2 weeks
2001-08-20 12:06:42 +00:00
Mark Murray
5adb5c82e3
No functional changes, but:
...
o unifdef AUTHENTICATE. We have never compiled this code, and its
doubtful it will even work in this case.
o Style changes (some ansification, some comment updating)
o Diff reduction and code style merging with crypto telnet.
2001-08-20 12:04:53 +00:00
Kris Kennaway
4870a3d346
Say goodbye to libss, which somehow managed to crouch hidden in the tree
...
for long after it was used.
2001-08-19 21:32:52 +00:00
Jason Evans
204e56e381
Fix logic errors in pthread_cond_wait() and pthread_cond_timedwait() that
...
could cause deadlock after interruption due to a signal.
Reviewed by: deischen
2001-08-19 20:05:42 +00:00
Andrey A. Chernov
c5981656ea
Add about rewind+errno, describe ESPIPE, minor formatting.
2001-08-19 08:24:50 +00:00
Kenneth D. Merry
884539f701
Implement compute_stats() in terms of devstat_compute_statistics(). This
...
gets rid of the duplicated code in compute_stats().
Add a new DSM_SKIP statistic type for devstat_compute_statistics() that
causes the subsequent variable argument to be skipped.
Thanks to Sergey Osokin for coding up my idea/code fragment.
Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru>
2001-08-18 05:46:59 +00:00
Dima Dorfman
e6063dd1a6
Implement getpeereid(3), a front-end to the LOCAL_PEERCRED
...
socket option for the Unix domain. It's weaker than the
socket option (this only returns the uid and gid, while the
socket opt. can return the entire group list), and is
implemented mostly for compatibility with OpenBSD.
2001-08-17 22:09:15 +00:00
Dima Dorfman
06a4bf789c
Xref raise(3).
2001-08-17 21:04:42 +00:00
Ruslan Ermilov
e822b43712
mdoc(7) police: collapse multiple spaces.
2001-08-17 15:25:55 +00:00
Ruslan Ermilov
e1aaa82284
mdoc(7) police: fixed the fatal.
2001-08-17 15:18:49 +00:00
Andrey A. Chernov
98aa5183a2
Simplify overflow calculations a bit
2001-08-17 11:08:56 +00:00
Andrey A. Chernov
4a9f1ee4e5
Remove extra check, already done in upper level caller, i.e. in
...
_fseeko()
2001-08-17 10:43:03 +00:00
Andrey A. Chernov
5fdaf178ae
Mention ftell & ftello in EOVERFLOW section too.
2001-08-17 10:29:09 +00:00
Andrey A. Chernov
b98ba4224b
Add more overflow checks in case of fseek()
2001-08-17 10:22:03 +00:00
Andrey A. Chernov
68ce9bfb10
Don't clear "we have offset" flag even if long is overflow for fseek(),
...
there is no harm to have it, it will reduce next call efforts.
2001-08-17 10:06:46 +00:00
Andrey A. Chernov
71b5a4326d
fseek.c:
...
Resulting fseek() offset must fit in long, required by POSIX (pointed by bde),
so add LONG_MAX and final tests for it.
rewind.c:
1) add missing __sinit() as in fseek() it pretends to be.
2) use clearerr_unlocked() since we already lock stream before _fseeko()
3) don't zero errno at the end, it explicitely required by POSIX as the
only one method to test rewind() error condition.
4) don't clearerr() if error happens in _fseeko()
2001-08-17 09:57:11 +00:00
Ruslan Ermilov
9916c5d299
mdoc(7) police: replace \*(Ba' with a simple
|', it's handled specially.
2001-08-16 11:09:00 +00:00
Jason Evans
8588aeec8c
Fix a bug in canceling joining threads.
...
Do not detach canceled threads.
Reported by: Arno Klaassen <arno@heho.snv.jussieu.fr>
Collaboration with: deischen
2001-08-16 06:31:32 +00:00
Joseph Koshy
2f46ebcdb7
If the string specifying the allowed options starts with a leading `:',
...
`getopt(3)' should not print a warning for missing argument values.
PR: bin/29625
Reviewed by: mikeh
MFC after: 1 week
2001-08-16 03:27:03 +00:00
Dima Dorfman
7bc6682520
Explain the relation of getchar() to getc() in less words.
...
Submitted by: ru
2001-08-16 03:09:33 +00:00
Mark Murray
b30a6aedc2
Remove out-of-date "cannot be exported from USA" notice.
2001-08-15 20:25:16 +00:00
Andrey A. Chernov
74b2772824
Use smarter overflow tests
...
Suggested by: bde
2001-08-15 20:10:38 +00:00
Mark Murray
ca0bdcdd29
Document the no_warn option.
2001-08-15 20:05:33 +00:00
Mark Murray
b5507a38bc
Fix a couple of cross-references to reflect the reality of the module.
2001-08-15 20:03:26 +00:00
Andrey A. Chernov
d9e3eff33a
1) Disallow negative seek as POSIX require for fseek{o} (but not for lseek):
...
"[EINVAL] ... The resulting file-position indicator would be set to a
negative value."
Moreover, in real life negative seek in stdio cause EOF indicator cleared
and not set again forever even if EOF returned.
2) Catch few possible off_t overflows.
Reviewed by: arch discussion
2001-08-15 02:07:47 +00:00
Yaroslav Tykhiy
a2a0a4dc2a
Use the ".Rv" mdoc(7) macro where appropriate.
...
Reviewed by: ru
2001-08-14 14:20:35 +00:00
Yaroslav Tykhiy
2fa4b9b3d6
Isolate the ERRORS section from the RETURN VALUES one.
...
Reviewed by: ru
2001-08-14 14:10:01 +00:00
Ruslan Ermilov
753d686d34
mdoc(7) police: s/BSD/.Bx/ where appropriate.
2001-08-14 10:01:54 +00:00