Searched refs:tmpf (Results 1 - 8 of 8) sorted by relevance
/freebsd-current/usr.sbin/periodic/etc/security/ |
H A D | security.functions | 56 tmpf="$1"; shift 59 if [ "${tmpf}" = "-" ]; then 60 tmpf=`mktemp -t security` 61 cat > ${tmpf} 68 cp ${tmpf} ${LOG}/${label}.today || rc=3 71 if ! cmp -s ${LOG}/${label}.today ${tmpf} >/dev/null; then 76 ${tmpf} | eval "${filter}" 78 mv ${tmpf} ${LOG}/${label}.today || rc=3 81 rm -f ${tmpf}
|
/freebsd-current/lib/libc/tests/stdio/ |
H A D | mkostemp_test.c | 51 char tmpf[sizeof(template)]; local 55 memcpy(tmpf, template, sizeof(tmpf)); 56 fd = mkostemp(tmpf, oflags); 63 if (memcmp(tmpf, template, sizeof(tmpf) - 8 - 1) != 0) { 66 testnum++, oflags, tmpf); 83 if (stat(tmpf, &st1) == -1) { 86 testnum++, oflags, tmpf, strerror(errno)); 115 (void)unlink(tmpf); 165 char tmpf[sizeof(template)]; local [all...] |
/freebsd-current/sys/contrib/openzfs/lib/libshare/ |
H A D | nfs.c | 91 nfs_init_tmpfile(const char *prefix, const char *mdir, struct tmpfile *tmpf) argument 102 strlcpy(tmpf->name, prefix, sizeof (tmpf->name)); 103 strlcat(tmpf->name, ".XXXXXXXX", sizeof (tmpf->name)); 105 int fd = mkostemp(tmpf->name, O_CLOEXEC); 112 tmpf->fp = fdopen(fd, "w+"); 113 if (tmpf->fp == NULL) { 124 nfs_abort_tmpfile(struct tmpfile *tmpf) argument 126 unlink(tmpf 131 nfs_fini_tmpfile(const char *exports, struct tmpfile *tmpf) argument 260 struct tmpfile tmpf; local [all...] |
/freebsd-current/usr.sbin/pmcannotate/ |
H A D | pmcannotate.c | 423 char tmpf[MAXPATHLEN * 2 + 50]; local 430 bzero(tmpf, sizeof(tmpf)); 435 snprintf(tmpf, sizeof(tmpf), 440 snprintf(tmpf, sizeof(tmpf), 444 if (system(tmpf) != 0) 669 char tmpf[MAXPATHLEN * 2 + 50]; local 717 bzero(tmpf, sizeo [all...] |
/freebsd-current/contrib/dma/ |
H A D | spool.c | 93 queue->tmpf = strdup(fn); 94 if (queue->tmpf == NULL) 111 t->str = queue->tmpf; 261 if (link(queue->tmpf, it->mailfn) != 0) 270 unlink(queue->tmpf);
|
H A D | dma.h | 126 char *tmpf; member in struct:queue
|
/freebsd-current/contrib/elftoolchain/elfcopy/ |
H A D | main.c | 541 char *tmpf; local 567 tmpf = malloc(tlen + slen + plen); 568 if (tmpf == NULL) 571 memcpy(tmpf, tmpdir, tlen); 573 tmpf[tlen] = '/'; 575 memcpy(tmpf + tlen + slen, _TEMPFILE, plen); 576 if ((*fd = mkstemp(tmpf)) != -1) 579 err(EXIT_FAILURE, "mkstemp %s failed", tmpf); 581 free(tmpf); 585 err(EXIT_FAILURE, "fchmod %s failed", tmpf); [all...] |
/freebsd-current/usr.sbin/edquota/ |
H A D | edquota.c | 417 editit(char *tmpf) argument 447 execlp(ed, ed, tmpf, (char *)0);
|
Completed in 209 milliseconds