Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/include/linux provide str_has_prefix
details: https://anonhg.NetBSD.org/src/rev/cbfba1399774
branches: trunk
changeset: 1028220:cbfba1399774
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 09:51:20 2021 +0000
description:
provide str_has_prefix
Author: Maya Rashish <maya%NetBSD.org@localhost>
diffstat:
sys/external/bsd/drm2/include/linux/string.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (16 lines):
diff -r 18895e69023e -r cbfba1399774 sys/external/bsd/drm2/include/linux/string.h
--- a/sys/external/bsd/drm2/include/linux/string.h Sun Dec 19 09:51:12 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/string.h Sun Dec 19 09:51:20 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: string.h,v 1.7 2021/12/19 01:34:15 riastradh Exp $ */
+/* $NetBSD: string.h,v 1.8 2021/12/19 09:51:20 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -131,4 +131,6 @@
*p++ = v;
}
+#define str_has_prefix(str, prefix) strncmp(str, prefix, strlen(prefix))
+
#endif /* _LINUX_STRING_H_ */
Home |
Main Index |
Thread Index |
Old Index