NetBSD/usr.bin/fstat
ad d991fcb3b6 More changes to improve kern_descrip.c.
- Avoid atomics in more places.
- Remove the per-descriptor mutex, and just use filedesc_t::fd_lock.
  It was only being used to synchronize close, and in any case we needed
  to take fd_lock to free the descriptor slot.
- Optimize certain paths for the <NDFDFILE case.
- Sprinkle more comments and assertions.
- Cache more stuff in filedesc_t.
- Fix numerous minor bugs spotted along the way.
- Restructure how the open files array is maintained, for clarity and so
  that we can eliminate the membar_consumer() call in fd_getfile().  This is
  mostly syntactic sugar; the main functional change is that fd_nfiles now
  lives alongside the open file array.

Some measurements with libmicro:

- simple file syscalls are like close() are between 1 to 10% faster.
- some nice improvements, e.g. poll(1000) which is ~50% faster.
2009-05-24 21:41:25 +00:00
..
fstat.1 Sockets: Do not mention printing flags, because they are not printed. 2009-01-04 17:19:39 +00:00
fstat.c More changes to improve kern_descrip.c. 2009-05-24 21:41:25 +00:00
fstat.h Fix sign-compare issues. 2009-04-12 06:36:12 +00:00
isofs.c Fix sign-compare issues. 2009-04-12 06:36:12 +00:00
Makefile Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
misc.c Fix sign-compare issues. 2009-04-12 06:36:12 +00:00
ntfs.c Fix sign-compare issues. 2009-04-12 06:36:12 +00:00
ptyfs.c Fix sign-compare issues. 2009-04-12 06:36:12 +00:00
tmpfs.c Fix sign-compare issues. 2009-04-12 06:36:12 +00:00