Module Name:    src
Committed By:   ryoon
Date:           Tue Sep 21 13:51:46 UTC 2021

Modified Files:
        src/sys/sys: eventfd.h timerfd.h

Log Message:
Fix C++ case for eventfd.h and timerd.h


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/sys/eventfd.h src/sys/sys/timerfd.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/eventfd.h
diff -u src/sys/sys/eventfd.h:1.2 src/sys/sys/eventfd.h:1.3
--- src/sys/sys/eventfd.h:1.2	Sun Sep 19 15:51:27 2021
+++ src/sys/sys/eventfd.h	Tue Sep 21 13:51:46 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: eventfd.h,v 1.2 2021/09/19 15:51:27 thorpej Exp $	*/
+/*	$NetBSD: eventfd.h,v 1.3 2021/09/21 13:51:46 ryoon Exp $	*/
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -49,9 +49,11 @@ typedef uint64_t eventfd_t;
 struct lwp;
 int	do_eventfd(struct lwp *, unsigned int, int, register_t *);
 #else /* ! _KERNEL */
+__BEGIN_DECLS
 int	eventfd(unsigned int, int);
 int	eventfd_read(int, eventfd_t *);
 int	eventfd_write(int, eventfd_t);
+__END_DECLS
 #endif /* _KERNEL */
 
 #endif /* _SYS_EVENTFD_H_ */
Index: src/sys/sys/timerfd.h
diff -u src/sys/sys/timerfd.h:1.2 src/sys/sys/timerfd.h:1.3
--- src/sys/sys/timerfd.h:1.2	Sun Sep 19 15:51:27 2021
+++ src/sys/sys/timerfd.h	Tue Sep 21 13:51:46 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: timerfd.h,v 1.2 2021/09/19 15:51:27 thorpej Exp $	*/
+/*	$NetBSD: timerfd.h,v 1.3 2021/09/21 13:51:46 ryoon Exp $	*/
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -56,10 +56,12 @@ int	do_timerfd_gettime(struct lwp *, int
 int	do_timerfd_settime(struct lwp *, int, int, const struct itimerspec *,
 	    struct itimerspec *, register_t *);
 #else /* ! _KERNEL */
+__BEGIN_DECLS
 int	timerfd_create(clockid_t, int);
 int	timerfd_gettime(int, struct itimerspec *);
 int	timerfd_settime(int, int, const struct itimerspec *,
 	    struct itimerspec *);
+__END_DECLS
 #endif /* _KERNEL */
 
 #endif /* _SYS_TIMERFD_H_ */

Reply via email to