itojun
427af575fe
use bounded string op. bump shlib major for libtelnet due to API change.
2003-07-15 10:14:54 +00:00
skrll
d4cfd1c666
s/_rltd_obj_rtld/_rtld_objself/ in #ifdef notyet code.
2003-07-15 07:39:55 +00:00
skrll
9192c2eed4
Whitespace
2003-07-15 07:38:29 +00:00
itojun
3d8f7dcfb1
use snprintf
2003-07-15 05:03:49 +00:00
itojun
47d8f56c50
more cleanups
2003-07-14 16:23:40 +00:00
itojun
261e336de5
SIGINFO is defined
2003-07-14 16:17:37 +00:00
itojun
311ed76391
remove unused function
...
XXX what's the difference between #ifdef UTMPX and #ifdef SUPPORT_UTMPX
2003-07-14 16:16:42 +00:00
itojun
625dced967
remove unneeded #ifdefs. improves readability.
...
(confirmed that exact same *.o is produced)
2003-07-14 15:55:53 +00:00
itojun
1d041f9dd7
use bounded string op (some remains)
2003-07-13 12:04:45 +00:00
itojun
e19eff3a82
asprintf is easier
2003-07-13 12:00:55 +00:00
itojun
6e7ade5e3e
use bounded string ops. check malloc failure. asprintf is easier than
...
complicated strcat/strcpy combination.
2003-07-13 09:44:02 +00:00
itojun
aa50bfde15
use bounded string op (there still are remains)
2003-07-13 09:40:20 +00:00
lukem
001c68bd94
Rename a large chunk of the make(1) variables which refer to a
...
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC
For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo
Document all of these in bsd.README.
This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
marcus
fae2567c9b
Removed unused function.
2003-07-05 20:48:39 +00:00
tsutsui
0e65101f60
Add function prototype declarations.
2003-07-05 18:18:51 +00:00
tsutsui
e40b9a1c1d
Include <stdlib.h> for exit(3) prototype, warned by gcc-3.3.
2003-07-05 12:34:12 +00:00
wiz
13886c157c
Bump date for last but one.
2003-07-04 12:11:45 +00:00
wiz
a03d9214b1
s/&/and/
2003-07-04 12:11:02 +00:00
marcus
a4878b4349
Bugfix: Don't pick addend both from reloc and contents at the same time.
2003-07-02 15:29:34 +00:00
tacha
3bab95ce42
Add ftpd_loginx() and ftpd_logwtmpx() and use them to hold wtmpx file
...
open while a session.
Close bin/21692 by bqt@Krille.Update.UU.SE .
2003-06-30 03:06:06 +00:00
marcus
6aeeb40d4a
Updated to work with current rtld code.
2003-06-30 00:50:46 +00:00
marcus
5404577abf
SH also has a bogus DT_TEXTREL, it seems.
2003-06-30 00:49:25 +00:00
wiz
ac4f069fda
Add Ns.
2003-06-27 18:59:54 +00:00
christos
1e3cf33d74
fix botch in sysctl arg.
2003-06-27 18:37:48 +00:00
wiz
3393c12171
Add Ns where needed.
2003-06-26 18:09:39 +00:00
wiz
f788cad16f
Remove superfluous Ns and quoting.
2003-06-26 18:09:06 +00:00
christos
cf96f20a95
Rewrite from scratch; modify sysctl so that it does not abuse the new pointer.
2003-06-26 17:31:12 +00:00
christos
be4bd83a25
No need to define _KERNEL
2003-06-26 16:23:53 +00:00
joff
2c4a7474a0
use TCP_NODELAY
2003-06-14 22:43:31 +00:00
wiz
9e7c0f3178
Do not hardcode "nroff", allow it to be overridden by defining NROFF. Useful for tools/makewhatis.
2003-06-14 17:56:24 +00:00
wiz
fee392c197
Report on which file nroff returned an error.
2003-06-14 16:58:00 +00:00
drochner
96b62d8a69
no need to #include <sys/dkstat.h>
2003-06-11 17:26:31 +00:00
briggs
4441128638
Support negotiation and use of TFTP Option Extension (rfc 2347) for the
...
'blksize' option (rfc 2348) and the 'timeout' and 'tsize' options (rfc 2349).
Contributed by Wasabi Systems, Inc.
2003-06-11 01:43:52 +00:00
simonb
a9f5b3f871
KNF- blank lines before code at start of functions.
2003-06-05 10:41:32 +00:00
christos
683092605c
Add RTLD_FIRST, RTLD_NEXT, RTLD_DEFAULT, from FreeBSD
2003-05-30 15:43:33 +00:00
petrov
458dbd70ac
Fix alignment problem in debug output.
...
Happens only under RTLD_DEBUG_RELOC.
2003-05-23 20:13:50 +00:00
wiz
cb04db5a91
Bump date for "nn" capability.
2003-05-20 19:40:53 +00:00
thorpej
2c1e482672
Add a "nn" (no name) capability to getty. If set in gettytab, getty
...
will not prompt for a login name, and will not pass one along to the
login program. This can be used to accomodate login programs that have
an alternate way of selecting the user to log in.
2003-05-20 19:20:03 +00:00
lukem
826a14607a
Now that <bsd.prog.mk> DTRT if HOSTPROG is defined (i.e, it is a no-op),
...
there's no need to special-case .include-ing it.
2003-05-18 07:57:31 +00:00
itojun
22795e9102
use strlcpy
2003-05-17 22:57:30 +00:00
itojun
3e6b78200d
use strlcat
2003-05-17 22:56:31 +00:00
itojun
bf792c0c43
string manipulation audit
2003-05-17 22:54:55 +00:00
itojun
f4a82bcf1f
strlcat is easier here
2003-05-17 22:50:29 +00:00
itojun
936d35bb1b
use strlcpy
2003-05-17 21:28:53 +00:00
itojun
5a8065df69
string manipulation cleanup
2003-05-17 21:26:47 +00:00
itojun
bb3fc85900
use snprintf
2003-05-17 21:24:38 +00:00
itojun
792f67c795
string manipulation cleanup
2003-05-17 21:20:09 +00:00
itojun
c5f76786a4
use strlcpy
2003-05-17 21:18:46 +00:00
itojun
0f00216d14
string manipulation cleanup
2003-05-17 21:17:43 +00:00
wiz
d43e332f1e
setup -> set up.
2003-05-14 12:11:03 +00:00
christos
cc1171039e
PR/21233: Onno van der Linden: -U option does not work as advertised.
2003-05-09 20:50:35 +00:00
christos
ac8c3de3b3
PR/21515: Onno van der Linden: Fix typo preventing %v from working.
2003-05-09 20:43:47 +00:00
agc
0134b3c484
Pull in <sys/param.h> explicitly.
2003-04-29 17:22:01 +00:00
mycroft
f57f7ac072
Back out previous change for now -- it needs more work.
2003-04-24 16:55:29 +00:00
mycroft
8826c5e475
Attempt to give dlsym() the same symbol-searching semantics as _rtld_bind().
...
Tested in a handful of cases.
Reviewed by: a dead silence
2003-04-23 17:40:25 +00:00
tron
8e10566c2f
Output a usefull error message if sysctl(3) fails.
2003-04-22 16:42:00 +00:00
itojun
39d6020d8a
backout 1.18 and 1.19
2003-04-22 03:51:07 +00:00
itojun
e2d8f394cc
free vis_user
2003-04-22 03:03:16 +00:00
itojun
750506085f
malloc vis_user (why 1.6 branch has the fix already?)
2003-04-22 03:02:14 +00:00
scw
0b8f02edad
Handle unaligned relocations, and RELATIVE relocs with non-zero addends.
...
This gets binaries linked against libstdc++ working (FSVO "working").
2003-04-21 11:54:46 +00:00
christos
99437fe16f
PR/2352: Tor Egge: Use sysctl to get uid.
2003-04-19 20:57:35 +00:00
perry
626a48a033
rmail really shouldn't be invoking sendmail with "-odq" ("queue only")
...
any more -- this drastically slows delivery because the next queue run
might be an hour away.
Pointed out by Takahiro Yugawa PR bin/21018
He suggested changing to -odi, but I've changed to -odb (background
delivery) instead.
I've left an #ifdef QUEUE_ONLY for those who would like to build the
old way, but I'm not expecting any. I've also heavily commented this
line of code to explain the issues to anyone reading it later on.
I would have made this a run time command line flag, but it isn't like
you can change rmail's arguments given the uucp architecture, and
besides, UUCP is mostly dead...
2003-04-05 17:45:11 +00:00
fvdl
42614ed3f3
Add support for UFS2. UFS2 is an enhanced FFS, adding support for
...
64 bit block pointers, extended attribute storage, and a few
other things.
This commit does not yet include the code to manipulate the extended
storage (for e.g. ACLs), this will be done later.
Originally written by Kirk McKusick and Network Associates Laboratories for
FreeBSD.
2003-04-02 10:39:19 +00:00
perry
01788f947d
behaviour->behavior
...
I actually really like the UK spelling on this, but consistency among
our man pages is also a virtue.
2003-03-31 17:05:12 +00:00
perry
29e8ef357f
spell fixes (most from me, one from Igor Sobrado in PR misc/19700)
2003-03-31 01:51:01 +00:00
jdolecek
bcc4e12368
s/USER-ID/USERID/ in response when -L is used
...
fixes PR bin/20911 by der Mouse
2003-03-27 22:32:59 +00:00
scw
e6b13790fa
SH5 needs __HAVE_FUNCTION_DESCRIPTORS defined in order for ld.elf_so
...
to resolve SHmedia function pointers correctly.
2003-03-26 14:46:32 +00:00
scw
d174ad2eab
Add support for shared libraries/dynamically linked binaries on sh5.
...
With the latest SuperH toolchain, NetBSD/evbsh5 can now
run with a fully dynamic userland (modulo a few remaining
gremlins affecting a couple of binaries).
2003-03-25 13:11:53 +00:00
wiz
83de4abed2
Use "its" instead of "it's" where appropriate.
...
From Soren Jacobsen in PR 20730.
2003-03-15 23:48:27 +00:00
wiz
a6bd266319
Correct spelling of "preferred". From PR 20716 by Igor Sobrado.
2003-03-15 19:15:58 +00:00
hannken
a775363fd5
Dont call gettimeofday on a rpc timeval.
...
This fails on sparc64 because rpc timeval elements are int
and timeval elements are long.
2003-03-09 10:33:04 +00:00
taca
28d2056e12
make it compile in /usr/src/rescue directory.
2003-03-06 17:01:27 +00:00
matt
7b28c56025
Align psections to their specified alignment (if possible). Use
...
mmap(2) MAP_ALIGNED.
2003-03-06 07:34:56 +00:00
dsl
0e023253c0
Call setsid so we get our own logname.
...
(approved by christos)
2003-03-03 19:05:09 +00:00
dsl
41880aca75
Call setsid so we don't change inetd's logname (and that of our peers).
...
(approved by christos)
2003-03-03 18:57:53 +00:00
dsl
2bc2d2208d
Call setsid() before (setusercontext() calls) setlogin() so we don't change
...
the username of inetd and everyone else that is logged in.
(approved by christos)
2003-03-03 18:29:55 +00:00
dsl
de1c071819
Call setsid() so that setlogname doesn't affect our parent and siblings.
...
(approved by christos)
2003-03-03 17:14:36 +00:00
lukem
b018fb8971
Don't declare "yylex()" static; AFAICT it shouldn't be, and it causes
...
build problems with the output of some versions of yacc.
2003-03-03 02:14:57 +00:00
lukem
2cc6fff994
Fix typos accidentally introduced in rev 1.70 as part of the large
...
number support.
(NetBSD yacc didn't barf on these, although Solaris and HP/UX's did...)
2003-03-03 01:52:13 +00:00
mycroft
7cbba1750d
Shorten rtld_start() by 2 instructions or 8 bytes, and make it not use GOT
...
entries.
2003-03-02 22:56:14 +00:00
mycroft
d2fd5f837d
Shorten rtld_start() slightly -- there's a base-relative _DYNAMIC pointer at
...
the beginning of the GOT, so we don't need an extra one here. Also, remove a
bogus comment -- we do in fact have to do fixups, because there are pointers in
ld.elf_so's data segment that need to be relocated.
2003-03-02 22:03:40 +00:00
perseant
5646727e5a
Let the cleaner use LFCNRECLAIM to help empty segments along, if it
...
thinks it needs to clean and segments are tantalizingly lingering
in the "empty but dirty" state.
2003-03-02 04:38:20 +00:00
mycroft
33131cb294
Update copyright.
2003-03-01 15:14:59 +00:00
christos
861ff9be73
we have constants for all this crap. don't hard-code things.
2003-02-28 23:05:24 +00:00
mycroft
9939b38056
Eliminate GOT usage in rtld_start() on this platform, too.
2003-02-28 22:37:35 +00:00
thorpej
527c1efca7
Use the "__NetBSD_Version__" constant rather than the "NetBSD" constant
...
in the NetBSD version note. The old "NetBSD" constant was stuck in stone,
and thus didn't really convey any useful information.
2003-02-28 18:20:33 +00:00
mycroft
9cb7d16b11
Similar to other rela platforms, do not use any GOT entries (other than the
...
first entry, which is a special case) in rtld_start, because they could be
all 0s. Instead we use the difference between the real _DYNAMIC address
(which we can determine on 68k with a "lea (%pc,_DYNAMIC),..." and the
base-relative one (at the beginning of the GOT) to figure out the relocation
offset.
Not needed for binutils-current, but I might as well fix it now.
2003-02-28 07:06:16 +00:00
lukem
ceba77be0a
it's actually 2003 ...
2003-02-28 03:06:14 +00:00
mycroft
eea1001a73
Adjust for the fact that the GOT is all 0s in new binutils -- do the trick of
...
disassembling a call to _DYNAMIC to determine its real address, and using the
first entry of the GOT as its base-relative address.
It's evil, but it works.
2003-02-27 05:39:42 +00:00
christos
dc7c6aef2a
The following changes make ftpd able to remove its own entries. Ftpd
...
calls pututxline() with ruid = 0, euid = current-ftp-user. This ends
up calling update_utmp:
- if the real uid is root, don't do password or tty ownership checks
- if we cannot open the tty line, assume that it is a daemon that does
not use ttys and allow it to change a live entry to a dead one if
indeed it is the same process that created the entry.
2003-02-26 18:16:50 +00:00
lukem
0263859762
Add '-L xferlogfile', to write xferlog entries there rather than syslog them.
...
Based on work from Dmitry Sivachenko.
2003-02-26 12:27:04 +00:00
uwe
6a4d4259ae
Do not add ${LIBC_PIC} to DPADD if MKPICINSTALL is "no".
2003-02-26 06:03:40 +00:00
perseant
6f5626d112
Make fs-specific fcntl macros take three arguments (approved wrstuden).
...
Let LFS use fcntl for cleaner functions.
2003-02-25 23:12:06 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
erh
dadb4ce1cf
Fix uninitialized variable "notglob" in send_file_list() that was causing
...
transfers to fail due to an abort in free().
2003-02-24 19:26:49 +00:00
erh
6697099535
Fix uninitialized variable in mlsname()
2003-02-24 19:25:25 +00:00
lukem
6c12b8f0d2
use LLT and STRTOLL() instead of off_t and strtoull() for parsing the
...
"larger than int" arguments from commands. improves portability.
2003-02-24 12:57:06 +00:00
perseant
d5bdd23d68
Convert lfs_cleanerd over to use the new ioctl calls instead of the
...
lfs syscalls.
2003-02-24 08:48:17 +00:00
lukem
558032443d
rename local copies of login(), logout() and logwtmp() to
...
ftpd_login(), ftpd_logout() and ftpd_logwtmp() respectively.
(makes utmp support much easier in tnftpd).
per suggestion in mail from Mike Heffner <mheffner@vt.edu>, who
forwarded patch from Michael Ranner <mranner@inode.at>.
2003-02-23 13:04:37 +00:00
lukem
49230d68b3
crank version for:
...
Stop ftpd changing inetd's 'logname'
Stop buffer overrun if {NGROUPS_MAX} is greater than the compile time
NGROUPS_MAX.
2003-02-23 08:33:13 +00:00