[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Expired ports archive key on current-hurd-i386 image



Pirate Praveen, le mer. 15 avril 2020 22:03:28 +0530, a ecrit:
> On Wed, Apr 15, 2020 at 4:50 pm, Samuel Thibault <sthibault@debian.org>
> wrote:
> > Hello,
> > 
> > Pirate Praveen, le mer. 15 avril 2020 20:15:30 +0530, a ecrit:
> > >  src/github.com/nsf/termbox-go/termbox.go:507:37: error: reference to
> > >  undefined identifier ‘syscall.SYS_FCNTL’
> > >   507 |  r, _, e := syscall.Syscall(syscall.SYS_FCNTL, uintptr(fd),
> > >  uintptr(cmd),
> > >       |                                     ^
> > 
> > Such hardcoding is indeed deemed to fail: fcntl is not a system call on
> > GNU/Hurd: since the implementation can be userland one really has to
> > call the fcntl() function provided by glibc, as it really should on any
> > reasonable Unix system.
> > 
> 
> I'm not very good in golang but I think gccgo should provide the correct
> mapping
> 
> https://github.com/nsf/termbox-go/blob/master/termbox.go#L7

Ok, then golang needs to be taught to simply call the unixish fcntl
function :)

Samuel


Reply to: