ReactOS
0.4.16-dev-336-gb667d82
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
6
typedef
float
f4byte_t
;
7
typedef
double
f8byte_t
;
8
typedef
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
32
void
netfinger
(
char
*);
netfinger
void netfinger(char *)
Definition:
net.c:40
f8byte_t
double f8byte_t
Definition:
various.h:7
f4byte_t
float f4byte_t
Definition:
various.h:6
uid_t
long uid_t
Definition:
various.h:8
base
applications
network
finger
various.h
Generated on Tue Dec 10 2024 06:06:06 for ReactOS by
1.9.6