1 /* Copyright (c) 2005-2006 Tensilica Inc.  ALL RIGHTS RESERVED.
2 
3    Redistribution and use in source and binary forms, with or without
4    modification, are permitted provided that the following conditions are met:
5 
6    1. Redistributions of source code must retain the above copyright
7       notice, this list of conditions and the following disclaimer.
8 
9    2. Redistributions in binary form must reproduce the above copyright
10       notice, this list of conditions and the following disclaimer in the
11       documentation and/or other materials provided with the distribution.
12 
13    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
14    IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
15    TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
16    PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL TENSILICA
17    INCORPORATED BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18    EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19    PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20    PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
21    LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
22    NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  */
24 
25 #include <sys/fcntl.h>
26 
27 /* Alternate names for values for the WHENCE argument to `lseek'.
28    These are the same as SEEK_SET, SEEK_CUR, and SEEK_END, respectively. */
29 #ifndef L_SET
30 #define L_SET   0       /* Seek from beginning of file.  */
31 #define L_INCR  1       /* Seek from current position.  */
32 #define L_XTND  2       /* Seek from end of file.  */
33 #endif
34