From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id 993B83856257 for ; Wed, 1 Jun 2022 18:07:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 993B83856257 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 251Hs5jA005569; Wed, 1 Jun 2022 18:07:32 GMT Received: from ppma04wdc.us.ibm.com (1a.90.2fa9.ip4.static.sl-reverse.com [169.47.144.26]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3gecwng8w7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Jun 2022 18:07:31 +0000 Received: from pps.filterd (ppma04wdc.us.ibm.com [127.0.0.1]) by ppma04wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 251I6ikd015214; Wed, 1 Jun 2022 18:07:31 GMT Received: from b03cxnp07029.gho.boulder.ibm.com (b03cxnp07029.gho.boulder.ibm.com [9.17.130.16]) by ppma04wdc.us.ibm.com with ESMTP id 3gbc7fw8sx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Jun 2022 18:07:31 +0000 Received: from b03ledav006.gho.boulder.ibm.com (b03ledav006.gho.boulder.ibm.com [9.17.130.237]) by b03cxnp07029.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 251I7UFd34734352 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 1 Jun 2022 18:07:30 GMT Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9244CC605B; Wed, 1 Jun 2022 18:07:30 +0000 (GMT) Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E3423C6062; Wed, 1 Jun 2022 18:07:29 +0000 (GMT) Received: from localhost (unknown [9.65.198.109]) by b03ledav006.gho.boulder.ibm.com (Postfix) with ESMTP; Wed, 1 Jun 2022 18:07:29 +0000 (GMT) References: <20220207174431.360355-1-adhemerval.zanella@linaro.org> <20220207174431.360355-2-adhemerval.zanella@linaro.org> User-agent: mu4e 1.6.6; emacs 27.2 From: Matheus Castanho To: Adhemerval Zanella Cc: libc-alpha@sourceware.org Subject: Re: [PATCH v2 01/15] linux: Add pidfd_open Date: Wed, 01 Jun 2022 15:02:24 -0300 In-reply-to: <20220207174431.360355-2-adhemerval.zanella@linaro.org> Message-ID: <87y1yg2r6n.fsf@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-AS-GCONF: 00 X-Proofpoint-GUID: nJkmYUY4QT2aEKm3VWeiOVUsH7mSsjJx X-Proofpoint-ORIG-GUID: nJkmYUY4QT2aEKm3VWeiOVUsH7mSsjJx X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.517,FMLib:17.11.64.514 definitions=2022-06-01_06,2022-06-01_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 adultscore=0 malwarescore=0 spamscore=0 priorityscore=1501 mlxlogscore=462 lowpriorityscore=0 suspectscore=0 phishscore=0 impostorscore=0 mlxscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2204290000 definitions=main-2206010077 X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2022 18:07:34 -0000 Hi Adhemerval, Adhemerval Zanella via Libc-alpha writes: > This was added on Linux 5.3 (32fcb426ec001cb6d5a4a195091a8486ea77e2df) > as a way to retrieve a pid file descriptors for process that has not > been created CLONE_PIDFD (by usual fork/clone). > --- [...] > create mode 100644 sysdeps/unix/sysv/linux/tst-pidfd-consts.py This new test fails on systems with older kernels (e.g. Debian 10 - kernel 4.19). Looks like linux/pidfd.h is not available on such systems, so list_macros fails when trying to compile source_2. FAIL: misc/tst-pidfd-consts original exit status 1 /tmp/tmp5g72cxka/test.c:2:10: fatal error: linux/pidfd.h: No such file or directory #include ^~~~~~~~~~~~~~~ compilation terminated. -- Matheus Castanho