migrate substitution keywords to SVN
[reactos.git] / reactos / lib / kjs / micros / w32.h
1 /*
2 * W32 specific definitions.
3 * Copyright (c) 1998 New Generation Software (NGS) Oy
4 *
5 * Author: Markku Rossi <mtr@ngs.fi>
6 */
7
8 /*
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Library General Public License for more details.
18 *
19 * You should have received a copy of the GNU Library General Public
20 * License along with this library; if not, write to the Free
21 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
22 * MA 02111-1307, USA
23 */
24
25 /*
26 * $Source: /cygdrive/c/RCVS/CVS/ReactOS/reactos/lib/kjs/micros/w32.h,v $
27 * $Id$
28 */
29
30 #ifndef W32_H
31 #define W32_H
32
33 /* For chmod() & _find{first,next,close}(). */
34 #include <io.h>
35
36 /* For alloca(). */
37 #include <malloc.h>
38
39 /* For chdir(). */
40 #include <direct.h>
41
42 /*
43 * Types and definitions.
44 */
45
46 #define popen(cmd, mode) (NULL)
47 #define pclose(fp) (1)
48
49 struct dirent
50 {
51 char *d_name;
52 };
53
54 struct DIR_st
55 {
56 char *path;
57 long handle;
58
59 /* The position in the directory. */
60 unsigned int pos;
61
62 struct _finddata_t finddata;
63 struct dirent de;
64 };
65
66 typedef struct DIR_st DIR;
67
68
69 /*
70 * Prototypes for functions, defined in w32.c.
71 */
72
73 extern unsigned int sleep (unsigned int seconds);
74 extern unsigned int usleep (unsigned int useconds);
75
76 /* Directory handling. */
77
78 DIR *opendir (const char *name);
79
80 struct dirent *readdir (DIR *dir);
81
82 int closedir (DIR *dir);
83
84 void rewinddir (DIR *dir);
85
86 void seekdir (DIR *dir, long offset);
87
88 long telldir (DIR *dir);
89
90 #endif /* not W32_H */