Change-Id: Id6493f30bb0fec7460d01f357ada9b2c2a4f5eb7
int audio;
/* Open DSP */
- if ((audio = open("/dev/audio", O_RDWR | O_REOPEN)) < 0)
+ if ((audio = open("/dev/audio", O_RDWR)) < 0)
{
printf("Cannot open /dev/audio: %s\n", strerror(errno));
exit(-1);
case F_SETFL:
/* Set file status flags (O_NONBLOCK and O_APPEND). */
- fl = O_NONBLOCK | O_APPEND | O_REOPEN;
+ fl = O_NONBLOCK | O_APPEND;
f->filp_flags = (f->filp_flags & ~fl) | (fcntl_argx & fl);
break;
#define O_NOSIGPIPE 0x01000000 /* don't deliver sigpipe */
#endif
-#ifdef __minix
-#define O_REOPEN 0x10000000 /* automatically re-open after driver crash */
-#endif
-
#ifdef _KERNEL
/* convert from open() flags to/from fflags; convert O_RD/WR to FREAD/FWRITE */
#define FFLAGS(oflags) ((oflags) + 1)
#define F_SETNOSIGPIPE 14 /* set SIGPIPE disposition */
#endif
-#ifdef __minix
-#define F_FREESP 100
-#endif
-
/* file descriptor flags (F_GETFD, F_SETFD) */
#define FD_CLOEXEC 1 /* close-on-exec flag */
__END_DECLS
#endif /* !_KERNEL */
+#ifdef __minix
+#define F_FREESP 100
+#endif
+
#endif /* !_SYS_FCNTL_H_ */