@@ -300,12 +300,6 @@ var SyscallsLibrary = {
300300 }
301301#endif // SYSCALLS_REQUIRE_FILESYSTEM
302302 },
303- __syscall_symlink: (target, linkpath) => {
304- target = SYSCALLS.getStr(target);
305- linkpath = SYSCALLS.getStr(linkpath);
306- FS.symlink(target, linkpath);
307- return 0;
308- },
309303 __syscall_fchmod: (fd, mode) => {
310304 FS.fchmod(fd, mode);
311305 return 0;
@@ -830,9 +824,6 @@ var SyscallsLibrary = {
830824 return FS.open(path, flags, mode).fd;
831825 },
832826 __syscall_mkdirat: (dirfd, path, mode) => {
833- #if SYSCALL_DEBUG
834- dbg('warning: untested syscall');
835- #endif
836827 path = SYSCALLS.getStr(path);
837828 path = SYSCALLS.calculateAt(dirfd, path);
838829 // remove a trailing slash, if one - /a/b/ has basename of '', but
@@ -843,9 +834,6 @@ var SyscallsLibrary = {
843834 return 0;
844835 },
845836 __syscall_mknodat: (dirfd, path, mode, dev) => {
846- #if SYSCALL_DEBUG
847- dbg('warning: untested syscall');
848- #endif
849837 path = SYSCALLS.getStr(path);
850838 path = SYSCALLS.calculateAt(dirfd, path);
851839 // we don't want this in the JS API as it uses mknod to create all nodes.
@@ -862,9 +850,6 @@ var SyscallsLibrary = {
862850 return 0;
863851 },
864852 __syscall_fchownat: (dirfd, path, owner, group, flags) => {
865- #if SYSCALL_DEBUG
866- dbg('warning: untested syscall');
867- #endif
868853 path = SYSCALLS.getStr(path);
869854 var nofollow = flags & {{{ cDefs.AT_SYMLINK_NOFOLLOW }}};
870855 flags = flags & (~{{{ cDefs.AT_SYMLINK_NOFOLLOW }}});
@@ -906,11 +891,10 @@ var SyscallsLibrary = {
906891 FS . rename ( oldpath , newpath ) ;
907892 return 0 ;
908893 } ,
909- __syscall_symlinkat: ( target , newdirfd , linkpath ) => {
910- #if SYSCALL_DEBUG
911- dbg ( 'warning: untested syscall' ) ;
912- #endif
913- linkpath = SYSCALLS . calculateAt ( newdirfd , linkpath ) ;
894+ __syscall_symlinkat: ( target , dirfd , linkpath ) => {
895+ target = SYSCALLS . getStr ( target ) ;
896+ linkpath = SYSCALLS . getStr ( linkpath ) ;
897+ linkpath = SYSCALLS . calculateAt ( dirfd , linkpath ) ;
914898 FS . symlink ( target , linkpath ) ;
915899 return 0 ;
916900 } ,
@@ -937,9 +921,6 @@ var SyscallsLibrary = {
937921 return 0 ;
938922 } ,
939923 __syscall_faccessat : ( dirfd , path , amode , flags ) => {
940- #if SYSCALL_DEBUG
941- dbg ( 'warning: untested syscall' ) ;
942- #endif
943924 path = SYSCALLS . getStr ( path ) ;
944925#if ASSERTIONS
945926 assert ( flags === 0 || flags == { { { cDefs . AT_EACCESS } } } ) ;
0 commit comments