From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oo1-f52.google.com (mail-oo1-f52.google.com [209.85.161.52]) by sourceware.org (Postfix) with ESMTPS id 964313857C73 for ; Mon, 20 Jul 2020 22:33:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 964313857C73 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rtems.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=joel.sherrill@gmail.com Received: by mail-oo1-f52.google.com with SMTP id z127so3535382ooa.3 for ; Mon, 20 Jul 2020 15:33:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=yVapt5tfEpeVPw8E6GTiO26sDEcNQaz6OELFxKrZPuM=; b=Hc0iLpq9uWdUleVqxsHLcrFOOseS2wWiU1Xt1Nxpe55tzha/LzsvSxwWUkigFQskwb gxNqKx9gyRmYy/dpUQBF1/PRCrrintNFG+1aY5ofMlyLuwOobetlS6bsYWiRN8fBuM/x AZEbyrxrH70hJhhhC9VfwjqgeIuZ7lOH9jfD7TZ4WCLZ1qQRV5Z8CCYijH0RHWRYMOi9 mfejUVVg8TyngpR/SsW1skC6mWwCcBOYsDhUE1S+M6zAPao13rk2Ov0HKyl5gaQrBfBI Qs6wNZrRT9BMrR3g60/fVyv9Od+nvTksGlXQzTlIote8yjXGxkeBhkthMafd/XFDVAXz FNMQ== X-Gm-Message-State: AOAM530sbj4ur5pm8Arw5Fv3U6VYTWoXJ7xkms4rzbZfeiCdT1RR3zYR 0yFsCUiDc8hS+Z7QRXnrpwKJyIIE X-Google-Smtp-Source: ABdhPJxCwVf4OqC1jpBelMmKjGMAjpupjp8HLchpN6EacMAYr2F9tPJzxspyQxb/44a/3BqxbwhP1w== X-Received: by 2002:a4a:ae07:: with SMTP id z7mr21449539oom.25.1595284416788; Mon, 20 Jul 2020 15:33:36 -0700 (PDT) Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com. [209.85.210.41]) by smtp.gmail.com with ESMTPSA id b3sm4611365ooa.27.2020.07.20.15.33.36 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Jul 2020 15:33:36 -0700 (PDT) Received: by mail-ot1-f41.google.com with SMTP id w17so13562653otl.4 for ; Mon, 20 Jul 2020 15:33:36 -0700 (PDT) X-Received: by 2002:a9d:47:: with SMTP id 65mr22701285ota.327.1595284416112; Mon, 20 Jul 2020 15:33:36 -0700 (PDT) MIME-Version: 1.0 Reply-To: joel@rtems.org From: Joel Sherrill Date: Mon, 20 Jul 2020 17:33:24 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: POSIX XXXat() methods To: Newlib , Eshan Dhawan X-Spam-Status: No, score=-3032.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Mon, 20 Jul 2020 22:33:39 -0000 Hi Eshan has been looking for generic implementations of the 15 POSIX methods like openat(), mkdirat(), etc. He has searched the normal places I know of and hasn't found implementations of most of them that don't just call a dedicated system call. Here is his analysis. https://docs.google.com/spreadsheets/d/1nEniQOs9TxDy5fb7P0_XFg7VknQDldG1BDFWSoqdKg0/edit?usp=sharing It appears that many could be implemented generically but with possible overhead of saving current working directory, changing, returning, etc. and likely race conditions. Does anyone have any ideas on where to get generic implementations to port? Or implementation strategies to write OS agnostic versions? Thanks. --joel