dma: several fixes to make dma build on non-BSD OS's
authorSimon Schubert <corecode@dragonflybsd.org>
Thu, 9 Jul 2009 12:37:14 +0000 (14:37 +0200)
committerSimon Schubert <corecode@dragonflybsd.org>
Thu, 16 Jul 2009 14:13:03 +0000 (16:13 +0200)
commit144b337d5fb21324286871fbca0c90d460e06d9d
treeaef2ca7b1922ef921a1beaf4e81f8c8f499cf76a
parentceed7673ad77bc38486ac094003bd803978a863b
dma: several fixes to make dma build on non-BSD OS's

- replace open(..., O_EXLOCK) with a new open_locked() routine;
- define the __unused function attribute;
- do not redefine PATH_MAX.

Submitted-by: Peter Pentchev <roam@ringlet.net>
libexec/dma/dma.c
libexec/dma/dma.h