/netbsd-current/lib/libc/stdio/ |
H A D | mkstemps.c | 31 mkstemps(char *path, int slen) argument 35 return GETTEMP(path, &fd, 0, slen, 0) ? fd : -1;
|
H A D | mkostemps.c | 31 mkostemps(char *path, int slen, int oflags) argument 35 return GETTEMP(path, &fd, 0, slen, oflags) ? fd : -1;
|
/netbsd-current/sys/lib/libkern/ |
H A D | strnvisx.c | 41 strnvisx(char *dst, size_t dlen, const char *src, size_t slen, int flags) argument 48 while (slen > 0 && STRVIS_ISWHITE(src[0])) 49 ++src, --slen; 50 while (slen > 0 && STRVIS_ISWHITE(src[slen - 1])) 51 --slen; 54 while (slen > 0) { 77 ++src, --slen; 82 return slen ? -1 : 0;
|
/netbsd-current/external/gpl3/gcc.old/dist/libssp/ |
H A D | strncat-chk.c | 45 size_t n, size_t slen) 52 if (slen-- == 0) 58 ++slen; 66 if (slen-- == 0) 72 if (slen-- == 0) 78 if (slen-- == 0) 84 if (slen-- == 0) 96 if (slen-- == 0) 107 if (slen-- == 0) 44 __strncat_chk(char *__restrict__ dest, const char *__restrict__ src, size_t n, size_t slen) argument
|
H A D | gets-chk.c | 62 __gets_chk (char *s, size_t slen) argument 66 if (slen >= (size_t) INT_MAX) 69 if (slen <= 8192) 70 buf = alloca (slen + 1); 72 buf = malloc (slen + 1); 76 ret = fgets (buf, (int) (slen + 1), stdin); 82 if (len == slen) 89 if (slen > 8192)
|
H A D | strcat-chk.c | 45 size_t slen) 53 if (slen-- == 0) 59 ++slen; 64 if (slen-- == 0) 44 __strcat_chk(char *__restrict__ dest, const char *__restrict__ src, size_t slen) argument
|
H A D | sprintf-chk.c | 50 size_t slen, const char *format, ...) 56 if (slen > (size_t) INT_MAX) 60 done = vsnprintf (s, slen, format, arg); 61 if (done >= 0 && (size_t) done >= slen) 49 __sprintf_chk(char *s, int flags __attribute__((unused)), size_t slen, const char *format, ...) argument
|
H A D | vsprintf-chk.c | 49 size_t slen, const char *format, va_list arg) 53 if (slen > (size_t) INT_MAX) 57 done = vsnprintf (s, slen, format, arg); 58 if (done >= 0 && (size_t) done >= slen) 48 __vsprintf_chk(char *s, int flags __attribute__((unused)), size_t slen, const char *format, va_list arg) argument
|
H A D | mempcpy-chk.c | 46 size_t len, size_t slen) 48 if (len > slen) 45 __mempcpy_chk(void *__restrict__ dest, const void *__restrict__ src, size_t len, size_t slen) argument
|
H A D | memmove-chk.c | 45 __memmove_chk (void *dest, const void *src, size_t len, size_t slen) argument 47 if (len > slen)
|
/netbsd-current/external/gpl3/gcc/dist/libssp/ |
H A D | strncat-chk.c | 45 size_t n, size_t slen) 52 if (slen-- == 0) 58 ++slen; 66 if (slen-- == 0) 72 if (slen-- == 0) 78 if (slen-- == 0) 84 if (slen-- == 0) 96 if (slen-- == 0) 107 if (slen-- == 0) 44 __strncat_chk(char *__restrict__ dest, const char *__restrict__ src, size_t n, size_t slen) argument
|
H A D | gets-chk.c | 62 __gets_chk (char *s, size_t slen) argument 66 if (slen >= (size_t) INT_MAX) 69 if (slen <= 8192) 70 buf = alloca (slen + 1); 72 buf = malloc (slen + 1); 76 ret = fgets (buf, (int) (slen + 1), stdin); 82 if (len == slen) 89 if (slen > 8192)
|
H A D | strcat-chk.c | 45 size_t slen) 53 if (slen-- == 0) 59 ++slen; 64 if (slen-- == 0) 44 __strcat_chk(char *__restrict__ dest, const char *__restrict__ src, size_t slen) argument
|
H A D | sprintf-chk.c | 50 size_t slen, const char *format, ...) 56 if (slen > (size_t) INT_MAX) 60 done = vsnprintf (s, slen, format, arg); 61 if (done >= 0 && (size_t) done >= slen) 49 __sprintf_chk(char *s, int flags __attribute__((unused)), size_t slen, const char *format, ...) argument
|
H A D | vsprintf-chk.c | 49 size_t slen, const char *format, va_list arg) 53 if (slen > (size_t) INT_MAX) 57 done = vsnprintf (s, slen, format, arg); 58 if (done >= 0 && (size_t) done >= slen) 48 __vsprintf_chk(char *s, int flags __attribute__((unused)), size_t slen, const char *format, va_list arg) argument
|
/netbsd-current/lib/libc/ssp/ |
H A D | strcat_chk.c | 42 __strcat_chk(char * __restrict dst, const char * __restrict src, size_t slen) argument 47 if (slen-- == 0) 52 if (slen-- == 0) 57 if (slen-- == 0)
|
H A D | strncat_chk.c | 45 size_t slen) 52 if (len > slen) 56 if (slen-- == 0) 63 if (slen-- == 0) 68 if (slen-- == 0) 44 __strncat_chk(char * __restrict dst, const char * __restrict src, size_t len, size_t slen) argument
|
H A D | sprintf_chk.c | 47 __sprintf_chk(char * __restrict buf, int flags, size_t slen, argument 54 if (slen > (size_t)INT_MAX) 57 if ((rv = vsnprintf(buf, slen, fmt, ap)) >= 0 && (size_t)rv >= slen)
|
H A D | vsprintf_chk.c | 47 __vsprintf_chk(char * __restrict buf, int flags, size_t slen, argument 52 if (slen > (size_t)INT_MAX) 55 if ((rv = vsnprintf(buf, slen, fmt, ap)) >= 0 && (size_t)rv >= slen)
|
H A D | memset_chk.c | 44 __memset_chk(void * __restrict dst, int val, size_t len, size_t slen) argument 46 if (len > slen)
|
H A D | memmove_chk.c | 45 size_t slen) 47 if (len > slen) 44 __memmove_chk(void *dst, const void *src, size_t len, size_t slen) argument
|
/netbsd-current/lib/libc/string/ |
H A D | strnstr.c | 50 * first slen characters of s. 53 strnstr(const char *s, const char *find, size_t slen) argument 62 if (slen-- < 1 || (sc = *s++) == '\0') 65 if (len > slen)
|
/netbsd-current/external/bsd/tmux/dist/compat/ |
H A D | utf8proc.c | 42 utf8proc_ssize_t slen; local 49 * slen < 0 indicates an error 51 slen = utf8proc_iterate(s, n, pwc); 52 if (*pwc == (wchar_t)-1 || slen < 0) 54 return (slen);
|
/netbsd-current/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/ |
H A D | addext.c | 55 size_t slen = strlen (s), extlen = strlen (ext); local 59 if (slen + extlen <= _POSIX_NAME_MAX && ! HAVE_DOS_FILE_NAMES) 81 slen -= dot + 1 - s; 90 if (slen + extlen <= slen_max) 91 strcpy (s + slen, ext); 94 if (slen_max <= slen) 95 slen = slen_max - 1; 96 s[slen] = e; 97 s[slen + 1] = 0;
|
/netbsd-current/external/gpl2/gettext/dist/gnulib-local/lib/ |
H A D | addext.c | 55 size_t slen = strlen (s), extlen = strlen (ext); local 59 if (slen + extlen <= _POSIX_NAME_MAX && ! HAVE_DOS_FILE_NAMES) 81 slen -= dot + 1 - s; 90 if (slen + extlen <= slen_max) 91 strcpy (s + slen, ext); 94 if (slen_max <= slen) 95 slen = slen_max - 1; 96 s[slen] = e; 97 s[slen + 1] = 0;
|