Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171713419
D59600.id186489.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
6 KB
Referenced Files
None
Subscribers
None
D59600.id186489.diff
View Options
diff --git a/lib/libc/aarch64/string/strpbrk.c b/lib/libc/aarch64/string/strpbrk.c
--- a/lib/libc/aarch64/string/strpbrk.c
+++ b/lib/libc/aarch64/string/strpbrk.c
@@ -33,7 +33,7 @@
size_t __strcspn(const char *, const char *);
char *
-strpbrk(const char *s, const char *charset)
+(strpbrk)(const char *s, const char *charset)
{
size_t loc;
diff --git a/lib/libc/amd64/string/strpbrk.c b/lib/libc/amd64/string/strpbrk.c
--- a/lib/libc/amd64/string/strpbrk.c
+++ b/lib/libc/amd64/string/strpbrk.c
@@ -33,7 +33,7 @@
size_t __strcspn(const char *, const char *);
char *
-strpbrk(const char *s, const char *charset)
+(strpbrk)(const char *s, const char *charset)
{
size_t loc;
diff --git a/lib/libc/stdlib/bsearch.c b/lib/libc/stdlib/bsearch.c
--- a/lib/libc/stdlib/bsearch.c
+++ b/lib/libc/stdlib/bsearch.c
@@ -66,15 +66,15 @@
*/
#ifdef I_AM_BSEARCH_B
void *
-bsearch_b(const void *key, const void *base0, size_t nmemb, size_t size,
+(bsearch_b)(const void *key, const void *base0, size_t nmemb, size_t size,
compar_block compar)
#elif defined(I_AM_BSEARCH_S)
void *
-bsearch_s(const void *key, const void *base0, rsize_t nmemb, rsize_t size,
+(bsearch_s)(const void *key, const void *base0, rsize_t nmemb, rsize_t size,
int (*compar)(const void *, const void *, void *), void *context)
#else
void *
-bsearch(const void *key, const void *base0, size_t nmemb, size_t size,
+(bsearch)(const void *key, const void *base0, size_t nmemb, size_t size,
int (*compar)(const void *, const void *))
#endif
{
diff --git a/lib/libc/string/memchr.c b/lib/libc/string/memchr.c
--- a/lib/libc/string/memchr.c
+++ b/lib/libc/string/memchr.c
@@ -33,7 +33,7 @@
#define HASZERO(x) (((x)-ONES) & ~(x)&HIGHS)
void *
-memchr(const void *src, int c, size_t n)
+(memchr)(const void *src, int c, size_t n)
{
const unsigned char *s = src;
c = (unsigned char)c;
diff --git a/lib/libc/string/memmem.c b/lib/libc/string/memmem.c
--- a/lib/libc/string/memmem.c
+++ b/lib/libc/string/memmem.c
@@ -181,7 +181,7 @@
}
void *
-memmem(const void *h0, size_t k, const void *n0, size_t l)
+(memmem)(const void *h0, size_t k, const void *n0, size_t l)
{
const unsigned char *h = h0, *n = n0;
diff --git a/lib/libc/string/memrchr.c b/lib/libc/string/memrchr.c
--- a/lib/libc/string/memrchr.c
+++ b/lib/libc/string/memrchr.c
@@ -23,7 +23,7 @@
* Find the last occurrence of 'c' in the buffer 's' of size 'n'.
*/
void *
-memrchr(const void *s, int c, size_t n)
+(memrchr)(const void *s, int c, size_t n)
{
const unsigned char *cp;
diff --git a/lib/libc/string/strcasestr.c b/lib/libc/string/strcasestr.c
--- a/lib/libc/string/strcasestr.c
+++ b/lib/libc/string/strcasestr.c
@@ -65,7 +65,7 @@
return ((char *)s);
}
char *
-strcasestr(const char *s, const char *find)
+(strcasestr)(const char *s, const char *find)
{
return strcasestr_l(s, find, __get_locale());
}
diff --git a/lib/libc/string/strchr.c b/lib/libc/string/strchr.c
--- a/lib/libc/string/strchr.c
+++ b/lib/libc/string/strchr.c
@@ -27,7 +27,7 @@
char *__strchrnul(const char *, int);
char *
-strchr(const char *s, int c)
+(strchr)(const char *s, int c)
{
char *r = __strchrnul(s, c);
return *(unsigned char *)r == (unsigned char)c ? r : NULL;
diff --git a/lib/libc/string/strnstr.c b/lib/libc/string/strnstr.c
--- a/lib/libc/string/strnstr.c
+++ b/lib/libc/string/strnstr.c
@@ -40,7 +40,7 @@
* first slen characters of s.
*/
char *
-strnstr(const char *s, const char *find, size_t slen)
+(strnstr)(const char *s, const char *find, size_t slen)
{
char c, sc;
size_t len;
diff --git a/lib/libc/string/strpbrk.c b/lib/libc/string/strpbrk.c
--- a/lib/libc/string/strpbrk.c
+++ b/lib/libc/string/strpbrk.c
@@ -35,7 +35,7 @@
* Find the first occurrence in s1 of a character in s2 (excluding NUL).
*/
char *
-strpbrk(const char *s1, const char *s2)
+(strpbrk)(const char *s1, const char *s2)
{
const char *scanp;
int c, sc;
diff --git a/lib/libc/string/strrchr.c b/lib/libc/string/strrchr.c
--- a/lib/libc/string/strrchr.c
+++ b/lib/libc/string/strrchr.c
@@ -33,7 +33,7 @@
#include <string.h>
char *
-strrchr(const char *p, int ch)
+(strrchr)(const char *p, int ch)
{
char *save;
char c;
diff --git a/lib/libc/string/strstr.c b/lib/libc/string/strstr.c
--- a/lib/libc/string/strstr.c
+++ b/lib/libc/string/strstr.c
@@ -192,7 +192,7 @@
}
char *
-strstr(const char *h, const char *n)
+(strstr)(const char *h, const char *n)
{
/* Return immediately on empty needle */
if (!n[0])
diff --git a/lib/libc/string/wcschr.c b/lib/libc/string/wcschr.c
--- a/lib/libc/string/wcschr.c
+++ b/lib/libc/string/wcschr.c
@@ -29,7 +29,7 @@
#include <wchar.h>
wchar_t *
-wcschr(const wchar_t *s, wchar_t c)
+(wcschr)(const wchar_t *s, wchar_t c)
{
while (*s != c && *s != L'\0')
diff --git a/lib/libc/string/wcspbrk.c b/lib/libc/string/wcspbrk.c
--- a/lib/libc/string/wcspbrk.c
+++ b/lib/libc/string/wcspbrk.c
@@ -37,7 +37,7 @@
#include <wchar.h>
wchar_t *
-wcspbrk(const wchar_t *s, const wchar_t *set)
+(wcspbrk)(const wchar_t *s, const wchar_t *set)
{
const wchar_t *p;
const wchar_t *q;
diff --git a/lib/libc/string/wcsrchr.c b/lib/libc/string/wcsrchr.c
--- a/lib/libc/string/wcsrchr.c
+++ b/lib/libc/string/wcsrchr.c
@@ -29,7 +29,7 @@
#include <wchar.h>
wchar_t *
-wcsrchr(const wchar_t *s, wchar_t c)
+(wcsrchr)(const wchar_t *s, wchar_t c)
{
const wchar_t *last;
diff --git a/lib/libc/string/wcsstr.c b/lib/libc/string/wcsstr.c
--- a/lib/libc/string/wcsstr.c
+++ b/lib/libc/string/wcsstr.c
@@ -38,7 +38,7 @@
* Find the first occurrence of find in s.
*/
wchar_t *
-wcsstr(const wchar_t * __restrict s, const wchar_t * __restrict find)
+(wcsstr)(const wchar_t * __restrict s, const wchar_t * __restrict find)
{
wchar_t c, sc;
size_t len;
diff --git a/lib/libc/string/wmemchr.c b/lib/libc/string/wmemchr.c
--- a/lib/libc/string/wmemchr.c
+++ b/lib/libc/string/wmemchr.c
@@ -37,7 +37,7 @@
#include <wchar.h>
wchar_t *
-wmemchr(const wchar_t *s, wchar_t c, size_t n)
+(wmemchr)(const wchar_t *s, wchar_t c, size_t n)
{
size_t i;
diff --git a/sys/libkern/strchrnul.c b/sys/libkern/strchrnul.c
--- a/sys/libkern/strchrnul.c
+++ b/sys/libkern/strchrnul.c
@@ -29,7 +29,7 @@
#include <sys/libkern.h>
char *
-strchrnul(const char *p, int ch)
+(strchrnul)(const char *p, int ch)
{
for (; *p != 0 && *p != ch; p++)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Sep 13, 11:01 PM (17 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38822439
Default Alt Text
D59600.id186489.diff (6 KB)
Attached To
Mode
D59600: libc: Parenthesise qualifier-preserving function definitions
Attached
Detach File
Event Timeline
Log In to Comment