From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5B1F4385843F; Mon, 10 Jan 2022 17:17:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5B1F4385843F From: "crrodriguez at opensuse dot org" To: glibc-bugs@sourceware.org Subject: [Bug libc/28730] Extend posix_spawnattr_* interface with more useful features Date: Mon, 10 Jan 2022 17:17:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: crrodriguez at opensuse dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2022 17:17:18 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28730 --- Comment #8 from Cristian Rodr=C3=ADguez --- > struct posix_spawn_resource > { > int resource; > struct rlimit64 rlim; > } >=20 > (The rlimit has the LFS issue, so I think it shold be supported only for = LFS > mode). The closer one looks.. :-) we should do it like QNX does.. int posix_spawnattr_setstackmax( posix_spawnattr_t *attrp, a_reasonable_non_lfs_dependant_type (uint64_t?) size); sets RLIMIT_STACK. _setfilemax() or similar sets NOFILE..and so on..only = add those that are useful in many cases.. unfortunately this is the only sane w= ay I see forward, it makes the interface even more annoyingly verbose but IMHO we shouldn't make this functions to take LFS dependant types at all. --=20 You are receiving this mail because: You are on the CC list for the bug.=