Home | History | Annotate | Download | only in libutil
History log of /src/lib/libutil/opendisk.c
RevisionDateAuthorComments
 1.14  06-Jun-2016  christos PR/51216: Instead of trying to open files in the current working
directory first for paths that don't contain "/", first try the
/dev paths to avoid confusion with files in the working directory
that happen to match disk names.
 1.13  29-Sep-2014  christos toolify opendisk
 1.12  13-Oct-2009  pooka branches: 1.12.24; 1.12.28;
In a furious blaze of *facepalm* / "what was i thinking?", fix the
open routine function pointer prototype of opendisk1() to match
the prototype of open().
 1.11  08-Sep-2009  pooka Add opendisk1(), which functions like opendisk(), but takes a function
pointer to the routine to be used for open().
 1.10  28-Apr-2008  martin branches: 1.10.6; 1.10.8; 1.10.14;
Remove clause 3 and 4 from TNF licenses
 1.9  10-Dec-2001  lukem branches: 1.9.32;
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.
 1.8  01-Nov-2001  lukem 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.
 1.7  05-Jul-2000  ad - __RCSID() police.
- ANSIfy.
- Miscellaneous style changes.
- Shutup lint(1) in one or two cases.
 1.6  20-Sep-1999  lukem back out the #ifdef _DIAGNOSTIC argument checks; too many people complained.
_DIAGASSERT() is still retained.
 1.5  16-Sep-1999  lukem * 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
 1.4  30-Sep-1997  phil Back out my dumb change.
 1.3  30-Sep-1997  phil Add a prototype for opendisk so it will compile. (Should we have
a libutil.h for collecting all these prototypes?)
 1.2  29-Sep-1997  lukem reorder some checks so that buf is initialised as early as possible
(just after the check for buf != NULL)
 1.1  25-Sep-1997  lukem implement opendisk(3), as discussed with Jason Thorpe
 1.9.32.1  18-May-2008  yamt sync with head.
 1.10.14.1  21-Apr-2010  matt sync to netbsd-5
 1.10.8.2  28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.10.8.1  28-Apr-2008  martin file opendisk.c was added on branch christos-time_t on 2008-04-28 20:23:04 +0000
 1.10.6.2  14-Oct-2009  sborrill Pull up the following revisions(s) (requested by pooka in ticket #1089):
include/util.h: revision 1.53
lib/libutil/opendisk.c: revision 1.12

Fix the open routine function pointer prototype of opendisk1() to match
the prototype of open().
 1.10.6.1  05-Oct-2009  sborrill Pull up the following revisions(s) (requested by pooka in ticket #1047):
include/util.h: revision 1.52
lib/libutil/opendisk.c: revision 1.11
Add opendisk1(), which functions like opendisk(), but takes a function
pointer to the routine to be used for open().
 1.12.28.1  13-Mar-2017  skrll Sync with netbsd-7-1-RELEASE
 1.12.24.1  29-Jan-2017  snj Pull up following revision(s) (requested by pgoyette in ticket #1349):
lib/libutil/opendisk.c: revision 1.14
lib/libutil/opendisk.3: revision 1.12, 1.13
PR/51216: Instead of trying to open files in the current working
directory first for paths that don't contain "/", first try the
/dev paths to avoid confusion with files in the working directory
that happen to match disk names.

RSS XML Feed