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
00048
00049
00050
00051
00052
00053 extern ACE_Export
00054 ACE_HANDLE open (const char *filename,
00055 int mode,
00056 mode_t perms = ACE_DEFAULT_OPEN_PERMS,
00057 LPSECURITY_ATTRIBUTES sa = 0);
00058 #if defined (ACE_HAS_WCHAR)
00059 extern ACE_Export
00060 ACE_HANDLE open (const wchar_t *filename,
00061 int mode,
00062 mode_t perms = ACE_DEFAULT_OPEN_PERMS,
00063 LPSECURITY_ATTRIBUTES sa = 0);
00064 #endif
00065
00066 }
00067
00068 ACE_END_VERSIONED_NAMESPACE_DECL
00069
00070 # if defined (ACE_HAS_INLINED_OSCALLS)
00071 # if defined (ACE_INLINE)
00072 # undef ACE_INLINE
00073 # endif
00074 # define ACE_INLINE inline
00075 # include "ace/OS_NS_fcntl.inl"
00076 # endif
00077
00078 # include "ace/post.h"
00079 #endif