Searched refs:slen (Results 1 - 25 of 507) sorted by relevance

1234567891011>>

/netbsd-current/lib/libc/stdio/
H A Dmkstemps.c31 mkstemps(char *path, int slen) argument
35 return GETTEMP(path, &fd, 0, slen, 0) ? fd : -1;
H A Dmkostemps.c31 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 Dstrnvisx.c41 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 Dstrncat-chk.c45 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 Dgets-chk.c62 __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 Dstrcat-chk.c45 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 Dsprintf-chk.c50 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 Dvsprintf-chk.c49 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 Dmempcpy-chk.c46 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 Dmemmove-chk.c45 __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 Dstrncat-chk.c45 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 Dgets-chk.c62 __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 Dstrcat-chk.c45 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 Dsprintf-chk.c50 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 Dvsprintf-chk.c49 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 Dstrcat_chk.c42 __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 Dstrncat_chk.c45 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 Dsprintf_chk.c47 __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 Dvsprintf_chk.c47 __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 Dmemset_chk.c44 __memset_chk(void * __restrict dst, int val, size_t len, size_t slen) argument
46 if (len > slen)
H A Dmemmove_chk.c45 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 Dstrnstr.c50 * 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 Dutf8proc.c42 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 Daddext.c55 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 Daddext.c55 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;

Completed in 295 milliseconds

1234567891011>>