From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751630AbdJYMph (ORCPT ); Wed, 25 Oct 2017 08:45:37 -0400 Received: from mail-qk0-f196.google.com ([209.85.220.196]:44538 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750765AbdJYMpd (ORCPT ); Wed, 25 Oct 2017 08:45:33 -0400 X-Google-Smtp-Source: ABhQp+Rp48UI+BV7j+eE7sHegZijsNTnISgZNl8GlxEDgpF96dM+J5nLcDzvc7HqRGiD/2tvV8FuGWI+hbsJfdgb4ho= MIME-Version: 1.0 In-Reply-To: <20171023092938.GC32228@amd> References: <20170924200620.GA24368@avx2> <9bc11ace-d111-cdef-5280-8cdda027ae9a@gmail.com> <20171023092938.GC32228@amd> From: Alexey Dobriyan Date: Wed, 25 Oct 2017 14:45:31 +0200 Message-ID: Subject: Re: [PATCH 1/2 v2] fdmap(2) To: Pavel Machek Cc: "Michael Kerrisk (man-pages)" , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, rdunlap@infradead.org, tglx@linutronix.de, tixxdz@gmail.com, gladkov.alexey@gmail.com, Aliaksandr Patseyenak Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/23/17, Pavel Machek wrote: > Binary fdmap looks... quite ugly to me. But close_all(from, to) > syscall kindof makes sense to me... and is not that ugly. > > Given that openbsd has something similar... perhaps we can take that? closefrom() can be implemented on top of fdmap(). fdmap as is is useful for other purposes. > Except during startup, application should have good idea what fds it > has open, so maybe that's enough?