RetroBSD

2.11BSD operating system for microcontrollers
It is currently Sun Mar 29, 2020 8:40 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: poll(2)
PostPosted: Mon Jan 25, 2016 7:45 am 
Contributor
User avatar

Joined: Sun Oct 20, 2013 3:15 am
Posts: 322
I've implemented the poll(2) syscall in LiteBSD. You can find it in this branch: https://github.com/sergev/LiteBSD/tree/poll (commit: https://github.com/sergev/LiteBSD/commi ... cfc571c582)
I need people to build that kernel and put it on real hardware. It works fine on qemu.
poll(2) is the first step towards the asynchronous resolver (getaddrinfo() et al.), plus a lot of software expects poll(2). It's a basic syscall these days.

_________________
@__briancallahan on Twitter


Top
 Profile  
 
 Post subject: Re: poll(2)
PostPosted: Mon Jan 25, 2016 7:54 am 
Contributor
User avatar

Joined: Sun Oct 20, 2013 3:15 am
Posts: 322
I should add that even though the man page for poll(2) talks about ppoll(2), I did not add ppoll(2), just poll(2). In practice I don't think much software uses ppoll(2). At least, I've never seen it in the wild.

_________________
@__briancallahan on Twitter


Top
 Profile  
 
 Post subject: Re: poll(2)
PostPosted: Mon Jan 25, 2016 8:31 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Quote:
I need people to build that kernel and put it on real hardware. It works fine on qemu.

An example to run on real hw?

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
 Post subject: Re: poll(2)
PostPosted: Mon Jan 25, 2016 9:33 pm 
Contributor
User avatar

Joined: Sun Oct 20, 2013 3:15 am
Posts: 322
Serge merged it into master. Just pull a fresh source tree and build a new kernel.

_________________
@__briancallahan on Twitter


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission