From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id 8791F393C8BA for ; Wed, 24 Jun 2020 08:35:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8791F393C8BA Received: by mail-pf1-x435.google.com with SMTP id b5so843488pfp.9 for ; Wed, 24 Jun 2020 01:35:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:mime-version :content-transfer-encoding:message-id; bh=vDgMBAo3luWJmKS5/rtVlUI/3i96Z8bR2JBXv2WAE3A=; b=gl4ryvH2JIJ8B0ZYWd5V31uTCDvtEjkmJfwYMfW1GCk99iTKKQMNmSIGqLCD7bhFUJ wnBM+VXOIFtO8wjabTXqsRIeR1S7U1aFOlH43wmoDZxVvwQhUuNin/AE19rIjqVJ2oB1 ijfGYiQNtN8Cidi2X7QyGxwthbmNNzl73tyupNxQ0SHoZIbHV0e2fn/Z7WvKIR2u328S RKHesXkdCuXlRciTlPltd9nchY+DHnUsO+c8ATNoeNixkk5qY0zAjZ9ktbTwgR6nHCq+ p8Ev8OvYozbOuZvsd3/LADtkKZKhN9laDOG/ZglRWrznf7v9vcZQcJAMzcVSJ423CRDK WRug== X-Gm-Message-State: AOAM530ZAM/e7QRwyKRN2OVeuw0PyTtGXiyczVEp1gh0qrtESS3Pi0hq KBUM2TJQvxxyoknuTz/SAM9Z/wDP X-Google-Smtp-Source: ABdhPJxyDqA9Jj6KpvlTeHRzQ6Jz5hhztNJDnUPIoaY5+DzknYqVlHuPSjf9qKuC0GxpXw+w2w8aLQ== X-Received: by 2002:a63:7c5:: with SMTP id 188mr13054907pgh.48.1592987724529; Wed, 24 Jun 2020 01:35:24 -0700 (PDT) Received: from gmail.com (103-238-238-185.flets.kamome.or.jp. [103.238.238.185]) by smtp.gmail.com with ESMTPSA id y18sm18492612pfn.177.2020.06.24.01.35.23 for (version=TLS1 cipher=ECDHE-ECDSA-AES128-SHA bits=128/128); Wed, 24 Jun 2020 01:35:23 -0700 (PDT) From: Keita To: newlib@sourceware.org Subject: Is if_nameindex() supported when combining linux ver5.5 and newlib? Date: Wed, 24 Jun 2020 17:35:22 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: HidemaruMail 6.78 (WinNT,A00) Message-Id: <28D64A02668787FF340A60@gmail.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2020 08:35:26 -0000 Hi, Please tell us about the support status of Linux ver5.5. Is if_nameindex() supported when combining linux ver5.5 and newlib? Starting with Linux ve5.5, system call _sysctl() is no longer supported. https://www.phoronix.com/scan.php?page=article&item=linux-55-features&num=1 the newlib library uses _sysctl() to implement if_nameindex(). ---------------- newlib\libc\sys\linux\net\ifname.c struct if_nameindex * if_nameindex() --- mib[0] = CTL_NET; mib[1] = PF_ROUTE; mib[2] = 0; /* protocol */ mib[3] = 0; /* wildcard address family */ mib[4] = 0; mib[5] = 0; /* no flags */ if (__sysctl(mib, 6, NULL, &needed, NULL, 0) <0) // <- _sysctl() wrapper function return NULL; ------------------- If not support, are there any plans to fix this? For example, changing to procfs(read "/proc/sys"). Regards, Keita