Okay, this patch avoids the loop if no wildcarding present, and keeps the same behaviour as original. It adds the string function strnchr to avoid searching past the maximum ifname size to find the f
I assume you mean strnchr not strrchr. Mainly just following the style of all the other string routines. What if gcc does it inline in some future version?
Yep, strnchr. Not sure what it has to do with that. The #ifdef __HAVE_ARCH_* stuff is that architectures with crazy enough hackers can add assembly optimized functions if they want. But it clearly do
Andi Kleen wrote: Not sure what it has to do with that. The #ifdef __HAVE_ARCH_* stuff is that architectures with crazy enough hackers can add assembly optimized functions if they want. But it clearl
Okay, this patch avoids the loop if no wildcarding present, and keeps the same behaviour as original. It adds the string function strnchr to avoid searching past the maximum ifname size to find the f
I assume you mean strnchr not strrchr. Mainly just following the style of all the other string routines. What if gcc does it inline in some future version?
Yep, strnchr. Not sure what it has to do with that. The #ifdef __HAVE_ARCH_* stuff is that architectures with crazy enough hackers can add assembly optimized functions if they want. But it clearly do
Not sure what it has to do with that. The #ifdef __HAVE_ARCH_* stuff is that architectures with crazy enough hackers can add assembly optimized functions if they want. But it clearly doesn't make any