File: types.h

package info (click to toggle)
rsyncrypto 1.14-1.2
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,552 kB
  • sloc: cpp: 3,459; sh: 1,221; makefile: 29
file content (29 lines) | stat: -rw-r--r-- 573 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#if !defined(_WIN32)
#error Win32 only header included from non-Win32 build environment
#endif

#ifndef WIN32_TYPES_H
#define WIN32_TYPES_H

typedef unsigned char uint8_t;
typedef UINT32 uint32_t;
typedef unsigned short uint16_t;

typedef __int64 _off_t;
typedef _off_t off_t;
#define _OFF_T_DEFINED

typedef int ssize_t;
typedef unsigned short mode_t;
typedef HANDLE file_t;

#define S_ISREG(m)      (((m) & S_IFMT) == S_IFREG)

static inline void bzero( void *dest, size_t count )
{
    memset( dest, 0, count);
}

int Error2errno( DWORD Error );

#endif // WIN32_TYPES_H