diff options
author | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2012-07-17 15:45:34 +0530 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-07-17 15:08:03 +0200 |
commit | 16bc934c0b34b3bc4c57e7b2053cc5b031ef3e0b (patch) | |
tree | ade8c2dd56bb96b07410d56cc6e689734c80206f | |
parent | ae0a7d6f0a7c88f4b46586074a940fe39cc29f83 (diff) | |
download | alsa-utils-16bc934c0b34b3bc4c57e7b2053cc5b031ef3e0b.tar.gz |
aplay: Use open() instead of open64()
AC_SYS_LARGEFILE in configure.in will automatically set up defines so
that open() will support large files if supported, and if not, this
allows us to fall back gracefully to non-LFS open().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | aplay/aplay.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/aplay/aplay.c b/aplay/aplay.c index 932497d..17fa913 100644 --- a/aplay/aplay.c +++ b/aplay/aplay.c @@ -2499,7 +2499,7 @@ static void playback(char *name) name = "stdin"; } else { init_stdin(); - if ((fd = open64(name, O_RDONLY, 0)) == -1) { + if ((fd = open(name, O_RDONLY, 0)) == -1) { perror(name); prg_exit(EXIT_FAILURE); } @@ -2707,12 +2707,12 @@ static int safe_open(const char *name) { int fd; - fd = open64(name, O_WRONLY | O_CREAT, 0644); + fd = open(name, O_WRONLY | O_CREAT, 0644); if (fd == -1) { if (errno != ENOENT || !use_strftime) return -1; if (create_path(name) == 0) - fd = open64(name, O_WRONLY | O_CREAT, 0644); + fd = open(name, O_WRONLY | O_CREAT, 0644); } return fd; } |