file.h 1.7 KB

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