freebsd-dev/sys/netncp
Seigo Tanimura 243917fe3b Lock down a socket, milestone 1.
o Add a mutex (sb_mtx) to struct sockbuf. This protects the data in a
  socket buffer. The mutex in the receive buffer also protects the data
  in struct socket.

o Determine the lock strategy for each members in struct socket.

o Lock down the following members:

  - so_count
  - so_options
  - so_linger
  - so_state

o Remove *_locked() socket APIs.  Make the following socket APIs
  touching the members above now require a locked socket:

 - sodisconnect()
 - soisconnected()
 - soisconnecting()
 - soisdisconnected()
 - soisdisconnecting()
 - sofree()
 - soref()
 - sorele()
 - sorwakeup()
 - sotryfree()
 - sowakeup()
 - sowwakeup()

Reviewed by:	alfred
2002-05-20 05:41:09 +00:00
..
ncp_cfg.h
ncp_conn.c Update to C99, s/__FUNCTION__/__func__/, 2001-12-10 08:09:49 +00:00
ncp_conn.h KSE Milestone 2 2001-09-12 08:38:13 +00:00
ncp_crypt.c Remove unneeded #include <sys/proc.h> lines. 2000-10-29 13:57:19 +00:00
ncp_file.h
ncp_lib.h More s/file system/filesystem/g 2002-05-16 21:28:32 +00:00
ncp_login.c Move bindery authentication ncps to ncp_ncp.c file. ncp_login.c will stay 2001-03-22 10:38:16 +00:00
ncp_mod.c Move bindery authentication ncps to ncp_ncp.c file. ncp_login.c will stay 2001-03-22 10:38:16 +00:00
ncp_ncp.c Update to C99, s/__FUNCTION__/__func__/, 2001-12-10 08:09:49 +00:00
ncp_ncp.h Move bindery authentication ncps to ncp_ncp.c file. ncp_login.c will stay 2001-03-22 10:38:16 +00:00
ncp_nls.c Major update of NCP requester: 2001-03-10 05:24:45 +00:00
ncp_nls.h Add character translation table between Unix and NetWare according 2002-04-20 05:35:02 +00:00
ncp_rcfile.h Back out the previous change to the queue(3) interface. 2000-05-26 02:09:24 +00:00
ncp_rq.c Update to C99, s/__FUNCTION__/__func__/, 2001-12-10 08:09:49 +00:00
ncp_rq.h KSE Milestone 2 2001-09-12 08:38:13 +00:00
ncp_sock.c Lock down a socket, milestone 1. 2002-05-20 05:41:09 +00:00
ncp_sock.h Major update of NCP requester: 2001-03-10 05:24:45 +00:00
ncp_subr.c Use new kernel_sysctlbyname function. Remove private copy. 2001-05-19 05:48:07 +00:00
ncp_subr.h Change the suser() API to take advantage of td_ucred as well as do a 2002-04-01 21:31:13 +00:00
ncp_user.h Update to version 1.3.4 of ncplib. Cleanup header files. 1999-12-12 05:50:07 +00:00
ncp.h Specify packing for an entire structure, not for each element of it. 2001-03-10 05:06:29 +00:00
nwerror.h Update to version 1.3.4 of ncplib. Cleanup header files. 1999-12-12 05:50:07 +00:00