/sendmail/libsm/ |
H A D | match.c | 20 ** str -- string. 21 ** par -- pattern to find in str. 45 sm_match(str, pat) 46 const char *str; 58 return *str == '\0'; 60 if (*str == '\0') 63 ++str; 74 if (sm_match(pat, str)) 76 if (*str == '\0') 78 ++str; [all...] |
H A D | config.c | 38 putenv(str) 39 char *str; 49 ** find out how much of str to match when searching 53 if ((tmp = strchr(str, '=')) == NULL || tmp == str) 54 matchlen = strlen(str); 56 matchlen = (int) (tmp - str); 68 if (strncmp(str, *current, matchlen) == 0) 71 *current = (char *) str; 100 environ[envlen] = (char *) str; [all...] |
H A D | t-match.c | 17 #define try(str, pat, want) \ 18 got = sm_match(str, pat); \ 22 str, pat, got ? "true" : "false");
|
H A D | sscanf.c | 54 ** str -- strings containing data 63 ** Attempts to strlen() 'str'; if not a '\0' terminated string 65 ** Faking the string 'str' as a file. 70 sm_io_sscanf(const char *str, char const *fmt, ...) argument 72 sm_io_sscanf(str, fmt, va_alist) 73 const char *str; 84 fake.f_bf.smb_base = fake.f_p = (unsigned char *) str; 85 fake.f_bf.smb_size = fake.f_r = strlen(str);
|
H A D | snprintf.c | 27 ** str -- memory location to place formatted string 28 ** n -- size of buffer pointed to by str, capped to 36 ** to str, not including the trailing '\0', 43 ** are written into 'str', followed by a '\0'. 48 sm_snprintf(char *str, size_t n, char const *fmt, ...) argument 50 sm_snprintf(str, n, fmt, va_alist) 51 char *str; 71 fake.f_bf.smb_base = fake.f_p = (unsigned char *)str;
|
H A D | vasprintf.c | 41 ** str -- *str receives a pointer to the allocated string 46 ** On failure, set *str to NULL, set errno, and return -1. 48 ** On success, set *str to a pointer to a nul-terminated 56 sm_vasprintf(str, fmt, ap) 57 char **str; 91 *str = (char *)base; 101 *str = NULL;
|
H A D | vsnprintf.c | 24 ** Assigned 'str' to a "fake" file pointer. This allows common 28 ** str -- location for output 41 sm_vsnprintf(str, n, fmt, ap) 42 char *str; 58 str = &dummy; 66 fake.f_bf.smb_base = fake.f_p = (unsigned char *)str;
|
H A D | strl.c | 222 char *str; local 241 str = SM_VA_ARG(ap, char *); 243 /* copy string; i: index in str; j: index in dst */ 244 for (i = 0; j < len && (dst[j] = str[i]) != 0; i++, j++) 247 /* str: end reached? */ 248 if (str[i] != '\0') 252 j += strlen(str + i);
|
H A D | b-strcmp.c | 29 fatal(str) 30 char *str; 32 perror(str);
|
H A D | b-strl.c | 36 fatal(str) 37 char *str; 39 perror(str);
|
H A D | debug.c | 141 static char str[32] = "[1900-00-00/00:00:00] "; local 147 snprintf(str, sizeof(str), "[%d-%02d-%02d/%02d:%02d:%02d] ", 153 "%ld: %s ", (long) getpid(), str);
|
H A D | exc.c | 315 char *str = argv[si].v_str; local 316 if (str != NULL) 317 argv[si].v_str = sm_strdup_x(str);
|
/sendmail/include/sm/ |
H A D | gen.h | 30 # define SM_RCSID(str) 31 # define SM_IDSTR(id,str) 33 # define SM_RCSID(str) SM_UNUSED(static const char RcsId[]) = str; 34 # define SM_IDSTR(id,str) SM_UNUSED(static const char id[]) = str;
|
H A D | string.h | 48 sm_strdup_tagged_x __P((const char *str, char *file, int line, int group)); 53 # define sm_strdup_x(str) strcpy(sm_malloc_x(strlen(str) + 1), str) 56 # define sm_pstrdup_x(str) strcpy(sm_pmalloc_x(strlen(str) + 1), str) 58 # define sm_strdup_tagged_x(str, file, line, group) \ 59 strcpy(sm_malloc_tagged_x(strlen(str) + 1, file, line, group), str) [all...] |
H A D | rpool.h | 171 # define sm_rpool_strdup_x(rpool, str) \ 172 strcpy(sm_rpool_malloc_x(rpool, strlen(str) + 1), str)
|
/sendmail/test/ |
H A D | t_setuid.c | 32 printuids(str, r, e) 33 char *str; 36 printf("%s (should be %d/%d): r/euid=%d/%d\n", str, (int) r, (int) e,
|
H A D | t_seteuid.c | 37 printuids(str, r, e) 38 char *str; 41 printf("%s (should be %d/%d): r/euid=%d/%d\n", str, (int) r, (int) e,
|
H A D | t_setgid.c | 29 printgids(str, r, e) 30 char *str; 33 printf("%s (should be %d/%d): r/egid=%d/%d\n", str, (int) r, (int) e,
|
H A D | t_setreuid.c | 34 printuids(str, r, e) 35 char *str; 38 printf("%s (should be %d/%d): r/euid=%d/%d\n", str, (int) r, (int) e,
|
H A D | t_dropgid.c | 29 printgids(str, r, e) 30 char *str; 33 printf("%s (should be %d/%d): r/egid=%d/%d\n", str, (int) r, (int) e,
|
/sendmail/sendmail/ |
H A D | macro.c | 713 ** str -- the name of the word to look up. 717 ** true if str can be found in cl. 722 wordinclass(str, cl) 723 char *str; 728 s = stab(str, ST_CLASS, ST_FIND);
|
H A D | tls.c | 1577 char *str; local 1590 str = "SSL_connect"; 1592 str = "SSL_accept"; 1594 str = "undefined"; 1601 str, SSL_state_string_long(s)); 1605 str = bitset(SSL_CB_READ, where) ? "read" : "write"; 1609 str, SSL_alert_type_string_long(ret), 1619 str, SSL_state_string_long(s)); 1626 str, SSL_state_string_long(s));
|
H A D | util.c | 393 ** str -- string to truncate 402 truncate_at_delim(str, len, delim) 403 char *str; 409 if (str == NULL || len == 0 || strlen(str) < len) 412 *(str + len - 1) = '\0'; 413 while ((p = strrchr(str, delim)) != NULL) 416 if (p - str + 4 < len) 420 (void) sm_strlcat(str, "...", len); 427 (void) sm_strlcpy(str, " [all...] |
/sendmail/vacation/ |
H A D | vacation.c | 626 ** str -- string in which to search. 629 ** is name a substring of str? 634 nsearch(name, str) 635 register char *name, *str; 642 for (s = str; *s != '\0'; ++s) 655 (s == str || !isascii(*(s - 1)) || !isalnum(*(s - 1))) &&
|
/sendmail/mail.local/ |
H A D | mail.local.c | 1647 char *str; local 1669 str = name; 1693 str = b64; 1698 len = strlen(str); 1702 p[i * 2] = str[i];
|