Adding capability for the client to connect to a unix socket.
Fixed previous mistakes with unix socket code.
Extract the unix socket code from opennet() into a distinct openunix().
Point to mailinglist
Modernize README, and point to sourceforge download pages for the benefit of github users.
Document existing request types in a somewhat more detailed manner
Fix uninitialized variable in oldstyle negotiation

Coverity CID#1248168
Update message number, after consultation with Takahiro
Update name.
Disable swap option on Android.

Hi, this is a followup on http://sourceforge.net/p/nbd/mailman/message/32862671/.

I've added options to disable the swap option when compiling for
with android-18, arm-linux-androideabi-4.8, and the Android NDK r10b.
I'm using the below snippet to create a standalone toolchain
and compile, and I'll try to keep my post at
http://bamos.github.io/2014/09/08/nbd-android/ synchronized
with the master branch of nbd, so feel free tag me if
any changes are made to this.

Regards,
Brandon.

---

die() { echo $*; return -1; }
touch man/nbd-{client.8,server.{1,5},trdump.1}.sh.in
autoreconf -f -i || die "autoreconf failed."

$ANDROID_NDK/build/tools/make-standalone-toolchain.sh \
  --platform=android-18 \
  --toolchain=arm-linux-androideabi-4.8 \
  --install-dir=$PWD/toolchain

pathadd() { PATH="${PATH:+"$PATH:"}$1"; }
pathadd "$PWD/toolchain/bin"
command -v arm-linux-androideabi-gcc &> /dev/null || exit -1
export SYSROOT=$PWD/toolchain/sysroot
export CC="arm-linux-androideabi-gcc --sysroot=$SYSROOT"
export CXX=arm-linux-androideabi-g++
export LD=arm-linux-androideabi-ld
export RANLIB=arm-linux-androideabi-ranlib
export AR=arm-linux-androideabi-ar
export CROSS_PREFIX=arm-linux-androideabi-
export CFLAGS='-march=armv7-a -mfloat-abi=softfp -mfpu=neon'
export LDFLAGS='-Wl,--fix-cortex-a8'

./configure --host=armv7-unknown-linux --target=armv7-unknown-linux \
  || die "configure failed"
make nbd-client
Merge https://github.com/bamos/nbd

* https://github.com/bamos/nbd:
  Disable swap option on Android.