Stimfit @PACKAGE_VERSION@
Loading...
Searching...
No Matches
unix.h File Reference
#include <endian.h>
#include "../AxAbfFio32/AxAbffio32.h"
#include <stdio.h>
Include dependency graph for unix.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _GUID
struct  _FILETIME
struct  _SYSTEMTIME

Macros

#define INVALID_SEEK_VALUE   (0xFFFFFFFF)
#define FILE_NULL   NULL
#define IDS_ENOMESSAGESTR   4
#define INVALID_HANDLE_VALUE   ((HANDLE)0xFFFFFFFF)
#define VOID   void
#define _TCHAR_DEFINED
#define __TEXT(quote)
#define DWORD_PTR   UINT_PTR
#define FILE_BEGIN   0
#define FILE_CURRENT   1
#define FILE_END   2
#define FILE_ATTRIBUTE_NORMAL   0x00000080
#define CREATE_NEW   1
#define CREATE_ALWAYS   2
#define OPEN_EXISTING   3
#define GENERIC_READ   0x80000000
#define GENERIC_WRITE   0x40000000
#define FILE_SHARE_READ   0x00000001L
#define NO_ERROR   0
#define ERROR_HANDLE_EOF   38
#define TRUE   1
#define FALSE   0
#define LOBYTE(w)
#define HIBYTE(w)
#define LOWORD(l)
#define HIWORD(l)
#define ERROR_TOO_MANY_OPEN_FILES   4
#define _MAX_DRIVE   3
 defined(MINGW32)
#define _MAX_FNAME   256
#define _MAX_DIR   _MAX_FNAME
#define _MAX_EXT   _MAX_FNAME
#define _MAX_PATH   260
#define __stdcall
#define cdecl
#define WINAPI   __stdcall
#define GUID_DEFINED

Typedefs

typedef FILE * FILEHANDLE
typedef unsigned char BYTE
typedef unsigned short WORD
typedef unsigned ABFLONG DWORD
typedef unsigned ABFLONG * LPDWORD
typedef unsigned int UINT
typedef int INT
typedef int BOOL
typedef long * PLONG
typedef unsigned char * LPBYTE
typedef void * LPVOID
typedef const void * LPCVOID
typedef char CHAR
typedef short SHORT
typedef long LONG
typedef wchar_t WCHAR
typedef WCHAR * PWCHAR
typedef WCHAR * LPWCH
typedef WCHAR * PWCH
typedef const WCHAR * LPCWCH
typedef const WCHAR * PCWCH
typedef WCHAR * NWPSTR
typedef WCHAR * LPWSTR
typedef WCHAR * PWSTR
typedef const WCHAR * LPCWSTR
typedef const WCHAR * PCWSTR
typedef CHAR * PCHAR
typedef CHAR * LPCH
typedef CHAR * PCH
typedef const CHAR * LPCCH
typedef const CHAR * PCCH
typedef CHAR * NPSTR
typedef CHAR * LPSTR
typedef CHAR * PSTR
typedef const CHAR * LPCSTR
typedef const CHAR * PCSTR
typedef char TCHAR
typedef char * PTCHAR
typedef unsigned char TBYTE
typedef unsigned char * PTBYTE
typedef LPSTR LPTCH
typedef LPSTR PTCH
typedef LPSTR PTSTR
typedef LPSTR LPTSTR
typedef LPCSTR LPCTSTR
typedef void * HANDLE
typedef HANDLE HINSTANCE
typedef HINSTANCE HMODULE
typedef void * LPOVERLAPPED
typedef void * LPSECURITY_ATTRIBUTES
typedef long long LONGLONG
typedef unsigned int UINT_PTR
typedef struct _GUID GUID
typedef struct _FILETIME FILETIME
typedef struct _FILETIME * PFILETIME
typedef struct _FILETIME * LPFILETIME
typedef struct _SYSTEMTIME SYSTEMTIME
typedef struct _SYSTEMTIME * PSYSTEMTIME
typedef struct _SYSTEMTIME * LPSYSTEMTIME

Functions

void _splitpath (const char *inpath, char *drv, char *dir, char *fname, char *ext)
int _strnicmp (LPCSTR str1, LPCSTR str2, size_t n)
void _makepath (char *path, const char *drive, const char *directory, const char *filename, const char *extension)
int WINAPI AXODBG_printf (char *lpsz,...)
BOOL WINAPI c_WriteFile (FILEHANDLE hFile, LPCVOID buffer, DWORD bytesToWrite, LPDWORD bytesWritten, LPOVERLAPPED overlapped)
FILEHANDLE WINAPI c_CreateFile (LPCSTR filename, DWORD access, DWORD sharing, LPSECURITY_ATTRIBUTES sa, DWORD creation, DWORD attributes_, HANDLE templ)
DWORD WINAPI c_SetFilePointer (FILEHANDLE hFile, LONG distance, LONG *highword, DWORD method)
BOOL WINAPI c_ReadFile (FILEHANDLE hFile, LPVOID buffer, DWORD bytesToRead, LPDWORD bytesRead, LPOVERLAPPED overlapped)
DWORD WINAPI c_GetFileSize (FILEHANDLE hFile, LPDWORD filesizehigh)
BOOL WINAPI c_CloseHandle (FILEHANDLE handle)
INT WINAPI c_LoadString (HINSTANCE instance, UINT resource_id, LPSTR buffer, INT buflen)

Variables

HINSTANCE g_hInstance

Macro Definition Documentation

◆ __stdcall

#define __stdcall

Definition at line 194 of file unix.h.

◆ __TEXT

#define __TEXT ( quote)
Value:
quote

Definition at line 131 of file unix.h.

◆ _MAX_DIR

#define _MAX_DIR   _MAX_FNAME

Definition at line 186 of file unix.h.

◆ _MAX_DRIVE

#define _MAX_DRIVE   3

defined(MINGW32)

Definition at line 184 of file unix.h.

◆ _MAX_EXT

#define _MAX_EXT   _MAX_FNAME

Definition at line 187 of file unix.h.

◆ _MAX_FNAME

#define _MAX_FNAME   256

Definition at line 185 of file unix.h.

◆ _MAX_PATH

#define _MAX_PATH   260

Definition at line 188 of file unix.h.

◆ _TCHAR_DEFINED

#define _TCHAR_DEFINED

Definition at line 125 of file unix.h.

◆ cdecl

#define cdecl

Definition at line 197 of file unix.h.

Referenced by AXODBG_printf().

◆ CREATE_ALWAYS

#define CREATE_ALWAYS   2

Definition at line 159 of file unix.h.

◆ CREATE_NEW

#define CREATE_NEW   1

Definition at line 158 of file unix.h.

◆ DWORD_PTR

#define DWORD_PTR   UINT_PTR

Definition at line 151 of file unix.h.

◆ ERROR_HANDLE_EOF

#define ERROR_HANDLE_EOF   38

Definition at line 169 of file unix.h.

◆ ERROR_TOO_MANY_OPEN_FILES

#define ERROR_TOO_MANY_OPEN_FILES   4

Definition at line 180 of file unix.h.

◆ FALSE

#define FALSE   0

Definition at line 172 of file unix.h.

Referenced by ErrorReturn().

◆ FILE_ATTRIBUTE_NORMAL

#define FILE_ATTRIBUTE_NORMAL   0x00000080

Definition at line 156 of file unix.h.

Referenced by CFileIO::Create().

◆ FILE_BEGIN

#define FILE_BEGIN   0

Definition at line 153 of file unix.h.

Referenced by CFileIO::Seek().

◆ FILE_CURRENT

#define FILE_CURRENT   1

Definition at line 154 of file unix.h.

◆ FILE_END

#define FILE_END   2

Definition at line 155 of file unix.h.

◆ FILE_NULL

#define FILE_NULL   NULL

Definition at line 10 of file unix.h.

◆ FILE_SHARE_READ

#define FILE_SHARE_READ   0x00000001L

Definition at line 166 of file unix.h.

◆ GENERIC_READ

#define GENERIC_READ   0x80000000

Definition at line 163 of file unix.h.

◆ GENERIC_WRITE

#define GENERIC_WRITE   0x40000000

Definition at line 164 of file unix.h.

◆ GUID_DEFINED

#define GUID_DEFINED

Definition at line 209 of file unix.h.

◆ HIBYTE

#define HIBYTE ( w)
Value:
((BYTE)((DWORD_PTR)(w) >> 8))
unsigned char BYTE
Definition unix.h:43
#define DWORD_PTR
Definition unix.h:151

Definition at line 175 of file unix.h.

◆ HIWORD

#define HIWORD ( l)
Value:
((WORD)((DWORD_PTR)(l) >> 16))
unsigned short WORD
Definition unix.h:44

Definition at line 178 of file unix.h.

◆ IDS_ENOMESSAGESTR

#define IDS_ENOMESSAGESTR   4

Definition at line 11 of file unix.h.

◆ INVALID_HANDLE_VALUE

#define INVALID_HANDLE_VALUE   ((HANDLE)0xFFFFFFFF)

Definition at line 32 of file unix.h.

◆ INVALID_SEEK_VALUE

#define INVALID_SEEK_VALUE   (0xFFFFFFFF)

Definition at line 8 of file unix.h.

◆ LOBYTE

#define LOBYTE ( w)
Value:
((BYTE)((DWORD_PTR)(w) & 0xFF))

Definition at line 174 of file unix.h.

◆ LOWORD

#define LOWORD ( l)
Value:
((WORD)((DWORD_PTR)(l) & 0xFFFF))

Definition at line 177 of file unix.h.

◆ NO_ERROR

#define NO_ERROR   0

Definition at line 168 of file unix.h.

◆ OPEN_EXISTING

#define OPEN_EXISTING   3

Definition at line 160 of file unix.h.

◆ TRUE

#define TRUE   1

Definition at line 171 of file unix.h.

Referenced by CArrayPtr< ITEM >::Alloc(), and CFileDescriptor::Read().

◆ VOID

#define VOID   void

Definition at line 60 of file unix.h.

◆ WINAPI

#define WINAPI   __stdcall

Definition at line 198 of file unix.h.

Referenced by ABF2_GetNumSamples(), ABF2_MultiplexRead(), ABF2_ReadChannel(), ABF2_SetChunkSize(), ABF2H_GetADCtoUUFactors(), ABF2H_GetChannelOffset(), ABF2H_GetFirstSampleInterval(), ABF2H_GetMathValue(), ABF2H_Initialize(), ABF_BuildErrorText(), ABF_Close(), ABF_GetNumSamples(), ABF_HasData(), ABF_MultiplexRead(), ABF_ReadChannel(), ABF_ReadOpen(), ABFH_DemoteHeader(), ABFH_GetADCtoUUFactors(), ABFH_GetChannelOffset(), ABFH_GetDACtoUUFactors(), ABFH_GetErrorText(), ABFH_GetFirstSampleInterval(), ABFH_GetMathValue(), ABFH_Initialize(), ABFH_IsNewHeader(), ABFH_ParamReader(), ABFH_PromoteHeader(), ABFU_FixFileStartDate(), ABFU_GetABFString(), ABFU_GetTempFileName(), ABFU_ReadFile(), ABFU_SetABFString(), ATF_BuildErrorText(), ATF_Cleanup(), ATF_CloseFile(), ATF_CountDataLines(), ATF_GetColumnTitle(), ATF_GetColumnUnits(), ATF_GetFileDateTime(), ATF_GetNumHeaders(), ATF_Initialize(), ATF_IsAppending(), ATF_OpenFile(), ATF_ReadDataColumn(), ATF_ReadDataRecord(), ATF_ReadDataRecordArray(), ATF_ReadHeaderLine(), ATF_ReadHeaderNoQuotes(), ATF_RewindFile(), ATF_SetColumnTitle(), ATF_SetColumnUnits(), ATF_SetSeperator(), ATF_WriteDataComment(), ATF_WriteDataRecord(), ATF_WriteDataRecord1(), ATF_WriteDataRecord1Float(), ATF_WriteDataRecordArray(), ATF_WriteDataRecordArrayFloat(), ATF_WriteEndOfLine(), ATF_WriteHeaderRecord(), AXODBG_printf(), c_CloseHandle(), c_CreateFile(), c_GetFileSize(), c_LoadString(), c_ReadFile(), c_SetFilePointer(), and c_WriteFile().

Typedef Documentation

◆ BOOL

typedef int BOOL

Definition at line 49 of file unix.h.

◆ BYTE

typedef unsigned char BYTE

Definition at line 43 of file unix.h.

◆ CHAR

typedef char CHAR

Definition at line 61 of file unix.h.

◆ DWORD

typedef unsigned ABFLONG DWORD

Definition at line 45 of file unix.h.

◆ FILEHANDLE

typedef FILE* FILEHANDLE

Definition at line 38 of file unix.h.

◆ FILETIME

typedef struct _FILETIME FILETIME

◆ GUID

typedef struct _GUID GUID

◆ HANDLE

typedef void* HANDLE

Definition at line 136 of file unix.h.

◆ HINSTANCE

typedef HANDLE HINSTANCE

Definition at line 137 of file unix.h.

◆ HMODULE

typedef HINSTANCE HMODULE

Definition at line 138 of file unix.h.

◆ INT

typedef int INT

Definition at line 48 of file unix.h.

◆ LONG

typedef long LONG

Definition at line 63 of file unix.h.

◆ LONGLONG

typedef long long LONGLONG

Definition at line 143 of file unix.h.

◆ LPBYTE

typedef unsigned char* LPBYTE

Definition at line 51 of file unix.h.

◆ LPCCH

typedef const CHAR* LPCCH

Definition at line 91 of file unix.h.

◆ LPCH

typedef CHAR* LPCH

Definition at line 89 of file unix.h.

◆ LPCSTR

typedef const CHAR* LPCSTR

Definition at line 94 of file unix.h.

◆ LPCTSTR

typedef LPCSTR LPCTSTR

Definition at line 130 of file unix.h.

◆ LPCVOID

typedef const void* LPCVOID

Definition at line 53 of file unix.h.

◆ LPCWCH

typedef const WCHAR* LPCWCH

Definition at line 79 of file unix.h.

◆ LPCWSTR

typedef const WCHAR* LPCWSTR

Definition at line 83 of file unix.h.

◆ LPDWORD

typedef unsigned ABFLONG* LPDWORD

Definition at line 46 of file unix.h.

◆ LPFILETIME

typedef struct _FILETIME * LPFILETIME

◆ LPOVERLAPPED

typedef void* LPOVERLAPPED

Definition at line 140 of file unix.h.

◆ LPSECURITY_ATTRIBUTES

typedef void* LPSECURITY_ATTRIBUTES

Definition at line 141 of file unix.h.

◆ LPSTR

typedef CHAR* LPSTR

Definition at line 93 of file unix.h.

◆ LPSYSTEMTIME

typedef struct _SYSTEMTIME * LPSYSTEMTIME

◆ LPTCH

typedef LPSTR LPTCH

Definition at line 128 of file unix.h.

◆ LPTSTR

typedef LPSTR LPTSTR

Definition at line 129 of file unix.h.

◆ LPVOID

typedef void* LPVOID

Definition at line 52 of file unix.h.

◆ LPWCH

typedef WCHAR* LPWCH

Definition at line 78 of file unix.h.

◆ LPWSTR

typedef WCHAR* LPWSTR

Definition at line 81 of file unix.h.

◆ NPSTR

typedef CHAR* NPSTR

Definition at line 92 of file unix.h.

◆ NWPSTR

typedef WCHAR* NWPSTR

Definition at line 80 of file unix.h.

◆ PCCH

typedef const CHAR * PCCH

Definition at line 91 of file unix.h.

◆ PCH

typedef CHAR * PCH

Definition at line 89 of file unix.h.

◆ PCHAR

typedef CHAR* PCHAR

Definition at line 88 of file unix.h.

◆ PCSTR

typedef const CHAR * PCSTR

Definition at line 94 of file unix.h.

◆ PCWCH

typedef const WCHAR * PCWCH

Definition at line 79 of file unix.h.

◆ PCWSTR

typedef const WCHAR * PCWSTR

Definition at line 83 of file unix.h.

◆ PFILETIME

typedef struct _FILETIME * PFILETIME

◆ PLONG

typedef long* PLONG

Definition at line 50 of file unix.h.

◆ PSTR

typedef CHAR * PSTR

Definition at line 93 of file unix.h.

◆ PSYSTEMTIME

typedef struct _SYSTEMTIME * PSYSTEMTIME

◆ PTBYTE

typedef unsigned char * PTBYTE

Definition at line 124 of file unix.h.

◆ PTCH

typedef LPSTR PTCH

Definition at line 128 of file unix.h.

◆ PTCHAR

typedef char * PTCHAR

Definition at line 123 of file unix.h.

◆ PTSTR

typedef LPSTR PTSTR

Definition at line 129 of file unix.h.

◆ PWCH

typedef WCHAR * PWCH

Definition at line 78 of file unix.h.

◆ PWCHAR

typedef WCHAR* PWCHAR

Definition at line 77 of file unix.h.

◆ PWSTR

typedef WCHAR * PWSTR

Definition at line 81 of file unix.h.

◆ SHORT

typedef short SHORT

Definition at line 62 of file unix.h.

◆ SYSTEMTIME

typedef struct _SYSTEMTIME SYSTEMTIME

◆ TBYTE

typedef unsigned char TBYTE

Definition at line 124 of file unix.h.

◆ TCHAR

typedef char TCHAR

Definition at line 123 of file unix.h.

◆ UINT

typedef unsigned int UINT

Definition at line 47 of file unix.h.

◆ UINT_PTR

typedef unsigned int UINT_PTR

Definition at line 147 of file unix.h.

◆ WCHAR

typedef wchar_t WCHAR

Definition at line 71 of file unix.h.

◆ WORD

typedef unsigned short WORD

Definition at line 44 of file unix.h.

Function Documentation

◆ _makepath()

void _makepath ( char * path,
const char * drive,
const char * directory,
const char * filename,
const char * extension )

◆ _splitpath()

void _splitpath ( const char * inpath,
char * drv,
char * dir,
char * fname,
char * ext )

◆ _strnicmp()

int _strnicmp ( LPCSTR str1,
LPCSTR str2,
size_t n )

References n.

◆ AXODBG_printf()

int WINAPI AXODBG_printf ( char * lpsz,
... )

References WINAPI.

◆ c_CloseHandle()

BOOL WINAPI c_CloseHandle ( FILEHANDLE handle)

References WINAPI.

◆ c_CreateFile()

FILEHANDLE WINAPI c_CreateFile ( LPCSTR filename,
DWORD access,
DWORD sharing,
LPSECURITY_ATTRIBUTES sa,
DWORD creation,
DWORD attributes_,
HANDLE templ )

References WINAPI.

◆ c_GetFileSize()

DWORD WINAPI c_GetFileSize ( FILEHANDLE hFile,
LPDWORD filesizehigh )

References WINAPI.

◆ c_LoadString()

INT WINAPI c_LoadString ( HINSTANCE instance,
UINT resource_id,
LPSTR buffer,
INT buflen )

References WINAPI.

◆ c_ReadFile()

BOOL WINAPI c_ReadFile ( FILEHANDLE hFile,
LPVOID buffer,
DWORD bytesToRead,
LPDWORD bytesRead,
LPOVERLAPPED overlapped )

References WINAPI.

◆ c_SetFilePointer()

DWORD WINAPI c_SetFilePointer ( FILEHANDLE hFile,
LONG distance,
LONG * highword,
DWORD method )

References WINAPI.

◆ c_WriteFile()

BOOL WINAPI c_WriteFile ( FILEHANDLE hFile,
LPCVOID buffer,
DWORD bytesToWrite,
LPDWORD bytesWritten,
LPOVERLAPPED overlapped )

References WINAPI.

Variable Documentation

◆ g_hInstance

HINSTANCE g_hInstance
extern