public inbox for nncp-devel@lists.cypherpunks.ru
Atom feed
From: Sergey Matveev <stargrave@stargrave•org>
To: nncp-devel@lists.cypherpunks.ru
Subject: Re: Build error on NetBSD
Date: Wed, 4 Aug 2021 20:58:05 +0300	[thread overview]
Message-ID: <YQrVLlHOKdoiP6Zr@stargrave.org> (raw)
In-Reply-To: <87im0lw63w.fsf@complete.org>

[-- Attachment #1: Type: text/plain, Size: 981 bytes --]

*** John Goerzen [2021-08-04 11:02]:
>NetBSD does have a C statvfs() call, and does not have statfs().

Yeah, I found that later too. So I will use Statvfs for NetBSD.

>According
>to the Linux statfs(2) manpage, POSIX calls for statvfs() and doesn't
>mention statfs().

But golang.org/x/sys/unix does not have Statvfs for FreeBSD :-), however
FreeBSD itself has statvfs() call.

>Weird that it seems to not even be using libc here and going with a
>direct syscall interface (!)

Yes, Go is known for that.

https://utcc.utoronto.ca/~cks/space/blog/programming/GoCLibraryAPIIssues
https://utcc.utoronto.ca/~cks/space/blog/programming/Go116OpenBSDUsesLibc

>I got it to compile and work by just replacing that entire function with
>"return true".

Good, thanks for checking it out! I will make Statvfs() usage for NetBSD
in the nearest release.

-- 
Sergey Matveev (http://www.stargrave.org/)
OpenPGP: CF60 E89A 5923 1E76 E263  6422 AE1A 8109 E498 57EF

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2021-08-04 17:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-04  3:17 Build error on NetBSD John Goerzen
2021-08-04 15:04 ` Sergey Matveev
2021-08-04 16:02   ` John Goerzen
2021-08-04 17:58     ` Sergey Matveev [this message]