tshiozak
fcc188c19e
Disallow '/' character in LC_* and LANG environment variable, and
...
prevent to look up PATH_LOCALE and NLSPATH on setuid/setgid executable.
This is important to prevent to cause some kind of security hole.
2000-09-08 20:56:36 +00:00
taca
413b89b272
- Fix strftime(3) not to ignore tm_zone filed of last parameter,
...
and "%Z" in format string is converted as proper time zone.
This was taken from tzcode2000f. Fix PR lib/10950.
2000-09-07 12:45:03 +00:00
thorpej
9c5afcb2f0
Move the Alpha _mcount() into a .S file so that it can be
...
pre-processed, like other Alpha assembly files.
2000-09-05 16:28:30 +00:00
itojun
e871d0cd31
on /etc/hosts lookup, set "official host name" (the leftmost hostname)
...
into ai_canonname. this is to synchronize with practice in gethostby*.
comment from ume@mahoroba.org . sync with kame.
2000-08-31 17:32:39 +00:00
wennmach
821c7e766b
Added MLINKS for svis, strsvis, and strsvisx
2000-08-29 10:49:09 +00:00
kleink
051d885a24
{OPEN_MAX} does not apply to a user but a single process; noticed by Brook
...
Milligan on current-users.
2000-08-29 06:38:23 +00:00
eeh
d3312c2719
Fix layout of fields in jmp_buf. [N.B. we could make JMP_BUFLEN 9 if we want.]
2000-08-28 00:45:59 +00:00
itojun
152da24bd9
implement net.inet6.ip6.{anon,low}port{min,max} sysctl variable.
2000-08-26 11:03:45 +00:00
itojun
3c7320bedf
document net.inet.ip.lowport{min,max}
2000-08-26 11:00:41 +00:00
thorpej
a3fe3d3cf9
Some (popular) programs expect to be able to re-initialize `optind'
...
to 0 and have getopt(3)/getopt_long(3) continue to function properly.
This happens to work with GNU getopt_long(3), so mimmick the behavior.
Fixes pkg/10980 (Manuel Bouyer): rsyncd was relying on this behavior.
2000-08-25 17:05:49 +00:00
joda
991b448f39
add newline at end of file, to please (the quite buggy) mkid
2000-08-22 12:24:17 +00:00
soren
7eaf9092e8
Typo.
2000-08-21 23:23:23 +00:00
christos
ee788dacd9
Don't enable lin's exit on warnings yet. It'll break most ports.
2000-08-13 23:26:12 +00:00
christos
0aee707a3b
add -w to ctags. got finally tired of looking at all those dup error messages
...
that nobody will ever fix.
2000-08-13 22:43:28 +00:00
kleink
63cc1452f6
Bump minor version to 65: addition of __setlocale_mb_len_max_32() and
...
__mb_cur_max.
2000-08-10 10:05:20 +00:00
kleink
bc3eaa0a03
ISO/IEC 9899:1999: MB_CUR_MAX expands to a positive integer expression with
...
type size_t (not int).
(Incompatible ABI change, ignored due to a window of just two days.)
2000-08-10 10:03:43 +00:00
kleink
e12dc92808
RCS Id police: add NetBSD tag, restore unexpanded Id tag from Citrus.
2000-08-10 09:55:32 +00:00
itojun
14fcd6ed41
mention that current get{addr,name}info implementation are not thread-safe.
...
(sync with kame)
From: Greg Thompson
2000-08-09 22:52:49 +00:00
itojun
babc498cc8
implement EDNS0 support, as EDNS0 support will be made mandatory for
...
IPv6 transport-ready resolvers/DNS servers. need careful configuration
when enable it. (default config is not affected).
see manpage for details.
XXX visible symbol __res_opt() is added, however, it is not supposed to be
called from outside, libc minor is not bumped.
2000-08-09 14:40:52 +00:00
tshiozak
51a53de0d5
Preparation for the future introduction of multibyte locale.
...
- MB_LEN_MAX is increased to 32.
- To ensure binary compatibility for old executables
under multibyte locale, versioned setlocale is added.
- __mb_len_cur definision is added in setlocale.c
and enable it in stdlib.h .
It is also important for multibyte locale stuffs,
but I just forgot.
2000-08-08 22:31:13 +00:00
itojun
6acd1fa341
sync comment with reality. from kame
2000-08-07 16:18:45 +00:00
ad
136f4e3b32
%edx is free; use it instead of %ebx.
2000-08-07 14:46:52 +00:00
enami
630f9b81c9
- Test allocation failure.
...
- Don't leave a pointer dangling on failure case.
- Don't leak a file descriptor on failure case.
2000-08-07 06:08:33 +00:00
enami
2e68d337ae
Nuke redundant test (though, gcc optimizer was clever enough not to emit
...
redundant code).
2000-08-07 06:00:59 +00:00
enami
d753bcdd59
- Wrap long lines.
...
- Protect multi-statement macro with do {} while (0)
2000-08-07 05:56:11 +00:00
matt
09f029058b
Fix some ELF/a.out lossage
2000-08-07 03:18:04 +00:00
wiz
9773bf4a73
Whitespace fix, noted by John Hawkinson.
2000-08-04 20:03:07 +00:00
kml
782cdefc52
Correct the documentation for SACK; although we have some preliminary
...
code in the tree, it doesn't do anything, and setting the sack sysctl
won't have any effect.
2000-08-04 13:31:54 +00:00
tsubai
7272e1b36f
s/minbrk/_C_LABEL(__minbrk)/.
2000-08-04 09:19:39 +00:00
tsubai
511556bf86
Change comment character from '#' to '!'. (binutils-2.10 doesn't like '#')
2000-08-04 08:47:03 +00:00
fvdl
3b9024546d
For an accepted connection (tcp), set xp_netid, as it might be examined
...
by some applications, most notably rpcbind.
2000-08-03 00:01:53 +00:00
hubertf
4b1e8fc34a
make usage fit into 80 columns
2000-08-02 15:17:20 +00:00
itojun
951f2bac77
pps rate limitation can be turned off by negative value.
2000-08-02 12:26:54 +00:00
wiz
be8ff811b7
Rename VM_INHERIT_* to MAP_INHERIT_* and move them to sys/sys/mman.h as
...
discussed on tech-kern.
Retire sys/uvm/uvm_inherit.h, update man page for minherit(2).
2000-08-01 00:53:07 +00:00
itojun
698d9a8d8b
on gethostby* with NIS backend, make a lookup against ipnodes.{byname,byaddr}
...
for non-IPv4 address. obeys solaris8 practice.
XXX does not support scoped address extension, as gethostby* are not
scope-aware. always use getaddrinfo/getnameinfo.
XXX it is not very useful at this moment, if you define multiple entries for
single hostname. see PR 10713 for detail.
2000-07-30 03:01:01 +00:00
itojun
31089a149f
plug host_addrs overrun. rogue NIS server can transmit tons of lines,
...
effectively overrun host_addrs buffer.
2000-07-30 02:44:36 +00:00
itojun
1048b82bf1
nuke net.inet*.ip*.*ratelimit.
2000-07-28 04:08:44 +00:00
jdolecek
46c49082de
parameters addr & data are actually treated same way
...
for PT_DETACH and PT_CONTINUE - the only difference between them is that
the child is detached from the parent for PT_DETACH
2000-07-27 21:40:09 +00:00
itojun
348dcd5529
add net.inet.tcp.rstppslimit
2000-07-27 11:37:46 +00:00
itojun
c8c092ff17
do not try to transmit UDP DNS query forever, in EINTR-busy situation.
...
the change uses extra variables which can be avoided,
it is to make the change look similar to BIND8 change.
question: timeout resolution is 1 second (time_t). should we use
timevals instead?
PR 6410 From: maximum entropy <entropy@venom.bernstein.com>
2000-07-27 00:35:02 +00:00
kleink
9c477a4e4e
XCU5 -> XSH5.
2000-07-26 08:57:34 +00:00
kleink
7d93b767c2
Oops, forgot to define weak aliases for public names.
...
Fixes PR {pkg,lib}/10655.
2000-07-26 08:52:57 +00:00
eeh
9c2bf87977
Need to reserve a full 64-bit stackframe, not a 32-bit one.
2000-07-26 00:53:50 +00:00
mycroft
01a39929fc
Store the whole 64-bit pointer...
2000-07-25 20:15:40 +00:00
mycroft
fb41c8728c
Use cpp comment style.
2000-07-25 15:14:45 +00:00
itojun
3f0f0ab67d
typo. s/Fa getaddrinfo/Fn getaddrinfo/. sync with kame.
2000-07-25 04:51:27 +00:00
itojun
f69808cddd
move pitfall example to downwards. wording fixes. sync with kame.
2000-07-25 04:39:54 +00:00
mycroft
c54917029b
Make __dtoul() actually DTRT. The calling convention was totally wrong, and
...
the `big' value should be 2^63, not 2^31.
Also, nuke __fixunsdfsi(), since this is never output by the sparc64 compiler.
2000-07-25 04:26:12 +00:00
itojun
e3256888e3
give pitfall examples.
...
in response to couple of PRs including 10666. sync with kame.
2000-07-25 02:33:29 +00:00
mycroft
4272204d8d
Offset the %i2 stack slot from %sp, not %fp. Otherwise we may modify the
...
caller's registers!
2000-07-24 15:36:49 +00:00
mycroft
fc590aafb4
There's no good reason not to assume a 64-bit stack here.
2000-07-24 15:24:55 +00:00
itojun
ff9df0b1b7
correct malloc() size computation mistake. bug from bsdi, found
...
by kjc. sync with kame.
2000-07-24 12:06:55 +00:00
mycroft
eded30220a
Don't bother saving %f16-%f31, since we don't use them.
2000-07-24 07:30:54 +00:00
mycroft
b3e75eb4ed
_errno -> __errno
2000-07-24 00:11:10 +00:00
mycroft
e740400671
Just use a store/load pair to get the pattern into the FP reg. This eliminates
...
a bunch of cruft and avoids using a v9a instruction.
In addition, eliminate 8 of the fmovda's, which we are not using the result of
anyway.
Net result is that this should be faster in all cases.
2000-07-23 20:34:07 +00:00
eeh
32ceb997a8
Fix stack BIAS issues.
2000-07-23 07:12:22 +00:00
eeh
e507cc60e6
Update some more assembly code for PIC issues.
2000-07-21 03:14:15 +00:00
kleink
2a043f1868
Add a description of strtok_r(3), and rip out the obsoleteness claim.
2000-07-20 14:06:23 +00:00
eeh
067b7521b5
Fix PIC bugs.
2000-07-18 22:38:11 +00:00
matt
dd8046c23f
fix a bug in the NOIEEE (aka VAX) case.
2000-07-17 04:59:51 +00:00
jdolecek
5451455d06
v*scanf() are hardly 'new to this release' when they have
...
been around since 386BSD-0.1 import; they have been present in 4.4BSD-Lite
at least, can't currently check if even in 4.3BSD
put note aboud eventual removing of compatibility formats to NOTES, it's
hardly a bug description
2000-07-16 11:08:53 +00:00
itojun
52f552d80a
correct delint mistake (missing "&").
...
may fix recent rpc/nfs-related PRs, including 10579 and 10601.
2000-07-16 06:41:43 +00:00
bjh21
3b9cd873cb
Revert previous change -- turned out I'd got my build environment in a twist.
2000-07-15 15:07:34 +00:00
bjh21
985033a7a6
Add fixunssfsi and fixunsdfsi. These are provided by libgcc2.c in GCC 2.95,
...
but not in EGCS.
This version of fixunssfsi is almost exactly the arm32 version. fixunsdfsi is
mostly based on fixdfsi, but with simplifications for 64-bit integers.
Only minimal testing has been applied so far.
2000-07-15 13:26:50 +00:00
fvdl
4063df8381
Use rpcvers_t, not long, for some variables holding version numbers. They
...
were sometimes passed by reference, creating problems on 64bit be systems.
2000-07-14 10:29:16 +00:00
fvdl
7c5c8962ad
Use explicit int32 get/put macros. Needed for 64bit big-endian systems.
2000-07-14 08:40:41 +00:00
kleink
f51ea2882c
KNF.
2000-07-14 07:36:32 +00:00
ad
682d5ce7b8
Xr passwd.conf
2000-07-11 12:12:53 +00:00
kleink
87699890a9
* Use standard interval notation for struct tm members.
...
* Document tm_isdst as DST flag, not summer time.
2000-07-10 12:39:39 +00:00
itojun
6ab897e3e4
document sysctl variable "net.inet.icmp.errppslimit".
2000-07-10 09:34:38 +00:00
kleink
f4e264e3d5
Add a name description as well.
2000-07-10 06:44:35 +00:00
itojun
f39dc46bcd
add desription for net.inet6.icmp6.{errppslimit,nd6_maxnudhint}.
2000-07-09 13:29:44 +00:00
itojun
20aa4f5b37
reject empty scopeid/numeric portname explicitly. sync with kame.
2000-07-09 04:48:17 +00:00
itojun
a00fcf14af
use strtoul() to check for all-digit string, not isdigit(). sync with kame.
2000-07-09 04:23:49 +00:00
eeh
1b72cecb45
Block align pointer *AFTER* fixing up possible stack bias.
2000-07-08 16:02:15 +00:00
sommerfeld
ac7a8f6bc2
Correct format mismatch for field widths
2000-07-08 14:58:43 +00:00
sommerfeld
007c516740
Attach __format__ attributes to local __sbprintf function
2000-07-08 14:57:57 +00:00
kleink
6c16ef0bd2
Elaborate a bit on fseeko() and ftello().
2000-07-08 14:13:05 +00:00
kleink
723bc5321e
Bump date for fseeko() and ftello().
2000-07-08 13:59:24 +00:00
kleink
7c5b39585f
In fgetpos() and fsetpos(), use ftello() and fseeko(), respectively, to avoid
...
truncating the value stored in the fpos_t object operated on to that of a
long integer; adresses PR lib/6637.
2000-07-08 13:51:27 +00:00
kleink
dae360611f
XCU5: Add fseeko() and ftello() functions which provide the functionality of
...
fseek() and ftell(), respectively, but operate on file offsets of type off_t.
2000-07-08 13:46:33 +00:00
kleink
1e67e23b6f
De-delint previous: svc_vc_rendezvous_ops() isn't unused unless the single
...
reference to it is accidently deleted; from Shuuichirou Murata in PR lib/10537.
2000-07-08 11:41:50 +00:00
itojun
d3884933be
%-format pedant (always pass %s, don't use variable alone).
...
from openbsd.
2000-07-08 03:28:01 +00:00
enami
bf53880ad5
Create link to lchflags.[02].
2000-07-08 00:53:39 +00:00
itohy
af83a97717
Add special treatment of shmat(2).
...
On m68k ELF calling standard (__SVR4_ABI__), if a function
returns a pointer, the return value should go to a0 as well as d0.
2000-07-07 08:20:50 +00:00
itohy
7daefc5a5a
Passing "char" values to ctype(3) functions is problematic.
...
If an argument of a ctype function is outside "unsigned char"
and if it is not EOF, the behavior is undefined.
The isascii(3) is the sole exception of above and it was used to
be used to check a value was valid for other ctype functions in
ancient systems. On modern systems, the ctype functions take
all values of "unsigned char", and this check is obsolete and
even wrong for non-ASCII systems. However, we leave the isascii()
untouched for now, so as not to change the current behavior.
2000-07-07 08:03:36 +00:00
cgd
f447d9b890
to get (f)lex output to go to stdout, use -t (a flag supported by
...
flex) rather than -o/dev/stdout which uses a flex feature (-o isn't
in vendor lex, at least on solaris 7) and also requires that
"/dev/stdout" function in the expected manner.
2000-07-07 05:30:58 +00:00
fair
1513bd135d
Add a proper DESCRIPTION to the man page, per PR 10072.
2000-07-07 05:18:49 +00:00
kleink
b5b9011dbf
Note that localtime_r() does not imply tzset(); inspired by a conversation
...
with Hal Murray in the trail of PR lib/10282.
2000-07-06 16:19:15 +00:00
hubertf
7570e9053d
Improve description for tm_year and some other fields.
...
May prevent PRs like 10521 in the future.
2000-07-06 12:44:31 +00:00
christos
473ea2c4e7
add explicit casts to avoid parameter conversion warnings.
2000-07-06 03:14:05 +00:00
christos
6b283a58bd
avoid losing precision warnings
2000-07-06 03:13:22 +00:00
christos
deb154d2bc
add __RPC_GETXID macro
...
don't const castway __rpc_getconf and __rpc_getconfig. It might try to
write const strings
fix non-portable casts
remove duplicated prototypes
cast things to proper types
remove extraneous casts to NULL
fix variable cast mismatches
remove register var declarations
2000-07-06 03:10:34 +00:00
christos
b056680b9b
remove register
...
adjust types to match functions
elide non-portable casts
cast to proper types
2000-07-06 03:06:45 +00:00
christos
6a3d07cc2d
get prototypes from rpc/nettype.h
...
avoid non-portable casts
add explicit casts
2000-07-06 03:05:20 +00:00
christos
3ee90709fb
elide non-portable casts
2000-07-06 03:03:59 +00:00
christos
ea5394abfa
remove unnecessary casts to NULL
2000-07-06 03:03:30 +00:00
christos
ae40c8edb2
remove register
...
elide non-portable casts
2000-07-06 03:02:22 +00:00
christos
1c3b369611
add explicit casts
...
elide non-portable casts
2000-07-06 03:01:32 +00:00
christos
373996b8e8
add constcond lint directive
2000-07-06 03:00:39 +00:00