summaryrefslogtreecommitdiff
path: root/lib/libutil/opendev.c
AgeCommit message (Collapse)Author
2004-05-28knf; otto okTheo de Raadt
2002-06-09some -Wall and spaces cleanup, scsi.c left.Federico G. Schwindt
some brave soul should look at it.
2000-04-30Add OPENDEV_BLCK flag for opening the block devices (the characterTodd C. Miller
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.
1996-09-16Bring prototypes into scopeThorsten Lockert
1996-07-02Use getrawpartition().Jason Downs
1996-06-20only write to realpath if non-NULLTheo de Raadt
1996-06-17util.h: new resting placeJason Downs
opendev.h: ok, so I merged it with util.h opendev.h: use util.h everything else: use "util.h"
1996-06-17Add opendev(3) to libutil. Used by mt(1), soon by disklabel(8), maybeJason Downs
others. This is a generic version of the code used by mt(1).