bin/csh/file.c
721
is_prefix(Char *check, Char *template)
bin/csh/file.c
726
while (*check++ == *template++);
bin/csh/file.c
735
is_suffix(Char *check, Char *template)
bin/csh/file.c
741
for (t = template; *t++;)
bin/csh/file.c
744
if (t == template)
lib/libc/gen/shm_open.c
106
memcpy(t, template, templatelen);
lib/libc/gen/shm_open.c
111
memcpy(template, t, templatelen);
lib/libc/gen/shm_open.c
92
shm_mkstemp(char *template)
lib/libc/gen/shm_open.c
98
templatelen = strlen(template);
lib/libcrypto/asn1/asn1t.h
512
#define ADB_ENTRY(val, template) \
lib/libcrypto/asn1/asn1t.h
515
.tt = template, \
lib/libedit/readline.c
1190
char template[sizeof(_history_tmp_template)];
lib/libedit/readline.c
1202
strlcpy(template, _history_tmp_template, sizeof(template));
lib/libedit/readline.c
1203
if ((fd = mkstemp(template)) == -1) {
lib/libedit/readline.c
1312
unlink(template);
regress/sys/kern/flock/util.c
37
char template[PATH_MAX];
regress/sys/kern/flock/util.c
42
n = snprintf(template, sizeof(template), "%sflock.XXXXXX", dir);
regress/sys/kern/flock/util.c
43
if (n == -1 || n >= (int)sizeof(template))
regress/sys/kern/flock/util.c
46
fd = mkstemp(template);
regress/sys/kern/flock/util.c
51
if (unlink(template) == -1)
sys/arch/m88k/m88k/pmap.c
674
pt_entry_t *pte, template;
sys/arch/m88k/m88k/pmap.c
778
template = PG_SO | PG_RW | PG_M_U | PG_W | PG_V | pte_cmode;
sys/arch/m88k/m88k/pmap.c
782
*pte++ = pa | template;
sys/dev/isa/isapnpres.c
435
struct isa_attach_args *template)
sys/dev/isa/isapnpres.c
447
ISAPNP_CLONE_SETUP(card, template);
sys/dev/pci/drm/include/linux/tracepoint.h
10
#define DEFINE_EVENT(template, name, proto, args) \
sys/dev/pci/drm/include/linux/tracepoint.h
14
#define DEFINE_EVENT_PRINT(template, name, proto, args, print) \
sys/netinet/tcp_subr.c
293
tcp_respond(struct tcpcb *tp, caddr_t template, struct tcphdr *th0,
sys/netinet/tcp_subr.c
315
af = (((struct ip *)template)->ip_v == 6) ? AF_INET6 : AF_INET;
sys/netinet/tcp_subr.c
331
memcpy(ip6, template, sizeof(*ip6));
sys/netinet/tcp_subr.c
335
memcpy(ip6, template, tlen);
sys/netinet/tcp_subr.c
344
memcpy(ip, template, sizeof(*ip));
sys/netinet/tcp_subr.c
348
memcpy(ip, template, tlen);
usr.bin/cvs/buf.c
243
buf_write_stmp(BUF *b, char *template, struct timeval *tv)
usr.bin/cvs/buf.c
247
if ((fd = mkstemp(template)) == -1)
usr.bin/cvs/buf.c
248
fatal("mkstemp: `%s': %s", template, strerror(errno));
usr.bin/cvs/buf.c
251
(void)unlink(template);
usr.bin/cvs/buf.c
252
fatal("buf_write_stmp: buf_write_fd: `%s'", template);
usr.bin/cvs/buf.c
260
worklist_add(template, &temp_files);
usr.bin/cvs/rcs.c
2162
rcs_rev_write_stmp(RCSFILE *rfp, RCSNUM *rev, char *template, int mode)
usr.bin/cvs/rcs.c
2166
if ((fd = mkstemp(template)) == -1)
usr.bin/cvs/rcs.c
2167
fatal("mkstemp: `%s': %s", template, strerror(errno));
usr.bin/cvs/rcs.c
2169
worklist_add(template, &temp_files);
usr.bin/mktemp/mktemp.c
110
if (asprintf(&tempfile, "%.*s/%s", (int)len, prefix, template) == -1)
usr.bin/mktemp/mktemp.c
113
tempfile = strdup(template);
usr.bin/mktemp/mktemp.c
38
char *base, *cp, *template, *tempfile, *prefix = _PATH_TMP;
usr.bin/mktemp/mktemp.c
69
template = argv[optind];
usr.bin/mktemp/mktemp.c
72
template = "tmp.XXXXXXXXXX";
usr.bin/mktemp/mktemp.c
79
base = strrchr(template, '/');
usr.bin/mktemp/mktemp.c
83
base = template;
usr.bin/mktemp/mktemp.c
95
template);
usr.bin/mktemp/mktemp.c
98
if (base != template) {
usr.bin/openssl/req.c
166
char *template;
usr.bin/openssl/req.c
308
.opt.arg = &cfg.template,
usr.bin/openssl/req.c
593
if (cfg.template != NULL) {
usr.bin/openssl/req.c
597
BIO_printf(bio_err, "Using configuration from %s\n", cfg.template);
usr.bin/openssl/req.c
600
if(!NCONF_load(req_conf, cfg.template, &errline)) {
usr.bin/openssl/req.c
601
BIO_printf(bio_err, "error on line %ld of %s\n", errline, cfg.template);
usr.bin/rcs/buf.c
307
buf_write_stmp(BUF *b, char *template)
usr.bin/rcs/buf.c
311
if ((fd = mkstemp(template)) == -1)
usr.bin/rcs/buf.c
312
err(1, "%s", template);
usr.bin/rcs/buf.c
314
worklist_add(template, &temp_files);
usr.bin/rcs/buf.c
317
(void)unlink(template);
usr.bin/rcs/buf.c
318
errx(1, "buf_write_stmp: buf_write_fd: `%s'", template);
usr.bin/sendbug/sendbug.c
114
template(stdout);
usr.bin/sendbug/sendbug.c
140
template(fp);
usr.bin/sendbug/sendbug.c
152
template(fp);
usr.bin/sendbug/sendbug.c
43
void template(FILE *);
usr.bin/ssh/libcrux_mlkem768_sha3.h
118
template <class T>
usr.bin/ssh/libcrux_mlkem768_sha3.h
123
template <class T>
usr.bin/ssh/libcrux_mlkem768_sha3.h
130
template <typename V> \
usr.bin/tmux/arguments.c
226
found = strchr(parse->template, flag);
usr.bin/tmux/cmd-break-pane.c
140
if ((template = args_get(args, 'F')) == NULL)
usr.bin/tmux/cmd-break-pane.c
141
template = BREAK_PANE_TEMPLATE;
usr.bin/tmux/cmd-break-pane.c
142
cp = format_single(item, template, tc, dst_s, wl, wp);
usr.bin/tmux/cmd-break-pane.c
63
const char *template;
usr.bin/tmux/cmd-display-message.c
107
template = args_string(args, 0);
usr.bin/tmux/cmd-display-message.c
109
template = args_get(args, 'F');
usr.bin/tmux/cmd-display-message.c
110
if (template == NULL)
usr.bin/tmux/cmd-display-message.c
111
template = DISPLAY_MESSAGE_TEMPLATE;
usr.bin/tmux/cmd-display-message.c
139
msg = xstrdup(template);
usr.bin/tmux/cmd-display-message.c
141
msg = format_expand_time(ft, template);
usr.bin/tmux/cmd-display-message.c
69
const char *template;
usr.bin/tmux/cmd-list-buffers.c
52
const char *template, *filter;
usr.bin/tmux/cmd-list-buffers.c
58
if ((template = args_get(args, 'F')) == NULL)
usr.bin/tmux/cmd-list-buffers.c
59
template = LIST_BUFFERS_TEMPLATE;
usr.bin/tmux/cmd-list-buffers.c
81
line = format_expand(ft, template);
usr.bin/tmux/cmd-list-clients.c
61
const char *template, *filter;
usr.bin/tmux/cmd-list-clients.c
72
if ((template = args_get(args, 'F')) == NULL)
usr.bin/tmux/cmd-list-clients.c
73
template = LIST_CLIENTS_TEMPLATE;
usr.bin/tmux/cmd-list-clients.c
99
line = format_expand(ft, template);
usr.bin/tmux/cmd-list-commands.c
50
const char *template, struct cmdq_item *item)
usr.bin/tmux/cmd-list-commands.c
67
line = format_expand(ft, template);
usr.bin/tmux/cmd-list-commands.c
80
const char *template, *command;
usr.bin/tmux/cmd-list-commands.c
83
if ((template = args_get(args, 'F')) == NULL)
usr.bin/tmux/cmd-list-commands.c
84
template = LIST_COMMANDS_TEMPLATE;
usr.bin/tmux/cmd-list-commands.c
92
cmd_list_single_command(*entryp, ft, template, item);
usr.bin/tmux/cmd-list-commands.c
96
cmd_list_single_command(entry, ft, template, item);
usr.bin/tmux/cmd-list-keys.c
175
const char *template, *tablename, *keystr;
usr.bin/tmux/cmd-list-keys.c
210
if ((template = args_get(args, 'F')) == NULL)
usr.bin/tmux/cmd-list-keys.c
211
template = LIST_KEYS_TEMPLATE;
usr.bin/tmux/cmd-list-keys.c
239
line = format_expand(ft, template);
usr.bin/tmux/cmd-list-panes.c
103
const char *template, *filter;
usr.bin/tmux/cmd-list-panes.c
108
template = args_get(args, 'F');
usr.bin/tmux/cmd-list-panes.c
109
if (template == NULL) {
usr.bin/tmux/cmd-list-panes.c
112
template = "#{pane_index}: "
usr.bin/tmux/cmd-list-panes.c
119
template = "#{window_index}.#{pane_index}: "
usr.bin/tmux/cmd-list-panes.c
126
template = "#{session_name}:#{window_index}."
usr.bin/tmux/cmd-list-panes.c
153
line = format_expand(ft, template);
usr.bin/tmux/cmd-list-sessions.c
59
const char *template, *filter;
usr.bin/tmux/cmd-list-sessions.c
64
if ((template = args_get(args, 'F')) == NULL)
usr.bin/tmux/cmd-list-sessions.c
65
template = LIST_SESSIONS_TEMPLATE;
usr.bin/tmux/cmd-list-sessions.c
88
line = format_expand(ft, template);
usr.bin/tmux/cmd-list-windows.c
106
line = format_expand(ft, template);
usr.bin/tmux/cmd-list-windows.c
67
const char *template, *filter;
usr.bin/tmux/cmd-list-windows.c
72
template = args_get(args, 'F');
usr.bin/tmux/cmd-list-windows.c
84
if (template == NULL)
usr.bin/tmux/cmd-list-windows.c
85
template = LIST_WINDOWS_WITH_SESSION_TEMPLATE;
usr.bin/tmux/cmd-list-windows.c
88
if (template == NULL)
usr.bin/tmux/cmd-list-windows.c
89
template = LIST_WINDOWS_TEMPLATE;
usr.bin/tmux/cmd-new-session.c
339
if ((template = args_get(args, 'F')) == NULL)
usr.bin/tmux/cmd-new-session.c
340
template = NEW_SESSION_TEMPLATE;
usr.bin/tmux/cmd-new-session.c
341
cp = format_single(item, template, c, s, s->curw, NULL);
usr.bin/tmux/cmd-new-session.c
79
const char *errstr, *template, *group, *tmp;
usr.bin/tmux/cmd-new-window.c
145
if ((template = args_get(args, 'F')) == NULL)
usr.bin/tmux/cmd-new-window.c
146
template = NEW_WINDOW_TEMPLATE;
usr.bin/tmux/cmd-new-window.c
147
cp = format_single(item, template, tc, s, new_wl,
usr.bin/tmux/cmd-new-window.c
65
const char *template, *name;
usr.bin/tmux/cmd-split-window.c
184
if ((template = args_get(args, 'F')) == NULL)
usr.bin/tmux/cmd-split-window.c
185
template = SPLIT_WINDOW_TEMPLATE;
usr.bin/tmux/cmd-split-window.c
186
cp = format_single(item, template, tc, s, wl, new_wp);
usr.bin/tmux/cmd-split-window.c
70
const char *template;
usr.bin/tmux/cmd.c
840
cmd_template_replace(const char *template, const char *s, int idx)
usr.bin/tmux/cmd.c
847
if (strchr(template, '%') == NULL)
usr.bin/tmux/cmd.c
848
return (xstrdup(template));
usr.bin/tmux/cmd.c
855
ptr = template;
usr.bin/tmux/control-notify.c
48
const char *template;
usr.bin/tmux/control-notify.c
51
template = "%layout-change #{window_id} #{window_layout} "
usr.bin/tmux/control-notify.c
62
cp = format_single(NULL, template, NULL, NULL, wl, NULL);
usr.bin/tmux/mode-tree.c
1455
const char *template, const char *name)
usr.bin/tmux/mode-tree.c
1461
command = cmd_template_replace(template, name, 1);
usr.bin/tmux/server-client.c
2089
const char *template;
usr.bin/tmux/server-client.c
2093
template = options_get_string(s->options, "set-titles-string");
usr.bin/tmux/server-client.c
2098
title = format_expand_time(ft, template);
usr.bin/tmux/tty-keys.c
225
const char *template;
usr.bin/tmux/tty-keys.c
510
strlcpy(copy, tdkx->template, sizeof copy);
usr.sbin/bgpctl/output.c
131
} else if (p->conf.template)
usr.sbin/bgpctl/output.c
282
if (p->conf.remote_as == 0 && p->conf.template)
usr.sbin/bgpctl/output.c
286
if (p->conf.template)
usr.sbin/bgpctl/output.c
288
if (p->template)
usr.sbin/bgpctl/output.c
446
p->conf.template ? "Template" : statenames[p->state]);
usr.sbin/bgpctl/output_json.c
242
json_do_bool("template", p->conf.template);
usr.sbin/bgpctl/output_json.c
243
json_do_bool("cloned", p->template != NULL);
usr.sbin/bgpctl/output_json.c
338
if (!p->conf.template)
usr.sbin/bgpctl/output_ometric.c
199
if (p->conf.template)
usr.sbin/bgpd/bgpd.h
522
uint8_t template;
usr.sbin/bgpd/control.c
435
if (!p->template)
usr.sbin/bgpd/parse.y
1716
curpeer->conf.template = 1;
usr.sbin/bgpd/parse.y
5147
if (p->conf.remote_as == 0 && !p->conf.template) {
usr.sbin/bgpd/session.c
1610
if (!p->conf.template &&
usr.sbin/bgpd/session.c
1616
if (p->conf.template &&
usr.sbin/bgpd/session.c
1632
newpeer->template = loose;
usr.sbin/bgpd/session.c
1690
memcpy(&p->conf, &p->template->conf, sizeof(struct peer_config));
usr.sbin/bgpd/session.c
1711
p->conf.template = 0;
usr.sbin/bgpd/session.c
1839
if (!p->template)
usr.sbin/bgpd/session.c
1907
if (p->template != NULL)
usr.sbin/bgpd/session.c
1943
if (p->state < STATE_OPENSENT && !p->template)
usr.sbin/bgpd/session.c
1956
if (p->conf.template) {
usr.sbin/bgpd/session.c
1959
if (xp->template != p)
usr.sbin/bgpd/session.c
393
if (p->template)
usr.sbin/bgpd/session.h
215
struct peer *template;
usr.sbin/bgpd/session_bgp.c
1038
if (peer->template && !peer->conf.remote_as && as != AS_TRANS) {
usr.sbin/bgpd/session_bgp.c
1560
peer->conf.template) {
usr.sbin/cron/crontab.c
386
spool_mkstemp(char *template)
usr.sbin/cron/crontab.c
398
fd = mkstemp(template);
usr.sbin/cron/crontab.c
406
warn("%s", template);
usr.sbin/cron/crontab.c
414
unlink(template);
usr.sbin/user/user.c
795
char template[MaxFileNameLen];
usr.sbin/user/user.c
801
(void) snprintf(template, sizeof(template), "%s.XXXXXXXX", CONFFILE);
usr.sbin/user/user.c
802
if ((fd = mkstemp(template)) == -1) {
usr.sbin/user/user.c
833
ret = ((rename(template, CONFFILE) == 0) && (chmod(CONFFILE, 0644) == 0));