From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12073 invoked by alias); 23 Jul 2009 01:11:08 -0000 Received: (qmail 12062 invoked by uid 22791); 23 Jul 2009 01:11:08 -0000 X-SWARE-Spam-Status: No, hits=-51.3 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Jul 2009 01:10:59 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n6N1AuNa012140; Wed, 22 Jul 2009 21:10:56 -0400 Received: from greed.delorie.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n6N1As4X012396; Wed, 22 Jul 2009 21:10:54 -0400 Received: from greed.delorie.com (greed.delorie.com [127.0.0.1] (may be forged)) by greed.delorie.com (8.14.3/8.14.3) with ESMTP id n6N1ArWS031948; Wed, 22 Jul 2009 21:10:53 -0400 Received: (from dj@localhost) by greed.delorie.com (8.14.3/8.14.3/Submit) id n6N1Aqt6031945; Wed, 22 Jul 2009 21:10:52 -0400 Date: Thu, 23 Jul 2009 01:24:00 -0000 Message-Id: <200907230110.n6N1Aqt6031945@greed.delorie.com> From: DJ Delorie To: Douglas B Rupp CC: ian@airs.com, gcc-patches@gcc.gnu.org In-reply-to: <4A67B704.6030402@gnat.com> (message from Douglas B Rupp on Wed, 22 Jul 2009 18:04:04 -0700) Subject: Re: [PATCH] Libiberty for VMS - mkstemps.c don't mix case References: <4A67B113.7010903@gnat.com> <200907230045.n6N0j7NW029586@greed.delorie.com> <4A67B704.6030402@gnat.com> X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg01256.txt.bz2 > Well... just because windows users haven't complained doesn't mean the > problem doesn't theoretically exist. I would argue VMS machines are > genrally larger with more simultaneous developers than windows and so > the problem is more likely to occur. I would argue that we already check for file conflicts, and don't need to worry about it. fd = open (pattern, O_BINARY|O_RDWR|O_CREAT|O_EXCL, 0600); if (fd >= 0) /* The file does not exist. */ return fd; if (errno != EEXIST If VMS is truly case insensitive, wouldn't it detect such conflicts via the above O_EXCL code?