From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: Some non-standard O_* flags are missing Date: Tue, 09 Mar 2021 21:36:25 +0100 Message-ID: <87mtvc2hfa.fsf@pobox.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26289"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: guile-devel@gnu.org To: Maxime Devos Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Tue Mar 09 21:53:27 2021 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 1lJjM7-0006iW-GR for guile-devel@m.gmane-mx.org; Tue, 09 Mar 2021 21:53:27 +0100 Original-Received: from localhost ([::1]:55518 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJjM6-0007Zi-Fz for guile-devel@m.gmane-mx.org; Tue, 09 Mar 2021 15:53:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46192) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJj61-0003Tr-3J for guile-devel@gnu.org; Tue, 09 Mar 2021 15:36:50 -0500 Original-Received: from fanzine.igalia.com ([178.60.130.6]:49643) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJj5w-0004Nc-3W for guile-devel@gnu.org; Tue, 09 Mar 2021 15:36:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=new1/NPLnMYDGLiMjvEDgnsdXqjBtxx3THyq1NkT+Y8=; b=PJE3sFbKx/6p2ox3erj3m4870sENLDUPCN1tXco8YrOwMziGXUDCMy2fAgs7IuGJZas7wdJZ/N0kM93tcOTmx+o03QOtKpe7eRFEQXmVqRiWdruEL0Y9vR5dSEQRDSNHNefFGxeBIu8D8Yd6pNoA1xI+w1yKW3EID2A2koo//JOY24PRszOpG+K+sLcwKsiMSX5dKmhpTv7CidqXSG6RJLGC2q8C070Cq85+uJ9RF47oYF0tESw7ROuLUzi41qOoBcBkgYegHmUReDl4ba/J4Kd9zMG/iyPei/xsEzUITdFrF5f0GJk7cbafdFxEMHRBURRK/BFbKpfmSKaAHJuYCg==; Original-Received: from 82-65-63-215.subs.proxad.net ([82.65.63.215] helo=sparrow) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) id 1lJj5p-0003o9-GR; Tue, 09 Mar 2021 21:36:37 +0100 In-Reply-To: (Maxime Devos's message of "Sun, 31 Jan 2021 22:13:10 +0100") Received-SPF: neutral client-ip=178.60.130.6; envelope-from=wingo@pobox.com; helo=fanzine.igalia.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779 autolearn=no 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:20700 Archived-At: Hi :) Sure, would be happy to accept a patch for these. It's adding more definitions to the base environment, which is usually a negative, but we'll have to find some kind of module solution for all of these flags at some point. If you do send a patch, please update the manual and NEWS also. Cheers, Andy On Sun 31 Jan 2021 22:13, Maxime Devos writes: > Hi guilers, > > I noticed the following open flags are not defined: > O_NOFOLLOW, O_TMPFILE, O_IGNORE_CTTY, O_NOLINK, > O_SHLOCK, O_EXLOCK, O_ASYNC, O_NOATIME. > > Some of these are Hurd-specific, Linux-specific > and BSD-specific. I'm particularily interested > in O_NOFOLLOW, O_TMPFILE, O_IGNORE_CTTY, O_NOLINK > and O_NOATIME, the others don't matter for me, > though they may be useful for others. > > Could extra O_* flags be exported to Guile (in libguile/filesys.c) > on systems where they are defined? > > Greetings, > Maxime