The NetBSD Project

CVS log for src/sys/kern/uipc_syscalls.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.206.4.1 / (download) - annotate - [select for diffs], Sun Feb 4 11:20:15 2024 UTC (7 weeks, 4 days ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4
Changes since 1.206: +42 -64 lines
Diff to previous 1.206 (colored) next main 1.207 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by jdolecek in ticket #583):

	sys/kern/uipc_socket.c: revision 1.308
	sys/kern/uipc_syscalls.c: revision 1.211
	sys/sys/socketvar.h: revision 1.168
	sys/net/if_gre.c: revision 1.185

fix PIPE_SOCKETPAIR variant of pipe1() to apply correctly the 'flags'
passed when called via pipe2(2), fixing repeatable process hang during
compilation with 'gcc -pipe'

refactor fsocreate() to return the new socket and file pointers,
expect the caller to call fd_affix() once initialization is fully complete
use the new fsocreate() to replace the duplicate open-coded 'flags' handling
in makesocket() used for socketpair(2), and in the PIPE_SOCKETPAIR pipe1()
this also fixes lib/libc/sys/t_pipe2 pipe2_cloexec test to succeed
on PIPE_SOCKETPAIR kernel

fixes PR kern/55690

Revision 1.211 / (download) - annotate - [select for diffs], Sat Feb 3 19:05:14 2024 UTC (7 weeks, 5 days ago) by jdolecek
Branch: MAIN
CVS Tags: HEAD
Changes since 1.210: +42 -64 lines
Diff to previous 1.210 (colored) to selected 1.106.2.1 (colored)

fix PIPE_SOCKETPAIR variant of pipe1() to apply correctly the 'flags'
passed when called via pipe2(2), fixing repeatable process hang during
compilation with 'gcc -pipe'

refactor fsocreate() to return the new socket and file pointers,
expect the caller to call fd_affix() once initialization is fully complete

use the new fsocreate() to replace the duplicate open-coded 'flags' handling
in makesocket() used for socketpair(2), and in the PIPE_SOCKETPAIR pipe1()

this also fixes lib/libc/sys/t_pipe2 pipe2_cloexec test to succeed
on PIPE_SOCKETPAIR kernel

fixes PR kern/55690

Revision 1.210 / (download) - annotate - [select for diffs], Thu Nov 2 10:31:55 2023 UTC (4 months, 3 weeks ago) by martin
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Changes since 1.209: +8 -2 lines
Diff to previous 1.209 (colored) to selected 1.106.2.1 (colored)

Back out the following revisions on behalf of core:

	sys/sys/lwp.h: revision 1.228
	sys/sys/pipe.h: revision 1.40
	sys/kern/uipc_socket.c: revision 1.306
	sys/kern/kern_sleepq.c: revision 1.84
	sys/rump/librump/rumpkern/locks_up.c: revision 1.13
	sys/kern/sys_pipe.c: revision 1.165
	usr.bin/fstat/fstat.c: revision 1.119
	sys/rump/librump/rumpkern/locks.c: revision 1.87
	sys/ddb/db_xxx.c: revision 1.78
	sys/ddb/db_command.c: revision 1.187
	sys/sys/condvar.h: revision 1.18
	sys/ddb/db_interface.h: revision 1.42
	sys/sys/socketvar.h: revision 1.166
	sys/kern/uipc_syscalls.c: revision 1.209
	sys/kern/kern_condvar.c: revision 1.60

  Add cv_fdrestart() [...]
  Use cv_fdrestart() to implement fo_restart.
  Simplify/streamline pipes a little bit [...]

This changes have caused regressions and need to be debugged.
The cv_fdrestart() addition needs more discussion.

Revision 1.209 / (download) - annotate - [select for diffs], Fri Oct 13 18:50:39 2023 UTC (5 months, 2 weeks ago) by ad
Branch: MAIN
Changes since 1.208: +2 -8 lines
Diff to previous 1.208 (colored) to selected 1.106.2.1 (colored)

Use cv_fdrestart() to implement fo_restart.

Revision 1.208 / (download) - annotate - [select for diffs], Wed Oct 4 22:17:09 2023 UTC (5 months, 3 weeks ago) by ad
Branch: MAIN
Changes since 1.207: +4 -4 lines
Diff to previous 1.207 (colored) to selected 1.106.2.1 (colored)

kauth_cred_hold(): return cred verbatim so that donating a reference to
another data structure can be done more elegantly.

Revision 1.207 / (download) - annotate - [select for diffs], Sat Sep 9 18:30:56 2023 UTC (6 months, 2 weeks ago) by ad
Branch: MAIN
Changes since 1.206: +5 -5 lines
Diff to previous 1.206 (colored) to selected 1.106.2.1 (colored)

Fix a ~16 year old perf regression: when accepting a connection, add a
reference to the caller's credentials rather than copying them.

Revision 1.206 / (download) - annotate - [select for diffs], Fri Jul 1 22:30:51 2022 UTC (20 months, 3 weeks ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.205: +4 -4 lines
Diff to previous 1.205 (colored) to selected 1.106.2.1 (colored)

sendto(2), recvfrom(2): Scrub internal struct msghdr on stack.

Otherwise this is kernel stack disclosure via ktrace.

Reported-by: syzbot+1d40303b310063778194@syzkaller.appspotmail.com

Revision 1.205 / (download) - annotate - [select for diffs], Wed Jun 29 22:27:12 2022 UTC (20 months, 4 weeks ago) by riastradh
Branch: MAIN
Changes since 1.204: +4 -2 lines
Diff to previous 1.204 (colored) to selected 1.106.2.1 (colored)

recvmmsg(2): More timespec validation.

Reported-by: syzbot+004ed2f264534bd27312@syzkaller.appspotmail.com
Reported-by: syzbot+6f9014c842c4e78df7bc@syzkaller.appspotmail.com

Revision 1.204 / (download) - annotate - [select for diffs], Tue Jun 28 11:41:32 2022 UTC (21 months ago) by riastradh
Branch: MAIN
Changes since 1.203: +9 -5 lines
Diff to previous 1.203 (colored) to selected 1.106.2.1 (colored)

recvmmsg(2): Avoid arithmetic overflow in timeout calculations.

XXX This is not right -- it doesn't actually do anything to time
out...

Reported-by: syzbot+784209d76a94fcc6417b@syzkaller.appspotmail.com

Revision 1.203 / (download) - annotate - [select for diffs], Mon Jun 27 04:06:48 2022 UTC (21 months ago) by riastradh
Branch: MAIN
Changes since 1.202: +6 -2 lines
Diff to previous 1.202 (colored) to selected 1.106.2.1 (colored)

sendmsg(2): Avoid buffer overrun in ktrace of invalid cmsghdr.

Reported-by: syzbot+efded148140b23425f5c@syzkaller.appspotmail.com

Revision 1.199.4.1 / (download) - annotate - [select for diffs], Mon Oct 4 14:32:38 2021 UTC (2 years, 5 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.199: +17 -2 lines
Diff to previous 1.199 (colored) next main 1.200 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by thorpej in ticket #1351):

	sys/miscfs/fifofs/fifo_vnops.c: revision 1.88
	sys/kern/uipc_syscalls.c: revision 1.201
	tests/lib/libc/sys/t_poll.c: revision 1.6
	tests/lib/libc/sys/t_poll.c: revision 1.7
	tests/lib/libc/sys/t_poll.c: revision 1.8

- Strenghen the poll(2) fifo_inout test to ensure that once the reader
has read enough that exactly PIPE_BUF space is available that the FIFO
becomes writable again.
- When creating a FIFO, ensure that the receive low water mark is 1
(a FIFO must be readable when at least 1 byte is available); this
was already the case implicitly, but this makes it explicit.
- Similarly, set the send low water mark to PIPE_BUF to ensure that
the pipe is writable when at least PIPE_BUF bytes of space are available
in the send buffer.  Without this change, the strengthened test case
above does not pass (the default send low water mark is larger than
PIPE_BUF; see soreserve()).
- Make the same low water mark changes to the PIPE_SOCKETPAIR case.

In the fifo_hup1 test, also ensure that POLLHUP is de-asserted when a
new writer appears.

Add a fifo_inout test case that validates the expected POLLIN / POLLOUT
behavior for FIFOs:
- A FIFO is readable so long as at least 1 byte is available.
- A FIFO is writable so long as at least PIPE_BUF (obtained with _PC_PIPE_BUF)
  space is avaiable.
This will be cloned for a forthcoming kevent test case.

Revision 1.202 / (download) - annotate - [select for diffs], Sat Oct 2 17:37:21 2021 UTC (2 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.201: +3 -3 lines
Diff to previous 1.201 (colored) to selected 1.106.2.1 (colored)

...and correct my terrible spelling.

Revision 1.201 / (download) - annotate - [select for diffs], Sat Oct 2 17:32:55 2021 UTC (2 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.200: +17 -2 lines
Diff to previous 1.200 (colored) to selected 1.106.2.1 (colored)

- Strenghen the poll(2) fifo_inout test to ensure that once the reader
  has read enough that exactly PIPE_BUF space is available that the FIFO
  becomes writable again.
- When creating a FIFO, ensure that the receive low water mark is 1
  (a FIFO must be readable when at least 1 byte is available); this
  was already the case implicitly, but this makes it explicit.
- Similarly, set the send low water mark to PIPE_BUF to ensure that
  the pipe is writable when at least PIPE_BUF bytes of space are available
  in the send buffer.  Without this change, the strengthened test case
  above does not pass (the default send low water mark is larger than
  PIPE_BUF; see soreserve()).
- Make the same low water mark changes to the PIPE_SOCKETPAIR case.

Revision 1.200 / (download) - annotate - [select for diffs], Sat May 23 23:42:43 2020 UTC (3 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.199: +4 -4 lines
Diff to previous 1.199 (colored) to selected 1.106.2.1 (colored)

Move proc_lock into the data segment.  It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.

Revision 1.194.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:04 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.194: +138 -37 lines
Diff to previous 1.194 (colored) next main 1.195 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD

Revision 1.191.2.4 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:50 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.191.2.3: +20 -13 lines
Diff to previous 1.191.2.3 (colored) to branchpoint 1.191 (colored) next main 1.192 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.186.6.2 / (download) - annotate - [select for diffs], Mon Nov 12 09:43:19 2018 UTC (5 years, 4 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.186.6.1: +20 -13 lines
Diff to previous 1.186.6.1 (colored) to branchpoint 1.186 (colored) next main 1.187 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by hannken in ticket #1089):

	external/bsd/nsd/include/config.h: revision 1.5
	sys/kern/uipc_syscalls.c: revision 1.198
	sys/kern/uipc_syscalls.c: revision 1.199
	sys/kern/uipc_socket.c: revision 1.267

Update getsockopt(SO_ERROR) to behave like soreceive() and
return and clear so->so_rerror if so->so_error is zero.

Ok: christos@

 -

Don't defer errors from sendmmsg().  This matches the linux manpage.

Defer errors from recvmmsg() through so_rerror and
tests and return a deferred error on entry.

Ok: christos@

 -

sys_recvmmsg: don't defer an error that already gets returned.

 -

Re-enable {send,recv}mmsg now they are working.

Revision 1.199 / (download) - annotate - [select for diffs], Mon Nov 12 09:21:13 2018 UTC (5 years, 4 months ago) by hannken
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, netbsd-9-base, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: netbsd-9
Changes since 1.198: +8 -9 lines
Diff to previous 1.198 (colored) to selected 1.106.2.1 (colored)

sys_recvmmsg: don't defer an error that already gets returned.

Revision 1.198 / (download) - annotate - [select for diffs], Wed Nov 7 09:59:12 2018 UTC (5 years, 4 months ago) by hannken
Branch: MAIN
Changes since 1.197: +16 -8 lines
Diff to previous 1.197 (colored) to selected 1.106.2.1 (colored)

Don't defer errors from sendmmsg().  This matches the linux manpage.

Defer errors from recvmmsg() through so_rerror and
tests and return a deferred error on entry.

Ok: christos@

Revision 1.191.2.3 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:42 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.191.2.2: +120 -26 lines
Diff to previous 1.191.2.2 (colored) to branchpoint 1.191 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.197 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:35 2018 UTC (5 years, 6 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.196: +3 -3 lines
Diff to previous 1.196 (colored) to selected 1.106.2.1 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.196 / (download) - annotate - [select for diffs], Wed Aug 1 23:35:32 2018 UTC (5 years, 7 months ago) by rjs
Branch: MAIN
Changes since 1.195: +74 -2 lines
Diff to previous 1.195 (colored) to selected 1.106.2.1 (colored)

Add ioctl(2) handler for kernel part of sctp_peeloff().

Revision 1.195 / (download) - annotate - [select for diffs], Tue Jul 31 13:00:13 2018 UTC (5 years, 7 months ago) by rjs
Branch: MAIN
Changes since 1.194: +48 -26 lines
Diff to previous 1.194 (colored) to selected 1.106.2.1 (colored)

Add getsockopt2() syscall.

Revision 1.191.2.2 / (download) - annotate - [select for diffs], Mon May 21 04:36:15 2018 UTC (5 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.191.2.1: +39 -41 lines
Diff to previous 1.191.2.1 (colored) to branchpoint 1.191 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD

Revision 1.194 / (download) - annotate - [select for diffs], Fri May 4 08:47:55 2018 UTC (5 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521
Branch point for: phil-wifi
Changes since 1.193: +3 -2 lines
Diff to previous 1.193 (colored) to selected 1.106.2.1 (colored)

define MBUFTYPES here.

Revision 1.193 / (download) - annotate - [select for diffs], Thu May 3 21:43:33 2018 UTC (5 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.192: +38 -41 lines
Diff to previous 1.192 (colored) to selected 1.106.2.1 (colored)

Fix COMPAT_NETBSD32 cmsg handling:

1. alignment was wrong for > 1 message
2. macros were doing incorrect pointer comparisons, fortunately ending
   the iteration early after the fists cmsg instead of crashing.
3. don't output 32 bit ktrace records for cmsg. 32 bit programs running
   under emulation on 64 bit systems should produce 64 bit ktrace records
   so that the native ktrace can handle the records; remove extra arguments
   that are now not needed (the 32 bit msghdr).
4. output the correct type for cmsg trace records.
5. output all the cmsg records in traces instead of just the first one.

Welcome to 8.99.15 because of the argument removal.

XXX: Really all the code should be changed to use the CMSG_{FIRST,NXT}HDR
macros...

Revision 1.191.2.1 / (download) - annotate - [select for diffs], Thu Mar 22 01:44:50 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.191: +15 -10 lines
Diff to previous 1.191 (colored) to selected 1.106.2.1 (colored)

Synch with HEAD, resolve conflicts

Revision 1.186.6.1 / (download) - annotate - [select for diffs], Sun Mar 18 10:57:01 2018 UTC (6 years ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.186: +7 -4 lines
Diff to previous 1.186 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by tih in ticket #639):
	sys/kern/uipc_socket.c: revision 1.258
	sys/kern/uipc_socket.c: revision 1.259
	sys/netinet/ip_input.c: revision 1.364 (via patch)
	sys/netinet/ip_output.c: revision 1.289
	sys/netinet/in.h: revision 1.102
	sys/netinet/in_pcb.c: revision 1.181
	share/man/man9/sockopt.9: revision 1.11
	sys/netinet/in_pcb.h: revision 1.65
	sys/sys/socketvar.h: revision 1.146
	sys/kern/uipc_syscalls.c: revision 1.189
	sys/netinet/ip_output.c: revision 1.290
	share/man/man4/ip.4: revision 1.41
	share/man/man4/ip.4: revision 1.42
	sys/kern/uipc_syscalls.c: revision 1.190

pass valsize for getsockopt like we do for setsockopt
make sure that we have enough space, don't require the exact size
(Tom Ivar Helbekkmo)

1) "#define ipi_spec_dst ipi_addr" in <netinet/in.h>
2) Change the IP_RECVPKTINFO option to control the generation of
   IP_PKTINFO control messages, the way it's done in Solaris.
3) Remove the superfluous IP_RECVPKTINFO control message.
4) Change the IP_PKTINFO option to do different things depending on
   the parameter it's supplied with:
   - If it's sizeof(int), assume it's being used as in Linux:
     - If it's non-zero, turn on the IP_RECVPKTINFO option.
     - If it's zero, turn off the IP_RECVPKTINFO option.
   - If it's sizeof(struct in_pktinfo), assume it's being used as in
     Solaris, to set a default for the source interface and/or
     source address for outgoing packets on the socket.
5) Return what Linux or Solaris compatible code expects, depending
   on data size, and just added a fallback to a Linux (and current NetBSD)
   compatible value if the size is unknown (as it is now), or,
   in the future, if the calling application specifies a receiving
   buffer that doesn't match either data item.

From: Tom Ivar Helbekkmo

new sentence-new line

Remove comment now that the getsockopt code passes the size.

Add a new sockopt member to keep track of the actual size of the option
that should be returned to the caller in getsockopt(2).
(Tom Ivar Helbekkmo)

Revision 1.192 / (download) - annotate - [select for diffs], Fri Mar 16 17:25:04 2018 UTC (6 years ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322
Changes since 1.191: +15 -10 lines
Diff to previous 1.191 (colored) to selected 1.106.2.1 (colored)

PR/53103: Timo Buhrmester: linux emulation of sendto(2) broken

The sockargs refactoring broke it, because sockargs only works with a user
address. Added an argument to sockargs to indicate where the address is
coming from. Welcome to 8.99.14.

Revision 1.191 / (download) - annotate - [select for diffs], Mon Feb 12 16:01:35 2018 UTC (6 years, 1 month ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.190: +3 -2 lines
Diff to previous 1.190 (colored) to selected 1.106.2.1 (colored)

Add a KASSERT; we expect *from to be a single mbuf (not chained).

Revision 1.190 / (download) - annotate - [select for diffs], Thu Jan 4 01:42:25 2018 UTC (6 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.189: +3 -3 lines
Diff to previous 1.189 (colored) to selected 1.106.2.1 (colored)

Add a new sockopt member to keep track of the actual size of the option
that should be returned to the caller in getsockopt(2).

(Tom Ivar Helbekkmo)

Revision 1.189 / (download) - annotate - [select for diffs], Sun Dec 31 19:39:57 2017 UTC (6 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.188: +6 -3 lines
Diff to previous 1.188 (colored) to selected 1.106.2.1 (colored)

pass valsize for getsockopt like we do for setsockopt

Revision 1.188 / (download) - annotate - [select for diffs], Tue Dec 26 08:30:58 2017 UTC (6 years, 3 months ago) by kamil
Branch: MAIN
Changes since 1.187: +9 -9 lines
Diff to previous 1.187 (colored) to selected 1.106.2.1 (colored)

Refactor pipe1() and correct a bug in sys_pipe2() (SYS_pipe2)

sys_pipe2() returns two integers (values), the 2nd one is a copy of the 2nd
file descriptor that lands in fildes[2]. This is a side effect of reusing
the code for sys_pipe() (SYS_pipe) and not cleaning it up.

The first returned value is (on success) 0.

Introduced a small refactoring in pipe1() that it does not operate over
retval[], but on an array int[2]. A user sets retval[] for pipe() when
desired and needed.

This refactoring touches compat code: netbsd32, linux, linux32.

Before the changes on NetBSD/amd64:

$ ktruss -i ./a.out
[...]
 15131      1 a.out    pipe2(0x7f7fff2e62b8, 0)    = 0, 4
[...]

After the changes:

$ ktruss -i ./a.out
[...]
   782      1 a.out    pipe2(0x7f7fff97e850, 0)    = 0
[...]

There should not be a visible change for current users.

Sponsored by <The NetBSD Foundation>

Revision 1.156.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:45 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.156.2.3: +184 -102 lines
Diff to previous 1.156.2.3 (colored) to branchpoint 1.156 (colored) next main 1.157 (colored) to selected 1.106.2.1 (colored)

update from HEAD

Revision 1.173.2.8 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:07 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.173.2.7: +3 -5 lines
Diff to previous 1.173.2.7 (colored) to branchpoint 1.173 (colored) next main 1.174 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD

Revision 1.154.2.1.4.3 / (download) - annotate - [select for diffs], Fri Jul 21 03:55:56 2017 UTC (6 years, 8 months ago) by snj
Branch: netbsd-6-0
Changes since 1.154.2.1.4.2: +6 -2 lines
Diff to previous 1.154.2.1.4.2 (colored) to branchpoint 1.154.2.1 (colored) next main 1.154.2.2 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by riastradh in ticket #1453):
	sys/kern/uipc_socket.c: revision 1.213
	sys/kern/uipc_syscalls.c: revision 1.160
PR/47569: Valery Ushakov: SOCK_NONBLOCK does not work because it does not
set SS_NBIO.
XXX: there are too many flags that mean the same thing in too many places,
and too many flags that mean the same thing and are different.

Revision 1.187 / (download) - annotate - [select for diffs], Tue Jun 20 20:34:49 2017 UTC (6 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825
Changes since 1.186: +3 -5 lines
Diff to previous 1.186 (colored) to selected 1.106.2.1 (colored)

Change len type to be unsigned int for consistency with the input type.
Don't check for negative; it does not matter we clamp anyway. This
broke the compat32 getsockname() where an unitialized socklen_t ended
up randomly negative causing it to fail.

Revision 1.184.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:02 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.184: +4 -6 lines
Diff to previous 1.184 (colored) next main 1.185 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD

Revision 1.182.2.2 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:47 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.182.2.1: +4 -6 lines
Diff to previous 1.182.2.1 (colored) to branchpoint 1.182 (colored) next main 1.183 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD

Revision 1.173.2.7 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:56 2017 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.173.2.6: +4 -6 lines
Diff to previous 1.173.2.6 (colored) to branchpoint 1.173 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD

Revision 1.186 / (download) - annotate - [select for diffs], Fri Feb 3 16:06:45 2017 UTC (7 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, nick-nhusb-base-20170204, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.185: +4 -4 lines
Diff to previous 1.185 (colored) to selected 1.106.2.1 (colored)

expose sendmsg_so and recvmsg_so.

Revision 1.185 / (download) - annotate - [select for diffs], Thu Feb 2 15:37:42 2017 UTC (7 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.184: +2 -4 lines
Diff to previous 1.184 (colored) to selected 1.106.2.1 (colored)

expose copyout_sockname_sb

Revision 1.182.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:49 2017 UTC (7 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.182: +3 -2 lines
Diff to previous 1.182 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.173.2.6 / (download) - annotate - [select for diffs], Mon Dec 5 10:55:26 2016 UTC (7 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.173.2.5: +3 -2 lines
Diff to previous 1.173.2.5 (colored) to branchpoint 1.173 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD

Revision 1.184 / (download) - annotate - [select for diffs], Sat Dec 3 22:28:16 2016 UTC (7 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, nick-nhusb-base-20161204, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.183: +3 -2 lines
Diff to previous 1.183 (colored) to selected 1.106.2.1 (colored)

Add missing ktrkuser

Revision 1.173.2.5 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:03 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.173.2.4: +36 -17 lines
Diff to previous 1.173.2.4 (colored) to branchpoint 1.173 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD

Revision 1.183 / (download) - annotate - [select for diffs], Tue Sep 13 07:01:08 2016 UTC (7 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, nick-nhusb-base-20161004, localcount-20160914
Changes since 1.182: +36 -17 lines
Diff to previous 1.182 (colored) to selected 1.106.2.1 (colored)

Make the ktrace record written by do_sys_sendmsg/do_sys_recvmsg overridable
by the caller. Use this in compat_netbsd32 to log the 32bit version, so
the 32bit userland kdump is happy.

Revision 1.182 / (download) - annotate - [select for diffs], Thu Jul 7 06:55:43 2016 UTC (7 years, 8 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907
Branch point for: pgoyette-localcount
Changes since 1.181: +3 -3 lines
Diff to previous 1.181 (colored) to selected 1.106.2.1 (colored)

KNF. Remove extra spaces. No functional change.

Revision 1.173.2.4 / (download) - annotate - [select for diffs], Sun Dec 27 12:10:05 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.173.2.3: +8 -7 lines
Diff to previous 1.173.2.3 (colored) to branchpoint 1.173 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.172.2.2 / (download) - annotate - [select for diffs], Sun Nov 8 00:55:11 2015 UTC (8 years, 4 months ago) by riz
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1
Changes since 1.172.2.1: +8 -7 lines
Diff to previous 1.172.2.1 (colored) to branchpoint 1.172 (colored) next main 1.173 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by christos in ticket #1018):
	sys/kern/uipc_syscalls.c: revision 1.181
Don't overwrite the user iov pointer in sendmmsg. Make the send and receive
code look the same.

Revision 1.181 / (download) - annotate - [select for diffs], Sun Nov 1 17:23:36 2015 UTC (8 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Changes since 1.180: +8 -7 lines
Diff to previous 1.180 (colored) to selected 1.106.2.1 (colored)

Don't overwrite the user iov pointer in sendmmsg. Make the send and receive
code look the same.

Revision 1.173.2.3 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:07 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.173.2.2: +12 -3 lines
Diff to previous 1.173.2.2 (colored) to branchpoint 1.173 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD

Revision 1.180 / (download) - annotate - [select for diffs], Mon Aug 24 22:21:26 2015 UTC (8 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921
Changes since 1.179: +4 -2 lines
Diff to previous 1.179 (colored) to selected 1.106.2.1 (colored)

sprinkle _KERNEL_OPT

Revision 1.172.2.1 / (download) - annotate - [select for diffs], Sat Aug 8 15:45:47 2015 UTC (8 years, 7 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.172: +10 -3 lines
Diff to previous 1.172 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by maxv in ticket #942):
	sys/kern/uipc_syscalls.c: revision 1.179
Memory leak. Triggerable from an unprivileged user via COMPAT_43.

Revision 1.179 / (download) - annotate - [select for diffs], Wed Jul 22 14:18:08 2015 UTC (8 years, 8 months ago) by maxv
Branch: MAIN
Changes since 1.178: +10 -3 lines
Diff to previous 1.178 (colored) to selected 1.106.2.1 (colored)

Memory leak. Triggerable from an unprivileged user via COMPAT_43.

Revision 1.173.2.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:22 2015 UTC (8 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.173.2.1: +85 -63 lines
Diff to previous 1.173.2.1 (colored) to branchpoint 1.173 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD

Revision 1.178 / (download) - annotate - [select for diffs], Sat May 9 15:22:47 2015 UTC (8 years, 10 months ago) by rtr
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606
Changes since 1.177: +8 -3 lines
Diff to previous 1.177 (colored) to selected 1.106.2.1 (colored)

change sosend() to accept sockaddr * instead of mbuf * for nam.

bump to 7.99.16

Revision 1.177 / (download) - annotate - [select for diffs], Sat May 2 17:18:03 2015 UTC (8 years, 10 months ago) by rtr
Branch: MAIN
Changes since 1.176: +6 -10 lines
Diff to previous 1.176 (colored) to selected 1.106.2.1 (colored)

make connect syscall use sockaddr_big and modify pr_{send,connect}
nam parameter type from buf * to sockaddr *.

final commit for parameter type changes to protocol user requests

* bump kernel version to 7.99.15 for parameter type changes to pr_{send,connect}

Revision 1.176 / (download) - annotate - [select for diffs], Fri Apr 24 22:32:37 2015 UTC (8 years, 11 months ago) by rtr
Branch: MAIN
Changes since 1.175: +75 -54 lines
Diff to previous 1.175 (colored) to selected 1.106.2.1 (colored)

make accept, getsockname and getpeername syscalls use sockaddr_big and modify
pr_{accept,sockname,peername} nam parameter type from mbuf * to sockaddr *.

* retained use of mbuftypes[MT_SONAME] for now.
* bump to netbsd version 7.99.12 for parameter type change.

patch posted to tech-net@ 2015/04/19

Revision 1.173.2.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:20 2015 UTC (8 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.173: +47 -13 lines
Diff to previous 1.173 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD

Revision 1.175 / (download) - annotate - [select for diffs], Fri Apr 3 20:01:07 2015 UTC (8 years, 11 months ago) by rtr
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.174: +41 -13 lines
Diff to previous 1.174 (colored) to selected 1.106.2.1 (colored)

* change pr_bind to accept struct sockaddr * instead of struct mbuf *
* update protocol bind implementations to use/expect sockaddr *
  instead of mbuf *
* introduce sockaddr_big struct for storage of addr data passed via
  sys_bind; sockaddr_big is of sufficient size and alignment to
  accommodate all addr data sizes received.
* modify sys_bind to allocate sockaddr_big instead of using an mbuf.
* bump kernel version to 7.99.9 for change to pr_bind() parameter type.

Patch posted to tech-net@
  http://mail-index.netbsd.org/tech-net/2015/03/15/msg005004.html

The choice to use a new structure sockaddr_big has been retained since
changing sockaddr_storage size would lead to unnecessary ABI change. The
use of the new structure does not preclude future work that increases
the size of sockaddr_storage and at that time sockaddr_big may be
trivially replaced.

Tested by mrg@ and myself, discussed with rmind@, posted to tech-net@

Revision 1.174 / (download) - annotate - [select for diffs], Fri Mar 6 03:35:00 2015 UTC (9 years ago) by rtr
Branch: MAIN
Changes since 1.173: +8 -2 lines
Diff to previous 1.173 (colored) to selected 1.106.2.1 (colored)

Return EINVAL if namelen isn't large enough to encompass the expected
members of sockaddr structures. i.e. sa_len and sa_family.

Discussed with and patch by christos@

Revision 1.173 / (download) - annotate - [select for diffs], Fri Sep 5 09:20:59 2014 UTC (9 years, 6 months ago) by matt
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.172: +9 -9 lines
Diff to previous 1.172 (colored) to selected 1.106.2.1 (colored)

Try not to use f_data, use f_{vnode,socket,pipe,mqueue,kqueue,ksem} to get
a correctly typed pointer.

Revision 1.156.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:29 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.156.2.2: +111 -79 lines
Diff to previous 1.156.2.2 (colored) to branchpoint 1.156 (colored) to selected 1.106.2.1 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.165.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:55:58 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.165: +110 -78 lines
Diff to previous 1.165 (colored) next main 1.166 (colored) to selected 1.106.2.1 (colored)

Rebase.

Revision 1.172 / (download) - annotate - [select for diffs], Sat Aug 9 05:33:00 2014 UTC (9 years, 7 months ago) by rtr
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base, netbsd-7-0-RC2, netbsd-7-0-RC1
Branch point for: netbsd-7
Changes since 1.171: +3 -3 lines
Diff to previous 1.171 (colored) to selected 1.106.2.1 (colored)

split PRU_CONNECT2 & PRU_PURGEIF function out of pr_generic() usrreq
switches and put into separate functions

  - always KASSERT(solocked(so)) even if not implemented
    (for PRU_CONNECT2 only)

  - replace calls to pr_generic() with req = PRU_CONNECT2 with calls to
    pr_connect2()

  - replace calls to pr_generic() with req = PRU_PURGEIF with calls to
    pr_purgeif()

put common code from unp_connect2() (used by unp_connect() into
unp_connect1() and call out to it when needed

patch only briefly reviewed by rmind@

Revision 1.171 / (download) - annotate - [select for diffs], Wed Jul 9 04:54:03 2014 UTC (9 years, 8 months ago) by rtr
Branch: MAIN
Changes since 1.170: +35 -10 lines
Diff to previous 1.170 (colored) to selected 1.106.2.1 (colored)

* split PRU_PEERADDR and PRU_SOCKADDR function out of pr_generic()
  usrreq switches and put into separate functions
  xxx_{peer,sock}addr(struct socket *, struct mbuf *).

    - KASSERT(solocked(so)) always in new functions even if request
      is not implemented

    - KASSERT(pcb != NULL) and KASSERT(nam) if the request is
      implemented and not for tcp.

* for tcp roll #ifdef KPROF and #ifdef DEBUG code from tcp_usrreq() into
  easier to cut & paste functions tcp_debug_capture() and
tcp_debug_trace()

    - functions provided by rmind
    - remaining use of PRU_{PEER,SOCK}ADDR #define to be removed in a
      future commit.

* rename netbt functions to permit consistency of pru function names
  (as has been done with other requests already split out).

    - l2cap_{peer,sock}addr()  -> l2cap_{peer,sock}_addr_pcb()
    - rfcomm_{peer,sock}addr() -> rfcomm_{peer,sock}_addr_pcb()
    - sco_{peer,sock}addr()    -> sco_{peer,sock}_addr_pcb()

* split/refactor do_sys_getsockname(lwp, fd, which, nam) into
  two functions do_sys_get{peer,sock}name(fd, nam).

    - move PRU_PEERADDR handling into do_sys_getpeername() from
      do_sys_getsockname()
    - have svr4_stream directly call do_sys_get{sock,peer}name()
      respectively instead of providing `which' & fix a DPRINTF string
      that incorrectly wrote "getpeername" when it meant "getsockname"
    - fix sys_getpeername() and sys_getsockname() to call
      do_sys_get{sock,peer}name() without `which' and `lwp' & adjust
      comments
    - bump kernel version for removal of lwp & which parameters from
      do_sys_getsockname()

note: future cleanup to remove struct mbuf * abuse in
xxx_{peer,sock}name()
still to come, not done in this commit since it is easier to do post
split.

patch reviewed by rmind

welcome to 6.99.47

Revision 1.147.2.5 / (download) - annotate - [select for diffs], Thu May 22 11:41:03 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.147.2.4: +25 -14 lines
Diff to previous 1.147.2.4 (colored) to branchpoint 1.147 (colored) next main 1.148 (colored) to selected 1.106.2.1 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.161.2.2 / (download) - annotate - [select for diffs], Sun May 18 17:46:08 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.161.2.1: +46 -39 lines
Diff to previous 1.161.2.1 (colored) to branchpoint 1.161 (colored) next main 1.162 (colored) to selected 1.106.2.1 (colored)

sync with head

Revision 1.170 / (download) - annotate - [select for diffs], Sun May 18 14:46:15 2014 UTC (9 years, 10 months ago) by rmind
Branch: MAIN
CVS Tags: rmind-smpnet-nbase, rmind-smpnet-base
Changes since 1.169: +4 -4 lines
Diff to previous 1.169 (colored) to selected 1.106.2.1 (colored)

Add struct pr_usrreqs with a pr_generic function and prepare for the
dismantling of pr_usrreq in the protocols; no functional change intended.
PRU_ATTACH/PRU_DETACH changes will follow soon.

Bump for struct protosw.  Welcome to 6.99.62!

Revision 1.169 / (download) - annotate - [select for diffs], Sat May 17 23:27:59 2014 UTC (9 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.168: +3 -3 lines
Diff to previous 1.168 (colored) to selected 1.106.2.1 (colored)

- fsocreate: set SS_NBIO before the file descriptor is affixed as there is
  a theoretical race condition (hard to trigger, though); remove the LWP
  parameter and clean up the code a little.
- Sprinkle few comments.
- Remove M_SOOPTS while here.

Revision 1.168 / (download) - annotate - [select for diffs], Sat May 17 21:48:48 2014 UTC (9 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.167: +5 -4 lines
Diff to previous 1.167 (colored) to selected 1.106.2.1 (colored)

makesocket: set SS_NBIO slightly earlier.

Revision 1.167 / (download) - annotate - [select for diffs], Sat May 17 21:45:02 2014 UTC (9 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.166: +69 -66 lines
Diff to previous 1.166 (colored) to selected 1.106.2.1 (colored)

Remove trailing whitespaces, wrap long lines, minor KNF; no functional changes.

Revision 1.166 / (download) - annotate - [select for diffs], Mon Apr 7 15:35:23 2014 UTC (9 years, 11 months ago) by seanb
Branch: MAIN
CVS Tags: yamt-pagecache-base9
Changes since 1.165: +6 -3 lines
Diff to previous 1.165 (colored) to selected 1.106.2.1 (colored)

Fix a case where an erroneous EAGAIN was returned out of recvmmsg.
This occured when some, but not all of the mmsg array members
were filled with data from a non-blocking socket.
PR kern/48725

Revision 1.154.2.1.4.2 / (download) - annotate - [select for diffs], Sat Dec 14 19:37:02 2013 UTC (10 years, 3 months ago) by bouyer
Branch: netbsd-6-0
CVS Tags: netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE
Changes since 1.154.2.1.4.1: +3 -2 lines
Diff to previous 1.154.2.1.4.1 (colored) to branchpoint 1.154.2.1 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by spz in ticket #996):
	sys/kern/uipc_syscalls.c: revision 1.163
PR/47591: Michael Plass: If the unix socket is closed before accept,
unp->unp_conn will be NULL in PRU_ACCEPT, as called from
sys_accept->so_accept. This will cause the usrreq to return with
no error, leaving the mbuf gotten from m_get() with an uninitialized
length, containing junk from a previous call. Initialize m_len to
be 0 to handle this case. This is yet another reason why Beverly's
idea of setting m_len = 0 in m_get() makes a lot of sense. Arguably
this could be an error, since the data we return now has 0 family
and length.

Revision 1.154.2.4.2.1 / (download) - annotate - [select for diffs], Sat Dec 14 19:36:58 2013 UTC (10 years, 3 months ago) by bouyer
Branch: netbsd-6-1
CVS Tags: netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE
Changes since 1.154.2.4: +3 -2 lines
Diff to previous 1.154.2.4 (colored) next main 1.154.2.5 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by spz in ticket #996):
	sys/kern/uipc_syscalls.c: revision 1.163
PR/47591: Michael Plass: If the unix socket is closed before accept,
unp->unp_conn will be NULL in PRU_ACCEPT, as called from
sys_accept->so_accept. This will cause the usrreq to return with
no error, leaving the mbuf gotten from m_get() with an uninitialized
length, containing junk from a previous call. Initialize m_len to
be 0 to handle this case. This is yet another reason why Beverly's
idea of setting m_len = 0 in m_get() makes a lot of sense. Arguably
this could be an error, since the data we return now has 0 family
and length.

Revision 1.154.2.5 / (download) - annotate - [select for diffs], Sat Dec 14 19:36:33 2013 UTC (10 years, 3 months ago) by bouyer
Branch: netbsd-6
Changes since 1.154.2.4: +3 -2 lines
Diff to previous 1.154.2.4 (colored) to branchpoint 1.154 (colored) next main 1.155 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by spz in ticket #996):
	sys/kern/uipc_syscalls.c: revision 1.163
PR/47591: Michael Plass: If the unix socket is closed before accept,
unp->unp_conn will be NULL in PRU_ACCEPT, as called from
sys_accept->so_accept. This will cause the usrreq to return with
no error, leaving the mbuf gotten from m_get() with an uninitialized
length, containing junk from a previous call. Initialize m_len to
be 0 to handle this case. This is yet another reason why Beverly's
idea of setting m_len = 0 in m_get() makes a lot of sense. Arguably
this could be an error, since the data we return now has 0 family
and length.

Revision 1.134.4.4 / (download) - annotate - [select for diffs], Fri Dec 13 12:22:39 2013 UTC (10 years, 3 months ago) by sborrill
Branch: netbsd-5
Changes since 1.134.4.3: +3 -2 lines
Diff to previous 1.134.4.3 (colored) to branchpoint 1.134 (colored) next main 1.135 (colored) to selected 1.106.2.1 (colored)

Pull up the following revisions(s) (requested by spz in ticket #1891):
	sys/kern/uipc_syscalls.c:	revision 1.163

If the unix socket is closed before accept, the mbuf returned by
m_get() will have an uninitialized length and contain junk from a
previous call. Initialize m_len to be 0 to handle this case.
Fixes PR/47591

Revision 1.165 / (download) - annotate - [select for diffs], Wed Oct 9 20:15:39 2013 UTC (10 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.164: +2 -3 lines
Diff to previous 1.164 (colored) to selected 1.106.2.1 (colored)

delete extra m_len initialization.

Revision 1.164 / (download) - annotate - [select for diffs], Wed Oct 9 18:55:56 2013 UTC (10 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.163: +5 -3 lines
Diff to previous 1.163 (colored) to selected 1.106.2.1 (colored)

PR/48292: Justin Cormack: paccept creates sockets that cannot be made blocking
Reset the socket flags not just the file flags for non-blocking I/O.
XXX: pullup 6

Revision 1.163 / (download) - annotate - [select for diffs], Tue Oct 8 00:29:24 2013 UTC (10 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.162: +3 -2 lines
Diff to previous 1.162 (colored) to selected 1.106.2.1 (colored)

PR/47591: Michael Plass: If the unix socket is closed before accept,
unp->unp_conn will be NULL in PRU_ACCEPT, as called from
sys_accept->so_accept. This will cause the usrreq to return with
no error, leaving the mbuf gotten from m_get() with an uninitialized
length, containing junk from a previous call. Initialize m_len to
be 0 to handle this case. This is yet another reason why Beverly's
idea of setting m_len = 0 in m_get() makes a lot of sense. Arguably
this could be an error, since the data we return now has 0 family
and length.

Revision 1.162 / (download) - annotate - [select for diffs], Thu Aug 29 17:49:21 2013 UTC (10 years, 7 months ago) by rmind
Branch: MAIN
Changes since 1.161: +3 -5 lines
Diff to previous 1.161 (colored) to selected 1.106.2.1 (colored)

Remove SS_ISCONFIRMING, it is unused and TP4 will not come back.

Revision 1.161.2.1 / (download) - annotate - [select for diffs], Wed Aug 28 15:21:48 2013 UTC (10 years, 7 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.161: +39 -39 lines
Diff to previous 1.161 (colored) to selected 1.106.2.1 (colored)

Checkpoint work in progress:
- Initial split of the protocol user-request method into the following
  methods: pr_attach, pr_detach and pr_generic for old the pr_usrreq.
- Adjust socreate(9) and sonewconn(9) to call pr_attach without the
  socket lock held (as a preparation for the locking scheme adjustment).
- Adjust all pr_attach routines to assert that PCB is not set.
- Sprinkle various comments, document some routines and their locking.
- Remove M_PCB, replace with kmem(9).
- Fix few bugs spotted on the way.

Revision 1.156.2.2 / (download) - annotate - [select for diffs], Sun Jun 23 06:18:58 2013 UTC (10 years, 9 months ago) by tls
Branch: tls-maxphys
Changes since 1.156.2.1: +3 -3 lines
Diff to previous 1.156.2.1 (colored) to branchpoint 1.156 (colored) to selected 1.106.2.1 (colored)

resync from head

Revision 1.161 / (download) - annotate - [select for diffs], Mon Jun 3 23:45:31 2013 UTC (10 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2
Branch point for: rmind-smpnet
Changes since 1.160: +3 -3 lines
Diff to previous 1.160 (colored) to selected 1.106.2.1 (colored)

use the proper name for kdump pretty-printing.

Revision 1.156.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:56 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.156: +21 -15 lines
Diff to previous 1.156 (colored) to selected 1.106.2.1 (colored)

resync with head

Revision 1.154.2.4 / (download) - annotate - [select for diffs], Mon Feb 18 22:00:49 2013 UTC (11 years, 1 month ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE
Branch point for: netbsd-6-1
Changes since 1.154.2.3: +13 -9 lines
Diff to previous 1.154.2.3 (colored) to branchpoint 1.154 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by riastradh in ticket #831):
	sys/kern/uipc_usrreq.c: revision 1.141
	sys/kern/uipc_syscalls.c: revision 1.159
Fix some screw cases in cmsg file descriptor passing.
- Don't leave garbage in the control buffer if allocating file
descriptors fails in unp_externalize.
- Scrub the space between CMSG_LEN and CMSG_SPACE to avoid kernel
memory disclosure in unp_externalize.
- Don't read past cmsg_len when closing file descriptors that
couldn't get delivered, in free_rights.
ok christos

Revision 1.154.2.3 / (download) - annotate - [select for diffs], Thu Feb 14 22:13:59 2013 UTC (11 years, 1 month ago) by jdc
Branch: netbsd-6
Changes since 1.154.2.2: +6 -2 lines
Diff to previous 1.154.2.2 (colored) to branchpoint 1.154 (colored) to selected 1.106.2.1 (colored)

Pull up revisions:
  src/sys/kern/uipc_socket.c revision 1.213
  src/sys/kern/uipc_syscalls.c revision 1.160
(requested by christos in ticket #822).

PR/47569: Valery Ushakov: SOCK_NONBLOCK does not work because it does not
set SS_NBIO.
XXX: there are too many flags that mean the same thing in too many places=
,
and too many flags that mean the same thing and are different.

Revision 1.160 / (download) - annotate - [select for diffs], Thu Feb 14 21:57:59 2013 UTC (11 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: khorben-n900, agc-symver-base, agc-symver
Changes since 1.159: +6 -2 lines
Diff to previous 1.159 (colored) to selected 1.106.2.1 (colored)

PR/47569: Valery Ushakov: SOCK_NONBLOCK does not work because it does not
set SS_NBIO.
XXX: there are too many flags that mean the same thing in too many places,
and too many flags that mean the same thing and are different.

Revision 1.159 / (download) - annotate - [select for diffs], Thu Feb 14 01:00:07 2013 UTC (11 years, 1 month ago) by riastradh
Branch: MAIN
Changes since 1.158: +13 -9 lines
Diff to previous 1.158 (colored) to selected 1.106.2.1 (colored)

Fix some screw cases in cmsg file descriptor passing.

- Don't leave garbage in the control buffer if allocating file
descriptors fails in unp_externalize.

- Scrub the space between CMSG_LEN and CMSG_SPACE to avoid kernel
memory disclosure in unp_externalize.

- Don't read past cmsg_len when closing file descriptors that
couldn't get delivered, in free_rights.

ok christos

Revision 1.147.2.4 / (download) - annotate - [select for diffs], Wed Jan 23 00:06:22 2013 UTC (11 years, 2 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.147.2.3: +6 -8 lines
Diff to previous 1.147.2.3 (colored) to branchpoint 1.147 (colored) to selected 1.106.2.1 (colored)

sync with head

Revision 1.154.2.1.4.1 / (download) - annotate - [select for diffs], Mon Jan 7 16:53:36 2013 UTC (11 years, 2 months ago) by riz
Branch: netbsd-6-0
CVS Tags: netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE
Changes since 1.154.2.1: +6 -8 lines
Diff to previous 1.154.2.1 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by mlelstv in ticket #778):
	sys/kern/uipc_syscalls.c: revision 1.157
	sys/kern/uipc_syscalls.c: revision 1.158
If an untraced process sleeps in recvmsg/sendmsg, the syscall does not
allocate an iov structure for ktrace. When tracing is then enabled
and the process wakes up, it crashes the kernel.
Undo the last commit which introduced this error path.
Avoid the mentioned kmem_alloc assertion by adding a sanity check analog
to similar code in sys_generic.c for I/O on file handles instead of
sockets.
This also causes the syscall to return EMSGSIZE if the msg_iovlen member
of the msg structure is less than or equal to 0, as defined in
recvmsg(2)/sendmsg(2).
The sanity check prevented messages that carry only ancillary data.

Revision 1.154.2.2 / (download) - annotate - [select for diffs], Mon Jan 7 16:53:18 2013 UTC (11 years, 2 months ago) by riz
Branch: netbsd-6
Changes since 1.154.2.1: +6 -8 lines
Diff to previous 1.154.2.1 (colored) to branchpoint 1.154 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by mlelstv in ticket #778):
	sys/kern/uipc_syscalls.c: revision 1.157
	sys/kern/uipc_syscalls.c: revision 1.158
If an untraced process sleeps in recvmsg/sendmsg, the syscall does not
allocate an iov structure for ktrace. When tracing is then enabled
and the process wakes up, it crashes the kernel.
Undo the last commit which introduced this error path.
Avoid the mentioned kmem_alloc assertion by adding a sanity check analog
to similar code in sys_generic.c for I/O on file handles instead of
sockets.
This also causes the syscall to return EMSGSIZE if the msg_iovlen member
of the msg structure is less than or equal to 0, as defined in
recvmsg(2)/sendmsg(2).
The sanity check prevented messages that carry only ancillary data.

Revision 1.158 / (download) - annotate - [select for diffs], Sat Dec 29 18:51:39 2012 UTC (11 years, 3 months ago) by mlelstv
Branch: MAIN
CVS Tags: yamt-pagecache-base8
Changes since 1.157: +4 -14 lines
Diff to previous 1.157 (colored) to selected 1.106.2.1 (colored)

The sanity check prevented messages that carry only ancillary data.

Revision 1.157 / (download) - annotate - [select for diffs], Sat Dec 29 10:22:40 2012 UTC (11 years, 3 months ago) by mlelstv
Branch: MAIN
Changes since 1.156: +18 -10 lines
Diff to previous 1.156 (colored) to selected 1.106.2.1 (colored)

If an untraced process sleeps in recvmsg/sendmsg, the syscall does not
allocate an iov structure for ktrace. When tracing is then enabled
and the process wakes up, it crashes the kernel.

Undo the last commit which introduced this error path.

Avoid the mentioned kmem_alloc assertion by adding a sanity check analog
to similar code in sys_generic.c for I/O on file handles instead of
sockets.

This also causes the syscall to return EMSGSIZE if the msg_iovlen member
of the msg structure is less than or equal to 0, as defined in
recvmsg(2)/sendmsg(2).

Revision 1.147.2.3 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:37 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.147.2.2: +215 -28 lines
Diff to previous 1.147.2.2 (colored) to branchpoint 1.147 (colored) to selected 1.106.2.1 (colored)

sync with head

Revision 1.154.2.1 / (download) - annotate - [select for diffs], Fri Jul 20 23:10:06 2012 UTC (11 years, 8 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-1-RELEASE, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: netbsd-6-0
Changes since 1.154: +11 -10 lines
Diff to previous 1.154 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by njoly in ticket #423):
	sys/kern/uipc_syscalls.c: revision 1.156
Avoid kmem_alloc KASSERT for 0 byte allocation, when tracing processes
that use empty messages with sendmsg/recvmsg.

Revision 1.156 / (download) - annotate - [select for diffs], Tue Jul 17 14:22:42 2012 UTC (11 years, 8 months ago) by njoly
Branch: MAIN
CVS Tags: yamt-pagecache-base7, yamt-pagecache-base6
Branch point for: tls-maxphys
Changes since 1.155: +11 -10 lines
Diff to previous 1.155 (colored) to selected 1.106.2.1 (colored)

Avoid kmem_alloc KASSERT for 0 byte allocation, when tracing processes
that use empty messages with sendmsg/recvmsg.

Revision 1.155 / (download) - annotate - [select for diffs], Fri Jun 22 18:26:35 2012 UTC (11 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.154: +206 -20 lines
Diff to previous 1.154 (colored) to selected 1.106.2.1 (colored)

Add {send,recv}mmsg from Linux

Revision 1.147.2.2 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:31 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.147.2.1: +28 -12 lines
Diff to previous 1.147.2.1 (colored) to branchpoint 1.147 (colored) to selected 1.106.2.1 (colored)

sync with head

Revision 1.148.4.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:34 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.148: +28 -12 lines
Diff to previous 1.148 (colored) next main 1.149 (colored) to selected 1.106.2.1 (colored)

merge to -current.

Revision 1.154 / (download) - annotate - [select for diffs], Wed Jan 25 16:56:13 2012 UTC (12 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Branch point for: netbsd-6
Changes since 1.153: +4 -4 lines
Diff to previous 1.153 (colored) to selected 1.106.2.1 (colored)

revert atomics for so_options since it is a short.

Revision 1.153 / (download) - annotate - [select for diffs], Wed Jan 25 15:51:24 2012 UTC (12 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.152: +3 -2 lines
Diff to previous 1.152 (colored) to selected 1.106.2.1 (colored)

need <sys/atomic.h>

Revision 1.152 / (download) - annotate - [select for diffs], Wed Jan 25 14:04:09 2012 UTC (12 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.151: +6 -6 lines
Diff to previous 1.151 (colored) to selected 1.106.2.1 (colored)

Add locking, requested by yamt. Note that locking is not used everywhere
for these.

Revision 1.151 / (download) - annotate - [select for diffs], Wed Jan 25 00:28:36 2012 UTC (12 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.150: +24 -10 lines
Diff to previous 1.150 (colored) to selected 1.106.2.1 (colored)

As discussed in tech-kern, provide the means to prevent delivery of SIGPIPE
on EPIPE for all file descriptor types:

- provide O_NOSIGPIPE for open,kqueue1,pipe2,dup3,fcntl(F_{G,S}ETFL) [NetBSD]
- provide SOCK_NOSIGPIPE for socket,socketpair [NetBSD]
- provide SO_NOSIGPIPE for {g,s}seckopt [NetBSD/FreeBSD/MacOSX]
- provide F_{G,S}ETNOSIGPIPE for fcntl [MacOSX]

Revision 1.150 / (download) - annotate - [select for diffs], Wed Dec 21 15:26:57 2011 UTC (12 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.149: +4 -3 lines
Diff to previous 1.149 (colored) to selected 1.106.2.1 (colored)

simplify expression

Revision 1.149 / (download) - annotate - [select for diffs], Tue Dec 20 23:56:28 2011 UTC (12 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.148: +4 -4 lines
Diff to previous 1.148 (colored) to selected 1.106.2.1 (colored)

- Eliminate so_nbio and turn it into a bit SS_NBIO in so_state.
- Introduce MSG_NBIO so that we can turn non blocking i/o on a per call basis
- Use MSG_NBIO to fix the XXX: multi-threaded issues on the fifo sockets.
- Don't set SO_CANTRCVMORE, if we were interrupted (perhaps do it for all
  errors?).

Revision 1.147.2.1 / (download) - annotate - [select for diffs], Thu Nov 10 14:31:49 2011 UTC (12 years, 4 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.147: +46 -33 lines
Diff to previous 1.147 (colored) to selected 1.106.2.1 (colored)

sync with head

Revision 1.148 / (download) - annotate - [select for diffs], Fri Nov 4 02:13:08 2011 UTC (12 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: jmcneill-usbmp
Changes since 1.147: +46 -33 lines
Diff to previous 1.147 (colored) to selected 1.106.2.1 (colored)

Fix error I introduced in previous commit that caused asymmetric connects
when SOCK_NONBLOCK or SOCK_CLOEXEC was specified. Factor out common code
and simplify error return.

Revision 1.147 / (download) - annotate - [select for diffs], Wed Sep 21 18:10:25 2011 UTC (12 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.146: +4 -3 lines
Diff to previous 1.146 (colored) to selected 1.106.2.1 (colored)

Put the mbuf type in the ktrace record so that we know how to decode it
in userland.

Revision 1.146 / (download) - annotate - [select for diffs], Wed Jul 27 14:35:34 2011 UTC (12 years, 8 months ago) by uebayasi
Branch: MAIN
Changes since 1.145: +2 -4 lines
Diff to previous 1.145 (colored) to selected 1.106.2.1 (colored)

These don't need uvm/uvm_extern.h.

Revision 1.145 / (download) - annotate - [select for diffs], Fri Jul 15 14:50:19 2011 UTC (12 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.144: +4 -2 lines
Diff to previous 1.144 (colored) to selected 1.106.2.1 (colored)

fail with EINVAL if flags not are not O_CLOEXEC|O_NONBLOCK in pipe2(2) and
dup3(2)

Revision 1.144 / (download) - annotate - [select for diffs], Sun Jun 26 16:42:42 2011 UTC (12 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.143: +64 -15 lines
Diff to previous 1.143 (colored) to selected 1.106.2.1 (colored)

* Arrange for interfaces that create new file descriptors to be able to
  set close-on-exec on creation (http://udrepper.livejournal.com/20407.html).

    - Add F_DUPFD_CLOEXEC to fcntl(2).
    - Add MSG_CMSG_CLOEXEC to recvmsg(2) for unix file descriptor passing.
    - Add dup3(2) syscall with a flags argument for O_CLOEXEC, O_NONBLOCK.
    - Add pipe2(2) syscall with a flags argument for O_CLOEXEC, O_NONBLOCK.
    - Add flags SOCK_CLOEXEC, SOCK_NONBLOCK to the socket type parameter
      for socket(2) and socketpair(2).
    - Add new paccept(2) syscall that takes an additional sigset_t to alter
      the sigmask temporarily and a flags argument to set SOCK_CLOEXEC,
      SOCK_NONBLOCK.
    - Add new mode character 'e' to fopen(3) and popen(3) to open pipes
      and file descriptors for close on exec.
    - Add new kqueue1(2) syscall with a new flags argument to open the
      kqueue file descriptor with O_CLOEXEC, O_NONBLOCK.

* Fix the system calls that take socklen_t arguments to actually do so.

* Don't include userland header files (signal.h) from system header files
  (rump_syscallargs.h).

* Bump libc version for the new syscalls.

Revision 1.141.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:39 2011 UTC (12 years, 9 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.141: +11 -6 lines
Diff to previous 1.141 (colored) next main 1.142 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.140.4.3 / (download) - annotate - [select for diffs], Tue May 31 03:05:04 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.140.4.2: +0 -1 lines
Diff to previous 1.140.4.2 (colored) to branchpoint 1.140 (colored) next main 1.141 (colored) to selected 1.106.2.1 (colored)

sync with head

Revision 1.143 / (download) - annotate - [select for diffs], Sun Apr 24 18:46:23 2011 UTC (12 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.142: +2 -3 lines
Diff to previous 1.142 (colored) to selected 1.106.2.1 (colored)

- Replace few malloc(9) uses with kmem(9).
- Rename buf_malloc() to buf_alloc(), fix comments.
- Remove some unnecessary inclusions.

Revision 1.140.4.2 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:10 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.140.4.1: +11 -5 lines
Diff to previous 1.140.4.1 (colored) to branchpoint 1.140 (colored) to selected 1.106.2.1 (colored)

sync with head

Revision 1.142 / (download) - annotate - [select for diffs], Sun Apr 10 15:45:33 2011 UTC (12 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.141: +11 -5 lines
Diff to previous 1.141 (colored) to selected 1.106.2.1 (colored)

- Add O_CLOEXEC to open(2)
- Add fd_set_exclose() to encapsulate uses of FIO{,N}CLEX, O_CLOEXEC, F{G,S}ETFD
- Add a pipe1() function to allow passing flags to the fd's that pipe(2)
  opens to ease implementation of linux pipe2(2)
- Factor out fp handling code from open(2) and fhopen(2)

Revision 1.130.2.4 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:43 2010 UTC (13 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.130.2.3: +28 -54 lines
Diff to previous 1.130.2.3 (colored) to branchpoint 1.130 (colored) next main 1.131 (colored) to selected 1.106.2.1 (colored)

sync with head.

Revision 1.140.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:58 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.140: +28 -54 lines
Diff to previous 1.140 (colored) to selected 1.106.2.1 (colored)

sync with head

Revision 1.140.2.1 / (download) - annotate - [select for diffs], Fri Apr 30 14:44:13 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.140: +28 -54 lines
Diff to previous 1.140 (colored) next main 1.141 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.141 / (download) - annotate - [select for diffs], Fri Apr 23 15:19:19 2010 UTC (13 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.140: +28 -54 lines
Diff to previous 1.140 (colored) to selected 1.106.2.1 (colored)

Replace M_IOV and some malloc(9)s with kmem(9), and while there:
- Fix invalid free (M_TEMP vs M_IOV) in do_sys_recvmsg(), spotted by jakllsch@.
  Also, same fix in osf1_sys_sendmsg_xopen().
- Fix attempt to free non-allocated memory in error path in netbsd32___getfh30().
- Plug a memory leak in compat_43_netbsd32_orecvmsg().

Revision 1.134.4.2.4.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:18 2010 UTC (13 years, 11 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.134.4.2: +3 -3 lines
Diff to previous 1.134.4.2 (colored) next main 1.134.4.3 (colored) to selected 1.106.2.1 (colored)

sync to netbsd-5

Revision 1.134.4.2.2.1 / (download) - annotate - [select for diffs], Sun Mar 28 15:32:39 2010 UTC (14 years ago) by snj
Branch: netbsd-5-0
Changes since 1.134.4.2: +3 -3 lines
Diff to previous 1.134.4.2 (colored) next main 1.134.4.3 (colored) to selected 1.106.2.1 (colored)

Apply patch (requested by jakllsch in ticket #1352):
In do_sys_recvmsg(), call free(9) with the same type malloc(9) used.

Revision 1.134.4.3 / (download) - annotate - [select for diffs], Sun Mar 28 15:32:00 2010 UTC (14 years ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.134.4.2: +3 -3 lines
Diff to previous 1.134.4.2 (colored) to branchpoint 1.134 (colored) to selected 1.106.2.1 (colored)

Apply patch (requested by jakllsch in ticket #1352):
In do_sys_recvmsg(), call free(9) with the same type malloc(9) used.

Revision 1.130.2.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:20 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.130.2.2: +11 -3 lines
Diff to previous 1.130.2.2 (colored) to branchpoint 1.130 (colored) to selected 1.106.2.1 (colored)

sync with head

Revision 1.140 / (download) - annotate - [select for diffs], Thu Jan 21 04:40:22 2010 UTC (14 years, 2 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.139: +2 -3 lines
Diff to previous 1.139 (colored) to selected 1.106.2.1 (colored)

Remove unnecessary call to kauth_cred_free().

This resolves an occassional crash I'd been experiencing as reported on
current-users@

Fix suggested by and OK elad@

Revision 1.139 / (download) - annotate - [select for diffs], Tue Dec 29 04:23:43 2009 UTC (14 years, 3 months ago) by elad
Branch: MAIN
Changes since 1.138: +5 -2 lines
Diff to previous 1.138 (colored) to selected 1.106.2.1 (colored)

Add credentials to to sockets.

We don't need any deferred free etc. because we no longer free the
credentials in interrupt context.

Tons of help from matt@, thanks!

Revision 1.138 / (download) - annotate - [select for diffs], Sun Dec 20 09:36:06 2009 UTC (14 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.137: +8 -2 lines
Diff to previous 1.137 (colored) to selected 1.106.2.1 (colored)

If a multithreaded app closes an fd while another thread is blocked in
read/write/accept, then the expectation is that the blocked thread will
exit and the close complete.
Since only one fd is affected, but many fd can refer to the same file,
the close code can only request the fs code unblock with ERESTART.
Fixed for pipes and sockets, ERESTART will only be generated after such
a close - so there should be no change for other programs.
Also rename fo_abort() to fo_restart() (this used to be fo_drain()).
Fixes PR/26567

Revision 1.137 / (download) - annotate - [select for diffs], Wed Dec 9 21:33:00 2009 UTC (14 years, 3 months ago) by dsl
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.136: +3 -3 lines
Diff to previous 1.136 (colored) to selected 1.106.2.1 (colored)

Rename fo_drain() to fo_abort(), 'drain' is used to mean 'wait for output
do drain' in many places, whereas fo_drain() was called in order to force
blocking read()/write() etc calls to return to userspace so that a close()
call from a different thread can complete.
In the sockets code comment out the broken code in the inner function,
it was being called from compat code.

Revision 1.135.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:58 2009 UTC (14 years, 10 months ago) by jym
Branch: jym-xensuspend
Changes since 1.135: +14 -6 lines
Diff to previous 1.135 (colored) next main 1.136 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.130.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:49 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.130.2.1: +65 -70 lines
Diff to previous 1.130.2.1 (colored) to branchpoint 1.130 (colored) to selected 1.106.2.1 (colored)

sync with head.

Revision 1.134.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:01 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.134.2.1: +14 -6 lines
Diff to previous 1.134.2.1 (colored) to branchpoint 1.134 (colored) next main 1.135 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.134.4.2 / (download) - annotate - [select for diffs], Sat Apr 4 23:36:28 2009 UTC (14 years, 11 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: netbsd-5-0, matt-nb5-mips64
Changes since 1.134.4.1: +14 -6 lines
Diff to previous 1.134.4.1 (colored) to branchpoint 1.134 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by ad in ticket #661):
	sys/arch/xen/xen/xenevt.c: revision 1.32
	sys/compat/svr4/svr4_net.c: revision 1.56
	sys/compat/svr4_32/svr4_32_net.c: revision 1.19
	sys/dev/dmover/dmover_io.c: revision 1.32
	sys/dev/putter/putter.c: revision 1.21
	sys/kern/kern_descrip.c: revision 1.190
	sys/kern/kern_drvctl.c: revision 1.23
	sys/kern/kern_event.c: revision 1.64
	sys/kern/sys_mqueue.c: revision 1.14
	sys/kern/sys_pipe.c: revision 1.109
	sys/kern/sys_socket.c: revision 1.59
	sys/kern/uipc_syscalls.c: revision 1.136
	sys/kern/vfs_vnops.c: revision 1.164
	sys/kern/uipc_socket.c: revision 1.188
	sys/net/bpf.c: revision 1.144
	sys/net/if_tap.c: revision 1.55
	sys/opencrypto/cryptodev.c: revision 1.47
	sys/sys/file.h: revision 1.67
	sys/sys/param.h: patch
	sys/sys/socketvar.h: revision 1.119
Add fileops::fo_drain(), to be called from fd_close() when there is more
than one active reference to a file descriptor. It should dislodge threads
sleeping while holding a reference to the descriptor. Implemented only for
sockets but should be extended to pipes, fifos, etc.
Fixes the case of a multithreaded process doing something like the
following, which would have hung until the process got a signal.
thr0	accept(fd, ...)
thr1	close(fd)

Revision 1.136 / (download) - annotate - [select for diffs], Sat Apr 4 10:12:51 2009 UTC (14 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.135: +14 -6 lines
Diff to previous 1.135 (colored) to selected 1.106.2.1 (colored)

Add fileops::fo_drain(), to be called from fd_close() when there is more
than one active reference to a file descriptor. It should dislodge threads
sleeping while holding a reference to the descriptor. Implemented only for
sockets but should be extended to pipes, fifos, etc.

Fixes the case of a multithreaded process doing something like the
following, which would have hung until the process got a signal.

thr0	accept(fd, ...)
thr1	close(fd)

Revision 1.134.2.1 / (download) - annotate - [select for diffs], Tue Mar 3 18:32:57 2009 UTC (15 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.134: +4 -4 lines
Diff to previous 1.134 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.134.4.1 / (download) - annotate - [select for diffs], Mon Feb 2 21:04:45 2009 UTC (15 years, 1 month ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC3, netbsd-5-0-RC2
Changes since 1.134: +4 -4 lines
Diff to previous 1.134 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by yamt in ticket #393):
	sys/kern/uipc_socket.c: revision 1.185
	sys/kern/uipc_socket2.c: revision 1.101
	sys/kern/uipc_syscalls.c: revision 1.135
	sys/miscfs/portal/portal_vnops.c: revision 1.81
	sys/netsmb/smb_trantcp.c: revision 1.40
	sys/nfs/nfs_socket.c: revision 1.177
	sys/sys/socketvar.h: revision 1.118
restore the pre socket locking patch signal behaviour.
this fixes a busy-loop in nfs_connect.

Revision 1.135 / (download) - annotate - [select for diffs], Wed Jan 21 06:59:29 2009 UTC (15 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Changes since 1.134: +4 -4 lines
Diff to previous 1.134 (colored) to selected 1.106.2.1 (colored)

restore the pre socket locking patch signal behaviour.
this fixes a busy-loop in nfs_connect.

Revision 1.133.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:29 2008 UTC (15 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.133: +45 -46 lines
Diff to previous 1.133 (colored) next main 1.134 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.127.6.4 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:54 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.127.6.3: +43 -44 lines
Diff to previous 1.127.6.3 (colored) to branchpoint 1.127 (colored) next main 1.128 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.131.2.4 / (download) - annotate - [select for diffs], Thu Sep 18 04:31:44 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.131.2.3: +45 -62 lines
Diff to previous 1.131.2.3 (colored) to branchpoint 1.131 (colored) next main 1.132 (colored) to selected 1.106.2.1 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.134 / (download) - annotate - [select for diffs], Wed Aug 6 15:01:23 2008 UTC (15 years, 7 months ago) by plunky
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-0-RC1, mjf-devfs2-base, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.133: +45 -46 lines
Diff to previous 1.133 (colored) to selected 1.106.2.1 (colored)

Convert socket options code to use a sockopt structure
instead of laying everything into an mbuf.

approved by core

Revision 1.127.6.3 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:14 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.127.6.2: +0 -16 lines
Diff to previous 1.127.6.2 (colored) to branchpoint 1.127 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.132.2.1 / (download) - annotate - [select for diffs], Fri Jun 27 15:11:39 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.132: +2 -18 lines
Diff to previous 1.132 (colored) next main 1.133 (colored) to selected 1.106.2.1 (colored)

Sync with head.

Revision 1.133 / (download) - annotate - [select for diffs], Tue Jun 24 11:21:46 2008 UTC (15 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.132: +2 -18 lines
Diff to previous 1.132 (colored) to selected 1.106.2.1 (colored)

Nothing uses getsock/getvnode any more.

Revision 1.131.2.3 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:52 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.131.2.2: +8 -4 lines
Diff to previous 1.131.2.2 (colored) to branchpoint 1.131 (colored) to selected 1.106.2.1 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.128.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:40 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.128.2.1: +8 -4 lines
Diff to previous 1.128.2.1 (colored) to branchpoint 1.128 (colored) next main 1.129 (colored) to selected 1.106.2.1 (colored)

sync with head

Revision 1.127.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:14 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.127.6.1: +77 -45 lines
Diff to previous 1.127.6.1 (colored) to branchpoint 1.127 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.132 / (download) - annotate - [select for diffs], Fri May 30 09:49:01 2008 UTC (15 years, 10 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl
Changes since 1.131: +8 -4 lines
Diff to previous 1.131 (colored) to selected 1.106.2.1 (colored)

do_sys_accept: release the reference to sock in few error paths.
Should fix PR/38790, report and test-case by Nicolas Joly.

Revision 1.128.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:11 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.128: +73 -45 lines
Diff to previous 1.128 (colored) to selected 1.106.2.1 (colored)

sync with head.

Revision 1.130.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:28 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.130: +2 -9 lines
Diff to previous 1.130 (colored) to selected 1.106.2.1 (colored)

sync with head.

Revision 1.131.2.2 / (download) - annotate - [select for diffs], Wed May 14 01:35:14 2008 UTC (15 years, 10 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.131.2.1: +2 -3 lines
Diff to previous 1.131.2.1 (colored) to branchpoint 1.131 (colored) to selected 1.106.2.1 (colored)

Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.

Revision 1.131.2.1 / (download) - annotate - [select for diffs], Sat May 10 23:49:05 2008 UTC (15 years, 10 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.131: +3 -2 lines
Diff to previous 1.131 (colored) to selected 1.106.2.1 (colored)

Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.

Revision 1.131 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:05 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.130: +2 -9 lines
Diff to previous 1.130 (colored) to selected 1.106.2.1 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.130 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:30 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.129: +4 -4 lines
Diff to previous 1.129 (colored) to selected 1.106.2.1 (colored)

Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.

Revision 1.129 / (download) - annotate - [select for diffs], Thu Apr 24 11:38:36 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.128: +78 -43 lines
Diff to previous 1.128 (colored) to selected 1.106.2.1 (colored)

Merge the socket locking patch:

- Socket layer becomes MP safe.
- Unix protocols become MP safe.
- Allows protocol processing interrupts to safely block on locks.
- Fixes a number of race conditions.

With much feedback from matt@ and plunky@.

Revision 1.127.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:05 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.127: +106 -146 lines
Diff to previous 1.127 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.92.2.9 / (download) - annotate - [select for diffs], Mon Mar 24 09:39:02 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.92.2.8: +106 -146 lines
Diff to previous 1.92.2.8 (colored) next main 1.93 (colored) to selected 1.106.2.1 (colored)

sync with head.

Revision 1.116.2.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:01 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.116.2.2: +4 -4 lines
Diff to previous 1.116.2.2 (colored) next main 1.117 (colored) to selected 1.106.2.1 (colored)

sync with HEAD

Revision 1.128 / (download) - annotate - [select for diffs], Fri Mar 21 21:55:00 2008 UTC (16 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Branch point for: yamt-pf42
Changes since 1.127: +106 -146 lines
Diff to previous 1.127 (colored) to selected 1.106.2.1 (colored)

Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

Revision 1.122.4.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:48 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.122.4.2: +8 -4 lines
Diff to previous 1.122.4.2 (colored) to branchpoint 1.122 (colored) next main 1.123 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.92.2.8 / (download) - annotate - [select for diffs], Mon Feb 11 14:59:58 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.92.2.7: +4 -4 lines
Diff to previous 1.92.2.7 (colored) to selected 1.106.2.1 (colored)

sync with head.

Revision 1.127 / (download) - annotate - [select for diffs], Wed Feb 6 21:57:54 2008 UTC (16 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Branch point for: mjf-devfs2
Changes since 1.126: +4 -4 lines
Diff to previous 1.126 (colored) to selected 1.106.2.1 (colored)

Don't lock the socket to set/clear FNONBLOCK. Just set it atomically.

Revision 1.92.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:30 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.92.2.6: +58 -53 lines
Diff to previous 1.92.2.6 (colored) to selected 1.106.2.1 (colored)

sync with head

Revision 1.116.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:28 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.116.2.1: +59 -54 lines
Diff to previous 1.116.2.1 (colored) to selected 1.106.2.1 (colored)

sync with HEAD

Revision 1.123.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:56:21 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.123: +58 -53 lines
Diff to previous 1.123 (colored) next main 1.124 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD

Revision 1.122.4.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:17 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.122.4.1: +54 -53 lines
Diff to previous 1.122.4.1 (colored) to branchpoint 1.122 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.123.2.2 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:48 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.123.2.1: +54 -53 lines
Diff to previous 1.123.2.1 (colored) to branchpoint 1.123 (colored) next main 1.124 (colored) to selected 1.106.2.1 (colored)

Sync with head.

Revision 1.126 / (download) - annotate - [select for diffs], Wed Dec 26 16:01:37 2007 UTC (16 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base3, matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.125: +6 -2 lines
Diff to previous 1.125 (colored) to selected 1.106.2.1 (colored)

Merge more changes from vmlocking2, mainly:

- Locking improvements.
- Use pool_cache for more items.

Revision 1.125 / (download) - annotate - [select for diffs], Thu Dec 20 23:03:13 2007 UTC (16 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.124: +53 -52 lines
Diff to previous 1.124 (colored) to selected 1.106.2.1 (colored)

Convert all the system call entry points from:
    int foo(struct lwp *l, void *v, register_t *retval)
to:
    int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.

Revision 1.124 / (download) - annotate - [select for diffs], Sun Dec 16 21:26:00 2007 UTC (16 years, 3 months ago) by elad
Branch: MAIN
Changes since 1.123: +3 -3 lines
Diff to previous 1.123 (colored) to selected 1.106.2.1 (colored)

Make solisten() take an lwp pointer like the rest, so it can be passed down
to pr_usrreq.

Revision 1.122.4.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:42 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.122: +3 -3 lines
Diff to previous 1.122 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.92.2.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:33:18 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.92.2.5: +3 -3 lines
Diff to previous 1.92.2.5 (colored) to selected 1.106.2.1 (colored)

sync with head

Revision 1.123.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 16:59:52 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.123: +6 -2 lines
Diff to previous 1.123 (colored) to selected 1.106.2.1 (colored)

Make periphery of sendmsg/recvmsg/sendto/recvfrom MP safe.

Revision 1.115.6.5 / (download) - annotate - [select for diffs], Tue Nov 27 19:38:15 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.115.6.4: +3 -3 lines
Diff to previous 1.115.6.4 (colored) to branchpoint 1.115 (colored) next main 1.116 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.123 / (download) - annotate - [select for diffs], Sat Nov 24 07:49:04 2007 UTC (16 years, 4 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.122: +3 -3 lines
Diff to previous 1.122 (colored) to selected 1.106.2.1 (colored)

Pass the mbuf type (e.g., MT_SONAME, MT_SOOPTS) as the second
argument to getsockmbuf().

Revision 1.116.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:32:44 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.116: +24 -36 lines
Diff to previous 1.116 (colored) to selected 1.106.2.1 (colored)

sync with HEAD

Revision 1.92.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:39 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.92.2.4: +13 -34 lines
Diff to previous 1.92.2.4 (colored) to selected 1.106.2.1 (colored)

sync with head.

Revision 1.107.2.5 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:32 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.107.2.4: +24 -36 lines
Diff to previous 1.107.2.4 (colored) to branchpoint 1.107 (colored) next main 1.108 (colored) to selected 1.106.2.1 (colored)

Sync with head.

Revision 1.115.6.4 / (download) - annotate - [select for diffs], Sun Oct 7 13:25:08 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.115.6.3: +3 -4 lines
Diff to previous 1.115.6.3 (colored) to branchpoint 1.115 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.121.2.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:28:47 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.121: +3 -4 lines
Diff to previous 1.121 (colored) next main 1.122 (colored) to selected 1.106.2.1 (colored)

sync with head.

Revision 1.122 / (download) - annotate - [select for diffs], Fri Oct 5 02:34:58 2007 UTC (16 years, 5 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.121: +3 -4 lines
Diff to previous 1.121 (colored) to selected 1.106.2.1 (colored)

Use getsombuf().

Revision 1.115.6.3 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:07 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.115.6.2: +12 -32 lines
Diff to previous 1.115.6.2 (colored) to branchpoint 1.115 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.121 / (download) - annotate - [select for diffs], Wed Sep 19 19:28:25 2007 UTC (16 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base
Branch point for: yamt-x86pmap
Changes since 1.120: +5 -5 lines
Diff to previous 1.120 (colored) to selected 1.106.2.1 (colored)

minor nits; no code change.

Revision 1.120 / (download) - annotate - [select for diffs], Wed Sep 19 04:33:43 2007 UTC (16 years, 6 months ago) by dyoung
Branch: MAIN
Changes since 1.119: +6 -25 lines
Diff to previous 1.119 (colored) to selected 1.106.2.1 (colored)

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.

Revision 1.115.2.2 / (download) - annotate - [select for diffs], Mon Sep 10 10:56:04 2007 UTC (16 years, 6 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.115.2.1: +5 -6 lines
Diff to previous 1.115.2.1 (colored) to branchpoint 1.115 (colored) next main 1.116 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.119 / (download) - annotate - [select for diffs], Thu Sep 6 01:21:00 2007 UTC (16 years, 6 months ago) by rmind
Branch: MAIN
CVS Tags: nick-csl-alignment-base5
Changes since 1.118: +5 -6 lines
Diff to previous 1.118 (colored) to selected 1.106.2.1 (colored)

do_sys_sendmsg: Plug a possible leak.
From CID: 4535

Revision 1.115.6.2 / (download) - annotate - [select for diffs], Mon Sep 3 16:48:51 2007 UTC (16 years, 6 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.115.6.1: +13 -4 lines
Diff to previous 1.115.6.1 (colored) to branchpoint 1.115 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.92.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:41:19 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.92.2.3: +452 -357 lines
Diff to previous 1.92.2.3 (colored) to selected 1.106.2.1 (colored)

sync with head.

Revision 1.115.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 10:23:04 2007 UTC (16 years, 6 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.115: +25 -37 lines
Diff to previous 1.115 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.118 / (download) - annotate - [select for diffs], Sat Sep 1 17:04:58 2007 UTC (16 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.117: +3 -3 lines
Diff to previous 1.117 (colored) to selected 1.106.2.1 (colored)

Don't error calls to copy socket addresses to userspace when the application
has provided a non-null buffer pointer and a zero length.

Revision 1.117 / (download) - annotate - [select for diffs], Mon Aug 27 20:09:44 2007 UTC (16 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.116: +12 -3 lines
Diff to previous 1.116 (colored) to selected 1.106.2.1 (colored)

ktrace socket control structures (ie msghdr, address etc) using ktrkuser().

Revision 1.107.2.4 / (download) - annotate - [select for diffs], Mon Aug 20 21:27:42 2007 UTC (16 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.107.2.3: +15 -35 lines
Diff to previous 1.107.2.3 (colored) to branchpoint 1.107 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.115.6.1 / (download) - annotate - [select for diffs], Thu Aug 16 11:03:41 2007 UTC (16 years, 7 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.115: +14 -35 lines
Diff to previous 1.115 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.116 / (download) - annotate - [select for diffs], Wed Aug 15 12:07:34 2007 UTC (16 years, 7 months ago) by ad
Branch: MAIN
Branch point for: matt-armv6
Changes since 1.115: +14 -35 lines
Diff to previous 1.115 (colored) to selected 1.106.2.1 (colored)

Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed
on tech-kern.

Revision 1.107.2.3 / (download) - annotate - [select for diffs], Sun Jul 15 13:27:47 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.107.2.2: +290 -219 lines
Diff to previous 1.107.2.2 (colored) to branchpoint 1.107 (colored) to selected 1.106.2.1 (colored)

Sync with head.

Revision 1.115 / (download) - annotate - [select for diffs], Sun Jul 15 08:33:38 2007 UTC (16 years, 8 months ago) by dsl
Branch: MAIN
CVS Tags: nick-csl-alignment-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, jmcneill-pm
Changes since 1.114: +3 -2 lines
Diff to previous 1.114 (colored) to selected 1.106.2.1 (colored)

Remove non-user flags (especially MSG_IOVUSRSPACE) from mp->msg_flags
before passing to so_receive.
This may (or may not) have any effect...

Revision 1.107.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:10:20 2007 UTC (16 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.107: +433 -327 lines
Diff to previous 1.107 (colored) next main 1.108 (colored) to selected 1.106.2.1 (colored)

Sync with head.

Revision 1.114 / (download) - annotate - [select for diffs], Sun Jul 1 18:38:11 2007 UTC (16 years, 9 months ago) by dsl
Branch: MAIN
CVS Tags: mjf-ufs-trans-base
Changes since 1.113: +10 -5 lines
Diff to previous 1.113 (colored) to selected 1.106.2.1 (colored)

Check for SOL_SOCKET when checking for SCM_RIGHTS.

Revision 1.113 / (download) - annotate - [select for diffs], Sun Jun 24 18:00:15 2007 UTC (16 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.112: +285 -219 lines
Diff to previous 1.112 (colored) to selected 1.106.2.1 (colored)

Split sys_getpeername() and sys_getsockname() so they can be called when the
  'name' is wanted in kernel code.
Similarly split sys_accept() and change the split in recvmsg() so that it
  is useful to the compat functions, recvit() is removed and replaced by
  do_sys_recvmsg().
Factor out the code that writes socked names to userspace (from mbuf) to
  avoid replicated code.
Extract the code that writes socket 'control' (CMSG) data out to userspace,
  being more careful about the 'fd' that may exist inside SCM_RIGHTS msgs.
  (they still get lost if some of the latter copyout calls fail).
Since these are new functions, and old LKMs will fail to load.

Revision 1.107.2.2 / (download) - annotate - [select for diffs], Sat Jun 9 23:58:06 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.107.2.1: +127 -84 lines
Diff to previous 1.107.2.1 (colored) to branchpoint 1.107 (colored) to selected 1.106.2.1 (colored)

Sync with head.

Revision 1.107.2.1 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:28 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.107: +38 -46 lines
Diff to previous 1.107 (colored) to selected 1.106.2.1 (colored)

Sync with head.

Revision 1.112 / (download) - annotate - [select for diffs], Sat Jun 2 01:24:34 2007 UTC (16 years, 10 months ago) by enami
Branch: MAIN
Changes since 1.111: +11 -9 lines
Diff to previous 1.111 (colored) to selected 1.106.2.1 (colored)

- Fix obvious typos so that sendto(2) works.
- Wrap lines again.

Revision 1.111 / (download) - annotate - [select for diffs], Fri Jun 1 22:53:52 2007 UTC (16 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.110: +125 -84 lines
Diff to previous 1.110 (colored) to selected 1.106.2.1 (colored)

Split sys_bind() and sys_connect() so that compat code can use common code
  once the 'address' has been copied into an mbuf.
Add extra flags for 'struct msghdr.msg_flags' to indicate that the address
  and control are already in mbufs, and that the uio structure is in userspace
  for sending data, rename sendit() to do_sys_sendmsg() to ensure no old code
  passes in random flags.
Changes to compat code to use new functions - removing some stackgap use.
Fix a 'use after free' in compat_43_sys_recvmsg.
I ***THINK*** the code that converts 'cmsg' formatted data is borked!
svr4_stream.c ought to be generated from svr4_32_stream.c during the build.

Revision 1.106.2.4 / (download) - annotate - [select for diffs], Thu May 17 13:41:48 2007 UTC (16 years, 10 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.106.2.3: +32 -38 lines
Diff to previous 1.106.2.3 (colored) to branchpoint 1.106 (colored) next main 1.107 (colored) to selected 1.106.2.1 (colored)

sync with head.

Revision 1.105.2.1 / (download) - annotate - [select for diffs], Sun May 13 21:23:46 2007 UTC (16 years, 10 months ago) by pavel
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.105: +6 -8 lines
Diff to previous 1.105 (colored) next main 1.106 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by yamt in ticket #621):
	sys/kern/uipc_syscalls.c: revision 1.108-1.109 via patch
	sys/kern/uipc_socket.c: revision 1.139 via patch
- soabort: don't leak a socket on error.
- add an assertion.

sys_accept: don't leak a socket on error.

sys_accept: fix usecount botch and double soclose in rev.1.108.

Revision 1.110 / (download) - annotate - [select for diffs], Sun May 13 20:24:21 2007 UTC (16 years, 10 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.109: +32 -38 lines
Diff to previous 1.109 (colored) to selected 1.106.2.1 (colored)

Fallout from caddr_t deletion - remove a load of redundant (void *) casts.

Revision 1.106.2.3 / (download) - annotate - [select for diffs], Mon May 7 10:55:49 2007 UTC (16 years, 10 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.106.2.2: +7 -9 lines
Diff to previous 1.106.2.2 (colored) to branchpoint 1.106 (colored) to selected 1.106.2.1 (colored)

sync with head.

Revision 1.109 / (download) - annotate - [select for diffs], Wed Apr 18 10:20:02 2007 UTC (16 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.108: +5 -7 lines
Diff to previous 1.108 (colored) to selected 1.106.2.1 (colored)

sys_accept: fix usecount botch and double soclose in rev.1.108.

Revision 1.106.2.2 / (download) - annotate - [select for diffs], Sun Apr 15 16:03:52 2007 UTC (16 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.106.2.1: +3 -3 lines
Diff to previous 1.106.2.1 (colored) to branchpoint 1.106 (colored)

sync with head.

Revision 1.108 / (download) - annotate - [select for diffs], Sun Apr 15 05:25:02 2007 UTC (16 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.107: +3 -3 lines
Diff to previous 1.107 (colored) to selected 1.106.2.1 (colored)

sys_accept: don't leak a socket on error.

Revision 1.106.2.1 / (download) - annotate - [selected], Mon Mar 12 05:58:45 2007 UTC (17 years ago) by rmind
Branch: yamt-idlelwp
Changes since 1.106: +45 -45 lines
Diff to previous 1.106 (colored)

Sync with HEAD.

Revision 1.107 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:11 2007 UTC (17 years ago) by christos
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.106: +45 -45 lines
Diff to previous 1.106 (colored) to selected 1.106.2.1 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.92.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:20 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.92.2.2: +6 -4 lines
Diff to previous 1.92.2.2 (colored) to selected 1.106.2.1 (colored)

sync with head.

Revision 1.106 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:32 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.105: +6 -4 lines
Diff to previous 1.105 (colored) to selected 1.106.2.1 (colored)

Merge newlock2 to head.

Revision 1.102.2.4 / (download) - annotate - [select for diffs], Tue Jan 30 13:51:41 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.102.2.3: +2 -3 lines
Diff to previous 1.102.2.3 (colored) to branchpoint 1.102 (colored) next main 1.103 (colored) to selected 1.106.2.1 (colored)

Remove support for SA. Ok core@.

Revision 1.102.2.3 / (download) - annotate - [select for diffs], Tue Jan 16 07:10:07 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.102.2.2: +4 -4 lines
Diff to previous 1.102.2.2 (colored) to branchpoint 1.102 (colored) to selected 1.106.2.1 (colored)

Fix locking botches.

Revision 1.92.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:07 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.92.2.1: +25 -33 lines
Diff to previous 1.92.2.1 (colored) to selected 1.106.2.1 (colored)

sync with head.

Revision 1.102.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:46 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.102.4.1: +13 -13 lines
Diff to previous 1.102.4.1 (colored) to branchpoint 1.102 (colored) next main 1.103 (colored) to selected 1.106.2.1 (colored)

sync with head.

Revision 1.102.2.2 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:23 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.102.2.1: +3 -3 lines
Diff to previous 1.102.2.1 (colored) to branchpoint 1.102 (colored) to selected 1.106.2.1 (colored)

Sync with head.

Revision 1.105 / (download) - annotate - [select for diffs], Wed Nov 1 10:17:59 2006 UTC (17 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, newlock2-nbase, newlock2-base, netbsd-4-base
Branch point for: netbsd-4
Changes since 1.104: +12 -12 lines
Diff to previous 1.104 (colored) to selected 1.106.2.1 (colored)

remove some __unused from function parameters.

Revision 1.86.2.3 / (download) - annotate - [select for diffs], Sun Oct 29 13:03:51 2006 UTC (17 years, 5 months ago) by tron
Branch: netbsd-2-0
Changes since 1.86.2.2: +1 -1 lines
Diff to previous 1.86.2.2 (colored) to branchpoint 1.86 (colored) next main 1.87 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by adrianp in ticket #10740):
	sys/kern/uipc_syscalls.c: revision 1.104
PR/34873: Ryo Shimizu: sendmsg() can cause kernel panic
Patch applied, thanks!

Revision 1.86.2.1.4.2 / (download) - annotate - [select for diffs], Sun Oct 29 13:03:49 2006 UTC (17 years, 5 months ago) by tron
Branch: netbsd-2-1
Changes since 1.86.2.1.4.1: +1 -1 lines
Diff to previous 1.86.2.1.4.1 (colored) to branchpoint 1.86.2.1 (colored) next main 1.86.2.2 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by adrianp in ticket #10740):
	sys/kern/uipc_syscalls.c: revision 1.104
PR/34873: Ryo Shimizu: sendmsg() can cause kernel panic
Patch applied, thanks!

Revision 1.86.2.1.2.2 / (download) - annotate - [select for diffs], Sun Oct 29 13:03:46 2006 UTC (17 years, 5 months ago) by tron
Branch: netbsd-2
Changes since 1.86.2.1.2.1: +1 -1 lines
Diff to previous 1.86.2.1.2.1 (colored) to branchpoint 1.86.2.1 (colored) next main 1.86.2.2 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by adrianp in ticket #10740):
	sys/kern/uipc_syscalls.c: revision 1.104
PR/34873: Ryo Shimizu: sendmsg() can cause kernel panic
Patch applied, thanks!

Revision 1.90.2.6 / (download) - annotate - [select for diffs], Tue Oct 24 16:59:08 2006 UTC (17 years, 5 months ago) by ghen
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-1-RELEASE, netbsd-3-1
Changes since 1.90.2.5: +1 -1 lines
Diff to previous 1.90.2.5 (colored) to branchpoint 1.90 (colored) next main 1.91 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by elad in ticket #1566):
	sys/kern/uipc_syscalls.c: revision 1.104
PR/34873: Ryo Shimizu: sendmsg() can cause kernel panic
Patch applied, thanks!

Revision 1.90.2.4.2.2 / (download) - annotate - [select for diffs], Tue Oct 24 16:59:02 2006 UTC (17 years, 5 months ago) by ghen
Branch: netbsd-3-0
CVS Tags: netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE
Changes since 1.90.2.4.2.1: +3 -3 lines
Diff to previous 1.90.2.4.2.1 (colored) to branchpoint 1.90.2.4 (colored) next main 1.90.2.5 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by elad in ticket #1566):
	sys/kern/uipc_syscalls.c: revision 1.104
PR/34873: Ryo Shimizu: sendmsg() can cause kernel panic
Patch applied, thanks!

Revision 1.104 / (download) - annotate - [select for diffs], Mon Oct 23 10:37:22 2006 UTC (17 years, 5 months ago) by elad
Branch: MAIN
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored) to selected 1.106.2.1 (colored)

PR/34873: Ryo Shimizu: sendmsg() can cause kernel panic

Patch applied, thanks!

Revision 1.102.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:11 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.102: +12 -12 lines
Diff to previous 1.102 (colored) to selected 1.106.2.1 (colored)

sync with head

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Fri Oct 20 21:33:55 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.102: +6 -3 lines
Diff to previous 1.102 (colored) to selected 1.106.2.1 (colored)

Acquire proclist_lock / proclist_mutex when sending signals.

Revision 1.103 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:19 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.102: +12 -12 lines
Diff to previous 1.102 (colored) to selected 1.106.2.1 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.96.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:17 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.96: +31 -38 lines
Diff to previous 1.96 (colored) next main 1.97 (colored) to selected 1.106.2.1 (colored)

sync with head

Revision 1.97.2.3 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:22 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.97.2.2: +8 -6 lines
Diff to previous 1.97.2.2 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored) to selected 1.106.2.1 (colored)

sync with head.

Revision 1.86.2.2 / (download) - annotate - [select for diffs], Mon Aug 28 14:54:26 2006 UTC (17 years, 7 months ago) by tron
Branch: netbsd-2-0
Changes since 1.86.2.1: +6 -4 lines
Diff to previous 1.86.2.1 (colored) to branchpoint 1.86 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by seanb in ticket #10675):
	sys/kern/uipc_syscalls.c: revision 1.102
Don't leave a dangling socket (no associated struct file) if
user supplied a bad name or anamelen parameter to accept(2).
If bad paramaters were suplied and a copyout() failed, the
struct file was cleaned up but not the associated socket.  This
could leave sockets in CLOSE_WAIT that could never be closed.

Revision 1.86.2.1.4.1 / (download) - annotate - [select for diffs], Mon Aug 28 14:54:00 2006 UTC (17 years, 7 months ago) by tron
Branch: netbsd-2-1
Changes since 1.86.2.1: +6 -4 lines
Diff to previous 1.86.2.1 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by seanb in ticket #10675):
	sys/kern/uipc_syscalls.c: revision 1.102
Don't leave a dangling socket (no associated struct file) if
user supplied a bad name or anamelen parameter to accept(2).
If bad paramaters were suplied and a copyout() failed, the
struct file was cleaned up but not the associated socket.  This
could leave sockets in CLOSE_WAIT that could never be closed.

Revision 1.86.2.1.2.1 / (download) - annotate - [select for diffs], Mon Aug 28 14:51:19 2006 UTC (17 years, 7 months ago) by tron
Branch: netbsd-2
Changes since 1.86.2.1: +6 -4 lines
Diff to previous 1.86.2.1 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by seanb in ticket #10675):
	sys/kern/uipc_syscalls.c: revision 1.102
Don't leave a dangling socket (no associated struct file) if
user supplied a bad name or anamelen parameter to accept(2).
If bad paramaters were suplied and a copyout() failed, the
struct file was cleaned up but not the associated socket.  This
could leave sockets in CLOSE_WAIT that could never be closed.

Revision 1.90.2.4.2.1 / (download) - annotate - [select for diffs], Fri Aug 25 11:34:02 2006 UTC (17 years, 7 months ago) by ghen
Branch: netbsd-3-0
Changes since 1.90.2.4: +8 -6 lines
Diff to previous 1.90.2.4 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by seanb in ticket #1472):
	sys/kern/uipc_syscalls.c: revision 1.102
Don't leave a dangling socket (no associated struct file) if
user supplied a bad name or anamelen parameter to accept(2).
If bad paramaters were suplied and a copyout() failed, the
struct file was cleaned up but not the associated socket.  This
could leave sockets in CLOSE_WAIT that could never be closed.

Revision 1.90.2.5 / (download) - annotate - [select for diffs], Fri Aug 25 11:32:42 2006 UTC (17 years, 7 months ago) by ghen
Branch: netbsd-3
CVS Tags: netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2
Changes since 1.90.2.4: +8 -6 lines
Diff to previous 1.90.2.4 (colored) to branchpoint 1.90 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by seanb in ticket #1472):
	sys/kern/uipc_syscalls.c: revision 1.102
Don't leave a dangling socket (no associated struct file) if
user supplied a bad name or anamelen parameter to accept(2).
If bad paramaters were suplied and a copyout() failed, the
struct file was cleaned up but not the associated socket.  This
could leave sockets in CLOSE_WAIT that could never be closed.

Revision 1.101.2.1 / (download) - annotate - [select for diffs], Thu Aug 24 12:16:05 2006 UTC (17 years, 7 months ago) by tron
Branch: abandoned-netbsd-4
Changes since 1.101: +8 -6 lines
Diff to previous 1.101 (colored) next main 1.102 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by seanb in ticket #47):
	sys/kern/uipc_syscalls.c: revision 1.102
Don't leave a dangling socket (no associated struct file) if
user supplied a bad name or anamelen parameter to accept(2).
If bad paramaters were suplied and a copyout() failed, the
struct file was cleaned up but not the associated socket.  This
could leave sockets in CLOSE_WAIT that could never be closed.

Revision 1.102 / (download) - annotate - [select for diffs], Tue Aug 22 13:39:48 2006 UTC (17 years, 7 months ago) by seanb
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.101: +8 -6 lines
Diff to previous 1.101 (colored) to selected 1.106.2.1 (colored)

Don't leave a dangling socket (no associated struct file) if
user supplied a bad name or anamelen parameter to accept(2).
If bad paramaters were suplied and a copyout() failed, the
struct file was cleaned up but not the associated socket.  This
could leave sockets in CLOSE_WAIT that could never be closed.

Revision 1.97.2.2 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:47 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.97.2.1: +18 -28 lines
Diff to previous 1.97.2.1 (colored) to branchpoint 1.97 (colored) to selected 1.106.2.1 (colored)

sync with head

Revision 1.101 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:11 2006 UTC (17 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base
Branch point for: abandoned-netbsd-4
Changes since 1.100: +16 -26 lines
Diff to previous 1.100 (colored) to selected 1.106.2.1 (colored)

Use the LWP cached credentials where sane.

Revision 1.99.4.1 / (download) - annotate - [select for diffs], Thu Jul 13 17:49:51 2006 UTC (17 years, 8 months ago) by gdamore
Branch: gdamore-uart
Changes since 1.99: +4 -4 lines
Diff to previous 1.99 (colored) next main 1.100 (colored) to selected 1.106.2.1 (colored)

Merge from HEAD.

Revision 1.100 / (download) - annotate - [select for diffs], Mon Jun 26 21:23:59 2006 UTC (17 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.99: +4 -4 lines
Diff to previous 1.99 (colored) to selected 1.106.2.1 (colored)

version the socket(2) syscall.  for compat30 socket, we use
EPROTONOSUPPORT instead of EAFNOSUPPORT.

from pavel@ with a little bit of clean up from myself.

XXX: netbsd32 (and perhaps other emulations) should be able
XXX: to call the standard socket calls for this i think, but
XXX: revisit this at another time.

Revision 1.92.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:39 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.92: +64 -66 lines
Diff to previous 1.92 (colored) to selected 1.106.2.1 (colored)

sync with head.

Revision 1.96.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:10 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.96.6.1: +5 -4 lines
Diff to previous 1.96.6.1 (colored) to branchpoint 1.96 (colored) next main 1.97 (colored) to selected 1.106.2.1 (colored)

Sync with head.

Revision 1.97.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:41 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.97: +5 -4 lines
Diff to previous 1.97 (colored) next main 1.98 (colored) to selected 1.106.2.1 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.97.2.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:42 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.97: +5 -4 lines
Diff to previous 1.97 (colored) to selected 1.106.2.1 (colored)

sync with head.

Revision 1.99 / (download) - annotate - [select for diffs], Tue May 16 21:00:02 2006 UTC (17 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, chap-midi-nbase, chap-midi-base, chap-midi
Branch point for: gdamore-uart
Changes since 1.98: +4 -3 lines
Diff to previous 1.98 (colored) to selected 1.106.2.1 (colored)

Don't set mature an fd that has been ffree'd

Revision 1.97.4.1 / (download) - annotate - [select for diffs], Thu May 11 23:30:15 2006 UTC (17 years, 10 months ago) by elad
Branch: elad-kernelauth
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored) next main 1.98 (colored) to selected 1.106.2.1 (colored)

sync with head

Revision 1.98 / (download) - annotate - [select for diffs], Thu May 11 15:49:44 2006 UTC (17 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored) to selected 1.106.2.1 (colored)

Add MSG_NOSIGNAL (from FreeBSD)

Revision 1.96.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:59 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.96: +6 -6 lines
Diff to previous 1.96 (colored) to selected 1.106.2.1 (colored)

Sync with head.

Revision 1.97 / (download) - annotate - [select for diffs], Wed Mar 1 12:38:21 2006 UTC (18 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.96: +6 -6 lines
Diff to previous 1.96 (colored) to selected 1.106.2.1 (colored)

merge yamt-uio_vmspace branch.

- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.

Revision 1.96.2.1 / (download) - annotate - [select for diffs], Sat Dec 31 11:14:01 2005 UTC (18 years, 3 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.96: +6 -6 lines
Diff to previous 1.96 (colored) next main 1.97 (colored) to selected 1.106.2.1 (colored)

uio_segflg/uio_lwp -> uio_vmspace.

Revision 1.96 / (download) - annotate - [select for diffs], Mon Dec 26 18:45:27 2005 UTC (18 years, 3 months ago) by perry
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored) to selected 1.106.2.1 (colored)

u_intN_t -> uintN_t

Revision 1.95 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:30 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.94: +55 -59 lines
Diff to previous 1.94 (colored) to selected 1.106.2.1 (colored)

merge ktrace-lwp.

Revision 1.81.2.8 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:45 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.81.2.7: +47 -12 lines
Diff to previous 1.81.2.7 (colored) next main 1.82 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD. Here we go again...

Revision 1.90.2.4 / (download) - annotate - [select for diffs], Fri Sep 9 14:17:44 2005 UTC (18 years, 6 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RC1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-1-RELEASE
Branch point for: netbsd-3-0
Changes since 1.90.2.3: +4 -3 lines
Diff to previous 1.90.2.3 (colored) to branchpoint 1.90 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by martin in ticket #746):
	sys/kern/uipc_syscalls.c: revision 1.94
In adjust_rights() Use CMSG_SPACE() to calculate the number of
filedescriptors passed in this message - the counterpart in
unp_externalize does this as well.
Note that CMSG_SPACE(0) does not make sense, since it does not invoke
the alignment magic - so use CMSG_SPACE(sizeof(int)) and adjust the
calculated total later.
This fixes the postfix conection cache for 64bit platforms. Previously
the number of passed filed descriptors (nfds) would have been
calculeted too high, causing the fdrelease() of uninitialized junk.

Revision 1.90.2.3 / (download) - annotate - [select for diffs], Fri Sep 9 14:17:02 2005 UTC (18 years, 6 months ago) by tron
Branch: netbsd-3
Changes since 1.90.2.2: +4 -4 lines
Diff to previous 1.90.2.2 (colored) to branchpoint 1.90 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by martin in ticket #746):
	sys/kern/uipc_syscalls.c: revision 1.93
minor knf tweak

Revision 1.90.2.2 / (download) - annotate - [select for diffs], Fri Sep 9 14:16:17 2005 UTC (18 years, 6 months ago) by tron
Branch: netbsd-3
Changes since 1.90.2.1: +38 -4 lines
Diff to previous 1.90.2.1 (colored) to branchpoint 1.90 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by martin in ticket #746):
	sys/kern/uipc_syscalls.c: revision 1.92
Close additional file descriptors if we set MSG_CTRUNC in a SCM_RIGHTS
message. From der Mouse in PR kern/30370.

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Fri Sep 9 14:15:24 2005 UTC (18 years, 6 months ago) by tron
Branch: netbsd-3
Changes since 1.90: +10 -10 lines
Diff to previous 1.90 (colored) to selected 1.106.2.1 (colored)

Pull up following revision(s) (requested by martin in ticket #746):
	sys/kern/uipc_syscalls.c: revision 1.91
- add const.
- remove unnecessary casts.
- add __UNCONST casts and mark them with XXXUNCONST as necessary.

Revision 1.94 / (download) - annotate - [select for diffs], Sat Sep 3 22:48:35 2005 UTC (18 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.93: +4 -3 lines
Diff to previous 1.93 (colored) to selected 1.106.2.1 (colored)

In adjust_rights() Use CMSG_SPACE() to calculate the number of
filedescriptors passed in this message - the counterpart in
unp_externalize does this as well.

Note that CMSG_SPACE(0) does not make sense, since it does not invoke
the alignment magic - so use CMSG_SPACE(sizeof(int)) and adjust the
calculated total later.

This fixes the postfix conection cache for 64bit platforms. Previously
the number of passed filed descriptors (nfds) would have been
calculeted too high, causing the fdrelease() of uninitialized junk.

Revision 1.93 / (download) - annotate - [select for diffs], Sat Sep 3 19:44:20 2005 UTC (18 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.92: +4 -4 lines
Diff to previous 1.92 (colored) to selected 1.106.2.1 (colored)

minor knf tweak

Revision 1.92 / (download) - annotate - [select for diffs], Mon May 30 11:21:11 2005 UTC (18 years, 10 months ago) by martin
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.91: +38 -4 lines
Diff to previous 1.91 (colored) to selected 1.106.2.1 (colored)

Close additional file descriptors if we set MSG_CTRUNC in a SCM_RIGHTS
message. From der Mouse in PR kern/30370.

Revision 1.91 / (download) - annotate - [select for diffs], Sun May 29 22:24:15 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.90: +10 -10 lines
Diff to previous 1.90 (colored) to selected 1.106.2.1 (colored)

- add const.
- remove unnecessary casts.
- add __UNCONST casts and mark them with XXXUNCONST as necessary.

Revision 1.89.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:24 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.89: +4 -4 lines
Diff to previous 1.89 (colored) next main 1.90 (colored) to selected 1.106.2.1 (colored)

sync with -current

Revision 1.89.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:12 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.89: +4 -4 lines
Diff to previous 1.89 (colored) next main 1.90 (colored) to selected 1.106.2.1 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.81.2.7 / (download) - annotate - [select for diffs], Fri Mar 4 16:52:03 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.81.2.6: +4 -4 lines
Diff to previous 1.81.2.6 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.90 / (download) - annotate - [select for diffs], Sat Feb 26 21:34:55 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, kent-audio2-base
Branch point for: netbsd-3
Changes since 1.89: +4 -4 lines
Diff to previous 1.89 (colored) to selected 1.106.2.1 (colored)

nuke trailing whitespace

Revision 1.81.2.6 / (download) - annotate - [select for diffs], Sat Dec 18 09:32:35 2004 UTC (19 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.81.2.5: +3 -3 lines
Diff to previous 1.81.2.5 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.89 / (download) - annotate - [select for diffs], Tue Nov 30 04:25:44 2004 UTC (19 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.88: +3 -3 lines
Diff to previous 1.88 (colored) to selected 1.106.2.1 (colored)

Cloning cleanup:
1. make fileops const
2. add 2 new negative errno's to `officially' support the cloning hack:
    - EDUPFD (used to overload ENODEV)
    - EMOVEFD (used to overload ENXIO)
3. Created an fdclone() function to encapsulate the operations needed for
   EMOVEFD, and made all cloners use it.
4. Centralize the local noop/badop fileops functions to:
   fnullop_fcntl, fnullop_poll, fnullop_kqfilter, fbadop_stat

Revision 1.81.2.5 / (download) - annotate - [select for diffs], Fri Nov 12 16:27:03 2004 UTC (19 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.81.2.4: +4 -4 lines
Diff to previous 1.81.2.4 (colored) to selected 1.106.2.1 (colored)

Adapt to branch.

Revision 1.81.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:17 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.81.2.3: +48 -52 lines
Diff to previous 1.81.2.3 (colored) to selected 1.106.2.1 (colored)

Fix the sync with head I botched.

Revision 1.81.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:04 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.81.2.2: +52 -48 lines
Diff to previous 1.81.2.2 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.81.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:58 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.81.2.1: +21 -24 lines
Diff to previous 1.81.2.1 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD

Revision 1.88 / (download) - annotate - [select for diffs], Sat May 22 22:52:13 2004 UTC (19 years, 10 months ago) by jonathan
Branch: MAIN
Changes since 1.87: +9 -9 lines
Diff to previous 1.87 (colored) to selected 1.106.2.1 (colored)

Eliminate several uses of `curproc' from the socket-layer code and from NFS.

Add a new explicit `struct proc *p' argument to socreate(), sosend().
Use that argument instead of curproc. Follow-on changes to pass that
argument to socreate(), sosend(), and (*so->so_send)() calls.
These changes reviewed and independently recoded  by Matt Thomas.

Changes to soreceive() and (*dom->dom_exernalize() from Matt Thomas:
pass soreceive()'s struct uio* uio->uio_procp to unp_externalize().
Eliminate curproc from unp_externalize.   Also, now soreceive() uses
its uio->uio_procp value, pass that same value downward to
((pr->pru_usrreq)() calls for consistency, instead of (struct proc * )0.

Similar changes in sys/nfs to eliminate (most) uses of curproc,
either via the req-> r_procp field of a struct nfsreq *req argument,
or by passing down new explicit struct proc * arguments.

Reviewed by: Matt Thomas, posted to tech-kern.
NB: The (*pr->pru_usrreq)() change should be tested on more (all!) protocols.

Revision 1.86.2.1 / (download) - annotate - [select for diffs], Thu May 20 09:50:51 2004 UTC (19 years, 10 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2-1, netbsd-2
Changes since 1.86: +10 -5 lines
Diff to previous 1.86 (colored) to selected 1.106.2.1 (colored)

Pull up revision 1.87 (requested by ragge in ticket #354):
Fix connect() "bug": If connect() is interrupted by a signal, the connection
attempt is terminated,  so if a process needs frequent timer interrupts
it can't ever connect() to a machine far away.
Bug found by Erik Lundgren, bugfix (for the same problem) is similar to
the way FreeBSD solved the same problem.
As a side effect, the new connect() behaviour conformes to Posix.

Revision 1.87 / (download) - annotate - [select for diffs], Tue May 18 11:31:49 2004 UTC (19 years, 10 months ago) by ragge
Branch: MAIN
Changes since 1.86: +10 -5 lines
Diff to previous 1.86 (colored) to selected 1.106.2.1 (colored)

Fix connect() "bug": If connect() is interrupted by a signal, the connection
attempt is terminated,  so if a process needs frequent timer interrupts
it can't ever connect() to a machine far away.

Bug found by Erik Lundgren, bugfix (for the same problem) is similar to
the way FreeBSD solved the same problem.

As a side effect, the new connect() behaviour conformes to Posix.

Revision 1.86 / (download) - annotate - [select for diffs], Sat Nov 29 10:02:42 2003 UTC (20 years, 4 months ago) by matt
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.85: +1 -1 lines
Diff to previous 1.85 (colored) to selected 1.106.2.1 (colored)

Restore a change that made AF_LOCAL sockets block on connect(2) until
accepted.  However, this time this behavor is not the default.  Instead
it must enabled by using the LOCAL_CONNWAIT socket option on either the
connecting or accepting socket.

Revision 1.85 / (download) - annotate - [select for diffs], Sat Nov 29 06:09:47 2003 UTC (20 years, 4 months ago) by perry
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored) to selected 1.106.2.1 (colored)

Revert a change that altered the semantics of AF_LOCAL sockets. Sadly
this made us API incompatible with other Unixes.

Revision 1.84 / (download) - annotate - [select for diffs], Thu Nov 13 03:09:30 2003 UTC (20 years, 4 months ago) by chs
Branch: MAIN
Changes since 1.83: +4 -8 lines
Diff to previous 1.83 (colored) to selected 1.106.2.1 (colored)

eliminate uvm_useracc() in favor of checking the return value of
copyin() or copyout().

uvm_useracc() tells us whether the mapping permissions allow access to
the desired part of an address space, and many callers assume that
this is the same as knowing whether an attempt to access that part of
the address space will succeed.  however, access to user space can
fail for reasons other than insufficient permission, most notably that
paging in any non-resident data can fail due to i/o errors.  most of
the callers of uvm_useracc() make the above incorrect assumption.  the
rest are all misguided optimizations, which optimize for the case
where an operation will fail.  we'd rather optimize for operations
succeeding, in which case we should just attempt the access and handle
failures due to insufficient permissions the same way we handle i/o
errors.  since there appear to be no good uses of uvm_useracc(), we'll
just remove it.

Revision 1.83 / (download) - annotate - [select for diffs], Thu Sep 4 04:33:49 2003 UTC (20 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored) to selected 1.106.2.1 (colored)

Adapt to the new calling conventions of unp_connect2

Revision 1.82 / (download) - annotate - [select for diffs], Thu Aug 7 16:32:00 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.81: +3 -7 lines
Diff to previous 1.81 (colored) to selected 1.106.2.1 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.81.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:45 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.81: +43 -47 lines
Diff to previous 1.81 (colored) to selected 1.106.2.1 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.81 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:31 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.80: +45 -41 lines
Diff to previous 1.80 (colored) to selected 1.106.2.1 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.80 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:58 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.79: +43 -47 lines
Diff to previous 1.79 (colored) to selected 1.106.2.1 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.79 / (download) - annotate - [select for diffs], Sat Apr 5 16:54:34 2003 UTC (20 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.78: +5 -3 lines
Diff to previous 1.78 (colored) to selected 1.106.2.1 (colored)

PR/21030: Naoto Shimazaki: fcntl to accepted socket does not work properly

Revision 1.78 / (download) - annotate - [select for diffs], Wed Feb 26 18:22:10 2003 UTC (21 years, 1 month ago) by matt
Branch: MAIN
Changes since 1.77: +2 -7 lines
Diff to previous 1.77 (colored) to selected 1.106.2.1 (colored)

Remove leftover MBUFTRACE asserts.

Revision 1.77 / (download) - annotate - [select for diffs], Wed Feb 26 14:36:43 2003 UTC (21 years, 1 month ago) by drochner
Branch: MAIN
Changes since 1.76: +7 -7 lines
Diff to previous 1.76 (colored) to selected 1.106.2.1 (colored)

deactivate MBUFTRACE related KASSERT()s in the !MBUFTRACE case

Revision 1.76 / (download) - annotate - [select for diffs], Wed Feb 26 06:31:11 2003 UTC (21 years, 1 month ago) by matt
Branch: MAIN
Changes since 1.75: +24 -11 lines
Diff to previous 1.75 (colored) to selected 1.106.2.1 (colored)

Add MBUFTRACE kernel option.
Do a little mbuf rework while here.  Change all uses of MGET*(*, M_WAIT, *)
to m_get*(M_WAIT, *).  These are not performance critical and making them
call m_get saves considerable space.  Add m_clget analogue of MCLGET and
make corresponding change for M_WAIT uses.
Modify netinet, gem, fxp, tulip, nfs to support MBUFTRACE.
Begin to change netstat to use sysctl.

Revision 1.75 / (download) - annotate - [select for diffs], Sat Jan 18 10:06:36 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.74: +57 -23 lines
Diff to previous 1.74 (colored) to selected 1.106.2.1 (colored)

Merge the nathanw_sa branch.

Revision 1.52.4.4 / (download) - annotate - [select for diffs], Sun Dec 15 16:03:09 2002 UTC (21 years, 3 months ago) by he
Branch: netbsd-1-5
Changes since 1.52.4.3: +1 -5 lines
Diff to previous 1.52.4.3 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored) to selected 1.106.2.1 (colored)

Revert previous pullup (requested by itojun):
  Apparently, there is no need to check return from MEXTMALLOC().

Revision 1.52.4.3 / (download) - annotate - [select for diffs], Sun Dec 15 15:59:57 2002 UTC (21 years, 3 months ago) by he
Branch: netbsd-1-5
Changes since 1.52.4.2: +5 -1 lines
Diff to previous 1.52.4.2 (colored) to branchpoint 1.52 (colored) to selected 1.106.2.1 (colored)

Pull up revision 1.72 (requested by itojun):
  MEXTMALLOC() can fail even if M_WAITOK, if arg is too big for
  malloc().

Revision 1.57.2.13 / (download) - annotate - [select for diffs], Wed Dec 11 06:43:11 2002 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.57.2.12: +1 -1 lines
Diff to previous 1.57.2.12 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.74 / (download) - annotate - [select for diffs], Tue Nov 26 18:44:36 2002 UTC (21 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored) to selected 1.106.2.1 (colored)

si_ -> sel_ to avoid conflicts with siginfo.

Revision 1.73 / (download) - annotate - [select for diffs], Mon Nov 25 08:31:59 2002 UTC (21 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.72: +2 -6 lines
Diff to previous 1.72 (colored) to selected 1.106.2.1 (colored)

no need for error check after MEXTMALLOC - jdolecek

Revision 1.72 / (download) - annotate - [select for diffs], Mon Nov 25 06:32:37 2002 UTC (21 years, 4 months ago) by itojun
Branch: MAIN
Changes since 1.71: +6 -2 lines
Diff to previous 1.71 (colored) to selected 1.106.2.1 (colored)

MEXTMALLOC() can fail even if M_WAITOK, if arg is too big for malloc().

Revision 1.57.2.12 / (download) - annotate - [select for diffs], Mon Nov 11 22:14:09 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.11: +5 -0 lines
Diff to previous 1.57.2.11 (colored) to branchpoint 1.57 (colored) to selected 1.106.2.1 (colored)

Catch up to -current

Revision 1.71 / (download) - annotate - [select for diffs], Wed Oct 23 09:14:29 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: MAIN
CVS Tags: kqueue-aftermerge
Changes since 1.70: +7 -2 lines
Diff to previous 1.70 (colored) to selected 1.106.2.1 (colored)

merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe

Revision 1.64.2.6 / (download) - annotate - [select for diffs], Thu Oct 10 18:43:19 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.64.2.5: +5 -3 lines
Diff to previous 1.64.2.5 (colored) next main 1.65 (colored) to selected 1.106.2.1 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.57.2.11 / (download) - annotate - [select for diffs], Tue Sep 17 21:22:25 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.10: +3 -3 lines
Diff to previous 1.57.2.10 (colored) to branchpoint 1.57 (colored) to selected 1.106.2.1 (colored)

Catch up to -current.

Revision 1.70 / (download) - annotate - [select for diffs], Wed Sep 4 01:32:44 2002 UTC (21 years, 6 months ago) by matt
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) to selected 1.106.2.1 (colored)

Use the queue macros from <sys/queue.h> instead of referring to the queue
members directly.  Use *_FOREACH whenever possible.

Revision 1.57.2.10 / (download) - annotate - [select for diffs], Fri Jul 12 01:40:23 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.9: +2 -3 lines
Diff to previous 1.57.2.9 (colored) to branchpoint 1.57 (colored) to selected 1.106.2.1 (colored)

No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.64.2.5 / (download) - annotate - [select for diffs], Sun Jun 23 17:49:41 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.64.2.4: +8 -5 lines
Diff to previous 1.64.2.4 (colored) to selected 1.106.2.1 (colored)

catch up with -current on kqueue branch

Revision 1.57.2.9 / (download) - annotate - [select for diffs], Thu Jun 20 23:01:10 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.8: +7 -7 lines
Diff to previous 1.57.2.8 (colored) to branchpoint 1.57 (colored) to selected 1.106.2.1 (colored)

Rename the local variable "l" to "len" so as not to shadow the LWP
argument to the syscall sys_setsockopt().

Revision 1.68.8.1 / (download) - annotate - [select for diffs], Thu Jun 20 16:02:22 2002 UTC (21 years, 9 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.68: +8 -5 lines
Diff to previous 1.68 (colored) next main 1.69 (colored) to selected 1.106.2.1 (colored)

catch up with -current.

Revision 1.57.2.8 / (download) - annotate - [select for diffs], Thu Jun 20 03:47:26 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.7: +8 -5 lines
Diff to previous 1.57.2.7 (colored) to branchpoint 1.57 (colored) to selected 1.106.2.1 (colored)

Catch up to -current.

Revision 1.69 / (download) - annotate - [select for diffs], Fri May 31 20:33:11 2002 UTC (21 years, 10 months ago) by itojun
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.68: +8 -5 lines
Diff to previous 1.68 (colored) to selected 1.106.2.1 (colored)

support setsockopt() with larger data (up to MCLBYTES).
From: Hitoshi Asaeda <Hitoshi.Asaeda@sophia.inria.fr>

Revision 1.57.2.7 / (download) - annotate - [select for diffs], Wed May 29 21:33:17 2002 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.6: +3 -2 lines
Diff to previous 1.57.2.6 (colored) to branchpoint 1.57 (colored) to selected 1.106.2.1 (colored)

#include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.

(Behold the Power of Ed)

Revision 1.64.2.4 / (download) - annotate - [select for diffs], Sat Mar 16 16:01:53 2002 UTC (22 years ago) by jdolecek
Branch: kqueue
Changes since 1.64.2.3: +5 -5 lines
Diff to previous 1.64.2.3 (colored) to selected 1.106.2.1 (colored)

Catch up with -current.

Revision 1.57.2.6 / (download) - annotate - [select for diffs], Thu Feb 28 04:14:48 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.5: +5 -5 lines
Diff to previous 1.57.2.5 (colored) to branchpoint 1.57 (colored) to selected 1.106.2.1 (colored)

Catch up to -current.

Revision 1.68 / (download) - annotate - [select for diffs], Mon Feb 11 18:11:43 2002 UTC (22 years, 1 month ago) by jdolecek
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.67: +5 -5 lines
Diff to previous 1.67 (colored) to selected 1.106.2.1 (colored)

Switch default for pipes to the faster John S. Dyson's implementation.
Old, socketpair-based ones are available with option PIPE_SOCKETPAIR.

Revision 1.64.2.3 / (download) - annotate - [select for diffs], Thu Jan 10 20:00:15 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.64.2.2: +5 -2 lines
Diff to previous 1.64.2.2 (colored) to selected 1.106.2.1 (colored)

Sync kqueue branch with -current.

Revision 1.57.2.5 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:47 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.4: +4 -1 lines
Diff to previous 1.57.2.4 (colored) to branchpoint 1.57 (colored) to selected 1.106.2.1 (colored)

Catch up to -current.

Revision 1.66.2.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:59 2001 UTC (22 years, 4 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.66: +4 -1 lines
Diff to previous 1.66 (colored) next main 1.67 (colored) to selected 1.106.2.1 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.67 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:33 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.66: +4 -1 lines
Diff to previous 1.66 (colored) to selected 1.106.2.1 (colored)

add RCSIDs

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:46:57 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.65: +2 -2 lines
Diff to previous 1.65 (colored) next main 1.66 (colored) to selected 1.106.2.1 (colored)

Catch up with -current.

Revision 1.57.2.4 / (download) - annotate - [select for diffs], Fri Sep 21 22:36:27 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.3: +2 -2 lines
Diff to previous 1.57.2.3 (colored) to branchpoint 1.57 (colored) to selected 1.106.2.1 (colored)

Catch up to -current.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Sep 16 16:34:39 2001 UTC (22 years, 6 months ago) by wiz
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2
Branch point for: thorpej-mips-cache
Changes since 1.65: +2 -2 lines
Diff to previous 1.65 (colored) to selected 1.106.2.1 (colored)

Spell 'occurred' with two 'r's.

Revision 1.57.2.3 / (download) - annotate - [select for diffs], Fri Aug 24 00:11:43 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.2: +23 -81 lines
Diff to previous 1.57.2.2 (colored) to branchpoint 1.57 (colored) to selected 1.106.2.1 (colored)

Catch up with -current.

Revision 1.64.2.2 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:44 2001 UTC (22 years, 8 months ago) by lukem
Branch: kqueue
Changes since 1.64.2.1: +8 -71 lines
Diff to previous 1.64.2.1 (colored) to selected 1.106.2.1 (colored)

update to -current

Revision 1.41.2.3 / (download) - annotate - [select for diffs], Sun Jul 29 20:53:41 2001 UTC (22 years, 8 months ago) by he
Branch: netbsd-1-4
Changes since 1.41.2.2: +5 -1 lines
Diff to previous 1.41.2.2 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored) to selected 1.106.2.1 (colored)

Apply patch (requested by he):
  Add required include files to make this compile again.

Revision 1.41.2.2 / (download) - annotate - [select for diffs], Thu Jul 19 13:52:19 2001 UTC (22 years, 8 months ago) by perry
Branch: netbsd-1-4
Changes since 1.41.2.1: +4 -3 lines
Diff to previous 1.41.2.1 (colored) to branchpoint 1.41 (colored) to selected 1.106.2.1 (colored)

fix overflow in sendmsg() -- requested by David Maxwell

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jul 17 11:49:41 2001 UTC (22 years, 8 months ago) by jdolecek
Branch: MAIN
CVS Tags: thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.64: +8 -71 lines
Diff to previous 1.64 (colored) to selected 1.106.2.1 (colored)

Expel MSG_COMPAT/COMPAT_OLDSOCK, make the COMPAT_43 wrappers
arrange things as needed.  Unfortunately, the check in sockargs()
have to stay, since 4.3BSD bind(2), connect(2) and sendto(2) were
not versioned at the time :(

This code was tested to pass regression tests.

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Tue Jul 10 13:52:11 2001 UTC (22 years, 8 months ago) by lukem
Branch: kqueue
Changes since 1.64: +4 -1 lines
Diff to previous 1.64 (colored) to selected 1.106.2.1 (colored)

add calls to KNOTE(9) as appropriate

Revision 1.52.4.2 / (download) - annotate - [select for diffs], Mon Jul 2 13:41:41 2001 UTC (22 years, 9 months ago) by jhawk
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.52.4.1: +4 -3 lines
Diff to previous 1.52.4.1 (colored) to branchpoint 1.52 (colored) to selected 1.106.2.1 (colored)

Pull up revision 1.64 via patch (requested by jdolecek):
  Use consistent types for len.  Limit sockarg length to reasonable values.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Jul 1 20:42:48 2001 UTC (22 years, 9 months ago) by matt
Branch: MAIN
Branch point for: kqueue
Changes since 1.63: +7 -6 lines
Diff to previous 1.63 (colored) to selected 1.106.2.1 (colored)

Use consistent types for len.  Limit sockarg length to reasonable values.

Revision 1.63 / (download) - annotate - [select for diffs], Mon Jun 25 20:46:13 2001 UTC (22 years, 9 months ago) by jdolecek
Branch: MAIN
Changes since 1.62: +13 -22 lines
Diff to previous 1.62 (colored) to selected 1.106.2.1 (colored)

Back off the sendit()/recvit() change, some have problems with it

Revision 1.62 / (download) - annotate - [select for diffs], Mon Jun 25 19:46:50 2001 UTC (22 years, 9 months ago) by jdolecek
Branch: MAIN
Changes since 1.61: +10 -6 lines
Diff to previous 1.61 (colored) to selected 1.106.2.1 (colored)

sys_connect(): fix the call to FILE_UNUSE() so that it's done on return, rather
	than immediatelly after getsock() call

Revision 1.61 / (download) - annotate - [select for diffs], Mon Jun 25 19:24:03 2001 UTC (22 years, 9 months ago) by jdolecek
Branch: MAIN
Changes since 1.60: +22 -13 lines
Diff to previous 1.60 (colored) to selected 1.106.2.1 (colored)

Add 'kernsa' parameter for sendit()/recvit(); if nonzero, msg->msg_name
is supposed to point directly to struct mbuf or struct sockaddr in kernel
space as appropriate, rather than being a pointer to memory in userland.

This is to be used by compat/* when emulation needs to wrap
send{to|msg}(2)/recv{from|msg}(2) and modify the passed struct
sockaddr.

Revision 1.57.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:07:08 2001 UTC (22 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57.2.1: +14 -4 lines
Diff to previous 1.57.2.1 (colored) to branchpoint 1.57 (colored) to selected 1.106.2.1 (colored)

Catch up to -current.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Jun 16 12:00:02 2001 UTC (22 years, 9 months ago) by jdolecek
Branch: MAIN
Changes since 1.59: +4 -1 lines
Diff to previous 1.59 (colored) to selected 1.106.2.1 (colored)

Add port of high performance pipe implementation written by John S. Dyson
for FreeBSD project. Besides huge speed boost compared with socketpair-based
pipes, this implementation also uses pagable kernel memory instead of mbufs.

Significant differences to FreeBSD version:
* uses uvm_loan() facility for direct write
* async/SIGIO handling correct also for sync writer, async reader
* limits settable via sysctl, amountpipekva and nbigpipes available via sysctl
* pipes are unidirectional - this is enforced on file descriptor level
	for now only, the code would be updated to take advantage of it
	eventually
* uses lockmgr(9)-based locks instead of home brew variant
* scatter-gather write is handled correctly for direct write case, data
  is transferred by PIPE_DIRECT_CHUNK bytes maximum, to avoid running out of kva

All FreeBSD/NetBSD specific code is within appropriate #ifdef, in preparation
to feed changes back to FreeBSD tree.

This pipe implementation is optional for now, add 'options NEW_PIPE'
to your kernel config to use it.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Jun 14 20:32:47 2001 UTC (22 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.58: +8 -4 lines
Diff to previous 1.58 (colored) to selected 1.106.2.1 (colored)

Fix a partial construction problem that can cause race conditions
between creation of a file descriptor and close(2) when using kernel
assisted threads.  What we do is stick descriptors in the table, but
mark them as "larval".  This causes essentially everything to treat
it as a non-existent descriptor, except for fdalloc(), which sees a
filled slot so that it won't (incorrectly) allocate it again.  When
a descriptor is fully constructed, the code that has constructed it
marks it as "mature" (which actually clears the "larval" flag), and
things continue to work as normal.

While here, gather all the code that gets a descriptor from the table
into a fd_getfile() function, and call it, rather than having the
same (sometimes incorrect) code copied all over the place.

Revision 1.58 / (download) - annotate - [select for diffs], Sun May 6 19:22:33 2001 UTC (22 years, 10 months ago) by manu
Branch: MAIN
Changes since 1.57: +4 -1 lines
Diff to previous 1.57 (colored) to selected 1.106.2.1 (colored)

implement the recently introduced EMUL_BSD_ASYNCIO_PIPE emulation package
flag.

EMUL_BSD_ASYNCIO_PIPE notes that the emulated binaries expect the original
BSD pipe behavior for asynchronous I/O, which is to fire SIGIO on read() and
write(). OSes without this flag do not expect any SIGIO to be fired on
read() and write() for pipes, even when async I/O was requested. As far as
we know, the OSes that need EMUL_BSD_ASYNCIO_PIPE are NetBSD, OSF/1 and
Darwin.

Revision 1.45.2.4 / (download) - annotate - [select for diffs], Mon Mar 12 13:31:38 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.45.2.3: +176 -226 lines
Diff to previous 1.45.2.3 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:47 2001 UTC (23 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.57: +51 -17 lines
Diff to previous 1.57 (colored) to selected 1.106.2.1 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Feb 27 05:19:15 2001 UTC (23 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.56: +176 -226 lines
Diff to previous 1.56 (colored) to selected 1.106.2.1 (colored)

convert to ANSI KNF

Revision 1.52.4.1 / (download) - annotate - [select for diffs], Fri Dec 15 00:09:10 2000 UTC (23 years, 3 months ago) by he
Branch: netbsd-1-5
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored) to selected 1.106.2.1 (colored)

Pull up revision 1.56 (requested by fvdl):
  Fix NFS+tcp client hangs on server or network outage.  Again,
  please note that this introduces yet another kernel interface
  change: sobind() gains an argument.

Revision 1.45.2.3 / (download) - annotate - [select for diffs], Wed Dec 13 15:50:23 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.45.2.2: +1 -1 lines
Diff to previous 1.45.2.2 (colored) to branchpoint 1.45 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD (for UBC fixes).

Revision 1.56 / (download) - annotate - [select for diffs], Sun Dec 10 23:16:28 2000 UTC (23 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored) to selected 1.106.2.1 (colored)

Make sobind() take a struct proc *. It already took curproc and
passed it down to the appropriate usrreq function, and this
allows usage for contexts that need to be explicitly different
from curproc (like in the NFS code when binding to a reserved port).

Revision 1.45.2.2 / (download) - annotate - [select for diffs], Fri Dec 8 09:13:57 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.45.2.1: +7 -12 lines
Diff to previous 1.45.2.1 (colored) to branchpoint 1.45 (colored) to selected 1.106.2.1 (colored)

Sync with HEAD.

Revision 1.55 / (download) - annotate - [select for diffs], Fri Nov 24 21:38:28 2000 UTC (23 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.54: +7 -12 lines
Diff to previous 1.54 (colored) to selected 1.106.2.1 (colored)

define COMPAT_OLDSOCK unconditionally - the code is used virtually for all
emulations besides NetBSD, and this way it's LKM-safe

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:09:14 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.45: +64 -63 lines
Diff to previous 1.45 (colored) to selected 1.106.2.1 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.54 / (download) - annotate - [select for diffs], Wed Aug 2 20:56:52 2000 UTC (23 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.53: +11 -11 lines
Diff to previous 1.53 (colored) to selected 1.106.2.1 (colored)

MALLOC()/FREE() are not to be used for variable sized allocations.

Revision 1.53 / (download) - annotate - [select for diffs], Tue Jun 27 17:41:45 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.52: +1 -2 lines
Diff to previous 1.52 (colored) to selected 1.106.2.1 (colored)

remove include of <vm/vm.h>

Revision 1.52 / (download) - annotate - [select for diffs], Sat May 27 00:40:47 2000 UTC (23 years, 10 months ago) by sommerfeld
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.51: +4 -5 lines
Diff to previous 1.51 (colored) to selected 1.106.2.1 (colored)

Reduce use of curproc in several places:

 - Change ktrace interface to pass in the current process, rather than
p->p_tracep, since the various ktr* function need curproc anyway.

 - Add curproc as a parameter to mi_switch() since all callers had it
handy anyway.

 - Add a second proc argument for inferior() since callers all had
curproc handy.

Also, miscellaneous cleanups in ktrace:

 - ktrace now always uses file-based, rather than vnode-based I/O
(simplifies, increases type safety); eliminate KTRFLAG_FD & KTRFAC_FD.
Do non-blocking I/O, and yield a finite number of times when receiving
EWOULDBLOCK before giving up.

 - move code duplicated between sys_fktrace and sys_ktrace into ktrace_common.

 - simplify interface to ktrwrite()

Revision 1.51 / (download) - annotate - [select for diffs], Thu Mar 30 09:27:14 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.50: +35 -35 lines
Diff to previous 1.50 (colored) to selected 1.106.2.1 (colored)

Get rid of register declarations.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Mar 23 05:16:14 2000 UTC (24 years ago) by thorpej
Branch: MAIN
Changes since 1.49: +7 -7 lines
Diff to previous 1.49 (colored) to selected 1.106.2.1 (colored)

Implement fdremove() which is used in place of all the code that
did the "fdp->fd_ofiles[fd] = 0" assignment; fdremove() make sure
the fd_freefiles hints stay in sync.

From OpenBSD.

Revision 1.45.6.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:53 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.45: +12 -9 lines
Diff to previous 1.45 (colored) next main 1.46 (colored) to selected 1.106.2.1 (colored)

Pull up to last week's -current.

Revision 1.41.6.2 / (download) - annotate - [select for diffs], Tue Nov 30 13:34:50 1999 UTC (24 years, 4 months ago) by itojun
Branch: kame
CVS Tags: kame_141_19991130
Changes since 1.41.6.1: +4 -2 lines
Diff to previous 1.41.6.1 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored) to selected 1.106.2.1 (colored)

bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.

The branch does not compile at all (due to the lack of ALTQ and some other
source code).  Please do not try to modify the branch, this is just for
referenre purposes.

synchronization to latest KAME will take place on HEAD branch soon.

Revision 1.45.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:41:50 1999 UTC (24 years, 4 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.45: +12 -9 lines
Diff to previous 1.45 (colored) next main 1.46 (colored) to selected 1.106.2.1 (colored)

Sync with -current

Revision 1.49.2.2 / (download) - annotate - [select for diffs], Fri Nov 5 11:48:58 1999 UTC (24 years, 4 months ago) by mycroft
Branch: comdex-fall-1999
Changes since 1.49.2.1: +1171 -0 lines
Diff to previous 1.49.2.1 (colored) to branchpoint 1.49 (colored) next main 1.50 (colored) to selected 1.106.2.1 (colored)

Fix recent bug in sys_accept(): we must remove the file descriptor from the
file descriptor table before freeing the file description.

Revision 1.49.2.1, Fri Nov 5 11:48:57 1999 UTC (24 years, 4 months ago) by mycroft
Branch: comdex-fall-1999
Changes since 1.49: +0 -1171 lines
FILE REMOVED

file uipc_syscalls.c was added on branch comdex-fall-1999 on 1999-11-05 11:48:58 +0000

Revision 1.49 / (download) - annotate - [select for diffs], Fri Nov 5 11:48:57 1999 UTC (24 years, 4 months ago) by mycroft
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, comdex-fall-1999-base, chs-ubc2-newbase
Branch point for: comdex-fall-1999
Changes since 1.48: +9 -8 lines
Diff to previous 1.48 (colored) to selected 1.106.2.1 (colored)

Fix recent bug in sys_accept(): we must remove the file descriptor from the
file descriptor table before freeing the file description.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Oct 30 12:11:27 1999 UTC (24 years, 5 months ago) by enami
Branch: MAIN
Changes since 1.47: +4 -5 lines
Diff to previous 1.47 (colored) to selected 1.106.2.1 (colored)

back out unnecessary stylistic changes in recent changes, to keep coding
style closer to NKF.

Revision 1.47 / (download) - annotate - [select for diffs], Wed Oct 27 13:17:46 1999 UTC (24 years, 5 months ago) by jdolecek
Branch: MAIN
Changes since 1.46: +10 -16 lines
Diff to previous 1.46 (colored) to selected 1.106.2.1 (colored)

minor cleanup of previous - avoid goto and code duplication

Revision 1.46 / (download) - annotate - [select for diffs], Wed Oct 27 11:54:56 1999 UTC (24 years, 5 months ago) by darrenr
Branch: MAIN
Changes since 1.45: +17 -8 lines
Diff to previous 1.45 (colored) to selected 1.106.2.1 (colored)

patch from Greg A. Woods to fix panic problems with code that attempts to
recover from failures to accept a socket successfully.  Problem suggested
by this:
> It would appear (from two "panic: closef: count < 0" failures in less
> than 12 hours) that Darren's fix to accept(2) for lost file descriptors
> isn't quite correct.  His fix inserts a call to closef() to handle one
> of several possible error conditions.  However everywhere else in the
> socket code in the same file where falloc() cleanup is necessary the
> function used is ffree().

Revision 1.41.4.2 / (download) - annotate - [select for diffs], Thu Jul 1 23:43:22 1999 UTC (24 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.41.4.1: +29 -9 lines
Diff to previous 1.41.4.1 (colored) to branchpoint 1.41 (colored) next main 1.42 (colored) to selected 1.106.2.1 (colored)

Sync w/ -current.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Jul 1 08:12:47 1999 UTC (24 years, 9 months ago) by itojun
Branch: MAIN
CVS Tags: chs-ubc2-base
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.44: +15 -9 lines
Diff to previous 1.44 (colored) to selected 1.106.2.1 (colored)

IPv6 kernel code, based on KAME/NetBSD 1.4, SNAP kit 19990628.
(Sorry for a big commit, I can't separate this into several pieces...)
Pls check sys/netinet6/TODO and sys/netinet6/IMPLEMENTATION for details.

- sys/kern: do not assume single mbuf, accept chained mbuf on passing
  data from userland to kernel (or other way round).
- "midway" ATM card: ATM PVC pseudo device support, like those done in ALTQ
  package (ftp://ftp.csl.sony.co.jp/pub/kjc/).
- sys/netinet/tcp*: IPv4/v6 dual stack tcp support.
- sys/netinet/{ip6,icmp6}.h, sys/net/pfkeyv2.h: IETF document assumes those
  file to be there so we patch it up.
- sys/netinet: IPsec additions are here and there.
- sys/netinet6/*: most of IPv6 code sits here.
- sys/netkey: IPsec key management code
- dev/pci/pcidevs: regen

In my understanding no code here is subject to export control so it
should be safe.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Jul 1 05:56:32 1999 UTC (24 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.43: +15 -1 lines
Diff to previous 1.43 (colored) to selected 1.106.2.1 (colored)

fix sys_accept() to return EOPNOTSUPP for protocols which don't support
listen/accept (PR_LISTEN flag in protosw) and detect obvious faults in
parameters passed.  It is still possible for the address used for copying
the socket information to become invalid between that check and the copyout
so close the connection's allocated fd if the copyout fails so that we can
return EFAULT without allocating an fd and the application not knowing about
it.  Ideally we'd be able to queue the connection back up so a later accept
could retrieve it but unfortunately that's not possible.

Revision 1.41.6.1 / (download) - annotate - [select for diffs], Mon Jun 28 06:36:53 1999 UTC (24 years, 9 months ago) by itojun
Branch: kame
CVS Tags: kame_14_19990705, kame_14_19990628
Changes since 1.41: +23 -10 lines
Diff to previous 1.41 (colored) to selected 1.106.2.1 (colored)

KAME/NetBSD 1.4 SNAP kit, dated 19990628.

NOTE: this branch (kame) is used just for refernce.  this may not compile
due to multiple reasons.

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Mon Jun 21 19:22:11 1999 UTC (24 years, 9 months ago) by cgd
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.41: +4 -2 lines
Diff to previous 1.41 (colored) to selected 1.106.2.1 (colored)

pull up rev(s) 1.42 from trunk. (cgd)

Revision 1.41.4.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:24:06 1999 UTC (24 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.41: +98 -30 lines
Diff to previous 1.41 (colored) to selected 1.106.2.1 (colored)

Sync w/ -current.

Revision 1.43 / (download) - annotate - [select for diffs], Wed May 5 20:01:09 1999 UTC (24 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.42: +95 -29 lines
Diff to previous 1.42 (colored) to selected 1.106.2.1 (colored)

Add "use counting" to file entries.  When closing a file, and it's reference
count is 0, wait for use count to drain before finishing the close.

This is necessary in order for multiple processes to safely share file
descriptor tables.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Apr 30 05:30:32 1999 UTC (24 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.41: +4 -2 lines
Diff to previous 1.41 (colored) to selected 1.106.2.1 (colored)

add checks for COMPAT_OSF1 in the appropriate places

Revision 1.41 / (download) - annotate - [select for diffs], Wed Feb 10 18:02:28 1999 UTC (25 years, 1 month ago) by kleink
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE
Branch point for: netbsd-1-4, kame, chs-ubc2
Changes since 1.40: +29 -25 lines
Diff to previous 1.40 (colored) to selected 1.106.2.1 (colored)

* Due to addition and use of socklen_t, make the socket option and address
arguments passed to accept(), bind(), connect(), getpeername(), getsockname(),
getsockopt(), recvfrom(), sendto() and sendmsg() unsigned, which also elimiates
a few casts.
* Reflect the (now) signedness of msg_iovlen, which necessiates the addition
of a few casts.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Dec 18 13:18:43 1998 UTC (25 years, 3 months ago) by drochner
Branch: MAIN
Changes since 1.39: +11 -1 lines
Diff to previous 1.39 (colored) to selected 1.106.2.1 (colored)

solve the COMPAT_OLDSOCK/MSG_COMPAT problem differently:
The source files which need MSG_COMPAT define COMPAT_OLDSOCK.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Nov 26 02:25:20 1998 UTC (25 years, 4 months ago) by mycroft
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.38: +23 -25 lines
Diff to previous 1.38 (colored) to selected 1.106.2.1 (colored)

Revert the functional change in rev 1.38; permit a msg_iovlen of 0.
There are two reasons for this:
* We should be able to pass file descriptors without sending any data.
* We could send zero-length iovecs anyway (but we shouldn't have to do this).
Also, msg_iovlen is already a u_int, so delete a bunch of casts.

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Sat Aug 8 03:06:58 1998 UTC (25 years, 7 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.33: +20 -20 lines
Diff to previous 1.33 (colored) next main 1.34 (colored) to selected 1.106.2.1 (colored)

Revert cdevsw mmap routines to return int.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Aug 4 19:48:35 1998 UTC (25 years, 7 months ago) by kleink
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.37: +11 -7 lines
Diff to previous 1.37 (colored) to selected 1.106.2.1 (colored)

Per XNS Issue 5, calling recvmsg(2) or sendmsg(2) with an msg.msg_iovlen less
than or equal to 0 shall fail with EMSGSIZE; the latter condition was not being
checked for.  Also, document the msg.msg_iovlen > {IOV_MAX} case.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Aug 4 12:19:15 1998 UTC (25 years, 8 months ago) by kleink
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored) to selected 1.106.2.1 (colored)

UIO_MAXIOV -> IOV_MAX

Revision 1.36 / (download) - annotate - [select for diffs], Tue Aug 4 04:03:18 1998 UTC (25 years, 8 months ago) by perry
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored) to selected 1.106.2.1 (colored)

Abolition of bcopy, ovbcopy, bcmp, and bzero, phase one.
  bcopy(x, y, z) ->  memcpy(y, x, z)
ovbcopy(x, y, z) -> memmove(y, x, z)
   bcmp(x, y, z) ->  memcmp(x, y, z)
  bzero(x, y)    ->  memset(x, 0, y)

Revision 1.35 / (download) - annotate - [select for diffs], Mon Aug 3 15:15:58 1998 UTC (25 years, 8 months ago) by kleink
Branch: MAIN
Changes since 1.34: +5 -5 lines
Diff to previous 1.34 (colored) to selected 1.106.2.1 (colored)

Fix two off-by-one bugs, both present in each recvmsg(2) and sendmsg(2):
* the first one would cause an unnecessary malloc() of iovec storage for
  a msg_iovlen of UIO_SMALLIOV although the required amount of memory has
  been allocated on the stack.
* the second one would cause a recvmsg() or sendmsg() with a msg_iovlen of
  UIO_MAXIOV to fail with EMSGSIZE, which is also a violation of XNS5.

Revision 1.34 / (download) - annotate - [select for diffs], Fri Jul 31 22:50:53 1998 UTC (25 years, 8 months ago) by perry
Branch: MAIN
Changes since 1.33: +20 -20 lines
Diff to previous 1.33 (colored) to selected 1.106.2.1 (colored)

fix sizeofs so they comply with the KNF style guide. yes, it is pedantic.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Jul 29 02:07:19 1998 UTC (25 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.32: +15 -3 lines
Diff to previous 1.32 (colored) to selected 1.106.2.1 (colored)

When checking for overflow in the residual count, test against SSIZE_MAX.
The read/write system calls return ssize_t because -1 is used to indicate
error, therefore the transfer size MUST be limited to SSIZE_MAX, otherwise
garbage can be returned to the user.

There is NO change from existing behavior here, only a more precise
definition of that the semantics are, except in the Alpha case, where
the full SSIZE_MAX transfer size can now be realized (ssize_t is 64-bit
on the Alpha).

Revision 1.32 / (download) - annotate - [select for diffs], Sat Jul 18 05:04:37 1998 UTC (25 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored) to selected 1.106.2.1 (colored)

use AF_LOCAL instead of AF_UNIX

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jun 25 21:17:17 1998 UTC (25 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.30: +3 -1 lines
Diff to previous 1.30 (colored) to selected 1.106.2.1 (colored)

defopt KTRACE

Revision 1.30 / (download) - annotate - [select for diffs], Sat Apr 25 17:35:19 1998 UTC (25 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.29: +8 -6 lines
Diff to previous 1.29 (colored) to selected 1.106.2.1 (colored)

Hook for 0-copy (or other optimized) sends and receives

Revision 1.29 / (download) - annotate - [select for diffs], Sun Mar 1 02:22:34 1998 UTC (26 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored) to selected 1.106.2.1 (colored)

Merge with Lite2 + local changes

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:13:02 1998 UTC (26 years, 1 month ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +346 -300 lines
Diff to previous 1.1.1.2 (colored) to selected 1.106.2.1 (colored)

Import 4.4BSD-Lite2

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:09:51 1998 UTC (26 years, 1 month ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1.1.1: +203 -211 lines
Diff to previous 1.1.1.1 (colored) to selected 1.106.2.1 (colored)

Import 4.4BSD-Lite for reference

Revision 1.25.8.3 / (download) - annotate - [select for diffs], Sat Feb 7 08:28:11 1998 UTC (26 years, 1 month ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001
Changes since 1.25.8.2: +5 -4 lines
Diff to previous 1.25.8.2 (colored) to branchpoint 1.25 (colored) next main 1.26 (colored) to selected 1.106.2.1 (colored)

Pull up 1.28 (thorpej)

Revision 1.28 / (download) - annotate - [select for diffs], Fri Feb 6 23:19:26 1998 UTC (26 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.27: +5 -4 lines
Diff to previous 1.27 (colored) to selected 1.106.2.1 (colored)

When copying out multiple control messages, ensure that the next control
message is aligned.  From David Borman <dab@bsdi.com>.

Revision 1.25.8.2 / (download) - annotate - [select for diffs], Thu Jan 29 10:45:30 1998 UTC (26 years, 2 months ago) by mellon
Branch: netbsd-1-3
Changes since 1.25.8.1: +2 -2 lines
Diff to previous 1.25.8.1 (colored) to branchpoint 1.25 (colored) to selected 1.106.2.1 (colored)

Pull up 1.27 (thorpej)

Revision 1.25.8.1 / (download) - annotate - [select for diffs], Thu Jan 29 09:52:46 1998 UTC (26 years, 2 months ago) by mellon
Branch: netbsd-1-3
Changes since 1.25: +19 -7 lines
Diff to previous 1.25 (colored) to selected 1.106.2.1 (colored)

Pull up 1.26 (thorpej)

Revision 1.27 / (download) - annotate - [select for diffs], Wed Jan 7 23:47:10 1998 UTC (26 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored) to selected 1.106.2.1 (colored)

Make insertion and removal of sockets from the partial and incoming
connections queues O(C) rather than O(N).

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jan 7 05:49:25 1998 UTC (26 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.25: +19 -7 lines
Diff to previous 1.25 (colored) to selected 1.106.2.1 (colored)

Fix bug in recvit() that would cause recvmsg() to only receive one
control message, even if there were multiple control messages on
the queue.  From Jean-Luc Richier <Jean-Luc.Richier@imag.fr>, in
bug report kern/4700.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jun 26 06:13:36 1997 UTC (26 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-BETA, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, bouyer-scsipi
Branch point for: netbsd-1-3
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored) to selected 1.106.2.1 (colored)

Use UCHAR_MAX rather than "255" when sanity-checking the length of a
sockaddr in sockargs().

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jun 26 06:01:59 1997 UTC (26 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.23: +19 -8 lines
Diff to previous 1.23 (colored) to selected 1.106.2.1 (colored)

In sockargs():
- Add a comment describing my feelings about this interface, in general.
- Remove the COMPAT_OLDSOCK length hack.  Instead, if the socket argument
  is too long to fit in an mbuf, allocate enough external storage to
  hold it.
- If the socket argument is a sockaddr, don't allow the length to be
  greater than 255, as that would overflow sa_len.
Many thanks to enami tsugutomo <enami@cv.sony.co.jp> for his sanity checking.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Dec 22 10:16:54 1996 UTC (27 years, 3 months ago) by cgd
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.22: +19 -19 lines
Diff to previous 1.22 (colored) to selected 1.106.2.1 (colored)

* catch up with system call argument type fixups/const poisoning.
* Fix arguments to various copyin()/copyout() invocations, to avoid
  gratuitous casts.
* Some KNF formatting fixes
* Change sockargs()'s second argument to be a const void *, to help
  with dealing with the syscall argument type fixups/const poisoning.

Revision 1.20.4.1 / (download) - annotate - [select for diffs], Wed Dec 11 03:28:00 1996 UTC (27 years, 3 months ago) by mycroft
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.20: +5 -3 lines
Diff to previous 1.20 (colored) next main 1.21 (colored) to selected 1.106.2.1 (colored)

From trunk:
Eliminate SS_PRIV; instead, pass down a proc pointer to the usrreq methods
that need it.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jun 14 22:21:44 1996 UTC (27 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.21: +1 -9 lines
Diff to previous 1.21 (colored) to selected 1.106.2.1 (colored)

avoid unnecessary checks of m_get/MGET/etc.'s return values.  When
they're called with M_WAIT, they are defined to never return NULL.

Revision 1.21 / (download) - annotate - [select for diffs], Wed May 22 13:55:02 1996 UTC (27 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.20: +5 -3 lines
Diff to previous 1.20 (colored) to selected 1.106.2.1 (colored)

Pass a proc pointer down to the usrreq and pcbbind functions for PRU_ATTACH, PRU_BIND and
PRU_CONTROL.  The usrreq interface really needs to be split up, but this will have to wait.
Remove SS_PRIV completely.

Revision 1.20 / (download) - annotate - [select for diffs], Fri May 17 22:45:32 1996 UTC (27 years, 10 months ago) by pk
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.19: +1 -3 lines
Diff to previous 1.19 (colored) to selected 1.106.2.1 (colored)

Don't touch retval[] in socketpair(); manual page says this system call
return 0 on success (PR#2428).

Revision 1.19 / (download) - annotate - [select for diffs], Fri Feb 9 19:00:48 1996 UTC (28 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.18: +1 -7 lines
Diff to previous 1.18 (colored) to selected 1.106.2.1 (colored)

More proto fixes

Revision 1.18 / (download) - annotate - [select for diffs], Sun Feb 4 02:17:57 1996 UTC (28 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.17: +100 -70 lines
Diff to previous 1.17 (colored) to selected 1.106.2.1 (colored)

First pass at prototyping

Revision 1.17 / (download) - annotate - [select for diffs], Tue Oct 10 01:27:05 1995 UTC (28 years, 5 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored) to selected 1.106.2.1 (colored)

Add hooks for COMPAT_FREEBSD, from Noriyuki Soda.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Oct 7 06:28:46 1995 UTC (28 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +33 -33 lines
Diff to previous 1.15 (colored) to selected 1.106.2.1 (colored)

Prefix names of system call implementation functions with `sys_'.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Sep 19 21:45:22 1995 UTC (28 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.14: +76 -61 lines
Diff to previous 1.14 (colored) to selected 1.106.2.1 (colored)

Make system calls conform to a standard prototype and bring those
prototypes into scope.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Aug 12 23:59:12 1995 UTC (28 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored) to selected 1.106.2.1 (colored)

splnet --> splsoftnet

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jun 24 20:34:27 1995 UTC (28 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.12: +4 -279 lines
Diff to previous 1.12 (colored) to selected 1.106.2.1 (colored)

Extracted all of the compat_xxx routines, and created a library [libcompat]
for them. There are a few #ifdef COMPAT_XX remaining, but they are not easy
or worth eliminating (yet).

Revision 1.12 / (download) - annotate - [select for diffs], Wed May 10 16:53:05 1995 UTC (28 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (colored) to selected 1.106.2.1 (colored)

tty_tb.c:   need to include ioctl_compat.h in order to compile.
sysv_shm.c: make shm_find_segment_by_shmid global so it can be used by
	    COMPAT_HPUX. There should be a better way...
rest: Add #ifdef COMPAT_HPUX where needed

Revision 1.11 / (download) - annotate - [select for diffs], Sun Mar 5 08:52:21 1995 UTC (29 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored) to selected 1.106.2.1 (colored)

Extended a couple of defines with "|| defined(COMPAT_LINUX)" to make
things compile without requiring COMPAT_43 and/or COMPAT_09.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Oct 30 21:48:09 1994 UTC (29 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored) to selected 1.106.2.1 (colored)

be more careful with types, also pull in headers where necessary.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Oct 20 04:23:21 1994 UTC (29 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.8: +298 -294 lines
Diff to previous 1.8 (colored) to selected 1.106.2.1 (colored)

update for new syscall args description mechanism

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jun 29 06:33:41 1994 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.7: +3 -2 lines
Diff to previous 1.7 (colored) to selected 1.106.2.1 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.7 / (download) - annotate - [select for diffs], Wed May 4 10:27:20 1994 UTC (29 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +90 -107 lines
Diff to previous 1.6 (colored) to selected 1.106.2.1 (colored)

Add return types where missing.  Simplify some of the compat conditionals.
Include compat code if COMPAT_SUNOS with or without COMPAT_43.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Dec 18 04:22:32 1993 UTC (30 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +12 -12 lines
Diff to previous 1.5 (colored) to selected 1.106.2.1 (colored)

Canonicalize all #includes.

Revision 1.5.4.3 / (download) - annotate - [select for diffs], Sun Nov 14 21:21:37 1993 UTC (30 years, 4 months ago) by mycroft
Branch: magnum
Changes since 1.5.4.2: +13 -13 lines
Diff to previous 1.5.4.2 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored) to selected 1.106.2.1 (colored)

Canonicalize all #includes.

Revision 1.5.4.2 / (download) - annotate - [select for diffs], Wed Nov 10 20:05:34 1993 UTC (30 years, 4 months ago) by mycroft
Branch: magnum
Changes since 1.5.4.1: +3 -3 lines
Diff to previous 1.5.4.1 (colored) to branchpoint 1.5 (colored) to selected 1.106.2.1 (colored)

AF_UNIX --> AF_LOCAL

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Fri Sep 24 08:51:58 1993 UTC (30 years, 6 months ago) by mycroft
Branch: magnum
Changes since 1.5: +3 -1 lines
Diff to previous 1.5 (colored) to selected 1.106.2.1 (colored)

Make all files using spl*() #include cpu.h.  Changes from trunk.
init_main.c: New method of pseudo-device of initialization.
kern_clock.c: hardclock() and softclock() now take a pointer to a clockframe.
softclock() only does callouts.
kern_synch.c: Remove spurious declaration of endtsleep().  Adjust uses of
averunnable for new struct loadav.
subr_prf.c: Allow printf() formats in panic().
tty.c: averunnable changes.
vfs_subr.c: va_size and va_bytes are now quads.

Revision 1.5 / (download) - annotate - [select for diffs], Sat Jul 17 15:24:42 1993 UTC (30 years, 8 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, magnum-base
Branch point for: magnum
Changes since 1.4: +212 -160 lines
Diff to previous 1.4 (colored) to selected 1.106.2.1 (colored)

Finish moving struct definitions outside of function declarations.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jun 27 06:08:40 1993 UTC (30 years, 9 months ago) by andrew
Branch: MAIN
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (colored) to selected 1.106.2.1 (colored)

* ansifications
* Yuval Yarom's socket recv(2) fixes - access rights problems (see also
  uipc_socket.c).

Revision 1.3 / (download) - annotate - [select for diffs], Sat May 22 11:41:54 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (colored) to selected 1.106.2.1 (colored)

add include of select.h if necessary for protos, or delete if extraneous

Revision 1.2 / (download) - annotate - [select for diffs], Tue May 18 18:19:40 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.1: +3 -1 lines
Diff to previous 1.1 (colored) to selected 1.106.2.1 (colored)

make kernel select interface be one-stop shopping & clean it all up.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.106.2.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: MAIN
Diff to selected 1.106.2.1 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>