GETFSSPECNAME(3)        NetBSD Library Functions Manual       GETFSSPECNAME(3)

NAME
     getfsspecname -- get the underlying wedge name from a label

LIBRARY
     System Utilities Library (libutil, -lutil)

SYNOPSIS
     #include <util.h>

     const char *
     getfsspecname(char *buf, size_t buflen, const char *spec);

DESCRIPTION
     The getfsspecname() function translates an fs_spec field in the spec
     argument of the form ``NAME=wedgename'' to the underlying dk(4) device
     node, and places the resulting pathname in buf up to len bufsiz.

     If the spec argument is not of the form ``NAME=wedgename'', spec is
     copied to buf and returned.

RETURN VALUES
     On success the absolute pathname of the underlying wedge device is
     returned, or the original spec argument.  On failure NULL is return and
     buf contains the reason for the error.

SEE ALSO
     fstab(5)

HISTORY
     The getfsspecname() function appeared in NetBSD 7.0.

NetBSD 6.0                       March 6, 2012                      NetBSD 6.0

You can also request any man page by name and (optionally) by section:

Command: 
Section: 
Architecture: 
Collection: 
 

Use the DEFAULT collection to view manual pages for third-party software.


©1994 Man-cgi 1.15, Panagiotis Christias <christia@softlab.ntua.gr>
©1996-2014 Modified for NetBSD by Kimmo Suominen