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! {
18671867 }
18681868}
18691869
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 {
18711876 -1
18721877}
18731878
1874- pub fn pwrite (
1879+ pub unsafe fn pwrite (
18751880 _fd : :: c_int ,
18761881 _buf : * const :: c_void ,
18771882 _count : :: size_t ,
18781883 _offset : off64_t ,
18791884) -> :: ssize_t {
18801885 -1
18811886}
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 {
18831893 // check to see if align is a power of 2 and if align is a multiple
18841894 // of sizeof(void *)
18851895 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