|
|
BSD 4.3tahoe
#include <sys/types.h>
#include <sys/stat.h>
#define MON "gmon.out"
#define DIR "/usr/tmp/nntpd.prof"
profile()
{
static char tmp[] = "gmon.XXXXXX";
struct stat statbuf;
if (chdir(DIR) < 0)
return;
if (stat(MON, statbuf) < 0)
return;
(void) mktemp(tmp);
(void) rename(MON, tmp);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.