Date: Tue, 18 Jan 2000 00:14:33 -0500 (EST) From: Mike Heffner <mheffner@mailandnews.com> To: FreeBSD-audit <FreeBSD-audit@freebsd.org> Subject: cc tempfile handling? Message-ID: <XFMail.20000118001433.mheffner@mailandnews.com>
next in thread | raw e-mail | index | archive | help
[ sorry if you get this twice, my ISP's sendmail was giving me errors ] After doing some tempfile monitoring, I've noticed that cc will create several tempfile's during a compile of one file. As seen below: + -rw------- 1 spock wheel 17421 Jan 12 00:18 /tmp/ccO10265.i + -rw------- 1 spock wheel 0 Jan 12 00:18 /tmp/ccf10265.s + -rw------- 1 spock wheel 0 Jan 12 00:18 /tmp/ccJ10265.o - -rw------- 1 spock wheel 0 Jan 12 00:18 /tmp/ccJ10265.o - -rw------- 1 spock wheel 0 Jan 12 00:18 /tmp/ccf10265.s - -rw------- 1 spock wheel 17421 Jan 12 00:18 /tmp/ccO10265.i ^ As you notice, there's only one char that is changing between them (when you have a 5 digit pid), and the i, s, o sequence isn't hard to predict. Can we increase the number of X's in the file template from 6 to 10, as was done in some other patches recently posted by Kris Kennaway <kris@hub.freebsd.org> ? Here's a patch for what i suggested: Index: choose-temp.c =================================================================== RCS file: /home/ncvs/src/contrib/gcc/choose-temp.c,v retrieving revision 1.3 diff -r1.3 choose-temp.c 76c76 < #define TEMP_FILE "ccXXXXXX" --- > #define TEMP_FILE "ccXXXXXXXXXX" Later, --------------------------------- Mike Heffner <spock@techfour.net> Fredericksburg, VA ICQ# 882073 Date: 18-Jan-2000 Time: 00:11:04 --------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20000118001433.mheffner>