and feed the data to its standard input
* if *OUTSPEC* begins with a *-* character, use the rest of OUTSPEC as
the filename, but force overwrite any existing file by that name
+ * if *OUTSPEC* begins with a *#* character, use the rest of OUTSPEC as a
+ file descriptor and feed the data to it.
* otherwise write the data the the named file: note that is a file by that
name already exists, a warning is issued and profiling is disabled.
if (*nf == '|') {
prof->file = popen (nf + 1, "w");
prof->pipe_output = 1;
+ } else if (*nf == '#') {
+ int fd = strtol (nf + 1, NULL, 10);
+ prof->file = fdopen (fd, "a");
} else {
FILE *f;
if (force_delete)