Module Name: src
Committed By: christos
Date: Wed Feb 8 18:00:37 UTC 2017
Modified Files:
src/lib/libc/include: reentrant.h
Log Message:
empty to nothing
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/lib/libc/include/reentrant.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/include/reentrant.h
diff -u src/lib/libc/include/reentrant.h:1.19 src/lib/libc/include/reentrant.h:1.20
--- src/lib/libc/include/reentrant.h:1.19 Wed Feb 8 11:13:40 2017
+++ src/lib/libc/include/reentrant.h Wed Feb 8 13:00:37 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: reentrant.h,v 1.19 2017/02/08 16:13:40 christos Exp $ */
+/* $NetBSD: reentrant.h,v 1.20 2017/02/08 18:00:37 christos Exp $ */
/*-
* Copyright (c) 1997, 1998, 2003 The NetBSD Foundation, Inc.
@@ -278,35 +278,35 @@ __END_DECLS
#else /* _REENTRANT */
-#define mutex_init(m, a) __empty
-#define mutex_lock(m) __empty
-#define mutex_trylock(m) __empty
-#define mutex_unlock(m) __empty
-#define mutex_destroy(m) __empty
-
-#define cond_init(c, t, a) __empty
-#define cond_signal(c) __empty
-#define cond_broadcast(c) __empty
-#define cond_wait(c, m) __empty
-#define cond_timedwait(c, m, t) __empty
-#define cond_destroy(c) __empty
-
-#define rwlock_init(l, a) __empty
-#define rwlock_rdlock(l) __empty
-#define rwlock_wrlock(l) __empty
-#define rwlock_tryrdlock(l) __empty
-#define rwlock_trywrlock(l) __empty
-#define rwlock_unlock(l) __empty
-#define rwlock_destroy(l) __empty
+#define mutex_init(m, a) __nothing
+#define mutex_lock(m) __nothing
+#define mutex_trylock(m) __nothing
+#define mutex_unlock(m) __nothing
+#define mutex_destroy(m) __nothing
+
+#define cond_init(c, t, a) __nothing
+#define cond_signal(c) __nothing
+#define cond_broadcast(c) __nothing
+#define cond_wait(c, m) __nothing
+#define cond_timedwait(c, m, t) __nothing
+#define cond_destroy(c) __nothing
+
+#define rwlock_init(l, a) __nothing
+#define rwlock_rdlock(l) __nothing
+#define rwlock_wrlock(l) __nothing
+#define rwlock_tryrdlock(l) __nothing
+#define rwlock_trywrlock(l) __nothing
+#define rwlock_unlock(l) __nothing
+#define rwlock_destroy(l) __nothing
#define thr_keycreate(k, d) /*LINTED*/0
-#define thr_setspecific(k, p) __empty
+#define thr_setspecific(k, p) __nothing
#define thr_getspecific(k) /*LINTED*/0
-#define thr_keydelete(k) __empty
+#define thr_keydelete(k) __nothing
-#define mutexattr_init(ma) __empty
-#define mutexattr_settype(ma, t) __empty
-#define mutexattr_destroy(ma) __empty
+#define mutexattr_init(ma) __nothing
+#define mutexattr_settype(ma, t) __nothing
+#define mutexattr_destroy(ma) __nothing
static inline int
thr_once(once_t *once_control, void (*routine)(void))
@@ -317,12 +317,12 @@ thr_once(once_t *once_control, void (*ro
}
return 0;
}
-#define thr_sigsetmask(f, n, o) __empty
-#define thr_self() __empty
-#define thr_errno() __empty
+#define thr_sigsetmask(f, n, o) __nothing
+#define thr_self() __nothing
+#define thr_errno() __nothing
#define thr_curcpu() ((unsigned int)0)
-#define FLOCKFILE(fp) __empty
-#define FUNLOCKFILE(fp) __empty
+#define FLOCKFILE(fp) __nothing
+#define FUNLOCKFILE(fp) __nothing
#endif /* _REENTRANT */