Synesis Software

Main Page   Modules   Compound List   File List   Compound Members   File Members  

/freelibs/unixem/include/unistd.h

Go to the documentation of this file.
00001 /* 
00002  * File:        unistd.h
00003  *
00004  * Purpose:     Declaration of the .
00005  *
00006  * Created      1st November 2003
00007  * Updated:     16th June 2004
00008  *
00009  * Author:      Matthew Wilson, Synesis Software Pty Ltd.
00010  *
00011  * License:     (Licensed under the Synesis Software Standard Source License)
00012  *
00013  *              Copyright (C) 2002-2004, Synesis Software Pty Ltd.
00014  *
00015  *              All rights reserved.
00016  *
00017  *              www:        http://www.synesis.com.au/
00018  *                          http://www.synesis.com.au/software/
00019  *
00020  *              email:      software@synesis.com.au
00021  *                          software@synesis-group.com
00022  *
00023  *              Redistribution and use in source and binary forms, with or
00024  *              without modification, are permitted provided that the following
00025  *              conditions are met:
00026  *
00027  *              (i) Redistributions of source code must retain the above
00028  *              copyright notice and contact information, this list of
00029  *              conditions and the following disclaimer.
00030  *
00031  *              (ii) Any derived versions of this software (howsoever modified)
00032  *              remain the sole property of Synesis Software.
00033  *
00034  *              (iii) Any derived versions of this software (howsoever modified)
00035  *              remain subject to all these conditions.
00036  *
00037  *              (iv) Neither the name of Synesis Software nor the names of any
00038  *              subdivisions, employees or agents of Synesis Software, nor the
00039  *              names of any other contributors to this software may be used to
00040  *              endorse or promote products derived from this software without
00041  *              specific prior written permission.
00042  *
00043  *              This source code is provided by Synesis Software "as is" and any
00044  *              warranties, whether expressed or implied, including, but not
00045  *              limited to, the implied warranties of merchantability and
00046  *              fitness for a particular purpose are disclaimed. In no event
00047  *              shall the Synesis Software be liable for any direct, indirect,
00048  *              incidental, special, exemplary, or consequential damages
00049  *              (including, but not limited to, procurement of substitute goods
00050  *              or services; loss of use, data, or profits; or business
00051  *              interruption) however caused and on any theory of liability,
00052  *              whether in contract, strict liability, or tort (including
00053  *              negligence or otherwise) arising in any way out of the use of
00054  *              this software, even if advised of the possibility of such
00055  *              damage.
00056  *
00057  * 
00058 
00059 
00065 #ifndef _SYNSOFT_INCL_H_UNISTD
00066 #define _SYNSOFT_INCL_H_UNISTD
00067 
00068 #ifndef _SYNSOFT_DOCUMENTATION_SKIP_SECTION
00069 # define _SYNSOFT_VER_H_UNISTD_MAJOR      1
00070 # define _SYNSOFT_VER_H_UNISTD_MINOR      2
00071 # define _SYNSOFT_VER_H_UNISTD_REVISION   2
00072 # define _SYNSOFT_VER_H_UNISTD_EDIT       11
00073 #endif /* !_SYNSOFT_DOCUMENTATION_SKIP_SECTION */
00074 
00075 /* 
00076  * Includes
00077  */
00078 
00079 #include <stddef.h> /* for size_t */
00080 
00081 /* 
00082 
00093 /* 
00094 
00095 #ifndef WIN32
00096 # error This file is only currently defined for Win32 compilation units
00097 #endif /* WIN32 */
00098 
00099 /* 
00100  * Constants and definitions
00101  */
00102 
00103 //#ifndef PATH_MAX
00104 //# define PATH_MAX   (260)   /*!< \brief The maximum number of characters (including null terminator) in a directory entry name */
00105 //#endif /* !PATH_MAX */
00106 
00107 enum
00108 {
00109         _PC_LINK_MAX
00110 #define _PC_LINK_MAX    _PC_LINK_MAX
00111     ,   _PC_MAX_CANON
00112 #define _PC_MAX_CANON   _PC_MAX_CANON
00113     ,   _PC_MAX_INPUT
00114 #define _PC_MAX_INPUT   _PC_MAX_INPUT
00115     ,   _PC_NAME_MAX
00116 #define _PC_NAME_MAX    _PC_NAME_MAX
00117     ,   _PC_PATH_MAX
00118 #define _PC_PATH_MAX    _PC_PATH_MAX
00119 };
00120 
00121 /* 
00122  * API functions
00123  */
00124 
00125 #ifdef __cplusplus
00126 extern "C" {
00127 #endif /* __cplusplus */
00128 
00137 int chdir(const char *dirName);
00138 
00148 char *getcwd(char *buffer, size_t max_len);
00149 
00152 int getpagesize(void);
00153 
00156 long pathconf(char *path, int name);
00157 
00158 #ifdef __cplusplus
00159 }
00160 #endif /* __cplusplus */
00161 
00162 /* 
00163 
00166 /* 
00167 
00168 #endif /* _SYNSOFT_INCL_H_UNISTD */
00169 
00170 /* 

UNIX Emulation for Win32 Libraries documentation © Synesis Software Pty Ltd, 2001-2003