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.147.2.2 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:31 2012 UTC (5 weeks, 4 days 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) next main 1.148 (colored)

sync with head

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

merge to -current.

Revision 1.154 / (download) - annotate - [select for diffs], Wed Jan 25 16:56:13 2012 UTC (3 months, 4 weeks ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, HEAD
Changes since 1.153: +4 -4 lines
Diff to previous 1.153 (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 (4 months ago) by christos
Branch: MAIN
Changes since 1.152: +3 -2 lines
Diff to previous 1.152 (colored)

need <sys/atomic.h>

Revision 1.152 / (download) - annotate - [select for diffs], Wed Jan 25 14:04:09 2012 UTC (4 months ago) by christos
Branch: MAIN
Changes since 1.151: +6 -6 lines
Diff to previous 1.151 (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 (4 months ago) by christos
Branch: MAIN
Changes since 1.150: +24 -10 lines
Diff to previous 1.150 (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 (5 months ago) by christos
Branch: MAIN
Changes since 1.149: +4 -3 lines
Diff to previous 1.149 (colored)

simplify expression

Revision 1.149 / (download) - annotate - [select for diffs], Tue Dec 20 23:56:28 2011 UTC (5 months ago) by christos
Branch: MAIN
Changes since 1.148: +4 -4 lines
Diff to previous 1.148 (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 (6 months, 2 weeks ago) by yamt
Branch: yamt-pagecache
Changes since 1.147: +46 -33 lines
Diff to previous 1.147 (colored)

sync with head

Revision 1.148 / (download) - annotate - [select for diffs], Fri Nov 4 02:13:08 2011 UTC (6 months, 3 weeks 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)

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 (8 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)

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 (9 months, 4 weeks ago) by uebayasi
Branch: MAIN
Changes since 1.145: +2 -4 lines
Diff to previous 1.145 (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 (10 months, 1 week ago) by christos
Branch: MAIN
Changes since 1.144: +4 -2 lines
Diff to previous 1.144 (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 (11 months ago) by christos
Branch: MAIN
Changes since 1.143: +64 -15 lines
Diff to previous 1.143 (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 (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.141: +11 -6 lines
Diff to previous 1.141 (colored) next main 1.142 (colored)

Sync with HEAD.

Revision 1.140.4.3 / (download) - annotate - [select for diffs], Tue May 31 03:05:04 2011 UTC (11 months, 3 weeks 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)

sync with head

Revision 1.143 / (download) - annotate - [select for diffs], Sun Apr 24 18:46:23 2011 UTC (13 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)

- 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 (13 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)

sync with head

Revision 1.142 / (download) - annotate - [select for diffs], Sun Apr 10 15:45:33 2011 UTC (13 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.141: +11 -5 lines
Diff to previous 1.141 (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 (21 months, 2 weeks 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)

sync with head.

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

sync with head

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

Sync with HEAD.

Revision 1.141 / (download) - annotate - [select for diffs], Fri Apr 23 15:19:19 2010 UTC (2 years, 1 month 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)

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 (2 years, 1 month 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)

sync to netbsd-5

Revision 1.134.4.2.2.1 / (download) - annotate - [select for diffs], Sun Mar 28 15:32:39 2010 UTC (2 years, 1 month 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)

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 (2 years, 1 month ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, 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) next main 1.135 (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 (2 years, 2 months 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)

sync with head

Revision 1.140 / (download) - annotate - [select for diffs], Thu Jan 21 04:40:22 2010 UTC (2 years, 4 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)

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 (2 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.138: +5 -2 lines
Diff to previous 1.138 (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 (2 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.137: +8 -2 lines
Diff to previous 1.137 (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 (2 years, 5 months ago) by dsl
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.136: +3 -3 lines
Diff to previous 1.136 (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 (3 years ago) by jym
Branch: jym-xensuspend
Changes since 1.135: +14 -6 lines
Diff to previous 1.135 (colored) next main 1.136 (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 (3 years 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)

sync with head.

Revision 1.134.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:01 2009 UTC (3 years 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)

Sync with HEAD.

Revision 1.134.4.2 / (download) - annotate - [select for diffs], Sat Apr 4 23:36:28 2009 UTC (3 years, 1 month 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)

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 (3 years, 1 month 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)

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 (3 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.134: +4 -4 lines
Diff to previous 1.134 (colored)

Sync with HEAD.

Revision 1.134.4.1 / (download) - annotate - [select for diffs], Mon Feb 2 21:04:45 2009 UTC (3 years, 3 months 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)

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 (3 years, 4 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)

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 (3 years, 7 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)

Sync with HEAD.

Revision 1.127.6.4 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:54 2008 UTC (3 years, 7 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)

Sync with HEAD.

Revision 1.131.2.4 / (download) - annotate - [select for diffs], Thu Sep 18 04:31:44 2008 UTC (3 years, 8 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)

Sync with wrstuden-revivesa-base-2.

Revision 1.134 / (download) - annotate - [select for diffs], Wed Aug 6 15:01:23 2008 UTC (3 years, 9 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)

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 (3 years, 10 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)

Sync with HEAD.

Revision 1.132.2.1 / (download) - annotate - [select for diffs], Fri Jun 27 15:11:39 2008 UTC (3 years, 10 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)

Sync with head.

Revision 1.133 / (download) - annotate - [select for diffs], Tue Jun 24 11:21:46 2008 UTC (3 years, 11 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)

Nothing uses getsock/getvnode any more.

Revision 1.131.2.3 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:52 2008 UTC (3 years, 11 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)

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 (3 years, 11 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)

sync with head

Revision 1.127.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:14 2008 UTC (3 years, 11 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)

Sync with HEAD.

Revision 1.132 / (download) - annotate - [select for diffs], Fri May 30 09:49:01 2008 UTC (3 years, 11 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)

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 (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.128: +73 -45 lines
Diff to previous 1.128 (colored)

sync with head.

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

sync with head.

Revision 1.131.2.2 / (download) - annotate - [select for diffs], Wed May 14 01:35:14 2008 UTC (4 years 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)

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 (4 years ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.131: +3 -2 lines
Diff to previous 1.131 (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 (4 years 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)

Remove clause 3 and 4 from TNF licenses

Revision 1.130 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:30 2008 UTC (4 years, 1 month 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)

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 (4 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.128: +78 -43 lines
Diff to previous 1.128 (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 (4 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.127: +106 -146 lines
Diff to previous 1.127 (colored)

Sync with HEAD.

Revision 1.92.2.9 / (download) - annotate - [select for diffs], Mon Mar 24 09:39:02 2008 UTC (4 years, 2 months 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)

sync with head.

Revision 1.116.2.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:01 2008 UTC (4 years, 2 months 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)

sync with HEAD

Revision 1.128 / (download) - annotate - [select for diffs], Fri Mar 21 21:55:00 2008 UTC (4 years, 2 months 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)

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 (4 years, 3 months 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)

Sync with HEAD.

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

sync with head.

Revision 1.127 / (download) - annotate - [select for diffs], Wed Feb 6 21:57:54 2008 UTC (4 years, 3 months 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)

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 (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.92.2.6: +58 -53 lines
Diff to previous 1.92.2.6 (colored)

sync with head

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

sync with HEAD

Revision 1.123.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:56:21 2008 UTC (4 years, 4 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)

Sync with HEAD

Revision 1.122.4.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:17 2007 UTC (4 years, 5 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)

Sync with HEAD.

Revision 1.123.2.2 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:48 2007 UTC (4 years, 5 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)

Sync with head.

Revision 1.126 / (download) - annotate - [select for diffs], Wed Dec 26 16:01:37 2007 UTC (4 years, 5 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)

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 (4 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.124: +53 -52 lines
Diff to previous 1.124 (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 (4 years, 5 months ago) by elad
Branch: MAIN
Changes since 1.123: +3 -3 lines
Diff to previous 1.123 (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 (4 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.122: +3 -3 lines
Diff to previous 1.122 (colored)

Sync with HEAD.

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

sync with head

Revision 1.123.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 16:59:52 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.123: +6 -2 lines
Diff to previous 1.123 (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 (4 years, 5 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)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.123 / (download) - annotate - [select for diffs], Sat Nov 24 07:49:04 2007 UTC (4 years, 6 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)

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 (4 years, 6 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)

sync with HEAD

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

sync with head.

Revision 1.107.2.5 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:32 2007 UTC (4 years, 7 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)

Sync with head.

Revision 1.115.6.4 / (download) - annotate - [select for diffs], Sun Oct 7 13:25:08 2007 UTC (4 years, 7 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)

Sync with HEAD.

Revision 1.121.2.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:28:47 2007 UTC (4 years, 7 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)

sync with head.

Revision 1.122 / (download) - annotate - [select for diffs], Fri Oct 5 02:34:58 2007 UTC (4 years, 7 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)

Use getsombuf().

Revision 1.115.6.3 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:07 2007 UTC (4 years, 7 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)

Sync with HEAD.

Revision 1.121 / (download) - annotate - [select for diffs], Wed Sep 19 19:28:25 2007 UTC (4 years, 8 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)

minor nits; no code change.

Revision 1.120 / (download) - annotate - [select for diffs], Wed Sep 19 04:33:43 2007 UTC (4 years, 8 months ago) by dyoung
Branch: MAIN
Changes since 1.119: +6 -25 lines
Diff to previous 1.119 (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 (4 years, 8 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)

Sync with HEAD.

Revision 1.119 / (download) - annotate - [select for diffs], Thu Sep 6 01:21:00 2007 UTC (4 years, 8 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)

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 (4 years, 8 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)

Sync with HEAD.

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

sync with head.

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

Sync with HEAD.

Revision 1.118 / (download) - annotate - [select for diffs], Sat Sep 1 17:04:58 2007 UTC (4 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.117: +3 -3 lines
Diff to previous 1.117 (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 (4 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.116: +12 -3 lines
Diff to previous 1.116 (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 (4 years, 9 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)

Sync with HEAD.

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

Sync with HEAD.

Revision 1.116 / (download) - annotate - [select for diffs], Wed Aug 15 12:07:34 2007 UTC (4 years, 9 months ago) by ad
Branch: MAIN
Branch point for: matt-armv6
Changes since 1.115: +14 -35 lines
Diff to previous 1.115 (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 (4 years, 10 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)

Sync with head.

Revision 1.115 / (download) - annotate - [select for diffs], Sun Jul 15 08:33:38 2007 UTC (4 years, 10 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)

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 (4 years, 10 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)

Sync with head.

Revision 1.114 / (download) - annotate - [select for diffs], Sun Jul 1 18:38:11 2007 UTC (4 years, 10 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)

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 (4 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.112: +285 -219 lines
Diff to previous 1.112 (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 (4 years, 11 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)

Sync with head.

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

Sync with head.

Revision 1.112 / (download) - annotate - [select for diffs], Sat Jun 2 01:24:34 2007 UTC (4 years, 11 months ago) by enami
Branch: MAIN
Changes since 1.111: +11 -9 lines
Diff to previous 1.111 (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 (4 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.110: +125 -84 lines
Diff to previous 1.110 (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 (5 years 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)

sync with head.

Revision 1.105.2.1 / (download) - annotate - [select for diffs], Sun May 13 21:23:46 2007 UTC (5 years 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)

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 (5 years ago) by dsl
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.109: +32 -38 lines
Diff to previous 1.109 (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 (5 years 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)

sync with head.

Revision 1.109 / (download) - annotate - [select for diffs], Wed Apr 18 10:20:02 2007 UTC (5 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.108: +5 -7 lines
Diff to previous 1.108 (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 (5 years, 1 month 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 (5 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.107: +3 -3 lines
Diff to previous 1.107 (colored)

sys_accept: don't leak a socket on error.

Revision 1.106.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:45 2007 UTC (5 years, 2 months 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 (5 years, 2 months 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)

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 (5 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.92.2.2: +6 -4 lines
Diff to previous 1.92.2.2 (colored)

sync with head.

Revision 1.106 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:32 2007 UTC (5 years, 3 months 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)

Merge newlock2 to head.

Revision 1.102.2.4 / (download) - annotate - [select for diffs], Tue Jan 30 13:51:41 2007 UTC (5 years, 3 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)

Remove support for SA. Ok core@.

Revision 1.102.2.3 / (download) - annotate - [select for diffs], Tue Jan 16 07:10:07 2007 UTC (5 years, 4 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)

Fix locking botches.

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

sync with head.

Revision 1.102.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:46 2006 UTC (5 years, 5 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)

sync with head.

Revision 1.102.2.2 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:23 2006 UTC (5 years, 6 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)

Sync with head.

Revision 1.105 / (download) - annotate - [select for diffs], Wed Nov 1 10:17:59 2006 UTC (5 years, 6 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)

remove some __unused from function parameters.

Revision 1.86.2.3 / (download) - annotate - [select for diffs], Sun Oct 29 13:03:51 2006 UTC (5 years, 6 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)

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 (5 years, 6 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)

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 (5 years, 6 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)

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 (5 years, 7 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)

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 (5 years, 7 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)

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 (5 years, 7 months ago) by elad
Branch: MAIN
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (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 (5 years, 7 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.102: +12 -12 lines
Diff to previous 1.102 (colored)

sync with head

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Fri Oct 20 21:33:55 2006 UTC (5 years, 7 months ago) by ad
Branch: newlock2
Changes since 1.102: +6 -3 lines
Diff to previous 1.102 (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 (5 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.102: +12 -12 lines
Diff to previous 1.102 (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 (5 years, 8 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)

sync with head

Revision 1.97.2.3 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:22 2006 UTC (5 years, 8 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)

sync with head.

Revision 1.86.2.2 / (download) - annotate - [select for diffs], Mon Aug 28 14:54:26 2006 UTC (5 years, 8 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)

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 (5 years, 8 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)

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 (5 years, 8 months ago) by tron
Branch: netbsd-2
Changes since 1.86.2.1: +6 -4 lines
Diff to previous 1.86.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 (5 years, 9 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)

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 (5 years, 9 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)

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 (5 years, 9 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)

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 (5 years, 9 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)

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 (5 years, 9 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)

sync with head

Revision 1.101 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:11 2006 UTC (5 years, 10 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)

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 (5 years, 10 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)

Merge from HEAD.

Revision 1.100 / (download) - annotate - [select for diffs], Mon Jun 26 21:23:59 2006 UTC (5 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.99: +4 -4 lines
Diff to previous 1.99 (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 (5 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.92: +64 -66 lines
Diff to previous 1.92 (colored)

sync with head.

Revision 1.96.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:10 2006 UTC (5 years, 11 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)

Sync with head.

Revision 1.97.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:41 2006 UTC (6 years ago) by tron
Branch: peter-altq
Changes since 1.97: +5 -4 lines
Diff to previous 1.97 (colored) next main 1.98 (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 (6 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.97: +5 -4 lines
Diff to previous 1.97 (colored)

sync with head.

Revision 1.99 / (download) - annotate - [select for diffs], Tue May 16 21:00:02 2006 UTC (6 years 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)

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 (6 years ago) by elad
Branch: elad-kernelauth
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored) next main 1.98 (colored)

sync with head

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

Add MSG_NOSIGNAL (from FreeBSD)

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

Sync with head.

Revision 1.97 / (download) - annotate - [select for diffs], Wed Mar 1 12:38:21 2006 UTC (6 years, 2 months 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)

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 (6 years, 4 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)

uio_segflg/uio_lwp -> uio_vmspace.

Revision 1.96 / (download) - annotate - [select for diffs], Mon Dec 26 18:45:27 2005 UTC (6 years, 5 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)

u_intN_t -> uintN_t

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

merge ktrace-lwp.

Revision 1.81.2.8 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:45 2005 UTC (6 years, 6 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)

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 (6 years, 8 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)

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 (6 years, 8 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)

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 (6 years, 8 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)

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 (6 years, 8 months ago) by tron
Branch: netbsd-3
Changes since 1.90: +10 -10 lines
Diff to previous 1.90 (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 (6 years, 8 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)

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 (6 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.92: +4 -4 lines
Diff to previous 1.92 (colored)

minor knf tweak

Revision 1.92 / (download) - annotate - [select for diffs], Mon May 30 11:21:11 2005 UTC (6 years, 11 months ago) by martin
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.91: +38 -4 lines
Diff to previous 1.91 (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 (6 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.90: +10 -10 lines
Diff to previous 1.90 (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 (7 years ago) by kent
Branch: kent-audio2
Changes since 1.89: +4 -4 lines
Diff to previous 1.89 (colored) next main 1.90 (colored)

sync with -current

Revision 1.89.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:12 2005 UTC (7 years, 2 months ago) by yamt
Branch: yamt-km
Changes since 1.89: +4 -4 lines
Diff to previous 1.89 (colored) next main 1.90 (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 (7 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.81.2.6: +4 -4 lines
Diff to previous 1.81.2.6 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.90 / (download) - annotate - [select for diffs], Sat Feb 26 21:34:55 2005 UTC (7 years, 2 months 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)

nuke trailing whitespace

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

Sync with HEAD.

Revision 1.89 / (download) - annotate - [select for diffs], Tue Nov 30 04:25:44 2004 UTC (7 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, matt-timespec, 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)

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 (7 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.81.2.4: +4 -4 lines
Diff to previous 1.81.2.4 (colored)

Adapt to branch.

Revision 1.81.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:17 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.81.2.3: +48 -52 lines
Diff to previous 1.81.2.3 (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 (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.81.2.2: +52 -48 lines
Diff to previous 1.81.2.2 (colored)

Sync with HEAD.

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

Sync with HEAD

Revision 1.88 / (download) - annotate - [select for diffs], Sat May 22 22:52:13 2004 UTC (8 years ago) by jonathan
Branch: MAIN
Changes since 1.87: +9 -9 lines
Diff to previous 1.87 (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 (8 years 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)

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 (8 years ago) by ragge
Branch: MAIN
Changes since 1.86: +10 -5 lines
Diff to previous 1.86 (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 (8 years, 5 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)

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 (8 years, 5 months ago) by perry
Branch: MAIN
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (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 (8 years, 6 months ago) by chs
Branch: MAIN
Changes since 1.83: +4 -8 lines
Diff to previous 1.83 (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 (8 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (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 (8 years, 9 months ago) by agc
Branch: MAIN
Changes since 1.81: +3 -7 lines
Diff to previous 1.81 (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 (8 years, 10 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.81: +43 -47 lines
Diff to previous 1.81 (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 (8 years, 10 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.80: +45 -41 lines
Diff to previous 1.80 (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 (8 years, 11 months ago) by darrenr
Branch: MAIN
Changes since 1.79: +43 -47 lines
Diff to previous 1.79 (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 (9 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.78: +5 -3 lines
Diff to previous 1.78 (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 (9 years, 3 months ago) by matt
Branch: MAIN
Changes since 1.77: +2 -7 lines
Diff to previous 1.77 (colored)

Remove leftover MBUFTRACE asserts.

Revision 1.77 / (download) - annotate - [select for diffs], Wed Feb 26 14:36:43 2003 UTC (9 years, 3 months ago) by drochner
Branch: MAIN
Changes since 1.76: +7 -7 lines
Diff to previous 1.76 (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 (9 years, 3 months ago) by matt
Branch: MAIN
Changes since 1.75: +24 -11 lines
Diff to previous 1.75 (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 (9 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.74: +57 -23 lines
Diff to previous 1.74 (colored)

Merge the nathanw_sa branch.

Revision 1.52.4.4 / (download) - annotate - [select for diffs], Sun Dec 15 16:03:09 2002 UTC (9 years, 5 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)

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 (9 years, 5 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)

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 (9 years, 5 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)

Sync with HEAD.

Revision 1.74 / (download) - annotate - [select for diffs], Tue Nov 26 18:44:36 2002 UTC (9 years, 6 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)

si_ -> sel_ to avoid conflicts with siginfo.

Revision 1.73 / (download) - annotate - [select for diffs], Mon Nov 25 08:31:59 2002 UTC (9 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.72: +2 -6 lines
Diff to previous 1.72 (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 (9 years, 6 months ago) by itojun
Branch: MAIN
Changes since 1.71: +6 -2 lines
Diff to previous 1.71 (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 (9 years, 6 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)

Catch up to -current

Revision 1.71 / (download) - annotate - [select for diffs], Wed Oct 23 09:14:29 2002 UTC (9 years, 7 months ago) by jdolecek
Branch: MAIN
CVS Tags: kqueue-aftermerge
Changes since 1.70: +7 -2 lines
Diff to previous 1.70 (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 (9 years, 7 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)

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 (9 years, 8 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)

Catch up to -current.

Revision 1.70 / (download) - annotate - [select for diffs], Wed Sep 4 01:32:44 2002 UTC (9 years, 8 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)

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 (9 years, 10 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)

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 (9 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.64.2.4: +8 -5 lines
Diff to previous 1.64.2.4 (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 (9 years, 11 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)

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 (9 years, 11 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)

catch up with -current.

Revision 1.57.2.8 / (download) - annotate - [select for diffs], Thu Jun 20 03:47:26 2002 UTC (9 years, 11 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)

Catch up to -current.

Revision 1.69 / (download) - annotate - [select for diffs], Fri May 31 20:33:11 2002 UTC (9 years, 11 months ago) by itojun
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.68: +8 -5 lines
Diff to previous 1.68 (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 (9 years, 11 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)

#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 (10 years, 2 months ago) by jdolecek
Branch: kqueue
Changes since 1.64.2.3: +5 -5 lines
Diff to previous 1.64.2.3 (colored)

Catch up with -current.

Revision 1.57.2.6 / (download) - annotate - [select for diffs], Thu Feb 28 04:14:48 2002 UTC (10 years, 2 months 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)

Catch up to -current.

Revision 1.68 / (download) - annotate - [select for diffs], Mon Feb 11 18:11:43 2002 UTC (10 years, 3 months 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, ifpoll, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.67: +5 -5 lines
Diff to previous 1.67 (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 (10 years, 4 months ago) by thorpej
Branch: kqueue
Changes since 1.64.2.2: +5 -2 lines
Diff to previous 1.64.2.2 (colored)

Sync kqueue branch with -current.

Revision 1.57.2.5 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:47 2001 UTC (10 years, 6 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)

Catch up to -current.

Revision 1.66.2.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:59 2001 UTC (10 years, 6 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)

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

Revision 1.67 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:33 2001 UTC (10 years, 6 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)

add RCSIDs

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Mon Oct 1 12:46:57 2001 UTC (10 years, 7 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)

Catch up with -current.

Revision 1.57.2.4 / (download) - annotate - [select for diffs], Fri Sep 21 22:36:27 2001 UTC (10 years, 8 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)

Catch up to -current.

Revision 1.66 / (download) - annotate - [select for diffs], Sun Sep 16 16:34:39 2001 UTC (10 years, 8 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)

Spell 'occurred' with two 'r's.

Revision 1.57.2.3 / (download) - annotate - [select for diffs], Fri Aug 24 00:11:43 2001 UTC (10 years, 9 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)

Catch up with -current.

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

update to -current

Revision 1.41.2.3 / (download) - annotate - [select for diffs], Sun Jul 29 20:53:41 2001 UTC (10 years, 9 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)

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 (10 years, 10 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)

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

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jul 17 11:49:41 2001 UTC (10 years, 10 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)

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 (10 years, 10 months ago) by lukem
Branch: kqueue
Changes since 1.64: +4 -1 lines
Diff to previous 1.64 (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 (10 years, 10 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)

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 (10 years, 10 months ago) by matt
Branch: MAIN
Branch point for: kqueue
Changes since 1.63: +7 -6 lines
Diff to previous 1.63 (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 (10 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.62: +13 -22 lines
Diff to previous 1.62 (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 (10 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.61: +10 -6 lines
Diff to previous 1.61 (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 (10 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.60: +22 -13 lines
Diff to previous 1.60 (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 (10 years, 11 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)

Catch up to -current.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Jun 16 12:00:02 2001 UTC (10 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.59: +4 -1 lines
Diff to previous 1.59 (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 (10 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.58: +8 -4 lines
Diff to previous 1.58 (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 (11 years ago) by manu
Branch: MAIN
Changes since 1.57: +4 -1 lines
Diff to previous 1.57 (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 (11 years, 2 months 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)

Sync with HEAD.

Revision 1.57.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:47 2001 UTC (11 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.57: +51 -17 lines
Diff to previous 1.57 (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 (11 years, 2 months 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)

convert to ANSI KNF

Revision 1.52.4.1 / (download) - annotate - [select for diffs], Fri Dec 15 00:09:10 2000 UTC (11 years, 5 months ago) by he
Branch: netbsd-1-5
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (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 (11 years, 5 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)

Sync with HEAD (for UBC fixes).

Revision 1.56 / (download) - annotate - [select for diffs], Sun Dec 10 23:16:28 2000 UTC (11 years, 5 months ago) by fvdl
Branch: MAIN
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (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 (11 years, 5 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)

Sync with HEAD.

Revision 1.55 / (download) - annotate - [select for diffs], Fri Nov 24 21:38:28 2000 UTC (11 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.54: +7 -12 lines
Diff to previous 1.54 (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 (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.45: +64 -63 lines
Diff to previous 1.45 (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 (11 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.53: +11 -11 lines
Diff to previous 1.53 (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 (11 years, 11 months ago) by mrg
Branch: MAIN
Changes since 1.52: +1 -2 lines
Diff to previous 1.52 (colored)

remove include of <vm/vm.h>

Revision 1.52 / (download) - annotate - [select for diffs], Sat May 27 00:40:47 2000 UTC (12 years 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)

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 (12 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.50: +35 -35 lines
Diff to previous 1.50 (colored)

Get rid of register declarations.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Mar 23 05:16:14 2000 UTC (12 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.49: +7 -7 lines
Diff to previous 1.49 (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 (12 years, 5 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)

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 (12 years, 5 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)

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 (12 years, 6 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)

Sync with -current

Revision 1.49.2.2 / (download) - annotate - [select for diffs], Fri Nov 5 11:48:58 1999 UTC (12 years, 6 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)

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 (12 years, 6 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 (12 years, 6 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)

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 (12 years, 6 months ago) by enami
Branch: MAIN
Changes since 1.47: +4 -5 lines
Diff to previous 1.47 (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 (12 years, 7 months ago) by jdolecek
Branch: MAIN
Changes since 1.46: +10 -16 lines
Diff to previous 1.46 (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 (12 years, 7 months ago) by darrenr
Branch: MAIN
Changes since 1.45: +17 -8 lines
Diff to previous 1.45 (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 (12 years, 10 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)

Sync w/ -current.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Jul 1 08:12:47 1999 UTC (12 years, 10 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)

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 (12 years, 10 months ago) by darrenr
Branch: MAIN
Changes since 1.43: +15 -1 lines
Diff to previous 1.43 (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 (12 years, 11 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)

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 (12 years, 11 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)

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 (12 years, 11 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.41: +98 -30 lines
Diff to previous 1.41 (colored)

Sync w/ -current.

Revision 1.43 / (download) - annotate - [select for diffs], Wed May 5 20:01:09 1999 UTC (13 years ago) by thorpej
Branch: MAIN
Changes since 1.42: +95 -29 lines
Diff to previous 1.42 (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 (13 years ago) by cgd
Branch: MAIN
Changes since 1.41: +4 -2 lines
Diff to previous 1.41 (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 (13 years, 3 months 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)

* 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 (13 years, 5 months ago) by drochner
Branch: MAIN
Changes since 1.39: +11 -1 lines
Diff to previous 1.39 (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 (13 years, 6 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)

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 (13 years, 9 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)

Revert cdevsw mmap routines to return int.

Revision 1.38 / (download) - annotate - [select for diffs], Tue Aug 4 19:48:35 1998 UTC (13 years, 9 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)

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 (13 years, 9 months ago) by kleink
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

UIO_MAXIOV -> IOV_MAX

Revision 1.36 / (download) - annotate - [select for diffs], Tue Aug 4 04:03:18 1998 UTC (13 years, 9 months ago) by perry
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (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 (13 years, 9 months ago) by kleink
Branch: MAIN
Changes since 1.34: +5 -5 lines
Diff to previous 1.34 (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 (13 years, 9 months ago) by perry
Branch: MAIN
Changes since 1.33: +20 -20 lines
Diff to previous 1.33 (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 (13 years, 10 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)

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 (13 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

use AF_LOCAL instead of AF_UNIX

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

defopt KTRACE

Revision 1.30 / (download) - annotate - [select for diffs], Sat Apr 25 17:35:19 1998 UTC (14 years, 1 month ago) by matt
Branch: MAIN
Changes since 1.29: +8 -6 lines
Diff to previous 1.29 (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 (14 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (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 (14 years, 2 months 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)

Import 4.4BSD-Lite2

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:09:51 1998 UTC (14 years, 2 months 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)

Import 4.4BSD-Lite for reference

Revision 1.25.8.3 / (download) - annotate - [select for diffs], Sat Feb 7 08:28:11 1998 UTC (14 years, 3 months 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)

Pull up 1.28 (thorpej)

Revision 1.28 / (download) - annotate - [select for diffs], Fri Feb 6 23:19:26 1998 UTC (14 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.27: +5 -4 lines
Diff to previous 1.27 (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 (14 years, 3 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)

Pull up 1.27 (thorpej)

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

Pull up 1.26 (thorpej)

Revision 1.27 / (download) - annotate - [select for diffs], Wed Jan 7 23:47:10 1998 UTC (14 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (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 (14 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.25: +19 -7 lines
Diff to previous 1.25 (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 (14 years, 11 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)

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 (14 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.23: +19 -8 lines
Diff to previous 1.23 (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 (15 years, 5 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)

* 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 (15 years, 5 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)

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 (15 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.21: +1 -9 lines
Diff to previous 1.21 (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 (16 years ago) by mycroft
Branch: MAIN
Changes since 1.20: +5 -3 lines
Diff to previous 1.20 (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 (16 years 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)

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 (16 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.18: +1 -7 lines
Diff to previous 1.18 (colored)

More proto fixes

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

First pass at prototyping

Revision 1.17 / (download) - annotate - [select for diffs], Tue Oct 10 01:27:05 1995 UTC (16 years, 7 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)

Add hooks for COMPAT_FREEBSD, from Noriyuki Soda.

Revision 1.16 / (download) - annotate - [select for diffs], Sat Oct 7 06:28:46 1995 UTC (16 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +33 -33 lines
Diff to previous 1.15 (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 (16 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.14: +76 -61 lines
Diff to previous 1.14 (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 (16 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

splnet --> splsoftnet

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jun 24 20:34:27 1995 UTC (16 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.12: +4 -279 lines
Diff to previous 1.12 (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 (17 years ago) by christos
Branch: MAIN
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (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 (17 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (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 (17 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (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 (17 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.8: +298 -294 lines
Diff to previous 1.8 (colored)

update for new syscall args description mechanism

Revision 1.8 / (download) - annotate - [select for diffs], Wed Jun 29 06:33:41 1994 UTC (17 years, 11 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)

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 (18 years ago) by mycroft
Branch: MAIN
Changes since 1.6: +90 -107 lines
Diff to previous 1.6 (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 (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +12 -12 lines
Diff to previous 1.5 (colored)

Canonicalize all #includes.

Revision 1.5.4.3 / (download) - annotate - [select for diffs], Sun Nov 14 21:21:37 1993 UTC (18 years, 6 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)

Canonicalize all #includes.

Revision 1.5.4.2 / (download) - annotate - [select for diffs], Wed Nov 10 20:05:34 1993 UTC (18 years, 6 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)

AF_UNIX --> AF_LOCAL

Revision 1.5.4.1 / (download) - annotate - [select for diffs], Fri Sep 24 08:51:58 1993 UTC (18 years, 8 months ago) by mycroft
Branch: magnum
Changes since 1.5: +3 -1 lines
Diff to previous 1.5 (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 (18 years, 10 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)

Finish moving struct definitions outside of function declarations.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jun 27 06:08:40 1993 UTC (18 years, 11 months ago) by andrew
Branch: MAIN
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (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 (19 years ago) by cgd
Branch: MAIN
Changes since 1.2: +1 -2 lines
Diff to previous 1.2 (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 (19 years ago) by cgd
Branch: MAIN
Changes since 1.1: +3 -1 lines
Diff to previous 1.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 (19 years, 2 months 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)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (19 years, 2 months ago) by cgd
Branch: MAIN

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>