summaryrefslogtreecommitdiff
path: root/sys/ufs
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2019-05-04 15:38:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2019-05-04 15:38:13 +0000
commit08629c49886d066071a302de5779a9300b263ede (patch)
tree72a6d0c95ad0e0c590fa6f95a97876f980273e71 /sys/ufs
parente40855118a6700d04bcb54580b1311a99a947be7 (diff)
Add DIR_ROUNDUP define, from Kirk McKusick
ok millert otto kettenis
Diffstat (limited to 'sys/ufs')
-rw-r--r--sys/ufs/ufs/dir.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ufs/ufs/dir.h b/sys/ufs/ufs/dir.h
index 64ddb028707..d9d94e7e17f 100644
--- a/sys/ufs/ufs/dir.h
+++ b/sys/ufs/ufs/dir.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dir.h,v 1.11 2009/01/31 21:21:45 grange Exp $ */
+/* $OpenBSD: dir.h,v 1.12 2019/05/04 15:38:12 deraadt Exp $ */
/* $NetBSD: dir.h,v 1.8 1996/03/09 19:42:41 scottr Exp $ */
/*
@@ -108,6 +108,7 @@ struct direct {
* without the d_name field, plus enough space for the name with a terminating
* null byte (dp->d_namlen+1), rounded up to a 4 byte boundary.
*/
+#define DIR_ROUNDUP 4 /* Directory name roundup size */
#define DIRECTSIZ(namlen) \
((offsetof(struct direct, d_name) + \
((namlen)+1)*sizeof(((struct direct *)0)->d_name[0]) + 3) & ~3)