Skip to content
Snippets Groups Projects
Commit 8b975877 authored by Peter Limkilde Svendsen's avatar Peter Limkilde Svendsen
Browse files

Formatting

parent 3b063807
No related branches found
No related tags found
1 merge request!225Use try_from in getpagesize(), add test
...@@ -340,11 +340,11 @@ pub extern "C" fn getpagesize() -> c_int { ...@@ -340,11 +340,11 @@ pub extern "C" fn getpagesize() -> c_int {
Err(_) => { Err(_) => {
/* Behavior not specified by POSIX for this case. The -1 /* Behavior not specified by POSIX for this case. The -1
* value mimics sysconf()'s behavior, though. * value mimics sysconf()'s behavior, though.
* *
* As specified for the limits.h header, the minimum * As specified for the limits.h header, the minimum
* acceptable value for {PAGESIZE} is 1. The -1 value thus * acceptable value for {PAGESIZE} is 1. The -1 value thus
* cannot be mistaken for an acceptable value. * cannot be mistaken for an acceptable value.
* *
* POSIX does not specify any possible errors for this * POSIX does not specify any possible errors for this
* function, hence no errno setting. */ * function, hence no errno setting. */
-1 -1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment