00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef ACE_OS_NS_FCNTL_H
00018 # define ACE_OS_NS_FCNTL_H
00019
00020 # include "ace/pre.h"
00021
00022 # include "ace/config-all.h"
00023
00024 # if !defined (ACE_LACKS_PRAGMA_ONCE)
00025 # pragma once
00026 # endif
00027
00028 #include "ace/os_include/os_fcntl.h"
00029 #include "ace/Global_Macros.h"
00030 #include "ace/Default_Constants.h"
00031 #include "ace/ACE_export.h"
00032
00033 #if defined (ACE_EXPORT_MACRO)
00034 # undef ACE_EXPORT_MACRO
00035 #endif
00036 #define ACE_EXPORT_MACRO ACE_Export
00037
00038 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00039
00040 namespace ACE_OS {
00041
00042 ACE_NAMESPACE_INLINE_FUNCTION
00043 int fcntl (ACE_HANDLE handle,
00044 int cmd,
00045 long arg = 0);
00046
00047 #if !defined (ACE_DEFAULT_OPEN_PERMS)
00048 # define ACE_DEFAULT_OPEN_PERMS ACE_DEFAULT_FILE_PERMS
00049 #endif
00050
00051
00052
00053
00054
00055
00056
00057 extern ACE_Export
00058 ACE_HANDLE open (const char *filename,
00059 int mode,
00060 int perms = ACE_DEFAULT_OPEN_PERMS,
00061 LPSECURITY_ATTRIBUTES sa = 0);
00062 #if defined (ACE_HAS_WCHAR)
00063 extern ACE_Export
00064 ACE_HANDLE open (const wchar_t *filename,
00065 int mode,
00066 int perms = ACE_DEFAULT_OPEN_PERMS,
00067 LPSECURITY_ATTRIBUTES sa = 0);
00068 #endif
00069
00070 }
00071
00072 ACE_END_VERSIONED_NAMESPACE_DECL
00073
00074 # if defined (ACE_HAS_INLINED_OSCALLS)
00075 # if defined (ACE_INLINE)
00076 # undef ACE_INLINE
00077 # endif
00078 # define ACE_INLINE inline
00079 # include "ace/OS_NS_fcntl.inl"
00080 # endif
00081
00082 # include "ace/post.h"
00083 #endif