isduid man page on OpenBSD

Man page or keyword search:  
man Server   11362 pages
apropos Keyword Search (all sections)
Output format
OpenBSD logo
[printable version]

ISDUID(3)		  OpenBSD Programmer's Manual		     ISDUID(3)

NAME
     isduid - disklabel UID test

SYNOPSIS
     #include <util.h>

     int
     isduid(char *duid, int dflags);

DESCRIPTION
     The isduid() function tests the string duid to see if it is a valid
     disklabel(8) UID.	The dflags are specified using the same flags as used
     by opendev(3).

     If the OPENDEV_PART flag is included in dflags the disklabel UID must
     consist of a 16-character hexadecimal string.  Otherwise the disklabel
     UID must consist of a 16-character hexidecimal string followed by a `.'
     and a partition letter.

RETURN VALUES
     The isduid() function returns non-zero if duid is a valid DUID, otherwise
     zero is returned.

SEE ALSO
     opendev(3), disklabel(5), disklabel(8)

HISTORY
     The isduid() function first appeared in OpenBSD 4.9.

OpenBSD 4.9		       November 17, 2010		   OpenBSD 4.9
[top]

List of man pages available for OpenBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net