GETMAXPARTITIONS(3) BSD Programmer's Manual GETMAXPARTITIONS(3)
getmaxpartitions - get the maximum number of partitions allowed per disk
#include <util.h> int getmaxpartitions(void);
getmaxpartitions() returns the number of partitions that are allowed per disk on the system.
getrawpartition(3), sysctl(3)
The getmaxpartitions function call appeared in NetBSD 1.2. MirBSD #10-current May 15, 1996 1