NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/59081: Add close_range() system call
The following reply was made to PR kern/59081; it has been noted by GNATS.
From: Thomas Klausner <wiz%NetBSD.org@localhost>
To: NetBSD bugtracking <gnats-bugs%NetBSD.org@localhost>
Cc:
Subject: Re: kern/59081: Add close_range() system call
Date: Wed, 26 Mar 2025 17:49:16 +0100
On Wed, Mar 26, 2025 at 04:05:01PM +0000, Ricardo Branco via gnats wrote:
> closefrom doesn't handle CLOSE_RANGE_CLOEXEC.
Is that the same as:
int fd;
for (fd=start; fd<end; fd++) {
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1) {
/* TODO: error handling */
}
}
?
Thomas
Home |
Main Index |
Thread Index |
Old Index