HomeFreeBSD

strchr() and strrchr() are already present in the kernel, but with less
rS168604Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

strchr() and strrchr() are already present in the kernel, but with less
popular names. Hence:

  • comment current index() and rindex() functions, as these serve the same functionality as, respectively, strchr() and strrchr() from userland;
  • add inlined version of strchr() and strrchr(), as we tend to use them more often;
  • remove str[r]chr() definitions from ZFS code;

Reviewed by: pjd
Approved by: cognet (mentor)

Details

Provenance
wkoszekAuthored on
Parents
rS168603: Remove trailing '.' for consistency!
Branches
Unknown
Tags
Unknown

Event Timeline