Ignore:
Timestamp:
Oct 8, 2007, 3:40:32 AM (18 years ago)
Author:
bird
Message:

stubbed the sh stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/shfile.c

    r1222 r1225  
    4242}
    4343
     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}
    4453
    4554int shfile_close(shfdtab *pfdtab, unsigned fd)
    4655{
    47 //    return close(fd);
    4856    return -1;
    4957}
    5058
     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 TracChangeset for help on using the changeset viewer.