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)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.