![]() |
![]() |
![]() |
Update time stamps
#include <sys/iofunc.h> int iofunc_time_update( iofunc_attr_t* attr );
libc
The iofunc_time_update() function examines the flags member in the passed attr structure against the bits IOFUNC_ATTR_ATIME, IOFUNC_ATTR_MTIME, and IOFUNC_ATTR_CTIME. If any of these bits are set, the corresponding time member of attr (e.g. attr->atime) isn't valid. This function updates all invalid attr members to the current time.
If any change to the attr structure's time members is made, the attr structure's flags member has the bit IOFUNC_ATTR_DIRTY_TIME set. The IOFUNC_ATTR_ATIME, IOFUNC_ATTR_MTIME, and IOFUNC_ATTR_CTIME bits are always cleared from attr->flags on return.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
![]() |
![]() |
![]() |