File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -1867,19 +1867,29 @@ safe_f! {
1867
1867
}
1868
1868
}
1869
1869
1870
- pub fn pread ( _fd : :: c_int , _buf : * mut :: c_void , _count : :: size_t , _offset : off64_t ) -> :: ssize_t {
1870
+ pub unsafe fn pread (
1871
+ _fd : :: c_int ,
1872
+ _buf : * mut :: c_void ,
1873
+ _count : :: size_t ,
1874
+ _offset : off64_t ,
1875
+ ) -> :: ssize_t {
1871
1876
-1
1872
1877
}
1873
1878
1874
- pub fn pwrite (
1879
+ pub unsafe fn pwrite (
1875
1880
_fd : :: c_int ,
1876
1881
_buf : * const :: c_void ,
1877
1882
_count : :: size_t ,
1878
1883
_offset : off64_t ,
1879
1884
) -> :: ssize_t {
1880
1885
-1
1881
1886
}
1882
- pub fn posix_memalign ( memptr : * mut * mut :: c_void , align : :: size_t , size : :: size_t ) -> :: c_int {
1887
+
1888
+ pub unsafe fn posix_memalign (
1889
+ memptr : * mut * mut :: c_void ,
1890
+ align : :: size_t ,
1891
+ size : :: size_t ,
1892
+ ) -> :: c_int {
1883
1893
// check to see if align is a power of 2 and if align is a multiple
1884
1894
// of sizeof(void *)
1885
1895
if ( align & align - 1 != 0 ) || ( align as usize % size_of :: < :: size_t > ( ) != 0 ) {
You can’t perform that action at this time.
0 commit comments