From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B05DC433B4 for ; Thu, 29 Apr 2021 17:04:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D40696144B for ; Thu, 29 Apr 2021 17:04:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236036AbhD2RFe (ORCPT ); Thu, 29 Apr 2021 13:05:34 -0400 Received: from mga06.intel.com ([134.134.136.31]:57157 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233846AbhD2RFe (ORCPT ); Thu, 29 Apr 2021 13:05:34 -0400 IronPort-SDR: MjPYZoSvTU4FpAGOmu/h3T4XG/+JFwFssNzpBb8Bh0LO2BaOpatbmmKtBkwl1ZTXgXh1AY+NZb xPKdHh9mpFiA== X-IronPort-AV: E=McAfee;i="6200,9189,9969"; a="258342305" X-IronPort-AV: E=Sophos;i="5.82,259,1613462400"; d="scan'208";a="258342305" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2021 10:04:47 -0700 IronPort-SDR: uFOpMm3oqN5H/tDdXYeTci52y9mMG7BKv/2eqNW/lpaQeiySK4PZxTMLPkl9SqWYi6FRMW8FZX fRpEL15T0iQQ== X-IronPort-AV: E=Sophos;i="5.82,259,1613462400"; d="scan'208";a="393974627" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2021 10:04:46 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lcA5j-008CBO-Jp; Thu, 29 Apr 2021 20:04:43 +0300 Date: Thu, 29 Apr 2021 20:04:43 +0300 From: Andy Shevchenko To: Bartosz Golaszewski Cc: Kent Gibson , Linus Walleij , "open list:GPIO SUBSYSTEM" Subject: Re: [libgpiod][PATCH 2/3] libgpiosim: new library for controlling the gpio-sim module Message-ID: References: <20210429094734.9585-1-brgl@bgdev.pl> <20210429094734.9585-3-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Thu, Apr 29, 2021 at 08:03:01PM +0300, Andy Shevchenko wrote: > On Thu, Apr 29, 2021 at 08:00:14PM +0300, Andy Shevchenko wrote: > > On Thu, Apr 29, 2021 at 03:07:49PM +0200, Bartosz Golaszewski wrote: ... > > Still you may advance the pointer by the length of P_tmpdir + 1. > > There is also tempnam(). Scratch it. It seems legacy one that actually tries to create file... -- With Best Regards, Andy Shevchenko