DragonFly On-Line Manual Pages

Search: Section:  


encap_platform_name(3)          C Library Calls         encap_platform_name(3)

NAME

encap_platform_name, encap20_platform_name, encap_platform_split, encap_platform_compat - manipulate Encap platform names

SYNOPSIS

#include <encap.h> char *encap_platform_name(char *buf, size_t bufsize); char *encap20_platform_name(char *buf, size_t bufsize); int encap_platform_split(char *pkg_platform, char *base, size_t baselen, char *suffix, size_t suffixlen); int encap_platform_compat(char *pkg_platform, char *host_platform, encap_list_t *host_suffix_l);

VERSION

This man page documents version 2.3 of libencap.

DESCRIPTION

The encap_platform_name() function writes the name of the host platform into the buffer pointed to by buf with size bufsize. The encap20_platform_name() function is identical to the encap_platform_name() function, except that it writes the obsolete Encap 2.0 platform name instead of the Encap 2.1 platform name. The encap_platform_split() function splits a package's platform name into the base platform name (which is written to the buffer base of length baselen) and the platform suffix (which is written to the buffer suffix of length suffixlen). The encap_platform_compat() function checks a package's platform name (pkg_platform) for compatibility with the host platform (host_platform) and the allowable suffix list (host_suffix_l).

RETURN VALUES

The encap_platform_name() function returns a pointer to buf. The encap20_platform_name() function returns a pointer to buf. The encap_platform_split() function returns 0 on success, or -1 on failure (and sets errno). The encap_platform_compat() function returns 0 if the platform is not compatible, 1 if the platform is compatible, or -1 on failure (and sets errno). University of Illinois Oct 2002 encap_platform_name(3)

Search: Section: