Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Move the semantic restriction codes from sys/quotact...
details: https://anonhg.NetBSD.org/src/rev/99714847b290
branches: trunk
changeset: 773251:99714847b290
user: dholland <dholland%NetBSD.org@localhost>
date: Sun Jan 29 19:36:14 2012 +0000
description:
Move the semantic restriction codes from sys/quotactl.h to
sys/quota.h; they're meant to be used by applications and were
stuffed into the wrong place by accident last week and got
committed that way yesterday.
diffstat:
sys/sys/quota.h | 11 ++++++++++-
sys/sys/quotactl.h | 11 ++---------
2 files changed, 12 insertions(+), 10 deletions(-)
diffs (57 lines):
diff -r bcf318d14bd8 -r 99714847b290 sys/sys/quota.h
--- a/sys/sys/quota.h Sun Jan 29 19:08:26 2012 +0000
+++ b/sys/sys/quota.h Sun Jan 29 19:36:14 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: quota.h,v 1.10 2012/01/29 06:43:34 dholland Exp $ */
+/* $NetBSD: quota.h,v 1.11 2012/01/29 19:36:14 dholland Exp $ */
/*-
* Copyright (c) 2010 Manuel Bouyer
* All rights reserved.
@@ -47,6 +47,15 @@
/* time value for "no time" */
#define QUOTA_NOTIME ((time_t)-1)
+/*
+ * Semantic restrictions. These are hints applications can use
+ * to help produce comprehensible error diagnostics when something
+ * unsupported is attempted.
+ */
+#define QUOTA_RESTRICT_NEEDSQUOTACHECK 0x1 /* quotacheck(8) required */
+#define QUOTA_RESTRICT_UNIFORMGRACE 0x2 /* grace time is global */
+#define QUOTA_RESTRICT_32BIT 0x4 /* values limited to 2^32 */
+
/*
* Structure used to describe the key part of a quota record.
diff -r bcf318d14bd8 -r 99714847b290 sys/sys/quotactl.h
--- a/sys/sys/quotactl.h Sun Jan 29 19:08:26 2012 +0000
+++ b/sys/sys/quotactl.h Sun Jan 29 19:36:14 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: quotactl.h,v 1.30 2012/01/29 07:13:43 dholland Exp $ */
+/* $NetBSD: quotactl.h,v 1.31 2012/01/29 19:36:14 dholland Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -40,13 +40,6 @@
/* Size of random quota strings */
#define QUOTA_NAMELEN 32
-/*
- * Restrictions for qs_restrictions.
- */
-#define QUOTA_RESTRICT_NEEDSQUOTACHECK 0x1 /* quotacheck(8) required */
-#define QUOTA_RESTRICT_UNIFORMGRACE 0x2 /* grace time is global */
-#define QUOTA_RESTRICT_32BIT 0x4 /* values limited to 2^32 */
-
/*
* Structure for QUOTACTL_STAT.
*/
@@ -54,7 +47,7 @@
char qs_implname[QUOTA_NAMELEN];
unsigned qs_numidtypes;
unsigned qs_numobjtypes;
- unsigned qs_restrictions;
+ unsigned qs_restrictions; /* semantic restriction codes */
};
/*
Home |
Main Index |
Thread Index |
Old Index