Page MenuHomeFreeBSD

D23767.diff
No OneTemporary

D23767.diff

Index: head/sys/compat/linuxkpi/common/include/linux/string.h
===================================================================
--- head/sys/compat/linuxkpi/common/include/linux/string.h
+++ head/sys/compat/linuxkpi/common/include/linux/string.h
@@ -154,4 +154,13 @@
return (NULL);
}
+static inline size_t
+str_has_prefix(const char *str, const char *prefix)
+{
+ size_t len;
+
+ len = strlen(prefix);
+ return (strncmp(str, prefix, len) == 0 ? len : 0);
+}
+
#endif /* _LINUX_STRING_H_ */

File Metadata

Mime Type
text/plain
Expires
Mon, Feb 10, 5:58 AM (3 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16572146
Default Alt Text
D23767.diff (502 B)

Event Timeline