home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 January
/
usenetsourcesnewsgroupsinfomagicjanuary1994.iso
/
sources
/
unix
/
volume14
/
nntp1.5
/
part01
/
server
/
profile.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1988-04-18
|
381 b
|
26 lines
#ifndef lint
static char *sccsid = "@(#)profile.c 1.1 (Berkeley) 12/18/87";
#endif
#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);
}