Lines Matching defs:usec
126 static int parse_crtime(le64_t le, usec_t *usec) {
129 assert(usec);
135 *usec = (usec_t) u;
139 int fd_getcrtime(int fd, usec_t *usec) {
144 assert(usec);
155 return parse_crtime(le, usec);
158 int fd_getcrtime_at(int dirfd, const char *name, usec_t *usec, int flags) {
168 return parse_crtime(le, usec);
171 int path_getcrtime(const char *p, usec_t *usec) {
176 assert(usec);
184 return parse_crtime(le, usec);
187 int fd_setcrtime(int fd, usec_t usec) {
192 if (usec <= 0)
193 usec = now(CLOCK_REALTIME);
195 le = htole64((uint64_t) usec);