Changeset 1225 in kBuild for trunk/src/kash
- Timestamp:
- Oct 8, 2007 1:40:32 AM (17 years ago)
- Location:
- trunk/src/kash
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/shfile.c
r1222 r1225 42 42 } 43 43 44 int shfile_pipe(shfdtab *pfdtab, int fds[2]) 45 { 46 return -1; 47 } 48 49 int shfile_dup(shfdtab *pfdtab, int fd) 50 { 51 return -1; 52 } 44 53 45 54 int shfile_close(shfdtab *pfdtab, unsigned fd) 46 55 { 47 // return close(fd);48 56 return -1; 49 57 } 50 58 59 long shfile_read(shfdtab *pfdtab, int fd, void *buf, size_t len) 60 { 61 return -1; 62 } 63 64 long shfile_write(shfdtab *pfdtab, int fd, const void *buf, size_t len) 65 { 66 return -1; 67 } 68 69 long shfile_lseek(shfdtab *pfdtab, int fd, long off, int whench) 70 { 71 return -1; 72 } 73 74 int shfile_fcntl(shfdtab *pfdtab, int fd, int cmd, int arg) 75 { 76 return -1; 77 } 78 79 int shfile_stat(shfdtab *pfdtab, const char *path, struct stat *pst) 80 { 81 return -1; 82 } 83 84 int shfile_lstat(shfdtab *pfdtab, const char *link, struct stat *pst) 85 { 86 return -1; 87 } 88 89 int shfile_chdir(shfdtab *pfdtab, const char *path) 90 { 91 return -1; 92 } 93 94 char *shfile_getcwd(shfdtab *pfdtab, char *buf, int len) 95 { 96 return NULL; 97 } 98 99 int shfile_access(shfdtab *pfdtab, const char *path, int type) 100 { 101 return -1; 102 } 103 104 int shfile_isatty(shfdtab *pfdtab, int fd) 105 { 106 return 0; 107 } 108 109 110 int shfile_ioctl(shfdtab *pfdtab, int fd, unsigned long request, void *buf) 111 { 112 return -1; 113 } 114 115 mode_t shfile_get_umask(shfdtab *pfdtab) 116 { 117 return 022; 118 } 119 120 121 shdir *shfile_opendir(shfdtab *pfdtab, const char *dir) 122 { 123 return NULL; 124 } 125 126 shdirent *shfile_readdir(struct shdir *pdir) 127 { 128 return NULL; 129 } 130 131 void shfile_closedir(struct shdir *pdir) 132 { 133 134 } -
trunk/src/kash/shinstance.c
r1222 r1225 79 79 80 80 81 char *sh_getenv(shinstance *psh, const char *var) 82 { 83 return NULL; 84 } 85 86 char **sh_environ(shinstance *psh) 87 { 88 static char *s_null[2] = {0,0}; 89 return &s_null[0]; 90 } 91 92 const char *sh_gethomedir(shinstance *psh, const char *user) 93 { 94 return NULL; 95 } 96 97 int sh_sigaction(int signo, const struct sh_sigaction *newp, struct sh_sigaction *oldp) 98 { 99 return -1; 100 } 101 102 sh_sig_t sh_signal(shinstance *psh, int signo, sh_sig_t handler) 103 { 104 return (sh_sig_t)-1; 105 } 106 107 int sh_siginterrupt(shinstance *psh, int signo, int interrupt) 108 { 109 return -1; 110 } 111 112 void sh_sigemptyset(sh_sigset_t *setp) 113 { 114 115 } 116 117 int sh_sigprocmask(shinstance *psh, int operation, sh_sigset_t const *newp, sh_sigset_t *oldp) 118 { 119 return -1; 120 } 121 122 void sh_abort(shinstance *psh) 123 { 124 } 125 126 void sh_raise_sigint(shinstance *psh) 127 { 128 129 } 130 131 int sh_kill(shinstance *psh, pid_t pid, int signo) 132 { 133 return -1; 134 } 135 136 int sh_killpg(shinstance *psh, pid_t pgid, int signo) 137 { 138 return -1; 139 } 140 141 clock_t sh_times(shinstance *psh, shtms *tmsp) 142 { 143 return 0; 144 } 145 146 int sh_sysconf_clk_tck(void) 147 { 148 return 1; 149 } 150 151 pid_t sh_fork(shinstance *psh) 152 { 153 return -1; 154 } 155 156 pid_t sh_waitpid(shinstance *psh, pid_t pid, int *statusp, int flags) 157 { 158 return -1; 159 } 160 161 void sh__exit(shinstance *psh, int rc) 162 { 163 } 164 165 int sh_execve(shinstance *psh, const char *exe, const char * const *argv, const char * const *envp) 166 { 167 return -1; 168 } 169 170 uid_t sh_getuid(shinstance *psh) 171 { 172 return 0; 173 } 174 175 uid_t sh_geteuid(shinstance *psh) 176 { 177 return 0; 178 } 179 180 gid_t sh_getgid(shinstance *psh) 181 { 182 return 0; 183 } 184 185 gid_t sh_getegid(shinstance *psh) 186 { 187 return 0; 188 } 189 190 pid_t sh_getpid(shinstance *psh) 191 { 192 return 0; 193 } 194 195 pid_t sh_getpgrp(shinstance *psh) 196 { 197 return 0; 198 } 199 200 pid_t sh_getpgid(shinstance *psh, pid_t pid) 201 { 202 return pid; 203 } 204 205 int sh_setpgid(shinstance *psh, pid_t pid, pid_t pgid) 206 { 207 return -1; 208 } 209 210 pid_t sh_tcgetpgrp(shinstance *psh, int fd) 211 { 212 return -1; 213 } 214 215 int sh_tcsetpgrp(shinstance *psh, int fd, pid_t pgrp) 216 { 217 return -1; 218 } 219 220 int sh_getrlimit(shinstance *psh, int resid, shrlimit *limp) 221 { 222 return -1; 223 } 224 225 int sh_setrlimit(shinstance *psh, int resid, const shrlimit *limp) 226 { 227 return -1; 228 } 229 -
trunk/src/kash/shinstance.h
r1222 r1225 360 360 # define SIGTTIN 19 361 361 # define SIGCONT 20 362 extern const char * const sys_siglist[NSIG]; 362 # define sys_siglist sys_signame 363 363 #endif /* _MSC_VER */ 364 364 #ifdef __sun__ 365 # define sys_siglist _sys_siglist 365 # define sys_siglist _sys_siglist 366 #endif 367 #ifndef HAVE_SYS_SIGNAME 368 extern char sys_signame[NSIG][16]; 366 369 #endif 367 370 … … 433 436 int sh_tcsetpgrp(shinstance *, int, pid_t); 434 437 435 /* sys/resour ece.h */438 /* sys/resource.h */ 436 439 #ifdef _MSC_VER 437 440 typedef int64_t shrlim_t;
Note:
See TracChangeset
for help on using the changeset viewer.