WangRunji
520bb2d957
change args from Iter to Vec<String>
2019-04-18 20:24:36 +08:00
Jiajie Chen
0ff24fe589
Implement env support in sys_exec
2019-04-18 17:43:35 +08:00
chyyuu
aa5d0028f0
add unimplemented syscalls: SYS_GETGROUPS, SYS_SETGROUPS. Now busybox:id can run.
2019-04-17 16:37:09 +08:00
chyyuu
56e472c8f8
fix bug: sys_exec should name as exec_path, then loader can find the exec file.
...
items of VEC args from argv is the args lists, and args[0] isn't the complete exec_path.
the new_user function should add exec_path as a new args.
BUGS:
ls app doesn't show any thing. Why?
2019-04-17 14:59:06 +08:00
Jiajie Chen
ff50a45396
Now ready to use busybox sh for user shell
2019-04-17 08:16:02 +08:00
Jiajie Chen
1bba33a05f
Implement sys_ppoll over sys_poll
2019-04-17 01:16:27 +08:00
Jiajie Chen
69449d4eb1
Pretend stdin/stdout as a tty
2019-04-17 00:44:11 +08:00
Jiajie Chen
b5f194d20f
Fix get_ppid for init process
2019-04-17 00:28:34 +08:00
Jiajie Chen
8115256162
Check exec args
2019-04-16 10:05:42 +08:00
WangRunji
f88cffb8ab
fix bitvec version
2019-04-15 22:08:20 +08:00
NagiNikaido
de02024b77
Merge pull request #1 from rcore-os/dev
...
Dev branch sync.
2019-04-15 10:52:08 +08:00
NagiNikaido
c3813c4b38
BUGFIX: rewrited sys_chdir().
2019-04-15 00:41:28 +08:00
WangRunji
3556c758db
impl more file system *at syscalls
2019-04-14 15:47:42 +08:00
Jiajie Chen
41dab25f9c
Merge remote-tracking branch 'origin/master' into dev
2019-04-09 20:30:30 +08:00
Harry Chen
88bda7c4a0
Use Linux syscall number for mips N32 ABI, update user app
...
Signed-off-by: Harry Chen <i@harrychen.xyz>
2019-04-07 17:08:03 +08:00
Jiajie Chen
2c3a4d75dd
implement getaddr for netlink, ip l/ip a is working now
2019-04-07 02:19:07 +08:00
Jiajie Chen
1f99f1270a
Implement recvmsg syscall for netlink
2019-04-06 14:21:35 +08:00
Jiajie Chen
6335597897
Add netlink socket skeleton
2019-04-06 13:33:17 +08:00
WangRunji
a712f37c65
update fs. support poll for INode.
2019-04-05 23:20:17 +08:00
Jiajie Chen
b0c9087f0f
Implement ioctl arp translation
2019-04-05 01:16:26 +08:00
Jiajie Chen
55df9ca892
Initial support for ioctl SIOCGARP
2019-04-04 21:38:32 +08:00
Jiajie Chen
c944d2269d
Enable user to send to iface directly via packet socket
2019-04-04 20:31:46 +08:00
Jiajie Chen
77f8afa30c
Refactor network endpoint, and add basic support for sockaddr_ll
2019-04-04 20:01:59 +08:00
Jiajie Chen
d3a462e8a0
Implement hdrincl for raw socket
2019-04-04 14:32:58 +08:00
WangRunji
c9a68634f5
simplify FdSet using bitvec crate
2019-04-04 11:46:50 +08:00
WangRunji
11c5609171
refactor PCI mod using pci crate
2019-03-30 23:48:33 +08:00
Jiajie Chen
cbba658e22
Implement ATA IDENTIFY DEVICE via AHCI interface
2019-03-30 00:06:27 +08:00
Jiajie Chen
236ddd0827
Move chmod to x86 specific syscall
2019-03-29 13:51:31 +08:00
Jiajie Chen
105ce6a794
Merge remote-tracking branch 'rcore/dev'
2019-03-29 13:37:20 +08:00
WangRunji
1ffd44cde0
HUGE REFACTOR net module
2019-03-29 13:23:49 +08:00
Jiajie Chen
311cf104f9
Many minor fixes to allow gcc to run inside rCore. Add some syscalls, fix SEEK_* and enlarge the heap
2019-03-29 13:14:08 +08:00
Jiajie Chen
524865ebd8
Implement sys_prlimit64 for nginx
2019-03-27 21:39:44 +08:00
WangRunji
b836b11792
reformat code using cargo fmt
2019-03-27 18:45:24 +08:00
Jiajie Chen
fe88f4f77f
Fix sys_readv not updating file offset
2019-03-27 18:38:42 +08:00
Jiajie Chen
adb66167f8
Fix a potential racing in Condvar
2019-03-24 23:53:09 +08:00
Jiajie Chen
7ee69db575
Silence sys_access and sys_chdir because rust sh use these now
2019-03-24 19:10:33 +08:00
Jiajie Chen
285ffc7618
Move absolute/relative path resolution to rcore-fs, implement dummy sys_fchown, sys_fchownat and sys_symlinkat
2019-03-24 18:25:13 +08:00
Jiajie Chen
48ebf98f11
Fix pop_with_split, check file existence in sys_access
2019-03-24 16:25:32 +08:00
Jiajie Chen
556d263d8e
Implement sys_openat and sys_renameat
2019-03-24 00:36:13 +08:00
Jiajie Chen
0edfc07939
Allow page fault handler to bypass process lock and fix thread pool wakeup for exited process
2019-03-23 23:50:30 +08:00
Jiajie Chen
9f03bfc849
Add rand module for ip port randomization and use ethernet default mtu in ixgbe
2019-03-23 18:23:02 +08:00
Jiajie Chen
2fac6e9941
Dummy implementation for sys_statfs, sys_flock and sys_mount
2019-03-23 16:25:46 +08:00
Jiajie Chen
705505c543
Rearrange syscall order and implement dummy sys_fstatfs
2019-03-23 16:17:19 +08:00
Jiajie Chen
547baa9ecd
Implement symlink following
2019-03-23 15:47:44 +08:00
Jiajie Chen
0272aa1070
Implement sys_readlink and improve sys_mremap
2019-03-23 11:33:53 +08:00
Jiajie Chen
08ba9261aa
Fix sys_mprotect with page alignment, dynamic loading seems working
2019-03-23 00:46:32 +08:00
Jiajie Chen
d285adf277
Fix last commit for exit_in_qemu
2019-03-23 00:26:36 +08:00
Jiajie Chen
b2585eb3bd
Fix last commit
2019-03-23 00:22:33 +08:00
Jiajie Chen
4e0c18914f
Implement sys_sendfile
2019-03-23 00:20:25 +08:00
WangRunji
638a2215b2
impl eager mmap file
2019-03-22 23:58:19 +08:00