alsa-utils/aplay
Daniel Baluta 1d34e6addc aplay: Introduce and use xwrite helper
Write can return less then requested bytes, but we treat this as
an error thus ending up with confusing error messages.

Fix this by introducing xwrite helper, which makes sure all bytes
are written or an error is returned.

With this patch an usecase where disk is filled by recording will
print:
$ /mnt/msc/audio.wav: No space left on device

instead of random messages like:

$/mnt/msc/audio.wav: No such file or directory

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2017-04-10 09:11:28 +02:00
..
aplay.1 Several formatting fixes for manpages. 2013-05-16 10:38:13 +02:00
aplay.c aplay: Introduce and use xwrite helper 2017-04-10 09:11:28 +02:00
formats.h aplay: Add the support for big-endian WAV format (RIFX) 2012-12-13 10:53:19 +01:00
Makefile.am Makefiles - use AM_CPPFLAGS instead INCLUDES 2014-05-07 10:55:59 +02:00