VirtualBox

source: kBuild/trunk/src/kash/shfile.c@ 1225

Last change on this file since 1225 was 1225, checked in by bird, 17 years ago

stubbed the sh stuff.

  • Property svn:eol-style set to LF
File size: 2.4 KB
Line 
1/* $Id: $ */
2/** @file
3 *
4 * File management.
5 *
6 * Copyright (c) 2007 knut st. osmundsen <[email protected]>
7 *
8 *
9 * This file is part of kBuild.
10 *
11 * kBuild is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * kBuild is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with kBuild; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 *
25 */
26
27#include "shfile.h"
28#include <stdlib.h>
29
30#ifdef KBUILD_OS_WINDOWS
31//# include <io.h>
32#else
33# include <unistd.h>
34# include <fcntl.h>
35#endif
36
37
38int shfile_open(shfdtab *pfdtab, const char *name, unsigned flags, mode_t mode)
39{
40// return open(name, flags);
41 return -1;
42}
43
44int shfile_pipe(shfdtab *pfdtab, int fds[2])
45{
46 return -1;
47}
48
49int shfile_dup(shfdtab *pfdtab, int fd)
50{
51 return -1;
52}
53
54int shfile_close(shfdtab *pfdtab, unsigned fd)
55{
56 return -1;
57}
58
59long shfile_read(shfdtab *pfdtab, int fd, void *buf, size_t len)
60{
61 return -1;
62}
63
64long shfile_write(shfdtab *pfdtab, int fd, const void *buf, size_t len)
65{
66 return -1;
67}
68
69long shfile_lseek(shfdtab *pfdtab, int fd, long off, int whench)
70{
71 return -1;
72}
73
74int shfile_fcntl(shfdtab *pfdtab, int fd, int cmd, int arg)
75{
76 return -1;
77}
78
79int shfile_stat(shfdtab *pfdtab, const char *path, struct stat *pst)
80{
81 return -1;
82}
83
84int shfile_lstat(shfdtab *pfdtab, const char *link, struct stat *pst)
85{
86 return -1;
87}
88
89int shfile_chdir(shfdtab *pfdtab, const char *path)
90{
91 return -1;
92}
93
94char *shfile_getcwd(shfdtab *pfdtab, char *buf, int len)
95{
96 return NULL;
97}
98
99int shfile_access(shfdtab *pfdtab, const char *path, int type)
100{
101 return -1;
102}
103
104int shfile_isatty(shfdtab *pfdtab, int fd)
105{
106 return 0;
107}
108
109
110int shfile_ioctl(shfdtab *pfdtab, int fd, unsigned long request, void *buf)
111{
112 return -1;
113}
114
115mode_t shfile_get_umask(shfdtab *pfdtab)
116{
117 return 022;
118}
119
120
121shdir *shfile_opendir(shfdtab *pfdtab, const char *dir)
122{
123 return NULL;
124}
125
126shdirent *shfile_readdir(struct shdir *pdir)
127{
128 return NULL;
129}
130
131void shfile_closedir(struct shdir *pdir)
132{
133
134}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette