Home
last modified time | relevance | path

Searched refs:str (Results 1 – 18 of 18) sorted by relevance

/openssh-portable/openbsd-compat/
H A Dbsd-asprintf.c40 vasprintf(char **str, const char *fmt, va_list ap) in vasprintf() argument
53 *str = string; in vasprintf()
67 *str = newstr; in vasprintf()
78 *str = NULL; in vasprintf()
86 int asprintf(char **str, const char *fmt, ...) in asprintf() argument
91 *str = NULL; in asprintf()
93 ret = vasprintf(str, fmt, ap); in asprintf()
H A Dsetenv.c84 putenv(char *str)
90 for (cp = str; *cp && *cp != '='; ++cp)
97 if (__findenv(str, (int)(cp - str), &offset) != NULL) {
98 environ[offset++] = str;
100 while (__findenv(str, (int)(cp - str), &offset)) {
118 environ[cnt] = str;
H A Dstrnlen.c28 strnlen(const char *str, size_t maxlen) in strnlen() argument
32 for (cp = str; maxlen != 0 && *cp != '\0'; cp++, maxlen--) in strnlen()
35 return (size_t)(cp - str); in strnlen()
H A Dstrndup.c28 strndup(const char *str, size_t maxlen) in strndup() argument
33 len = strnlen(str, maxlen); in strndup()
36 (void)memcpy(copy, str, len); in strndup()
H A Dglob.c997 g_opendir(Char *str, glob_t *pglob) argument
1001 if (!*str)
1004 if (g_Ctoc(str, buf, sizeof(buf)))
1039 g_strchr(const Char *str, int ch) argument
1042 if (*str == ch)
1043 return ((Char *)str);
1044 } while (*str++);
1049 g_Ctoc(const Char *str, char *buf, size_t len) argument
1053 if ((*buf++ = *str++) == EOS)
1061 qprintf(const char *str, Char *s) argument
[all …]
H A Dbsd-misc.c320 strdup(const char *str) in strdup() argument
325 len = strlen(str) + 1; in strdup()
328 return(memcpy(cp, str, len)); in strdup()
H A Dbsd-snprintf.c862 vsnprintf (char *str, size_t count, const char *fmt, va_list args) in vsnprintf() argument
864 return dopr(str, count, fmt, args); in vsnprintf()
870 snprintf(char *str, size_t count, SNPRINTF_CONST char *fmt, ...) in snprintf() argument
876 ret = vsnprintf(str, count, fmt, ap); in snprintf()
/openssh-portable/
H A Dutf8.c211 *str = dst; in vasnmprintf()
231 *str = src; in vasnmprintf()
234 *str = NULL; in vasnmprintf()
240 snmprintf(char *str, size_t sz, int *wp, const char *fmt, ...) in snmprintf() argument
250 (void)strlcpy(str, cp, sz); in snmprintf()
253 *str = '\0'; in snmprintf()
279 char *str = NULL; in vfmprintf() local
282 if ((ret = vasnmprintf(&str, INT_MAX, NULL, fmt, ap)) < 0) { in vfmprintf()
283 free(str); in vfmprintf()
286 if (fputs(str, stream) == EOF) in vfmprintf()
[all …]
H A Dxmalloc.c87 xstrdup(const char *str) in xstrdup() argument
92 len = strlen(str) + 1; in xstrdup()
94 strlcpy(cp, str, len); in xstrdup()
H A Dmdoc2man.awk50 function add(str) {
53 line=line str
H A Dssh-keyscan.c167 xstrsep(char **str, const char *delim) in xstrsep() argument
171 if (!**str) in xstrsep()
174 s = *str; in xstrsep()
179 *str = e; in xstrsep()
H A Dssh.c236 default_client_percent_expand(const char *str, in default_client_percent_expand() argument
239 return percent_expand(str, in default_client_percent_expand()
250 default_client_percent_dollar_expand(const char *str, in default_client_percent_dollar_expand() argument
255 ret = percent_dollar_expand(str, in default_client_percent_dollar_expand()
H A Dscp.c1256 #define SCREWUP(str) { why = str; goto screwup; } argument
H A Dsftp-server.c269 #define PAPPEND(str) { \ in string_from_portable() argument
272 strlcat(ret, str, sizeof(ret)); \ in string_from_portable()
H A Dconfigure.ac1997 char *str;
1998 str = gai_strerror(0);
2247 int x_snprintf(char *str, size_t count, const char *fmt, ...)
2253 ret = vsnprintf(str, count, fmt, ap);
/openssh-portable/regress/unittests/misc/
H A Dtest_expand.c35 char *str = dollar_expand(NULL, (x)); \ in test_expand()
36 ASSERT_STRING_EQ(str, (y)); \ in test_expand()
37 free(str); \ in test_expand()
/openssh-portable/openbsd-compat/regress/
H A Dsnprintftest.c35 int x_snprintf(char *str, size_t count, const char *fmt, ...) in x_snprintf() argument
41 ret = vsnprintf(str, count, fmt, ap); in x_snprintf()
/openssh-portable/regress/
H A Dtest-exec.sh309 str=$1
311 str="$str|$2"
314 egrep "^#define.*($str)" ${BUILDDIR}/config.h >/dev/null 2>&1