summaryrefslogtreecommitdiffstats
path: root/lib/libutil/opendev.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* some -Wall and spaces cleanup, scsi.c left.fgsch2002-06-091-1/+1
| | | | some brave soul should look at it.
* Add OPENDEV_BLCK flag for opening the block devices (the charactermillert2000-04-301-33/+34
| | | | | | | | | | | | | device is opened by default). Don't open the file w/o adding a /dev/ prefix unless the file has a '/' in it. This prevents problems where someone says "disklabel sd0" with a file called "sd0" in the cwd. The OPENDEV_DRCT flag has been deprecated as it is the the default behavior and always has been. Add checks for >= MAXPATHLEN and return ENAMETOOLONG in that case.
* Bring prototypes into scopetholo1996-09-161-1/+2
|
* Use getrawpartition().downsj1996-07-021-3/+3
|
* only write to realpath if non-NULLderaadt1996-06-201-4/+7
|
* util.h: new resting placedownsj1996-06-171-8/+7
| | | | | | opendev.h: ok, so I merged it with util.h opendev.h: use util.h everything else: use "util.h"
* Add opendev(3) to libutil. Used by mt(1), soon by disklabel(8), maybedownsj1996-06-171-0/+86
others. This is a generic version of the code used by mt(1).