Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Fix C++ case for eventfd.h and timerd.h



details:   https://anonhg.NetBSD.org/src/rev/7689d91823f7
branches:  trunk
changeset: 1023664:7689d91823f7
user:      ryoon <ryoon%NetBSD.org@localhost>
date:      Tue Sep 21 13:51:46 2021 +0000

description:
Fix C++ case for eventfd.h and timerd.h

diffstat:

 sys/sys/eventfd.h |  4 +++-
 sys/sys/timerfd.h |  4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diffs (43 lines):

diff -r db1aeed268e1 -r 7689d91823f7 sys/sys/eventfd.h
--- a/sys/sys/eventfd.h Tue Sep 21 09:24:15 2021 +0000
+++ b/sys/sys/eventfd.h Tue Sep 21 13:51:46 2021 +0000
@@ -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 @@
 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_ */
diff -r db1aeed268e1 -r 7689d91823f7 sys/sys/timerfd.h
--- a/sys/sys/timerfd.h Tue Sep 21 09:24:15 2021 +0000
+++ b/sys/sys/timerfd.h Tue Sep 21 13:51:46 2021 +0000
@@ -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_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_ */



Home | Main Index | Thread Index | Old Index