outname
local int gunzip(z_stream *strm, char *inname, char *outname, int test)
else if (outname == NULL || *outname == 0) {
outname = "-";
outfile = open(outname, O_CREAT | O_TRUNC | O_WRONLY, 0666);
fprintf(stderr, "gun cannot create %s\n", outname);
copymeta(inname, outname); /* copy attributes */
if (outfile > 2) unlink(outname);
if (outfile > 2) unlink(outname);
if (outfile > 2) unlink(outname);
outname, strerror(errno));
if (outfile > 2) unlink(outname);
char *outname;
outname = NULL;
outname = malloc(len + 1);
if (outname == NULL) {
memcpy(outname, *argv, len);
outname[len] = 0;
ret = gunzip(&strm, *argv, outname, test);
if (outname != NULL) free(outname);
yp_master(indomain, inmap, outname)
char **outname;
open_outfile(char const **outname, char **tempname)
random_dirent(outname, tempname);
int fd = open(*outname, oflags, creat_perms);
mkdirs(*outname, true);
random_dirent(outname, tempname);
progname, diagdir(*outname), diagslash(*outname), *outname,
char const *outname = linkname;
if (linkat(AT_FDCWD, target, AT_FDCWD, outname, AT_SYMLINK_FOLLOW)
&& (same_parent_dirs(target, outname)
if (link(target, outname) == 0) {
random_dirent(&outname, &tempname);
diagdir(outname), diagslash(outname), outname,
if (symlink(contents, outname) == 0) {
random_dirent(&outname, &tempname);
tp = open_outfile(&outname, &tempname);
char const *outname = name;
fp = open_outfile(&outname, &tempname);
yp_master(const char *indomain, const char *inmap, char **outname)
if (outname == NULL)
*outname = NULL;
if ((*outname = strdup(yprm.master)) == NULL)
if (*outname) {
free(*outname);
*outname = NULL;
prep_build_image(char *kernel, char *boot, char *rawdev, char *outname)
if ((prep_fd = open(outname, O_RDWR|O_TRUNC, 0)) < 0) {
prep_fd = creat(outname, 0644);
errx(2, "Can't open output '%s': %s", outname,
outname, flength);
rs6000_build_image(char *kernel, char *boot, char *rawdev, char *outname)
if ((rs6000_fd = open(outname, O_RDWR|O_TRUNC, 0)) < 0) {
rs6000_fd = creat(outname, 0644);
errx(2, "Can't open output '%s': %s", outname,
bebox_build_image(char *kernel, char *boot, char *rawdev, char *outname, char *repro_timestamp)
if ((bebox_fd = open(outname, O_RDWR|O_TRUNC, 0)) < 0) {
bebox_fd = creat(outname, 0644);
errx(2, "Can't open output '%s': %s", outname,
char *kernel = NULL, *boot = NULL, *rawdev = NULL, *outname = NULL;
outname = argv[0];
return prep_build_image(kernel, boot, rawdev, outname);
return rs6000_build_image(kernel, boot, rawdev, outname);
return bebox_build_image(kernel, boot, rawdev, outname,
extern char *outname;
if (outname == NULL)
outname = savestr(filearg[0]);
char *realout = outname;
if (move_file(TMPOUTNAME, outname) < 0) {
chmod(outname, filemode);
if (strlcpy(rejname, outname,
fatal("filename %s is too long\n", outname);
fatal("filename %s is too long\n", outname);
free(outname);
outname = NULL;
outname = savestr(optarg);
char *outname = NULL;
if (move_file(TMPOUTNAME, outname) < 0) {
chmod(outname, filemode);
void outname(const char *);
outname(tag->s_name);
outname(tdef->s_name);
outname(sym->s_name);
outname(sym->s_rename);
outname(fsym->s_name);
outname(fsym->s_rename);
outname(call->func->u.ops.left->u.sym->s_name);
outname(sym->s_name);
outname(hte->h_name);
outname(tp->t_tag->h_name);
outname(tp->t_tynam->h_name);
int *outorder, char **outname, int tcp)
*outname = (char *)strdup(yprm.master);
yp_master_host(CLIENT *client, char *indomain, char *inmap, char **outname)
*outname = (char *)strdup(yprm.master);
char *indomain, char *inmap, char **outname);