Page MenuHomeFreeBSD

linuxkpi: Add str_has_prefix
ClosedPublic

Authored by manu on Feb 19 2020, 10:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 3, 8:06 PM
Unknown Object (File)
Tue, Mar 24, 4:39 AM
Unknown Object (File)
Mon, Mar 23, 2:57 AM
Unknown Object (File)
Tue, Mar 17, 7:58 AM
Unknown Object (File)
Sun, Mar 15, 6:48 PM
Unknown Object (File)
Mar 6 2026, 9:40 AM
Unknown Object (File)
Feb 25 2026, 2:48 PM
Unknown Object (File)
Jan 5 2026, 3:27 AM
Subscribers

Details

Summary

This function test if the string str begins with the string pointed
at by prefix.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Don't forget to MFC to 11 and 12 and mention the word LinuxKPI in the commit message.

sys/compat/linuxkpi/common/include/linux/string.h
163 ↗(On Diff #68565)

Put a parenthesis around the returned result (BSD-style)

This revision is now accepted and ready to land.Feb 20 2020, 9:13 AM
This revision was automatically updated to reflect the committed changes.