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

pwrite could return 0 and set errno #392

Closed
benrubson opened this issue Aug 26, 2017 · 2 comments
Closed

pwrite could return 0 and set errno #392

benrubson opened this issue Aug 26, 2017 · 2 comments

Comments

@benrubson
Copy link
Contributor

Just not to forget the reviews in #391.

Thx 👍

Ben

@vgough
Copy link
Owner

vgough commented Aug 27, 2017

From pwrite man page:

       On error, -1 is returned and errno is set to indicate the cause of the error.

@benrubson
Copy link
Contributor Author

I found some discussions where old implementations of pwrite were said to be able to return 0.
But then they were certainly not POSIX compliant...
You're right, not sure we should care about them...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants