-
Notifications
You must be signed in to change notification settings - Fork 78
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
How about return int64_t or long long #102
Comments
Returning an int64_t just transfers responsibility for the problem to the caller, because the return value is stored in a int32_t inside The return value of this function is stored in an There's also a race between the calls to I think there's some benefit in sanity checking the return value a bit more, to ensure that the value isn't negative and isn't greater than the size of the file. Interestingly, I see the following clang-tidy warning:
I'm not sure where clang-tidy is getting |
Looking through the man pages the value returned by
|
libkqueue/src/linux/read.c
Line 53 in c54b309
The text was updated successfully, but these errors were encountered: