| Updated: October 28, 2024 |
Populate a stat structure
#include <sys/iofunc.h>
int iofunc_stat( resmgr_context_t* ctp,
iofunc_attr_t* attr,
struct stat* statp );
int iofunc_stat_format( resmgr_context_t *ctp,
iofunc_attr_t *attr,
unsigned *formatp,
struct stat *statp,
unsigned *lenp );
If the function doesn't recognize the form, it uses _STAT_FORM_T64_2008 and sets *statp to that value.
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The iofunc_stat() and iofunc_stat_format() functions populate the passed statp structure based on information from the passed attr structure and the context pointer, ctp.
These functions are typically used when the resource manager is handling the _IO_STAT message, and needs to format the current status information for the resource.
EOK on successful completion, or an errno value if an error occurred.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |