lukem
f0061ca489
revert previous.
...
it appears that i misread the intent of the iscooked parameter when
originally designing this feature with jason, and changing it broke
some programs.
2001-12-10 22:41:52 +00:00
lukem
b3bf0bffe1
Enforce is iscooked arg;
...
if zero, a matching path must be of type S_IFCHR, and
if non-zero, a matching path must be of type S_IFBLK.
2001-11-01 06:53:24 +00:00
ad
fce98185a9
- __RCSID() police.
...
- ANSIfy.
- Miscellaneous style changes.
- Shutup lint(1) in one or two cases.
2000-07-05 11:46:40 +00:00
lukem
d896261208
back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
...
_DIAGASSERT() is still retained.
1999-09-20 04:38:56 +00:00
lukem
b48252f365
* use _DIAGASSERT() to check pointer arguments against NULL and file
...
descriptors against -1 (as appropriate).
* add actual checks which to detect stuff that would trigger_DIAGASSERT(),
and attempt to return a sane error condition.
* knf some code
* remove some `register' decls.
the first two items result in the addition of code similar to the
following in various functions:
_DIAGASSERT(path != NULL)
#ifdef _DIAGNOSTIC
if (path == NULL) {
errno = EFAULT;
return (-1);
}
#endif
1999-09-16 11:44:54 +00:00
phil
c194103914
Back out my dumb change.
1997-09-30 17:13:50 +00:00
phil
83a44e0389
Add a prototype for opendisk so it will compile. (Should we have
...
a libutil.h for collecting all these prototypes?)
1997-09-30 16:53:12 +00:00
lukem
e6b7ef9676
reorder some checks so that buf is initialised as early as possible
...
(just after the check for buf != NULL)
1997-09-29 06:08:45 +00:00
lukem
1e372f6cf9
implement opendisk(3), as discussed with Jason Thorpe
1997-09-25 04:53:30 +00:00