From: Valentin Nechayev Subject: Re: [PATCH] nextfd(2) Date: Sun, 1 Apr 2012 21:28:26 +0300 Message-ID: <20120401182825.GJ21084@netch.kiev.ua> References: <20120401125741.GA7484@p183.telecom.by> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: akpm@linux-foundation.org, viro@zeniv.linux.org.uk, torvalds@linux-foundation.org, drepper@gmail.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org To: Alexey Dobriyan Return-path: Content-Disposition: inline In-Reply-To: <20120401125741.GA7484@p183.telecom.by> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Sun, Apr 01, 2012 at 15:57:42, adobriyan wrote about "[PATCH] nextfd(2)": > So, don't add closefrom(2), add nextfd(2). > > int nextfd(int fd) Is it really needed here to create syscall? One shall update all arch lists for it. Instead, adding a new option for fcntl() (named e.g. F_NEXTFD) solves for all platforms simultaneously. -netch-