From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH 1/1] Support mkdtemp via mkdtemp! and scm_mkdtemp Date: Wed, 30 Dec 2020 17:05:29 -0600 Message-ID: <87pn2q28ue.fsf@trouble.defaultvalue.org> References: <20201230015005.335417-1-rlb@defaultvalue.org> <20201230084122.GA824833@spikycactus.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6731"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-devel@gnu.org To: Mike Gran Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Thu Dec 31 00:06:00 2020 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kukXX-0001ar-U3 for guile-devel@m.gmane-mx.org; Thu, 31 Dec 2020 00:05:59 +0100 Original-Received: from localhost ([::1]:33254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kukXW-0001VB-Km for guile-devel@m.gmane-mx.org; Wed, 30 Dec 2020 18:05:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60616) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kukX7-0001V3-Hp for guile-devel@gnu.org; Wed, 30 Dec 2020 18:05:33 -0500 Original-Received: from defaultvalue.org ([45.33.119.55]:47532) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kukX5-0001Or-1Y for guile-devel@gnu.org; Wed, 30 Dec 2020 18:05:33 -0500 Original-Received: from trouble.defaultvalue.org (localhost [127.0.0.1]) (Authenticated sender: rlb@defaultvalue.org) by defaultvalue.org (Postfix) with ESMTPSA id D71832007C; Wed, 30 Dec 2020 17:05:29 -0600 (CST) Original-Received: by trouble.defaultvalue.org (Postfix, from userid 1000) id 7C50814E638; Wed, 30 Dec 2020 17:05:29 -0600 (CST) In-Reply-To: <20201230084122.GA824833@spikycactus.com> Received-SPF: pass client-ip=45.33.119.55; envelope-from=rlb@defaultvalue.org; helo=defaultvalue.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20628 Archived-At: Mike Gran writes: > Since mkdtemp already returns a string of the new directory name, > it might be more scheme-like to not modify the input string, and instead > just return the new directory name. Perhaps, though I was just matching the existing semantics of guile mkstemp, i.e. figured maybe they should behave the same. > Also, I don't know how universal mkdtemp is. It does exist in Linux and > OpenBSD, but, I'm not sure about all platforms. So a configure check > might not be amiss. Yeah I wondered, though it is at least POSIX: https://pubs.opengroup.org/onlinepubs/9699919799/functions/mkdtemp.html Not sure what our current bar is for checks. Thanks -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4