Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix socket poll events values #542

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions libctru/include/poll.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
#pragma once

#define POLLIN 0x01
#define POLLPRI 0x02
#define POLLHUP 0x04 // unknown ???
#define POLLERR 0x08 // probably
#define POLLOUT 0x10
#define POLLNVAL 0x20
#define POLLIN 0x01
#define POLLPRI 0x02
#define POLLWRNORM 0x08
#define POLLWRBAND 0x10
#define POLLNVAL 0x20
#define POLLHUP 0x00 // Unknown?
#define POLLERR 0x00 // Unknown?
#define POLLOUT POLLWRNORM

typedef unsigned int nfds_t;

Expand Down