Commit Graph

162059 Commits

Author SHA1 Message Date
christos 6eac115581 delete debug printf
make regress compile again.
2007-09-20 19:42:53 +00:00
plunky c231a9012a sort options 2007-09-20 18:38:49 +00:00
plunky 713ac0bebd getopt uses : when an argument is expected 2007-09-20 18:27:17 +00:00
abs 2c30ef8133 + pcc ragge 2007-09-20 15:14:10 +00:00
abs 275c9bb94a Comment out some references to compat.o until ragge can update - now we
build
2007-09-20 14:21:39 +00:00
christos 40cfdb5e3a Use AT_SUN_EXECPATH instead of argv[0] for the executable name. This needs
kernel support, which is not there yet, thus $ORIGIN is broken at this time.
This is ok, nothing uses it yet.
2007-09-20 14:14:25 +00:00
abs 244d23f931 At core's request import ragge's current pcc-070920.tgz into src/dist/pcc
http://www.ludd.ltu.se/~ragge/pcc/

This is based on the original Portable C Compiler by S. C. Johnson,
written in the late 70's. Even though much of the compiler has been
rewritten, some of the basics still remain.

The goal of pcc is to produce a  small, simple, fast and understandable
C99 compiler under a BSD licence.
2007-09-20 13:08:44 +00:00
drochner 109044809a Force use of __cxa_atexit by a configure command line argument
(for booth the tool build and mknative). gcc's "config.gcc" sets
it if the target is netbsd[2-9], but since the target is w/o version
number in our builds, it has no effect. Found by Nick Hudson,
patch approved by mrg.
2007-09-20 12:26:51 +00:00
martin 14f6e2c044 Bump version 2007-09-20 11:14:56 +00:00
martin 6997cea0cd Make the device name include the partition, if filename returned one. 2007-09-20 09:25:00 +00:00
martin 42c234cfe2 Make filename() only return a partition if it actually found one in
the path.
2007-09-20 09:23:54 +00:00
cube f7779133cd Don't remove the last component of filename before calling
_rtld_digest_dynamic:  it is done in expand(), and doing it twice is once
too much.  This fixes $ORIGIN expansion for dependencies.
2007-09-20 07:50:32 +00:00
christos 0d73c1262a Add whitespace-cleanup when saving to "NetBSD KNF" style. From Anon Ymous 2007-09-19 23:30:08 +00:00
agc 4e1fbeb934 Might as well define MODE_SELECT_6 and MODE_SELECT_10 too before too
many people get violent.
2007-09-19 23:28:15 +00:00
jdc fe324c36e9 Set the column width when changing the background using wbkgd(), otherwise
we will see zero width characters in refresh.c:makech().
2007-09-19 22:13:14 +00:00
jdc 260ad27047 We don't need separate #ifdef's for __ALTCHARSET and WA_ALTCHARSET, as they
are defined to be the same in curses.h.
2007-09-19 22:00:43 +00:00
jdc c172664803 Add debugging for the WCHAR cases. 2007-09-19 21:59:37 +00:00
he e140a2e086 Re-enable rump/ for the various m68k ports, now that the consistency
between <sys/bswap.h> and libc.so has been improved.
2007-09-19 20:36:33 +00:00
he 2a0ce8a57f Improve consistency between <sys/bswap.h> and what's actually
defined by the C library for the various m68k ports by borrowing
some #ifs from the i386 port.

Also, align sun2 with the other m68k ports as to whether they
define __bswap{16,32} or bswap{16,32} in their C library (all
now define the __ variants).

This should make the m68k ports build sys/rump again, except
for sun2 which hits another problem later on.
2007-09-19 20:31:34 +00:00
agc 6a20fc2b13 Preliminary support for MODE_SELECT_{6,10} and MODE_SENSE_10.
Committed now because some high priority fixes are about to come down
the line.
2007-09-19 19:54:09 +00:00
mgrooms 26182f1f5d Set REUSE option on sockets to prevent failures associated with closing and immediately re-opening. Submitted by Gabriel Somlo. 2007-09-19 19:29:36 +00:00
christos f3ac6ef2b6 minor nits; no code change. 2007-09-19 19:28:25 +00:00
mgrooms 33e6656ef9 Prevent duplicate entries in splitnet list. Submitted by Gabriel Somlo. 2007-09-19 19:20:25 +00:00
dyoung 3cdf25631c Don't use INADDR_ANY to initialize a const struct, because INADDR_ANY
is not necessarily const.
2007-09-19 18:52:55 +00:00
martin 3f99501d0c Some aliases (like "cdrom") expand to a path that includes a partition -
deal with them.
2007-09-19 17:26:02 +00:00
martin 4355df580c If we can not find a filepath when splitting a single argument, the whole
thing certainly has to be a device name.
2007-09-19 13:52:02 +00:00
dyoung 8cbfeac89a Make uipc_ctloutput() return ENOPROTOOPT instead of EINVAL when it
is passed a handle socket-option level that it does not care about.
2007-09-19 06:23:53 +00:00
dyoung 594712b2ce Update documentation to match source. 2007-09-19 05:26:21 +00:00
dyoung 43390716bc Constify sockaddr argument to ether_multiaddr(). Change struct
ifreq * arguments to ether_addmulti() and ether_delmulti() to const
struct sockaddr *, since ether_{add,del}multi() only ever read the
sockaddr ifreq member, ifr_addr.  Update uses in carp(4) and in
vlan(4).
2007-09-19 05:25:33 +00:00
dyoung 4c9b6756a5 1) Introduce a new socket option, (SOL_SOCKET, SO_NOHEADER), that
tells a socket that it should both add a protocol header to tx'd
   datagrams and remove the header from rx'd datagrams:

        int onoff = 1, s = socket(...);
        setsockopt(s, SOL_SOCKET, SO_NOHEADER, &onoff);

2) Add an implementation of (SOL_SOCKET, SO_NOHEADER) for raw IPv4
   sockets.

3) Reorganize the protocols' pr_ctloutput implementations a bit.
   Consistently return ENOPROTOOPT when an option is unsupported,
   and EINVAL if a supported option's arguments are incorrect.
   Reorganize the flow of code so that it's more clear how/when
   options are passed down the stack until they are handled.

   Shorten some pr_ctloutput staircases for readability.

4) Extract common mbuf code into subroutines, add new sockaddr
   methods, and introduce a new subroutine, fsocreate(), for reuse
   later; use it first in sys_socket():

struct mbuf *m_getsombuf(struct socket *so)

        Create an mbuf and make its owner the socket `so'.

struct mbuf *m_intopt(struct socket *so, int val)

        Create an mbuf, make its owner the socket `so', put the
        int `val' into it, and set its length to sizeof(int).


int fsocreate(..., int *fd)

        Create a socket, a la socreate(9), put the socket into the
        given LWP's descriptor table, return the descriptor at `fd'
        on success.

void *sockaddr_addr(struct sockaddr *sa, socklen_t *slenp)
const void *sockaddr_const_addr(const struct sockaddr *sa, socklen_t *slenp)

        Extract a pointer to the address part of a sockaddr.  Write
        the length of the address  part at `slenp', if `slenp' is
        not NULL.

socklen_t sockaddr_getlen(const struct sockaddr *sa)

        Return the length of a sockaddr.  This just evaluates to
        sa->sa_len.  I only add this for consistency with code that
        appears in a portable userland library that I am going to
        import.

const struct sockaddr *sockaddr_any(const struct sockaddr *sa)

        Return the "don't care" sockaddr in the same family as
        `sa'.  This is the address a client should sobind(9) if it
        does not care the source address and, if applicable, the
        port et cetera that it uses.

const void *sockaddr_anyaddr(const struct sockaddr *sa, socklen_t *slenp)

        Return the "don't care" sockaddr in the same family as
        `sa'.  This is the address a client should sobind(9) if it
        does not care the source address and, if applicable, the
        port et cetera that it uses.
2007-09-19 04:33:42 +00:00
mlelstv 6abb2a41f4 Implement OSS_SNDCTL_DSP_GETODELAY and provide a no-op function
for OSS_SNDCTL_DSP_PROFILE.
2007-09-18 22:57:31 +00:00
pooka c777421532 Expose namei. Some applications might want to call VOPs directly for
whatever reason and no need to make them implement their own copy of
namei, fun though it might be.
2007-09-18 19:59:21 +00:00
mlelstv 4bb7dae272 Implement OSS_SNDCTL_DSP_GETODELAY and provide a no-op function
for OSS_SNDCTL_DSP_PROFILE.
2007-09-18 19:49:53 +00:00
tnozaki 0941b12b16 lib/36938 mbtowc misbehaving after invalid char sequence
- make sure to initialize mbtowc's internal state.
 - add regression test.
2007-09-18 15:12:07 +00:00
agc f6d990e7e4 Fix a tyop and align properly 2007-09-18 12:57:37 +00:00
hannken d72d03c5d7 Stop abusing a `struct buf' for state information. Use new `struct physio_stat'
and use kmutex and kcondvar here.
Fix an error introduced with B_ERROR removal where reading at EOM returned EIO.

Approved by: Andrew Doran <ad@netbsd.org>
2007-09-18 08:34:34 +00:00
ad 97af1559fd Don't subtract CR4_PGE from %cr4, just clear it. Otherwise bad things could
happen if we are unlucky and interrupt tlbflushg().
2007-09-17 21:41:53 +00:00
ad 5b3ae27b0d __FUNCTION__ -> __func__ 2007-09-17 21:33:34 +00:00
martti abde7e33e0 Fixed IPF bug #1767831
ipflog() & ipmon ignore IPv6 extension headers
2007-09-17 18:02:21 +00:00
msaitoh c2388d7ef1 add SAS1068_2, SAS1064E_2 and SAS1068E_2 2007-09-17 17:51:45 +00:00
msaitoh e9e8838b54 regen 2007-09-17 17:50:49 +00:00
msaitoh e817c87c64 addd SYMBIOS SAS1068_2, SAS1064E_2 and SAS1068E_2 2007-09-17 17:49:54 +00:00
drochner 9b1b051e89 add a check for correct order of destructor calls (from the gcc mailing
list) which points at a misconfiguration at our side
(cxa_atexit not used)
2007-09-17 17:37:48 +00:00
skrll f9577d3ada Mostly fix the restartable atomic sequences by reversing the sense of the
lock check and test for return value.

At least alpha looks broken me and some are sub-optimal.

"Looks good to me" from ad.
2007-09-17 13:25:59 +00:00
aymeric 8b9fcfffdc add support for the "tumbler" as found at least on iBook G3/600.
quick OK macallan@
2007-09-17 13:15:20 +00:00
martti 05122b2bd9 Fixed IPF bug #1779455
state timer should be reset when retransmission is seen
2007-09-17 06:56:15 +00:00
martti 1f09bebe3d Returning from m_pulldown can leave the first mbut with no data (m_len = 0).
The mbuf chain wasn't being walked and thus fin_m was not updated to point
to the new first mbuf with data in it.

Patch from the official IPFilter repository.
2007-09-17 06:25:21 +00:00
lukem dd397e577e Apply variation of fix supplied by Havard Eidnes <he@NetBSD.org>
in PR 24020 on 2007/07/30.
Seems to work for me.
2007-09-17 04:51:04 +00:00
rillig feff384922 Macros that are meant for statements (instead of expressions) SHALL
never be defined to an empty string, because in that case,

	if (condition) DPRINTF(...); else err(...);

results in a gcc warning, and possibly worse things.
2007-09-17 01:23:17 +00:00
martin e3218c4391 Change "Boot:" prompt option parsing to be more in line with the default
(no prompt) behaviour - it is now possible to "boot net:dhcp -a" and then
say "disk" at the "Boot:" prompt - result should be equivalent to "boot disk",
but the ofwboot was loaded from the network.
While there fix a few minor errors, and one significant: if the "a" partition
should not start at the beginning of the disk, the previous code failed
to read a disklabel. Use the "c" partition now to find the disklabel now
always.
2007-09-16 23:12:31 +00:00