about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2016-09-07 17:21:10 +0200
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2016-09-07 17:21:10 +0200
commit3f0462acbbabc7703dffdd2771d6cca56eb5545b (patch)
tree6a57107cdb69e68da9f949e40de8cd64203dfb71 /src/rustllvm/RustWrapper.cpp
parent2819eca69cc053afaf975f4702abbde83c6b7cdc (diff)
downloadrust-3f0462acbbabc7703dffdd2771d6cca56eb5545b.tar.gz
rust-3f0462acbbabc7703dffdd2771d6cca56eb5545b.zip
Fix argument to FIONBIO ioctl
The FIONBIO ioctl takes as argument a pointer to an integer, which
should be either 0 or 1 to indicate whether nonblocking mode is to
be switched off or on.  The type of the pointed-to variable is "int".

However, the set_nonblocking routine in libstd/sys/unix/net.rs passes
a pointer to a libc::c_ulong variable.  This doesn't matter on all
32-bit platforms and on all litte-endian platforms, but it will
break on big-endian 64-bit platforms.

Found while porting Rust to s390x (a big-endian 64-bit platform).

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions