Coder Social home page Coder Social logo

Comments (3)

nsf avatar nsf commented on May 18, 2024

Yes, as you can see they are generated automatically. And in each of automatically generated files there is a line showing how it was generated: cgo -godefs syscalls.go

But I think right now cgo is available through go tool, So:

Run go tool cgo -godefs syscalls.go on your solaris machine.

from termbox-go.

gdamore avatar gdamore commented on May 18, 2024

So I've been looking at this quite a bit, because it turns out that illumos/solaris lacks also ioctl. Which is silly but ...

I've come up with a quite different approach, that I think will be far superior. It turns out that tcsetattr() and tcgetattr() need to be present as they are required for POSIX compliance (OpenGroup), and are present on all the UNIX like systems (also plan9!) go supports, so we can just change the code to call those directly.

Additionally, there is little or no value in the use of SIGIO and non-blocking IO, or even low level file descriptors. We can make this all work with standard os.File operations, resulting in a simpler read loop.

I'll be sending you a PR shortly that has both these changes -- basically vastly improving portability to UNIX systems, and allowing us to remove the need to predefine syscalls for every UNIX. Stay tuned -- will post this later today.

from termbox-go.

gdamore avatar gdamore commented on May 18, 2024

Ok, this is fixed in PR #99 -- please have a look.

from termbox-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.