Searched defs:template (Results 1 - 25 of 49) sorted by relevance

12

/freebsd-head/contrib/netbsd-tests/lib/libc/stdio/
H A Dt_mktemp.c46 char template[] = "I will barf/XXXXXX"; local
47 ATF_REQUIRE(mktemp(template) != NULL);
/freebsd-head/crypto/heimdal/lib/roken/
H A Dmkstemp.c50 mkstemp(char *template) argument
55 start = strlen(template) - 1;
56 while(template[start] == 'X') {
57 template[start] = '0' + val % 10;
64 fd = open(template, O_RDWR | O_CREAT | O_EXCL, 0600);
69 if(template[i] == 0)
71 template[i]++;
72 if(template[i] == '9' + 1)
73 template[i] = 'a';
74 if(template[
[all...]
/freebsd-head/tests/sys/kern/pipe/
H A Dpipe_overcommit2_test.c47 char template[] = "pipe.XXXXXXXXXX"; local
53 if (mkstemp(template) == -1)
57 returnval = open(template, O_RDONLY);
80 unlink(template);
/freebsd-head/contrib/libarchive/libarchive/test/
H A Dtest_write_format_gnutar_filenames.c42 struct archive_entry *ae, *template; local
50 /* Create a template entry. */
51 assert((template = archive_entry_new()) != NULL);
52 archive_entry_set_atime(template, 2, 20);
53 archive_entry_set_birthtime(template, 3, 30);
54 archive_entry_set_ctime(template, 4, 40);
55 archive_entry_set_mtime(template, 5, 50);
56 archive_entry_set_mode(template, S_IFREG | 0755);
57 archive_entry_set_size(template, 8);
62 archive_entry_copy_pathname(template, filenam
98 struct archive_entry *ae, *template; local
[all...]
/freebsd-head/tests/sys/kern/
H A Dkern_copyin.c60 char template[] = "copyin.XXXXXX"; local
72 scratch_file = mkstemp(template);
74 unlink(template);
/freebsd-head/contrib/openpam/lib/libpam/
H A Dopenpam_subst.c69 char *buf, size_t *bufsize, const char *template)
74 ENTERS(template);
75 if (template == NULL)
76 template = "(null)";
80 while (*template && ret == PAM_SUCCESS) {
81 if (template[0] == '%') {
82 ++template;
83 switch (*template) {
107 subst_char(*template);
109 ++template;
68 openpam_subst(const pam_handle_t *pamh, char *buf, size_t *bufsize, const char *template) argument
[all...]
/freebsd-head/crypto/openssh/regress/
H A Dmkdtemp.c32 fprintf(stderr, "mkdtemp template\n");
41 char template[PATH_MAX]; local
51 r = snprintf(template, sizeof(template), "%s/%s", tmpdir, base);
52 if (r < 0 || (size_t)r >= sizeof(template))
53 fatal("template string too long");
54 dir = mkdtemp(template);
/freebsd-head/lib/libc/tests/stdio/
H A Dmkostemp_test.c46 static const char template[] = "mkostemp.XXXXXXXX"; variable
54 char tmpf[sizeof(template)];
58 memcpy(tmpf, template, sizeof(tmpf));
66 if (memcmp(tmpf, template, sizeof(tmpf) - 8 - 1) != 0) {
68 "returned pathname does not match template: %s\n",
168 char tmpf[sizeof(template)];
170 memcpy(tmpf, template, sizeof(tmpf));
/freebsd-head/lib/libc/tests/gen/
H A Dftw_test.c50 static char template[] = "testftw.XXXXXXXXXX"; variable
83 ATF_REQUIRE_MSG(mkdtemp(template) != NULL, "mkdtemp failed");
86 ATF_REQUIRE_MSG(realpath(template, dir) != NULL,
H A Ddir2_test.c54 char template[] = "dXXXXXX"; local
62 tmpdir = mkdtemp(template);
130 char template[] = "dXXXXXX"; local
139 tmpdir = mkdtemp(template);
/freebsd-head/contrib/netbsd-tests/kernel/
H A Dt_mqueue.c116 char template[32]; local
123 strlcpy(template, "./t_mqueue.XXXXXX", sizeof(template));
124 tmpdir = mkdtemp(template);
/freebsd-head/contrib/apr-util/test/
H A Dtestxml.c29 char template[] = "data/testxmldummyerrorXXXXXX"; local
31 rv = apr_file_mktemp(fd, template, APR_FOPEN_CREATE | APR_FOPEN_TRUNCATE | APR_FOPEN_DELONCLOSE |
63 char template[] = "data/testxmldummyXXXXXX"; local
65 rv = apr_file_mktemp(fd, template, APR_FOPEN_CREATE | APR_FOPEN_TRUNCATE | APR_FOPEN_DELONCLOSE |
/freebsd-head/contrib/binutils/opcodes/
H A Dia64-dis.c71 ia64_insn t0, t1, slot[3], template, s_bit, insn; local
103 template = (t0 >> 1) & 0xf;
108 tname = ia64_templ_desc[template].name;
114 unit = ia64_templ_desc[template].exec_unit[slotnum];
116 if (template == 2 && slotnum == 1)
118 /* skip L slot in MLI template: */
259 if (slotnum + 1 == ia64_templ_desc[template].group_boundary
/freebsd-head/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Dalist.c126 alist_el_t template, *retx; local
129 template.ale_name = name;
130 if (!hash_find(alist->al_elements, &template, &ret))
/freebsd-head/contrib/subversion/subversion/libsvn_subr/
H A Ddate.c37 if the next template character matches the current
41 ']' in the template. */
42 SKIP, /* Ignore this template character */
46 /* How to handle a particular character in a template */
49 char key; /* The template char that this rule matches */
67 /* A declarative specification of how each template character
113 const char *template, const char *value)
124 const rule *match = find_rule(*template++);
157 match = find_rule(*template);
159 template
112 template_match(apr_time_exp_t *expt, svn_boolean_t *localtz, const char *template, const char *value) argument
[all...]
/freebsd-head/tools/tools/usbtest/
H A Dusbtest.c175 set_template(int template) argument
179 error = sysctlbyname("hw.usb.template", NULL, NULL,
180 &template, sizeof(template));
183 printf("WARNING: Could not set USB template "
184 "to %d (error=%d)\n", template, errno);
/freebsd-head/sys/netipsec/
H A Dsubr_ipsec.c70 static const struct sockaddr_in template = { local
76 src->sin = template;
77 dst->sin = template;
/freebsd-head/crypto/heimdal/kdc/
H A Dkx509.c230 hx509_cert template; local
235 kdc_log(context, config, 0, "Failed to load template %s",
239 ret = hx509_get_one_cert(context->hx509ctx, certs, &template);
242 kdc_log(context, config, 0, "Failed to find template in %s",
250 template);
251 hx509_cert_free(template);
/freebsd-head/crypto/openssl/crypto/store/
H A Dstore_register.c208 OSSL_STORE_LOADER template; local
211 template.scheme = scheme;
212 template.open = NULL;
213 template.load = NULL;
214 template.eof = NULL;
215 template.close = NULL;
227 loader = lh_OSSL_STORE_LOADER_retrieve(loader_register, &template);
242 OSSL_STORE_LOADER template; local
245 template.scheme = scheme;
246 template
[all...]
/freebsd-head/contrib/binutils/binutils/
H A Dbucomm.c400 #define template "stXXXXXX"
420 tmpname = xmalloc (len + sizeof (template) + 2);
434 tmpname = xmalloc (sizeof (template));
438 memcpy (tmpname + len, template, sizeof (template));
440 #undef template
396 #define template macro
436 #undef template macro
/freebsd-head/crypto/heimdal/lib/asn1/
H A Dgen.c45 static char *privheader, *header, *template; variable
150 /* template file */
151 if (asprintf(&template, "%s-template.c", headerbase) < 0 || template == NULL)
255 templatefile = fopen (template, "w");
257 err (1, "open %s", template);
276 "#include <asn1-template.h>\n",
377 "#include <asn1-template.h>\n"
H A Dgen_template.c234 struct template { struct
239 ASN1_TAILQ_ENTRY(template) members;
242 ASN1_TAILQ_HEAD(templatehead, template);
247 struct templatehead template; member in struct:tlist
254 static struct template *
270 ASN1_TAILQ_INIT(&tl->template);
288 struct template *q;
290 ASN1_TAILQ_FOREACH(q, &tl->template, members) {
305 struct template *q;
311 ASN1_TAILQ_FOREACH(q, &tl->template, member
548 struct templatehead template = ASN1_TAILQ_HEAD_INITIALIZER(template); local
684 struct templatehead template = ASN1_TAILQ_HEAD_INITIALIZER(template); local
[all...]
/freebsd-head/contrib/ipfilter/l4check/
H A Dl4check.c55 l4cfg_t template; variable
502 bzero((char *)&template, sizeof(template));
503 template.l4_fd = -1;
504 template.l4_rw = -1;
505 template.l4_sin.sin_family = AF_INET;
506 ipn = &template.l4_nat;
608 bcopy((char *)&template, (char *)l4, sizeof(*l4));
713 template.l4_rsize = rlen;
714 template
[all...]
/freebsd-head/tests/sys/file/
H A Dflock_helper.c75 const char *template = "/flocktempXXXXXX"; local
91 len = strlen(pathname) + strlen(template) + 1;
94 strcat(filename, template);
/freebsd-head/contrib/libarchive/libarchive/
H A Darchive_util.c222 __archive_mktempx(const char *tmpdir, wchar_t *template) argument
247 if (template == NULL) {
306 template = temp_name.s;
308 xp = wcschr(template, L'X');
338 ws = __la_win_permissive_name_w(template);
343 if (template == temp_name.s) {
378 if (template == temp_name.s)
390 __archive_mkstemp(wchar_t *template) argument
392 return __archive_mktempx(NULL, template);
448 __archive_mkstemp(char *template) argument
464 __archive_mktempx(const char *tmpdir, char *template) argument
544 __archive_mkstemp(char *template) argument
[all...]

Completed in 136 milliseconds

12