Module Name:    src
Committed By:   dholland
Date:           Mon Aug 27 22:22:16 UTC 2018

Modified Files:
        src/sys/sys: file.h

Log Message:
Fix lying comment; the point of the KERN_FILE2 sysctl, or much of it,
is to not expose struct file directly.


To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 src/sys/sys/file.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/file.h
diff -u src/sys/sys/file.h:1.83 src/sys/sys/file.h:1.84
--- src/sys/sys/file.h:1.83	Thu Nov 30 20:25:56 2017
+++ src/sys/sys/file.h	Mon Aug 27 22:22:16 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: file.h,v 1.83 2017/11/30 20:25:56 christos Exp $	*/
+/*	$NetBSD: file.h,v 1.84 2018/08/27 22:22:16 dholland Exp $	*/
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -118,8 +118,12 @@ union file_data {
  * Kernel file descriptor.  One entry for each open kernel vnode and
  * socket.
  *
- * This structure is exported via the KERN_FILE and KERN_FILE2 sysctl
- * calls.  Only add members to the end, do not delete them.
+ * This structure is exported via the KERN_FILE sysctl.
+ * Only add members to the end, do not delete them.
+ *
+ * Note: new code should not use KERN_FILE; use KERN_FILE2 instead,
+ * which exports struct kinfo_file instead; struct kinfo_file is
+ * declared in sys/sysctl.h and is meant to be ABI-stable.
  */
 struct file {
 	off_t		f_offset;	/* first, is 64-bit */

Reply via email to