-/* $OpenBSD: cmp.c,v 1.6 2009/10/27 23:59:21 deraadt Exp $ */
+/* $OpenBSD: cmp.c,v 1.7 2023/08/08 04:45:44 guenther Exp $ */
/* $NetBSD: cmp.c,v 1.10 1996/07/08 10:32:01 mycroft Exp $ */
/*
return (1);
else if (b->fts_statp->st_mtime < a->fts_statp->st_mtime)
return (-1);
- else if (b->fts_statp->st_mtimensec > a->fts_statp->st_mtimensec)
+ else if (b->fts_statp->st_mtim.tv_nsec > a->fts_statp->st_mtim.tv_nsec)
return (1);
- else if (b->fts_statp->st_mtimensec < a->fts_statp->st_mtimensec)
+ else if (b->fts_statp->st_mtim.tv_nsec < a->fts_statp->st_mtim.tv_nsec)
return (-1);
else
return (namecmp(a, b));
return (-1);
else if (b->fts_statp->st_mtime < a->fts_statp->st_mtime)
return (1);
- else if (b->fts_statp->st_mtimensec > a->fts_statp->st_mtimensec)
+ else if (b->fts_statp->st_mtim.tv_nsec > a->fts_statp->st_mtim.tv_nsec)
return (-1);
- else if (b->fts_statp->st_mtimensec < a->fts_statp->st_mtimensec)
+ else if (b->fts_statp->st_mtim.tv_nsec < a->fts_statp->st_mtim.tv_nsec)
return (1);
else
return (revnamecmp(a, b));
return (1);
else if (b->fts_statp->st_atime < a->fts_statp->st_atime)
return (-1);
- else if (b->fts_statp->st_atimensec > a->fts_statp->st_atimensec)
+ else if (b->fts_statp->st_atim.tv_nsec > a->fts_statp->st_atim.tv_nsec)
return (1);
- else if (b->fts_statp->st_atimensec < a->fts_statp->st_atimensec)
+ else if (b->fts_statp->st_atim.tv_nsec < a->fts_statp->st_atim.tv_nsec)
return (-1);
else
return (namecmp(a, b));
return (-1);
else if (b->fts_statp->st_atime < a->fts_statp->st_atime)
return (1);
- else if (b->fts_statp->st_atimensec > a->fts_statp->st_atimensec)
+ else if (b->fts_statp->st_atim.tv_nsec > a->fts_statp->st_atim.tv_nsec)
return (-1);
- else if (b->fts_statp->st_atimensec < a->fts_statp->st_atimensec)
+ else if (b->fts_statp->st_atim.tv_nsec < a->fts_statp->st_atim.tv_nsec)
return (1);
else
return (revnamecmp(a, b));
return (1);
else if (b->fts_statp->st_ctime < a->fts_statp->st_ctime)
return (-1);
- else if (b->fts_statp->st_ctimensec > a->fts_statp->st_ctimensec)
+ else if (b->fts_statp->st_ctim.tv_nsec > a->fts_statp->st_ctim.tv_nsec)
return (1);
- else if (b->fts_statp->st_ctimensec < a->fts_statp->st_ctimensec)
+ else if (b->fts_statp->st_ctim.tv_nsec < a->fts_statp->st_ctim.tv_nsec)
return (-1);
else
return (namecmp(a, b));
return (-1);
else if (b->fts_statp->st_ctime < a->fts_statp->st_ctime)
return (1);
- else if (b->fts_statp->st_ctimensec > a->fts_statp->st_ctimensec)
+ else if (b->fts_statp->st_ctim.tv_nsec > a->fts_statp->st_ctim.tv_nsec)
return (-1);
- else if (b->fts_statp->st_ctimensec < a->fts_statp->st_ctimensec)
+ else if (b->fts_statp->st_ctim.tv_nsec < a->fts_statp->st_ctim.tv_nsec)
return (1);
else
return (revnamecmp(a, b));
-/* $OpenBSD: ffs.c,v 1.37 2023/04/25 08:57:11 krw Exp $ */
+/* $OpenBSD: ffs.c,v 1.38 2023/08/08 04:45:44 guenther Exp $ */
/* $NetBSD: ffs.c,v 1.66 2015/12/21 00:58:08 christos Exp $ */
/*
dinp->di_atime = cur->inode->st.st_atime;
dinp->di_mtime = cur->inode->st.st_mtime;
dinp->di_ctime = cur->inode->st.st_ctime;
- dinp->di_atimensec = cur->inode->st.st_atimensec;
- dinp->di_mtimensec = cur->inode->st.st_mtimensec;
- dinp->di_ctimensec = cur->inode->st.st_ctimensec;
+ dinp->di_atimensec = cur->inode->st.st_atim.tv_nsec;
+ dinp->di_mtimensec = cur->inode->st.st_mtim.tv_nsec;
+ dinp->di_ctimensec = cur->inode->st.st_ctim.tv_nsec;
/* not set: di_db, di_ib, di_blocks, di_spare */
membuf = NULL;
dinp->di_atime = cur->inode->st.st_atime;
dinp->di_mtime = cur->inode->st.st_mtime;
dinp->di_ctime = cur->inode->st.st_ctime;
- dinp->di_atimensec = cur->inode->st.st_atimensec;
- dinp->di_mtimensec = cur->inode->st.st_mtimensec;
- dinp->di_ctimensec = cur->inode->st.st_ctimensec;
+ dinp->di_atimensec = cur->inode->st.st_atim.tv_nsec;
+ dinp->di_mtimensec = cur->inode->st.st_mtim.tv_nsec;
+ dinp->di_ctimensec = cur->inode->st.st_ctim.tv_nsec;
/* not set: di_db, di_ib, di_blocks, di_spare */
membuf = NULL;