From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: bug#18592: FFI should have portable access to =?UTF-8?Q?=E2=80=98errno=E2=80=99?= Date: Tue, 11 Nov 2014 10:03:23 -0500 Message-ID: <87wq71ixtw.fsf@yeeloong.lan> References: <87fvf8oocf.fsf@ft.bewatermyfriend.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1415718329 554 80.91.229.3 (11 Nov 2014 15:05:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Nov 2014 15:05:29 +0000 (UTC) Cc: 18592@debbugs.gnu.org To: Frank Terbeck Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Nov 11 16:05:21 2014 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XoD0Q-0002x7-Jk for guile-bugs@m.gmane.org; Tue, 11 Nov 2014 16:05:18 +0100 Original-Received: from localhost ([::1]:49270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoD0Q-00060b-7I for guile-bugs@m.gmane.org; Tue, 11 Nov 2014 10:05:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoD0H-0005y6-4b for bug-guile@gnu.org; Tue, 11 Nov 2014 10:05:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XoD0A-0006ZC-Sv for bug-guile@gnu.org; Tue, 11 Nov 2014 10:05:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:60261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoD0A-0006YS-QD for bug-guile@gnu.org; Tue, 11 Nov 2014 10:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XoD0A-0002pZ-9F for bug-guile@gnu.org; Tue, 11 Nov 2014 10:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 11 Nov 2014 15:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18592 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 18592-submit@debbugs.gnu.org id=B18592.141571828810858 (code B ref 18592); Tue, 11 Nov 2014 15:05:02 +0000 Original-Received: (at 18592) by debbugs.gnu.org; 11 Nov 2014 15:04:48 +0000 Original-Received: from localhost ([127.0.0.1]:57474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoCzv-0002p4-El for submit@debbugs.gnu.org; Tue, 11 Nov 2014 10:04:47 -0500 Original-Received: from world.peace.net ([96.39.62.75]:45328) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XoCzs-0002ov-HU for 18592@debbugs.gnu.org; Tue, 11 Nov 2014 10:04:45 -0500 Original-Received: from c-24-62-95-23.hsd1.ma.comcast.net ([24.62.95.23] helo=yeeloong.lan) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XoCzl-0001L2-Dp; Tue, 11 Nov 2014 10:04:37 -0500 In-Reply-To: <87fvf8oocf.fsf@ft.bewatermyfriend.org> (Frank Terbeck's message of "Tue, 30 Sep 2014 22:17:04 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7631 Archived-At: Frank Terbeck writes: > When accessing POSIX functions from a system's libc via Guile's dynamic > FFI, you commonly want to access the =E2=80=98errno=E2=80=99 variable to = be able to > produce useful diagnostic messages. > > Currently there's no such access built-in. > > Mark Weaver on IRC thought it would be a good idea to add portable > access to the contents of =E2=80=98errno=E2=80=99 (however it's actually = implemented) to > Guile's FFI. And now the idea has entered the bug tracker. :) Indeed, thanks for filing this ticket. I see a problem with this idea: something (e.g. a system async) might change 'errno' before the Scheme code fetches the 'errno' value. Mark