1: #ifndef lint
   2: static char *sccsid = "@(#)profile.c	1.1	(Berkeley) 12/18/87";
   3: #endif
   4: 
   5: #include <sys/types.h>
   6: #include <sys/stat.h>
   7: 
   8: #define MON "gmon.out"
   9: #define DIR "/usr/tmp/nntpd.prof"
  10: 
  11: profile()
  12: {
  13:     static char tmp[] = "gmon.XXXXXX";
  14:     struct stat statbuf;
  15: 
  16:     if (chdir(DIR) < 0)
  17:         return;
  18: 
  19:     if (stat(MON, statbuf) < 0)
  20:         return;
  21: 
  22:     (void) mktemp(tmp);
  23: 
  24:     (void) rename(MON, tmp);
  25: }

Defined functions

profile defined in line 11; used 1 times

Defined variables

sccsid defined in line 2; never used

Defined macros

DIR defined in line 9; used 1 times
  • in line 16
MON defined in line 8; used 2 times
Last modified: 1987-12-19
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2349
Valid CSS Valid XHTML 1.0 Strict