Commit Graph

60985 Commits

Author SHA1 Message Date
bmah
75713f7f6e Add a -s option to pkg_version, which limits output to packages
matching a given string.

PR:		26114
Submitted by:	edwin@mavetju.org (with modifications and manpage update)
MFC after:	3 days
2001-06-13 20:38:46 +00:00
tobez
7cf603bd02 Fix the build of C programs that link against libperl, and use the
blessed way of doing this:

   cc -o interp interp.c `perl -MExtUtils::Embed -e ccopts -e ldopts`

In order for this to work, ldopts should contain -lcrypt.

PR:		21804
Reviewed by:	markm
2001-06-13 20:37:03 +00:00
ume
55b9dcb03c This is force commit intend to correct previous log.
`(possible) remote kernel panic fix' was already fixed in 1.132.
I had some confusion during gathering log.
2001-06-13 19:53:04 +00:00
schweikh
d320c13f69 Add description for the 'll' modifier for long long. In essence a copy
from the 'l' description with s/long/long long/g.

PR:		27017
Submitted by:	Guy Harris <guy@alum.mit.edu>
MFC after:	2 weeks
2001-06-13 19:05:12 +00:00
mjacob
723a1e404c the last argument to copyinstr is of t ype size_t, not u_int 2001-06-13 18:58:11 +00:00
ume
a75957df28 fix recursive mtx_lock() call.
Submitted by:	mjacob
2001-06-13 18:53:53 +00:00
schweikh
21d4d39e4b Avoid the avm field joining the w field when avm is > 9.999.999 pages
which is slightly less than 4GB. To use a quote from someone who shall
remain nameless "No one will ever need more than 4 GB" :-) But FreeBSD
is prepared if we one day will.

Requested by:	Eugene Aleynikov <eugenea@infospace.com>
2001-06-13 18:43:28 +00:00
ume
a7622d0e1d Make compilable. addlog(...) was replaced with log(-1, ...)
Reported by:	peter
2001-06-13 17:30:55 +00:00
phk
49d982d263 Remember to install diskcheckd.conf 2001-06-13 16:39:23 +00:00
ru
f80703e219 Games ownership cleanup.
Urged by:	bde
2001-06-13 15:26:31 +00:00
ru
fe1620e2f2 WARNS= is fully functional again. 2001-06-13 15:18:11 +00:00
ru
9eb05f6688 Added skeleton <complex.h> (aligned with the POSIX.1-200x), mostly
to fix the "-nostdinc WARNS=X" breakage caused by broken prototypes
for cabs() and cabsl() in <math.h>.

Reimplemented cabs() and cabsl() using new complex numbers types and
moved prototypes from <math.h> to <complex.h>.
2001-06-13 15:16:30 +00:00
ru
ead3189ce8 Axe -traditional-cpp that behaves badly with -nostdinc and WARNS=2. 2001-06-13 15:05:55 +00:00
ru
d5aca165c8 Removed wrong cast for fts_open()'s third argument. 2001-06-13 15:01:25 +00:00
ru
07f854c918 Complete prototype for fts_compar. 2001-06-13 14:59:57 +00:00
ru
eff5891978 Forced commit.
Revision 1.50 stated that it fixed the -iface breakage introduced with
the latest KAME merge in revision 1.48.  Actually, revision 1.48 fixed
the bug in revision 1.12 which incorrectly tested the ifr_flags member
of the ifreq structure filled by ioctl(SIOCGIFCONF); ifr_flags is only
valid in the SIOCGIFFLAGS case.

But yes, we still want to be able to specify the interface name as the
gateway for non-P2P interfaces.
2001-06-13 13:25:10 +00:00
bde
7a97f442ec Fixed world breakage on systems where ntohl() doesn't return u_long
(e.g., on alphas, or even on i386's with a POSIX-200x-conformant
ntohl() (ntohl() returns uint32_t which is u_int on i386's)).

Fixed related bugs and bogons while I'm here:
- ntohl() was "fixed" for printing in 1 place by casting to
  "(unsigned int )".  This breaks the value on systems where u_int
  is smaller than uint32_t, and has 2 style bugs.
- spell u_int consistently (never use "unsigned").
- break K&R support some more (don't cast malloc()'s arg to a wrong
  type...).
2001-06-13 11:56:00 +00:00
des
f044f33a15 Use getdtablesize() instead of OPEN_MAX.
Submitted by:	bde
2001-06-13 11:55:40 +00:00
peter
954d31f5da With this commit, I hereby pronounce gensetdefs past its use-by date.
Replace the a.out emulation of 'struct linker_set' with something
a little more flexible.  <sys/linker_set.h> now provides macros for
accessing elements and completely hides the implementation.

The linker_set.h macros have been on the back burner in various
forms since 1998 and has ideas and code from Mike Smith (SET_FOREACH()),
John Polstra (ELF clue) and myself (cleaned up API and the conversion
of the rest of the kernel to use it).

The macros declare a strongly typed set.  They return elements with the
type that you declare the set with, rather than a generic void *.

For ELF, we use the magic ld symbols (__start_<setname> and
__stop_<setname>).  Thanks to Richard Henderson <rth@redhat.com> for the
trick about how to force ld to provide them for kld's.

For a.out, we use the old linker_set struct.

NOTE: the item lists are no longer null terminated.  This is why
the code impact is high in certain areas.

The runtime linker has a new method to find the linker set
boundaries depending on which backend format is in use.

linker sets are still module/kld unfriendly and should never be used
for anything that may be modular one day.

Reviewed by:	eivind
2001-06-13 10:58:39 +00:00
olgeni
036ae16b50 Add terminal type configuration to the Options screen. It allows selecting
a monochrome display after booting into sysinstall, if you have any trouble
with the default color scheme.

Approved by:	jkh
MFC after:	2 weeks
2001-06-13 10:25:09 +00:00
roam
5ec2640c20 Add '-I mask' cmdline flag to ignore/skip files and subdirectories
matching a specified shell-glob mask.

Reviewed by:	no serious objections on -arch and -audit over
		the last few months
MFC after:	1 month
2001-06-13 06:38:58 +00:00
imp
7cae030fb1 Add warning that some people are having problems with pccard modems in
current, reasons unknown.

Add note about softupdates being unstable since the middle of May.
2001-06-13 06:36:28 +00:00
dd
30fbce168c Plug two memory leaks: call login_close() after login_getclass(), and
use free_entry() instead of free() to free a struct _entry.

PR:		28108
Submitted by:	Mark Peek <mark@whistle.com>
2001-06-13 05:49:37 +00:00
peter
ab95ea9b30 Patch up a blunder I made a few days ago. nmbcnt was being initialized
too late.

Noted by:      bmilekic
Pointy-hat to: peter
2001-06-13 00:36:41 +00:00
dd
b9dc403c2e Move the definition of epsvall out of #ifdef VIRTUAL_HOSTING so that
the latter is not required for ftpd to compile.
2001-06-13 00:06:42 +00:00
schweikh
0fd2ddfe9b Increase field width by one for 'fre' to accomodate today's memory sizes.
PR:		25267
Submitted by:	Eugene Aleynikov <eugene@infospace.com>
Reviewed by:	joerg
MFC after:	2 weeks
2001-06-12 19:47:40 +00:00
gad
2f1180c048 Fix about 90-100 warnings one gets when trying to compile lpr&friends
with BDECFLAGS on, mainly by adding 'const' to parameters in a number
of routine declarations.  While I'm at it, ANSI-fy all of the routine
declarations.  The resulting object code is exactly the same after
this update as before it, with the exception of one unavoidable
change to lpd.o on freebsd/alpha.

Also added $FreeBSD$ line to lpc/extern.h lpc/lpc.h lptest/lptest.c

Reviewed by:	/sbin/md5, and no feedback from freebsd-audit
2001-06-12 16:38:20 +00:00
obrien
4d04e6c42c Allow -u to work with UID's also.
Submitted by:	Seth Kingsley <seth.kingsley@windriver.com>
2001-06-12 15:58:31 +00:00
ru
166946f91c Fixed printing of netatalk statistics WRT the -s flag.
PR:		bin/6994
Submitted by:	Zahemszky Gabor <zgabor@zg.CoDe.hu>
MFC after:	1 week
2001-06-12 14:00:39 +00:00
ru
57f10e107d Allow route(8) to create "proxy only" published ARP entries.
PR:		bin/12357
Submitted by:	Craig Leres <leres@ee.lbl.gov>
2001-06-12 13:31:53 +00:00
ru
bb5db1ccc4 Fixed the -iface breakage introduced with the latest KAME merge
in revision 1.48.  It is pretty valid and often feasible to use
a non-point-to-point interface as the gateway.  One might, for
example, use this to route some hosts through an ARP on a local
interface, without having to assign an additional IP address:

Script started on Tue Jun 12 16:16:09 2001
# ifconfig rl0 inet
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	inet 192.168.4.115 netmask 0xffffff00 broadcast 192.168.4.255
# netstat -arn -finet | grep -w rl0
192.168.4          link#1             UC          3        0     rl0 =>
192.168.4.65       0:d0:b7:16:9c:c6   UHLW        1        0     rl0   1197
# route add -net 192.168.100 -iface rl0
add net 192.168.100: gateway rl0
# ping 192.168.100.1
PING 192.168.100.1 (192.168.100.1): 56 data bytes
64 bytes from 192.168.100.1: icmp_seq=0 ttl=255 time=0.551 ms
64 bytes from 192.168.100.1: icmp_seq=1 ttl=255 time=0.268 ms
^C
--- 192.168.100.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.268/0.410/0.551/0.142 ms
# netstat -arn -finet | grep -w rl0
192.168.4          link#1             UC          3        0     rl0 =>
192.168.4.65       0:d0:b7:16:9c:c6   UHLW        1        0     rl0   1165
192.168.100        link#1             UCSc        1        0     rl0 =>
192.168.100.1      0:d0:b7:16:9c:c6   UHLW        1        4     rl0   1192

Script done on Tue Jun 12 16:17:12 2001
2001-06-12 13:23:43 +00:00
ume
65212b277b FreeBSD already avoided namespace pollution (rev.1.45).
Submitted by:	bde
2001-06-12 11:12:23 +00:00
peter
ddc18d87d9 Hints overhaul:
- Replace some very poorly thought out API hacks that should have been
  fixed a long while ago.
- Provide some much more flexible search functions (resource_find_*())
- Use strings for storage instead of an outgrowth of the rather
  inconvenient temporary ioconf table from config().  We already had a
  fallback to using strings before malloc/vm was running anyway.
2001-06-12 09:40:04 +00:00
ume
853c9ec590 Restore the code wrongly nuked by previous commit.
Following changed was made by previous commit:

  - IPV6CP supporting in kernel level ppp from NetBSD.

Submitted by:	y.shirasaki@ntt.com
2001-06-12 08:52:54 +00:00
peter
d376795945 -Wunused cleanup 2001-06-12 07:01:27 +00:00
peter
1ded869bbc Move the -I../../../include or -I/usr/include to the last entry on the
cc arguments.  Otherwise ipfilter's bogus #include lines will compile
reference /usr/include/netinet/ip_frag.h etc.
2001-06-12 06:06:18 +00:00
dd
1040320a34 ANSI C prohibits text after #endif.
Reviewed by:	md5(1)
2001-06-12 03:44:35 +00:00
green
9b4110c5e5 Enable Kerberos 5 support in sshd again. 2001-06-12 03:43:47 +00:00
peter
e0728b6faa Turn on the extra 'const' settings for various curses functions. While
this is not strictly compliant with XSI curses, it enables us to pass
const strings to many more functions that are actually const safe than
before.  This should be harmless.

Requested by:  lots of folks
2001-06-12 01:14:02 +00:00
jkh
694481d122 Properly quote recursive pkg_add operations so that filenames with
spaces or special characters in them won't barf.
2001-06-11 23:27:42 +00:00
iedowse
3ea1a25ac3 Make the non-threaded stub for pthread_sigmask() a no-op instead
of calling sigprocmask(). This matches the behaviour of thr_sigsetmask()
on Solaris; _pthread_sigmask_stub was added purely for compatibility
with Solaris (for TI-RPC), so it might as well do the same thing.

This fixes the problem where client RPC calls ignored all signals
for the complete duration of the RPC. This behaviour is currently
necessary in the threaded case due to locking issues, but was never
intended to occur in non-threaded programs.

Reviewed by:	deischen
2001-06-11 23:18:22 +00:00
des
a37ced5028 Say one thing, do the other... nextpid -> lastpid 2001-06-11 23:00:35 +00:00
des
0ba2b47a81 Linprocfs builds on Alpha now. 2001-06-11 21:57:18 +00:00
des
c23cd62585 Implement proc/cpuinfo for the Alpha (thanks to gallatin).
Implement proc/pid/cmdline.
2001-06-11 21:55:40 +00:00
des
df673cf71c Rename nextpid to lastpid and externalize it. 2001-06-11 21:54:19 +00:00
tobez
dc2cdca9ea Recognize and support new output which pkg_version(1) might produce.
PR:             27707
Approved by:    bmah, markm
2001-06-11 21:31:50 +00:00
tobez
7cdb2bf78a Check for the existence of the Makefile in the port skeleton directory
before running make.  If the package origin points to a non-existent or
stale port, report this package as orphaned, instead of producing more
general `unknown in index' message.

PR:             27707
Submitted by:   myself, roamer
Approved by:    bmah, markm
2001-06-11 21:31:04 +00:00
ume
a140c91911 This is force commit to mention about previous commit.
- add a pointer to struct mauxtag.  two integer was too restrictive
- have m_aux_{add,find}2.
- make sure to return non-cluster on m_pulldown().  this is safer
  (but of course less performant) when we have non-loopback L2 code
  which throws the mbuf back to input path, like L2 bridging or some
  multicast handling code.
2001-06-11 21:17:59 +00:00
ume
db79bafa5a This is force commit to mention about previous commit.
- move m_aux freeing code into MFREE().
2001-06-11 21:04:12 +00:00
ume
dee6163547 This is force commit to mention about previous commit.
- avoid namespace pollution by CMSG_ALIGN().
2001-06-11 20:57:55 +00:00