From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1697 invoked by alias); 19 Dec 2008 14:18:42 -0000 Received: (qmail 1667 invoked by uid 22791); 19 Dec 2008 14:18:41 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from yw-out-1718.google.com (HELO yw-out-1718.google.com) (74.125.46.157) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 19 Dec 2008 14:18:06 +0000 Received: by yw-out-1718.google.com with SMTP id 5so321347ywm.26 for ; Fri, 19 Dec 2008 06:18:03 -0800 (PST) Received: by 10.142.140.14 with SMTP id n14mr1332685wfd.201.1229696283073; Fri, 19 Dec 2008 06:18:03 -0800 (PST) Received: by 10.142.194.3 with HTTP; Fri, 19 Dec 2008 06:17:58 -0800 (PST) Message-ID: <85e0e3140812190617rf233761ie37a165793d4c838@mail.gmail.com> Date: Fri, 19 Dec 2008 14:44:00 -0000 From: Niklaus To: gcc-help@gcc.gnu.org Subject: Search path directory limit MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-12/txt/msg00217.txt.bz2 hi, The below program takes a long time to compile (in minutes). I 've these small indiviudal .c/.cpp files which i have to compile and execute. The problem is with rouge "/dev/random or /dev/urandom". Solutions like limit the process execution time of gcc is not appealing. Can we restrict the paths from which gcc includes the header files. Can we tell gcc on a command line parameters/makefile to not include anything from "/dev" ? If possible how to do it ? Removing read access on those devices are not possible. $ cat a.c #include "/dev/random" #include int main() { return 0; } regards, Nik