Permalink
Browse files

Added link / lv2FsLink support.

  • Loading branch information...
1 parent 66ce6f2 commit 2290fb3ca26e2b0ef6989e0948171157659b7298 @rep committed Jan 11, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −0 psl1ght/include/psl1ght/lv2/filesystem.h
  2. +2 −3 psl1ght/libc-glue-ppu/source/file.c
@@ -60,3 +60,4 @@ LV2_SYSCALL lv2FsTruncate(const char* path, u64 size) { return Lv2Syscall2(831,
LV2_SYSCALL lv2FsFtruncate(Lv2FsFile fd, u64 size) { return Lv2Syscall2(832, fd, size); }
LV2_SYSCALL lv2FsUtime(const char* path, const Lv2FsUtimbuf* times) { return Lv2Syscall2(815, (u64)path, (u64)times); }
LV2_SYSCALL lv2FsChmod(const char* path, Lv2FsMode mode) { return Lv2Syscall2(834, (u64)path, mode); }
+LV2_SYSCALL lv2FsLink(const char* oldpath, const char* newpath) { return Lv2Syscall2(810, (u64)oldpath, (u64)newpath); }
@@ -169,10 +169,9 @@ int rename(const char* old, const char* new)
}
*/
-int link(const char* old, const char* new)
+int link(const char* oldpath, const char* newpath)
{
- errno = ENOSYS;
- return -1;
+ return lv2Errno(lv2FsLink(oldpath, newpath));
}
off_t lseek(int fd, off_t offset, int whence)

0 comments on commit 2290fb3

Please sign in to comment.