posix-romp-bsd.h
Upload User: tsgydb
Upload Date: 2007-04-14
Package Size: 10674k
Code Size: 1k
Category:

MySQL

Development Platform:

Visual C++

  1. /* ==== posix.h ============================================================
  2.  * Copyright (c) 1993 by Chris Provenzano, proven@athena.mit.edu
  3.  *
  4.  * Description : Convert a system to a more or less POSIX system.
  5.  *
  6.  *  1.00 93/07/20 proven
  7.  *      -Started coding this file.
  8.  */
  9. #ifndef lint
  10. static const char rcsid[] = "$Id$";
  11. #endif
  12. #ifndef O_NONBLOCK
  13. #ifdef FNDELAY
  14. #define O_NONBLOCK FNDELAY
  15. #endif
  16. #endif
  17. #ifndef O_ACCMODE
  18. #define O_ACCMODE (O_RDONLY|O_RDWR|O_WRONLY)
  19. #endif
  20. #ifndef S_ISREG
  21. #define S_ISREG(x) ((x & S_IFMT) == S_IFREG)
  22. #endif
  23. #ifndef ENOSYS
  24. #define ENOSYS EINVAL
  25. #endif
  26. /* Make sure we have size_t defined */
  27. #include <pthread/types.h>