Go to main content

man pages section 3: Extended Library Functions, Volume 2

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

m_destroy_layout(3LAYOUT)

Name

m_destroy_layout - destroy a layout object

Synopsis

cc [ flag... ] file... –llayout [ library... ]
#include <sys/layout.h>



int m_destroy_layout(const LayoutObject layoutobject);

Description

The m_destroy_layout() function destroys a LayoutObject by deallocating the layout object and all the associated resources previously allocated by the m_create_layout(3LAYOUT) function.

Return Values

Upon successful completion, 0 is returned. Otherwise −1 is returned and errno is set to indicate the error.

Errors

The m_destroy_layout() function may fail if:

EBADF

The attribute object is erroneous.

EFAULT

Errors occurred while processing the request.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
MT-Safe
Standard

See Also

m_create_layout(3LAYOUT), attributes(7), standards(7)