A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita
audio
rust
zig
deno
mpris
rockbox
mpd
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2002 by Björn Stenberg
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22#ifndef __FCNTL_H__
23#define __FCNTL_H__
24
25#ifndef O_RDONLY
26#define O_RDONLY 0x0000 /* open for reading only */
27#define O_WRONLY 0x0001 /* open for writing only */
28#define O_RDWR 0x0002 /* open for reading and writing */
29#define O_ACCMODE 0x0003 /* mask for above modes */
30#define O_APPEND 0x0008 /* set append mode */
31#define O_CREAT 0x0200 /* create if nonexistent */
32#define O_TRUNC 0x0400 /* truncate to zero length */
33#define O_EXCL 0x0800 /* error if already exists */
34#endif
35
36#ifndef SEEK_SET
37#define SEEK_SET 0 /* set file offset to offset */
38#define SEEK_CUR 1 /* set file offset to current plus offset */
39#define SEEK_END 2 /* set file offset to EOF plus offset */
40#endif
41
42#endif /* __FCNTL_H__ */