Skip to content

Commit

Permalink
vita: Add comment of next job hint to pipe2
Browse files Browse the repository at this point in the history
  • Loading branch information
d3m3vilurr committed Sep 30, 2023
1 parent c69045c commit 2bc7042
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions newlib/libc/sys/vita/pipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ int pipe(int pipefd[2])

int pipe2(int pipefd[2], int flags) {
if (flags & O_NONBLOCK) {
// FIXME this action is simulated async io using the socket.
// this implemenation has limitation that this cannot use on every environment
// such as adhoc network mode
// implemenation have to be changed to async sce*MsgPiple
//
// https://github.com/vitasdk/newlib/pull/101
if (socketpair(AF_INET, SOCK_STREAM, 0, pipefd) == -1) {
return -1;
}
Expand Down

0 comments on commit 2bc7042

Please sign in to comment.