Alexey Zelkin
49b8dd0db5
Finaly cleanup libc/nls code:
...
* rewrite catopen() to remove duplicate code chunks and optimize
* if empty string is passed to catopen() as name argument then
catopen() will set errno to ENOENT (File not found), not EINVAL
* move search code to LOOKUP() macro to shrink amount of duplicated code
* move common resource freeing actions to __nls_free_resources() function
* exclude from build code related to MCLoadAll defintion since it is not
using at all
* style(9) related whitespace changes
Reviewed by: ache
2000-09-04 12:09:40 +00:00
Peter Wemm
8cfadb8904
Constify the arg to logout(3). It is const-safe.
...
(cosmetic: drop some "register" qualifications too.)
2000-09-04 08:13:49 +00:00
Warner Losh
5f7da319ab
Get errno from <errno.h>, not from extern int.
...
Add $FreeBSD$ to hopefully the right place.
2000-09-04 03:54:23 +00:00
Warner Losh
e9d918edb6
Don't print an error message if the bad option is '?'. This has been
...
in my tree for a long time. bde reviewed this once upon a time and
said it was OK, iirc. This also obviates the need to put ? in the
optstring argument to preclude the extra warning message which some
people think confuses users. When I made my getopt cleanups of a long
time ago, this was the compromise reached. I just neglected to commit
it until now.
2000-09-04 03:49:22 +00:00
Warner Losh
12b92015dd
The comparison against 0 should be against LC_ALL. category isn't a
...
boolean and it is LC_ALL that's special.
Someone submitted this to me a long time ago, but I can't find the
mail now.
2000-09-04 03:43:24 +00:00
Warner Losh
71300cb5db
Soften the statement about select's timeout argument. This part of
...
the system likely won't change in the future, but the warning is a
good idea.
2000-09-04 03:32:30 +00:00
Andrey A. Chernov
08ba69b8a4
Rewrite using stdio. It cause program speedup since eliminates lots of small
...
read() syscalls. It not cause static binary size increasing because stdio
already picked via setlocale() called from catopen()
2000-09-03 21:05:10 +00:00
Andrey A. Chernov
e426928478
Add:
...
The implementation will behave as if no library function calls strtok().
2000-09-03 13:24:28 +00:00
Peter Wemm
06a3891a49
Make libstand compile
2000-09-03 11:29:18 +00:00
Brian Somers
1357c5d3cc
setproctitle() requires unistd.h and not libutil.h/-lutil
2000-09-02 02:25:34 +00:00
Brian Somers
9feac5c218
Move setproctitle() from libutil to libc (after a repo-copy)
...
and bump __FreeBSD_version to 500012 to mark the occasion.
setproctitle() is prototyped in unistd.h as opposed to stdlib.h
where OpenBSD and NetBSD have it.
Reviewed by: peter
2000-09-02 01:51:36 +00:00
Ruslan Ermilov
76e6ebd64e
Match IPPROTO_ICMP with IP protocol field of the original IP
...
datagram embedded into ICMP error message, not with protocol
field of ICMP message itself (which is always IPPROTO_ICMP).
Pointed by: Erik Salander <erik@whistle.com>
2000-09-01 16:38:53 +00:00
Andrey A. Chernov
56338d5acb
Treat empty lang as "C" lang too
2000-09-01 13:19:18 +00:00
Alexey Zelkin
a8a87cc61b
Set rcsid to correct value
...
Resort #include files
Remove SYSV compatibility chunks
2000-09-01 12:19:00 +00:00
Alexey Zelkin
2873532b59
protect .h file contents correctly.
2000-09-01 12:13:33 +00:00
Alexey Zelkin
6b9175e062
Remove unused indirect references to cat* functions.
2000-09-01 12:10:59 +00:00
Alexey Zelkin
a367b9700f
Fix memory leak introduced by kris in rev 1.22
2000-09-01 11:56:31 +00:00
Andrey A. Chernov
460b926285
setlocale may return NULL, handle this case too by resetting to "C"
2000-09-01 11:13:38 +00:00
Andrey A. Chernov
016de69d9e
Move protection code down to handle NL_CAT_LOCALE case too.
2000-09-01 11:09:34 +00:00
Andrey A. Chernov
53d620a5fb
Protect from badly formed LANG variable
2000-09-01 10:54:04 +00:00
Ruslan Ermilov
816fa7febc
Changed the way we handle outgoing ICMP error messages -- do
...
not alias `ip_src' unless it comes from the host an original
datagram that triggered this error message was destined for.
PR: 20712
Reviewed by: brian, Charles Mott <cmott@scientech.com>
2000-09-01 09:32:44 +00:00
Dag-Erling Smørgrav
1250db8139
Import XPG4-compliant basename(3) and dirname(3) from OpenBSD.
...
The man pages need some adjustments.
PR: 12960, 12962
Submitted by: James Howard <howardjp@wam.umd.edu>
Obtained from: OpenBSD
2000-08-31 15:56:15 +00:00
Dag-Erling Smørgrav
2e83f63844
Document the FTP_PROXY and HTTP_PROXY variables better.
2000-08-31 15:13:22 +00:00
Ruslan Ermilov
0ac308534e
Grab ADJUST_CHECKSUM() macro from alias_local.h.
2000-08-31 12:54:55 +00:00
Ruslan Ermilov
305d10699e
Create aliasing links for incoming ICMP echo/timestamp requests.
...
This makes outgoing ICMP echo/timestamp replies to be de-aliased
with the right source IP, not exactly the primary aliasing IP.
2000-08-31 12:47:57 +00:00
Andrey A. Chernov
b9b68e50dc
catgets: detect if fd becomes invalid after exec and return default response
...
cosmetique, use NULL for pointers comparison
2000-08-30 11:44:44 +00:00
Andrey A. Chernov
d8283f6866
Explicetely describe catalog descriptor lifetime
2000-08-30 10:22:23 +00:00
Andrey A. Chernov
6428802638
Replace strtok with strsep (strtok is not allowed in libraries)
...
Approved by: markm
2000-08-30 06:26:42 +00:00
Andrey A. Chernov
c515991040
strtok -> strsep (no strtok allowed in libraries)
2000-08-29 21:49:11 +00:00
Andrey A. Chernov
d9e630b592
strtok -> strsep (no strtok allowed in libraries)
...
add unsigned char cast to ctype macro
2000-08-29 21:34:55 +00:00
Andrey A. Chernov
67ab6e9844
strtok() -> strsep() (no strtok() in libraries allowed)
...
small cleanup in nearby area:
pointer 0 -> NULL, according to manpages
hardcoded constant -> sizeof(buf)
2000-08-29 21:04:07 +00:00
David Malone
ad8c1e6a09
According to the susv2 man pages I have, remove(3) should act as
...
rmdir(2) on directories and unlink(2) otherwise. This modification,
and most of the man page update has been obtined from OpenBSD. This
was spotted by someone on a mailing lists a few months ago, but
I've lost their mail.
Reviewed by: sheldonh
2000-08-28 15:45:42 +00:00
Nick Hibma
25d1d43d78
Sync with NetBSD:
...
Print unknown usages with 4 digits.
Mask in page extraction.
2000-08-26 13:53:27 +00:00
Brian Feldman
da140a0594
Still have to support libscrypt for now :( Add #defines to take DES
...
out for it.
2000-08-24 17:51:16 +00:00
Jeroen Ruigrok van der Werven
de4b2114a4
Add weak symbol pragma for crypt_set_format().
...
Approved by: green
2000-08-23 11:54:10 +00:00
Jason Evans
f3ee83c3bf
The second call to _thread_kern_sig_defer() in sem_post() should be a call
...
to _thread_kern_sig_undefer().
2000-08-23 07:59:50 +00:00
Brian Feldman
c2534fa193
Stick login_setcryptfmt() in its own file to make pulling in of
...
-lcrypt only happen if truly necessary.
2000-08-23 03:45:57 +00:00
John Baldwin
183012b423
The API change mentioned in the previous revision has been backed out, so
...
back out the corresponding documentation.
Noticed by: brian, ume
2000-08-22 21:50:03 +00:00
Brian Feldman
3a1030f458
How did you sneak in...
2000-08-22 02:17:54 +00:00
Brian Feldman
04c9749ff0
Add working and easy crypt(3)-switching. Yes, we need a whole new API
...
for crypt(3) by now. In any case:
Add crypt_set_format(3) + documentation to -lcrypt.
Add login_setcryptfmt(3) + documentation to -lutil.
Support for switching crypt formats in passwd(8).
Support for switching crypt formats in pw(8).
The simple synopsis is:
edit login.conf; add a passwd_format field set to "des" or "md5"; go nuts :)
Reviewed by: peter
2000-08-22 02:15:54 +00:00
John Baldwin
4f9d9dc272
Remove duplicate FreeBSD id tags.
2000-08-21 21:05:44 +00:00
Dag-Erling Smørgrav
ea014d857f
Grok 125 replies to passive RETR. This fixes an interoperability bug with
...
Microsoft FTP Service.
Reported by: asmodai, eivind
2000-08-21 07:18:31 +00:00
Archie Cobbs
c387a49c7c
Fix two bugs:
...
- The ftpPassive()
2000-08-17 23:46:13 +00:00
Brian Feldman
8ca723793a
Fix style bugs (including ones introduced from OpenBSD).
2000-08-16 23:37:16 +00:00
Ruslan Ermilov
a05f06d79f
Fixed PunchFW code segmentation violation bug.
...
Reported by: Christian Schade <chris@cube.sax.de>
2000-08-14 15:24:47 +00:00
Ruslan Ermilov
b834663f47
Use queue(3) LIST_* macros for doubly-linked lists.
2000-08-14 14:18:16 +00:00
Alfred Perlstein
022daa34f2
Fix an off-by-one error in the recursive mutex handling that made it
...
prematurely release recursive mutexes.
Test case provided by: Bradley T. Hughes <bhughes@trolltech.com>
Reviewed by: deischen
2000-08-13 01:30:36 +00:00
Gregory Neil Shapiro
88c75941e6
The rest of the changes needed to support the new version of sendmail (8.11.0).
...
Beyond changes to the build system, this includes fixing up the sample
freebsd.mc configuration for changes in defaults and syntax, removing
outdated documentation, and updating the release notes.
2000-08-12 22:39:25 +00:00
Yoshihiro Takahashi
552112cadd
- Added support for installing boot0 and boot0.5 for PC-98.
...
- Cosmetic changes.
2000-08-12 14:20:31 +00:00
Peter Wemm
6d93919795
Add the -mpreferred-stack-boundary=2 option to reduce code bloat. We
...
compile the kernel with this.
2000-08-11 23:18:37 +00:00