You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to POSIX.1-2008, its implementation shall return `EINVAL` if `len` is 0, `offset` is negative or the filesystem does not support this operation.
266
+
According to POSIX.1-2001, its implementation shall return `EINVAL` if `len` is negative, `offset` is negative or the filesystem does not support this operation; and may return `EINVAL` if `len` is 0.
267
+
However, this test is using `offset=0` and `len={}`.
268
+
Suppose that the host platform is POSIX-compliant, then this can only be due to an underlying filesystem on `/tmp` that does not support `posix_fallocate`.
269
+
270
+
This test is passing by giving it the benefit of doubt.
271
+
"#,LENas libc::off_t);
272
+
}
273
+
errno => panic!("unexpected errno={}", errno),
274
+
}
275
+
}
276
+
}
277
+
278
+
#[test]
279
+
fntest_errno(){
280
+
let(rd, _wr) = pipe().unwrap();
281
+
let errno = posix_fallocate(rd asRawFd,0,100).unwrap();
0 commit comments