From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9417 Path: news.gmane.org!not-for-mail From: Nathan Zadoks Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] add sched_getcpu Date: Mon, 29 Feb 2016 22:21:01 +0100 Message-ID: <56D4B63D.1010202@nathan7.eu> References: <1456764572-18648-1-git-send-email-nathan@nathan7.eu> <1456780194.12169.25.camel@xiaoka.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1456780885 10108 80.91.229.3 (29 Feb 2016 21:21:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Feb 2016 21:21:25 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9430-gllmg-musl=m.gmane.org@lists.openwall.com Mon Feb 29 22:21:25 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1aaVFl-0000h3-V2 for gllmg-musl@m.gmane.org; Mon, 29 Feb 2016 22:21:18 +0100 Original-Received: (qmail 17980 invoked by uid 550); 29 Feb 2016 21:21:15 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 17957 invoked from network); 29 Feb 2016 21:21:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nathan7.eu; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=bBTXe+/C7Ym2e/UGM4w/kS4iRxYpt/9FuwRy5fjTPBg=; b=FTLhD8K/B7ASfBhLyaUxXRPxKKPwcZNt8QJYrMl+PykOj6Dl/5W/lI5CjJTf30455M VS+Egi5S225kyqvgr6o0efHjlLfQN4GBa3aFtl2+iYn4tfodDqZti9KoKLhJZhMCKbv/ etZFOAeuWDk+INlZ2wEQTNOzYhe2nRa42F+lQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=bBTXe+/C7Ym2e/UGM4w/kS4iRxYpt/9FuwRy5fjTPBg=; b=nMRb5iTLD55leE01827arsEqS+hIxjaxeJBJDwyrlqkLFKEdJmAKZP9Vf5iYB6havp 9ZRTy5YJaICa4kUvnAgP3oAdaNkpGfAjj2oS2zsBlzL5j6hNidAOWP1G+dqzqihJ36NX 1qQ6uiv89vRXL+MFIpcCQuT39/xbdcGcRx482shHDdt+AO4RgpIZKIdn51cpRF8Xi0np 2M7HsA1g5UfwiXRRtcFCivfgeMn1Bb67PRD4OeYIVu1//juYSDgo/n2A4mR8H9Zv02CQ O68N3nHGuGCVWz0FqWMlL4chse7JNzhBel1TRLMMmWWjTIFJ8a8I9nGlWIyt19ojJlKV 4ADg== X-Gm-Message-State: AD7BkJJokJwSQZJy4FQOholByfXnW/wLhacMbgXb0a5tOfzxVaXFvAuKUCCB859rDo1P+Q== X-Received: by 10.28.11.131 with SMTP id 125mr93082wml.58.1456780863874; Mon, 29 Feb 2016 13:21:03 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <1456780194.12169.25.camel@xiaoka.com> Xref: news.gmane.org gmane.linux.lib.musl.general:9417 Archived-At: No objections have been noted previously, and in addition this has a vDSO equivalent on on x86_64, x32, and 64-bit ppc kernels. I haven't added support for that yet, but I'm hoping to make that my next patch if this gets merged. Shoving the raw syscall into every app seems unproductive, and adding vDSO handling to random userland apps seems especially odd. I *started* this patch because a patch of mine to support musl in an application was denied, on grounds of the syscall handling belonging in libc. On 29/02/16 22:09, Tomasz Sterna wrote: > W dniu 29.02.2016, pon o godzinie 17∶49 +0100, użytkownik Nathan Zadoks > napisał: >> This is a GNU extension, but a fairly minor one, for a system call >> that otherwise has no libc wrapper. > Does it need a libc wrapper? > Calling it using syscall() seems pretty straightforward. > > There are a lot of Linux specific syscalls without libc wrappers. > Is this one special enough? > >