home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / main.bin / io_md.h < prev    next >
C/C++ Source or Header  |  1997-11-24  |  2KB  |  56 lines

  1. /*
  2.  * @(#)io_md.h    1.18 96/11/23
  3.  * 
  4.  * Copyright (c) 1995, 1996 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  * CopyrightVersion 1.1_beta
  20.  * 
  21.  */
  22.  
  23. /*
  24.  * Win32 system dependent low level io definitions
  25.  */
  26.  
  27. #ifndef _WIN32_IO_MD_H_
  28. #define _WIN32_IO_MD_H_
  29.  
  30. #include <stdio.h>
  31. #include <windows.h>
  32. #include <sys/types.h>
  33. #include <ctype.h>
  34. #include <stdlib.h>
  35. #include "dirent.h"
  36.  
  37. #define R_OK    4
  38. #define W_OK    2
  39. #define X_OK    1
  40. #define F_OK    0
  41.  
  42. #define    MAXPATHLEN _MAX_PATH
  43.  
  44. #define S_ISFIFO(mode)    (((mode) & _S_IFIFO) == _S_IFIFO)
  45. #define S_ISCHR(mode)    (((mode) & _S_IFCHR) == _S_IFCHR)
  46. #define S_ISDIR(mode)    (((mode) & _S_IFDIR) == _S_IFDIR)
  47. #define S_ISREG(mode)    (((mode) & _S_IFREG) == _S_IFREG)
  48.  
  49. int sysOpen(const char *, int, int);
  50. int sysAccess(const char *, int);
  51. int sysMkdir(const char *, int);
  52. int sysUnlink(const char *);
  53. int sysAvailable(int fd, long *bytes);
  54.  
  55. #endif /* !_WIN32_IO_MD_H_ */
  56.