File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed
Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -788,7 +788,6 @@ pub fn listen(sockfd: RawFd, backlog: usize) -> Result<()> {
788788/// Bind a name to a socket
789789///
790790/// [Further reading](http://pubs.opengroup.org/onlinepubs/9699919799/functions/bind.html)
791- #[ cfg( not( all( target_os="android" , target_pointer_width="64" ) ) ) ]
792791pub fn bind ( fd : RawFd , addr : & SockAddr ) -> Result < ( ) > {
793792 let res = unsafe {
794793 let ( ptr, len) = addr. as_ffi_pair ( ) ;
@@ -798,21 +797,6 @@ pub fn bind(fd: RawFd, addr: &SockAddr) -> Result<()> {
798797 Errno :: result ( res) . map ( drop)
799798}
800799
801- /// Bind a name to a socket
802- ///
803- /// [Further reading](http://man7.org/linux/man-pages/man2/bind.2.html)
804- // Android has some weirdness. Its 64-bit bind takes a c_int instead of a
805- // socklen_t
806- #[ cfg( all( target_os="android" , target_pointer_width="64" ) ) ]
807- pub fn bind ( fd : RawFd , addr : & SockAddr ) -> Result < ( ) > {
808- let res = unsafe {
809- let ( ptr, len) = addr. as_ffi_pair ( ) ;
810- libc:: bind ( fd, ptr, len as c_int )
811- } ;
812-
813- Errno :: result ( res) . map ( drop)
814- }
815-
816800/// Accept a connection on a socket
817801///
818802/// [Further reading](http://pubs.opengroup.org/onlinepubs/9699919799/functions/accept.html)
You can’t perform that action at this time.
0 commit comments