Go to file
ad c743ad7159 File descriptor changes, discussed on tech-kern:
- Redo reference counting to be sane.  LWPs accessing files take a short
  term reference on the local file descriptor.  This is the most common
  case.  While a file is in a process descriptor table, a reference is
  held to the file.  The file reference count only changes during control
  operations like open() or close().  Code that comes at files from an
  unusual direction (i.e. foreign to the process) like procfs or sysctl
  takes a reference on the file (f_count), and not on a descriptor.

- Remove knowledge of reference counting and locking from most code that
  deals with files.

- Make the usual case of file descriptor lookup lockless.

- Make kqueue MP and MT safe. PR kern/38098, PR kern/38137.

- Fix numerous file handling bugs, and bugs in the descriptor code that
  affected multithreaded processes.

- Split descriptor system calls out into sys_descrip.c.

- A few stylistic changes: KNF, remove unused casts now that caddr_t is
  gone. Replace dumb gotos with loop control in a few places.

- Don't do redundant pointer passing (struct proc, lwp, filedesc *) unless
  the routine is likely to be inlined.  Most of the time it's about the
  current process.
2008-03-21 21:53:35 +00:00
bin ps -t? needs to imply -x. Otherwise the non-x logic filters all the results 2008-03-10 03:44:11 +00:00
common Add ia64 MI atomic ops. 2008-03-20 07:10:31 +00:00
crypto Generates a log if cert validation has been disabled by configuration 2008-03-06 17:00:03 +00:00
dist Fix compilation, from Kurt Schreiner 2008-03-18 17:35:36 +00:00
distrib Add "netbsd-tips" fortune database with 23 initial fortunes -- 2008-03-21 21:09:48 +00:00
doc default itojuns responsibilities to core 2008-03-21 08:56:06 +00:00
etc Convert all the etc/etc.*/Makefile.inc to use RELEASEDIR/RELEASEMACHINEDIR 2008-03-18 04:20:36 +00:00
games Add five more tips. 2008-03-21 21:45:30 +00:00
gnu #include "nbsd-nat.h" 2008-03-17 20:01:12 +00:00
include Since _file is a short, check that the fd fits in it, otherwise bail with 2008-03-13 15:40:00 +00:00
lib Move pthread__errno() into pthread_specific.c so it gets the "no stack 2008-03-21 21:35:43 +00:00
libexec Switch from lockf() to (more portable) fcntl() locking 2008-03-09 20:11:43 +00:00
regress - Use atomic_inc_uint() to maintain the global count. 2008-03-21 16:03:33 +00:00
rescue make all sun2 use -O0 and move most of the hacks out into just 3 files. 2008-02-09 02:37:21 +00:00
sbin un-bitrot #if 0 testing code. 2008-03-18 15:38:57 +00:00
share Fix reference to sshd_config manpage. 2008-03-21 21:27:16 +00:00
sys File descriptor changes, discussed on tech-kern: 2008-03-21 21:53:35 +00:00
tests Add tests for load-time parameter passing to modules, both at the syscall 2008-03-02 11:22:10 +00:00
tools Collect the libobjc config.h 2008-02-08 18:06:48 +00:00
usr.bin allow SUSv3 syntax. 2008-03-20 11:35:44 +00:00
usr.sbin add the knowledge to create service records for "Personal Area Networking" 2008-03-19 23:15:19 +00:00
x11 MKMAN does not belong in source makefiles; use NOMAN. 2008-03-10 02:02:56 +00:00
BUILDING Consistently document RELEASEDIR/RELEASEMACHINEDIR. 2008-03-18 04:24:38 +00:00
Makefile Consistently document RELEASEDIR/RELEASEMACHINEDIR. 2008-03-18 04:24:38 +00:00
Makefile.inc don't set KERNSRCDIR here; pull in <bsd.kernobj.mk> if you need it 2002-04-10 14:53:43 +00:00
UPDATING mention posix_fadvise lossage. 2008-01-28 03:30:26 +00:00
build.sh Obtain RELEASEMACHINEDIR from the make environment. 2008-03-16 07:52:59 +00:00