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

123

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dmkdtemp.c37 mkdtemp(char *template) argument
42 /* Save template */
43 t = strdupa(template);
45 r = mktemp(template);
50 if (mkdir(template, 0700) == 0)
57 /* Reset template */
58 (void) strcpy(template, t);
H A Dmktemp.c231 mktemp(char *template) argument
233 return (libc_mktemps(template, 0));
/illumos-gate/usr/src/test/libc-tests/tests/random/
H A Dinz_inval.c37 char *template = "/tmp/inz_inval.XXXXXX"; local
82 tmpfile = strdup(template);
/illumos-gate/usr/src/cmd/mktemp/
H A Dmktemp.c40 gettext("Usage: mktemp [-dqtu] [-p prefix_dir] [template]\n"));
54 char template[] = "tmp.XXXXXX"; local
91 tmpl = template;
107 gettext("mktemp: template argument specified "
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dtsol_gettpent.c64 char **attrs, **template; local
70 template = __ns_ldap_getAttr(result->entry, _TNRHTP_NAME);
71 if (template == NULL || template[0] == NULL ||
72 (strlen(template[0]) < 1)) {
82 /* "template:attrs" */
83 len = strlen(template[0]) + strlen(attrs[0]) + 2;
95 (void) snprintf(buffer, len, "%s:%s", template[0], attrs[0]);
H A Dtsol_getrhent.c79 char **addr, **template, *addr_out; local
102 template = __ns_ldap_getAttr(result->entry, _TNRHDB_TNAME);
103 if (template == NULL || template[0] == NULL ||
104 (strlen(template[0]) < 1)) {
108 /* "addr:template" */
109 len = strlen(addr_out) + strlen(template[0]) + 2;
121 (void) snprintf(buffer, len, "%s:%s", addr_out, template[0]);
/illumos-gate/usr/src/lib/libtsnet/common/
H A Dtsol_sgetrhent.c30 * template to use (from tnrhtp).
170 char *template = rhstrp->template; local
188 if (template && *template != '\0' && *template != '#' &&
189 *template != '\n')
190 *errstrp = template;
197 if (template && *template !
[all...]
H A Dtsol_sgettpent.c27 * These functions parse entries in the "tnrhtp" (remote host template) file.
29 * field is the template name. The second is a list of "key=value" attributes,
33 * colon in a line, nor any unescaped '=' or ';' characters in the template
240 char *template = tpstrp->template; local
255 *errstrp = template;
257 if (template == NULL || *template == '#' || *template == '\n') {
261 else if (template
[all...]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/
H A Dencrypt.c56 * Create an template to improve HMAC performance later.
118 CK_ATTRIBUTE template[6]; local
138 template[0].type = CKA_CLASS;
139 template[0].pValue = &class;
140 template[0].ulValueLen = sizeof (class);
141 template[1].type = CKA_KEY_TYPE;
142 template[1].pValue = &keyType;
143 template[1].ulValueLen = sizeof (keyType);
144 template[2].type = CKA_TOKEN;
145 template[
[all...]
/illumos-gate/usr/src/uts/common/rpc/
H A Dmt_rpcinit.c59 const kstat_named_t *template, size_t template_size)
74 bcopy(template, ks_data, template_size);
58 rpcstat_zone_init_common(zoneid_t zoneid, const char *module, const char *name, const kstat_named_t *template, size_t template_size) argument
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftDH.c91 CK_ATTRIBUTE template; local
112 template.pValue = malloc(sizeof (CK_ULONG));
113 if (template.pValue == NULL) {
116 template.ulValueLen = sizeof (CK_ULONG);
118 &template);
120 free(template.pValue);
126 value_bits = (uint32_t)(*((CK_ULONG *)(template.pValue)));
128 value_bits = *((CK_ULONG *)(template.pValue));
131 free(template.pValue);
H A DsoftEC.c150 CK_ATTRIBUTE template; local
166 template.type = CKA_EC_PARAMS;
167 template.pValue = param_buffer;
168 template.ulValueLen = sizeof (param_buffer);
169 rv = soft_get_public_key_attribute(pubkey, &template);
173 paramlen = template.ulValueLen;
176 rv = set_extra_attr_to_object(prikey, CKA_EC_PARAMS, &template);
217 CK_ATTRIBUTE template; local
234 template.type = CKA_VALUE;
235 template
335 CK_ATTRIBUTE template; local
537 CK_ATTRIBUTE template; local
[all...]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_ustat.c184 uint_t n, fmd_stat_t *template, fmd_stat_t **epp)
196 bcopy(template, stats, sizeof (fmd_stat_t) * n);
198 sp = stats = template;
280 *epp = template + i;
183 fmd_ustat_insert(fmd_ustat_t *usp, uint_t flags, uint_t n, fmd_stat_t *template, fmd_stat_t **epp) argument
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dcopyf.c435 char template[PATH_MAX]; local
477 n = snprintf(template, sizeof (template), "%s%s%sXXXXXX",
479 if (n > sizeof (template)) {
486 tmpFd = mkstemp(template);
496 (void) unlink(template);
500 n = copyFile(fd, tmpFd, a_path, template, &statbuf, 0L);
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/enc_provider/
H A Darcfour_provider.c32 CK_ATTRIBUTE template[5]; local
40 template[0].type = CKA_CLASS;
41 template[0].pValue = &class;
42 template[0].ulValueLen = sizeof (class);
43 template[1].type = CKA_KEY_TYPE;
44 template[1].pValue = &keyType;
45 template[1].ulValueLen = sizeof (keyType);
46 template[2].type = CKA_TOKEN;
47 template[2].pValue = &false;
48 template[
[all...]
/illumos-gate/usr/src/lib/pkcs11/libpkcs11/common/
H A DmetaAttrManager.c102 * the supplied object template. The template is only used to determine the
108 CK_ATTRIBUTE *template, CK_ULONG template_size,
115 found = get_template_ulong(CKA_CLASS, template, template_size, &class);
123 template, template_size, &subtype);
127 template, template_size, &subtype);
134 template, template_size, &subtype);
389 /* Determine the appropriate master template needed. */
395 /* Duplicate the master template. */
423 /* Secret keys share a common template, s
107 get_master_attributes_by_template( CK_ATTRIBUTE *template, CK_ULONG template_size, generic_attr_t **attributes, size_t *num_attributes) argument
[all...]
H A Dpkcs11SUNWExtensions.c289 /* template for creating generic secret key object */
290 CK_ATTRIBUTE template[NUM_SECRETKEY_ATTRS]; local
317 template[i].type = CKA_CLASS;
318 template[i].pValue = &objclass;
319 template[i].ulValueLen = sizeof (objclass);
328 template[i].type = CKA_KEY_TYPE;
329 template[i].pValue = &keytype;
330 template[i].ulValueLen = sizeof (keytype);
342 template[i].type = mapping[j].attr;
343 template[
387 CK_ATTRIBUTE template[NUM_SECRETKEY_ATTRS]; local
511 CK_ATTRIBUTE template; local
[all...]
/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dsuid_exec.c472 * create a unique name into the <template>
475 static void maketemp(char *template) argument
477 register char *cp = template;
/illumos-gate/usr/src/cmd/tsol/tnctl/
H A Dtnctl.c247 /* was a template name provided on the command line? */
327 * request and a template name was not provided.
494 "of remote-host template %1$s into kernel "
515 process_tp(const char *template) argument
524 if (strchr(template, ':') != NULL) {
525 (void) str_to_tpstr(template, strlen(template), &tpstr, buf,
535 (void) strlcpy(tpentp->name, template, sizeof (tpentp->name));
536 } else if ((tpentp = tsol_gettpbyname(template)) == NULL) {
538 gettext("tnctl: template
[all...]
/illumos-gate/usr/src/tools/ctf/cvt/
H A Dalist.c121 alist_el_t template, *ret; local
123 template.ale_name = name;
124 if (!hash_find(alist->al_elements, &template, (void **)&ret))
/illumos-gate/usr/src/uts/common/crypto/io/
H A Darcfour.c201 crypto_key_t *key, crypto_spi_ctx_template_t template,
498 crypto_data_t *output, crypto_spi_ctx_template_t template,
505 ret = rc4_common_init(&ctx, mechanism, key, template, req);
200 rc4_common_init(crypto_ctx_t *ctx, crypto_mechanism_t *mechanism, crypto_key_t *key, crypto_spi_ctx_template_t template, crypto_req_handle_t req) argument
496 rc4_crypt_atomic(crypto_provider_handle_t handle, crypto_session_id_t session, crypto_mechanism_t *mechanism, crypto_key_t *key, crypto_data_t *input, crypto_data_t *output, crypto_spi_ctx_template_t template, crypto_req_handle_t req) argument
H A Dblowfish.c276 crypto_key_t *key, crypto_spi_ctx_template_t template,
309 rv = blowfish_common_init_ctx(blowfish_ctx, template, mechanism,
597 crypto_spi_ctx_template_t template, crypto_req_handle_t req)
629 ret = blowfish_common_init_ctx(&blowfish_ctx, template, mechanism,
684 crypto_spi_ctx_template_t template, crypto_req_handle_t req)
716 ret = blowfish_common_init_ctx(&blowfish_ctx, template, mechanism,
767 * KCF software provider context template entry points.
827 crypto_spi_ctx_template_t *template, crypto_mechanism_t *mechanism,
835 if (template == NULL) {
848 keysched = template;
275 blowfish_common_init(crypto_ctx_t *ctx, crypto_mechanism_t *mechanism, crypto_key_t *key, crypto_spi_ctx_template_t template, crypto_req_handle_t req) argument
594 blowfish_encrypt_atomic(crypto_provider_handle_t provider, crypto_session_id_t session_id, crypto_mechanism_t *mechanism, crypto_key_t *key, crypto_data_t *plaintext, crypto_data_t *ciphertext, crypto_spi_ctx_template_t template, crypto_req_handle_t req) argument
681 blowfish_decrypt_atomic(crypto_provider_handle_t provider, crypto_session_id_t session_id, crypto_mechanism_t *mechanism, crypto_key_t *key, crypto_data_t *ciphertext, crypto_data_t *plaintext, crypto_spi_ctx_template_t template, crypto_req_handle_t req) argument
826 blowfish_common_init_ctx(blowfish_ctx_t *blowfish_ctx, crypto_spi_ctx_template_t *template, crypto_mechanism_t *mechanism, crypto_key_t *key, int kmflag) argument
[all...]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_snmp.c265 sctp_named_kstat_t template = { local
315 template.sctpRtoAlgorithm.value.i32 = MIB2_SCTP_RTOALGO_VANJ;
316 template.sctpMaxAssocs.value.i32 = -1;
318 bcopy(&template, ksp->ks_data, sizeof (template));
455 sctp_kstat_t template = { local
487 KSTAT_TYPE_NAMED, NUM_OF_FIELDS(template), 0, stackid);
492 bcopy(&template, ksp->ks_data, sizeof (template));
/illumos-gate/usr/src/uts/common/inet/udp/
H A Dudp_stats.c393 udp_stat_t template = { local
411 KSTAT_TYPE_NAMED, sizeof (template) / sizeof (kstat_named_t),
417 bcopy(&template, ksp->ks_data, sizeof (template));
516 udp_named_kstat_t template = { local
531 template.entrySize.value.ui32 = sizeof (mib2_udpEntry_t);
532 template.entry6Size.value.ui32 = sizeof (mib2_udp6Entry_t);
534 bcopy(&template, ksp->ks_data, sizeof (template));
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_vss.c269 char *template; local
271 template = t;
274 while (*template) {
275 if (*template == 'N') {
278 } else if (*template != *str) {
282 template++;

Completed in 81 milliseconds

123