From owner-freebsd-hackers@freebsd.org Mon Aug 13 15:05:36 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C87BE107520C for ; Mon, 13 Aug 2018 15:05:36 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3CFE17D899 for ; Mon, 13 Aug 2018 15:05:36 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id w7DF5O9G076093 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 13 Aug 2018 18:05:27 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua w7DF5O9G076093 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id w7DF5NhX076089; Mon, 13 Aug 2018 18:05:23 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 13 Aug 2018 18:05:23 +0300 From: Konstantin Belousov To: Willem Jan Withagen Cc: Yuri Pankov , FreeBSD Hackers Subject: Re: Write a version for pthread_get_name_np Message-ID: <20180813150523.GF2340@kib.kiev.ua> References: <7fa2b876-9397-da2b-cb29-56badf11b66d@ecoracks.nl> <42689feb-9bd4-429b-63d7-b9193123ee47@digiware.nl> <20180812205835.GB2340@kib.kiev.ua> <20180812225726.GC2340@kib.kiev.ua> <20180812234800.GD2340@kib.kiev.ua> <34158602-9806-0553-af1c-e8dacbb0ffa0@yuripv.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Aug 2018 15:05:36 -0000 On Mon, Aug 13, 2018 at 10:16:30AM +0200, Willem Jan Withagen wrote: > I guess that'll work. > > Although I was following the procstat way and when there was no name set > we get a '-'. But if Konstatin is going to write it, it is his prerogative. > And I would expect it to be equivalent partner of thr_{set,get}_name as > well. But that could be added later in the man page. There is no thr_get_name(2). The implementation is available at https://reviews.freebsd.org/D16702. I do not like void return types for both pthread_get_name_np() and pthread_set_name_np().