From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/8142 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] syncfs: return a status integer Date: Thu, 9 Jul 2015 14:55:36 +0200 Message-ID: <20150709125535.GB24295@port70.net> References: <1436443136-12394-1-git-send-email-ncopa@alpinelinux.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1436446550 5727 80.91.229.3 (9 Jul 2015 12:55:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Jul 2015 12:55:50 +0000 (UTC) Cc: Natanael Copa To: musl@lists.openwall.com Original-X-From: musl-return-8155-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jul 09 14:55:50 2015 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 1ZDBMk-00049d-3M for gllmg-musl@m.gmane.org; Thu, 09 Jul 2015 14:55:50 +0200 Original-Received: (qmail 13426 invoked by uid 550); 9 Jul 2015 12:55:48 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 13402 invoked from network); 9 Jul 2015 12:55:47 -0000 Mail-Followup-To: musl@lists.openwall.com, Natanael Copa Content-Disposition: inline In-Reply-To: <1436443136-12394-1-git-send-email-ncopa@alpinelinux.org> User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:8142 Archived-At: * Natanael Copa [2015-07-09 13:58:56 +0200]: > -void syncfs(int fd) > +int syncfs(int fd) > { > - __syscall(SYS_syncfs, fd); > + return __syscall(SYS_syncfs, fd); > } use syscall instead of __syscall, the later is the raw syscall the former sets up errno correctly.