Skip to content

Commit cab525d

Browse files
authored
Merge pull request #86 from bucanero/access-fix
access() fix
2 parents a768d74 + 3211903 commit cab525d

File tree

4 files changed

+1
-28
lines changed

4 files changed

+1
-28
lines changed

ppu/crt/crt1.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ extern void __librt_seekdir_r(struct _reent *r,DIR *dirp,long int loc);
3737
extern int __librt_rmdir_r(struct _reent *r,const char *dirname);
3838
extern int __librt_link_r(struct _reent *r,const char *old,const char *new);
3939
extern int __librt_unlink_r(struct _reent *r,const char *path);
40-
extern int __librt_access_r(struct _reent *r,const char *path,int amode);
4140
extern int __librt_utime_r(struct _reent *r,const char *path,const struct utimbuf *times);
4241

4342
extern int __librt_usleep_r(struct _reent *r,useconds_t usec);
@@ -88,7 +87,6 @@ static void __syscalls_init(void)
8887
__syscalls.rmdir_r = __librt_rmdir_r;
8988
__syscalls.link_r = __librt_link_r;
9089
__syscalls.unlink_r = __librt_unlink_r;
91-
__syscalls.access_r = __librt_access_r;
9290
__syscalls.utime_r = __librt_utime_r;
9391

9492
__syscalls.sleep_r = __librt_sleep_r;

ppu/include/sys/file.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,6 @@ LV2_SYSCALL sysLv2FsLink(const char *oldpath,const char *newpath)
132132
return_to_user_prog(s32);
133133
}
134134

135-
LV2_SYSCALL sysLv2FsAccess(const char *path,s32 amode)
136-
{
137-
lv2syscall2(816,(u64)path,amode);
138-
return_to_user_prog(s32);
139-
}
140-
141135
#ifdef __cplusplus
142136
}
143137
#endif

ppu/librt/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ VPATH := $(BASEDIR)
4545
OBJS := \
4646
sbrk.o exit.o close.o lseek.o read.o open.o sleep.o write.o fstat.o \
4747
socket.o lock.o dirent.o mkdir.o times.o umask.o lv2errno.o heap.o \
48-
chmod.o rename.o rmdir.o isatty.o gettod.o settod.o unlink.o access.o \
48+
chmod.o rename.o rmdir.o isatty.o gettod.o settod.o unlink.o \
4949
link.o truncate.o fsync.o utime.o
5050

5151
all: ppu

ppu/librt/access.c

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)