DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

mas_close(3mas)


mas_close -- close a metric registration file for consumer use

Synopsis

   cc [options] file -lmas
   

#include <mas.h> int mas_close(int md);

Description

mas_close closes the metric registration file associated with the metric descriptor, md. The metric descriptor, md, must refer to a file that was previously opened with mas_open. mas_close deallocates memory and destroys any memory mappings that were set up by mas_open.

Return values

On success, mas_close returns 0.

On failure, mas_close returns -1 and sets mas_errno to identify the error.

Errors


MAS_INVALIDARG - invalid metric descriptor
The metric descriptor, md, that was passed to mas_close does not correspond to a metric registration file previously opened with mas_open.

References

Intro(3mas), mas_open(3mas), metreg(4)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004