Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109764742
D23767.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
502 B
Referenced Files
None
Subscribers
None
D23767.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D23767: linuxkpi: Add str_has_prefix
Attached
Detach File
Event Timeline
Log In to Comment