ReactOS 0.4.15-dev-8146-gdc0ed6d
various.h
Go to the documentation of this file.
1// Various things you need when porting BSD and GNU utilities to
2// Win32.
3
4#pragma once
5
6typedef float f4byte_t;
7typedef double f8byte_t;
8typedef long uid_t; // SunOS 5.5
9
10#define __P(x) x
11
12/* utmp.h */
13#define UT_LINESIZE 8
14#define UT_HOSTSIZE 16
15
16/* stat.h */
17#define S_ISREG(mode) (((mode)&0xF000) == 0x8000)
18#define S_ISDIR(mode) (((mode)&0xF000) == 0x4000)
19
20#undef MIN //take care of windows default
21#undef MAX //take care of windows default
22#define MIN(a, b) ((a) <= (b) ? (a) : (b))
23#define MAX(a, b) ((a) > (b) ? (a) : (b))
24
25#define bcopy(s1, s2, n) memmove(s2, s1, n)
26#define bcmp(s1, s2, n) (memcmp(s1, s2, n) != 0)
27#define bzero(s, n) memset(s, 0, n)
28
29#define index(s, c) strchr(s, c)
30#define rindex(s, c) strrchr(s, c)
31
32void netfinger(char *);
void netfinger(char *)
Definition: net.c:40
double f8byte_t
Definition: various.h:7
float f4byte_t
Definition: various.h:6
long uid_t
Definition: various.h:8