|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 381 (0x17d) Types: TextFile Names: »profile.c«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit └─⟦cfd40dc56⟧ »EurOpenD3/news/nntp/nntp.1.5.8.tar.Z« └─⟦2ec98eca6⟧ └─⟦this⟧ »server/profile.c« └─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit └─⟦5cced586a⟧ »EurOpenD3/news/nntp/nntp.1.5.7.tar.Z« └─⟦7340f105e⟧ └─⟦this⟧ »./server/profile.c«
#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); }