Skip to content

Commit

Permalink
🌈 style: 删除 syscall 注释
Browse files Browse the repository at this point in the history
  • Loading branch information
bosswnx committed Aug 18, 2024
1 parent fe59ab8 commit 877c091
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions os/src/syscall/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,103 +12,54 @@
///
pub mod errno;

/// getcwd syscall
pub const SYSCALL_GETCWD: usize = 17;
/// dup syscall
pub const SYSCALL_DUP: usize = 23;
/// dup3 syscall
pub const SYSCALL_DUP3: usize = 24;
/// fcntl syscall
pub const SYSCALL_FCNTL: usize = 25;
/// ioctl syscall
pub const SYSCALL_IOCTL: usize = 29;
/// mkdirat syscall
pub const SYSCALL_MKDIRAT: usize = 34;
/// unlinkat syscall
pub const SYSCALL_UNLINKAT: usize = 35;
/// linkat syscall
pub const SYSCALL_LINKAT: usize = 37;
/// umount2 syscall
pub const SYSCALL_UMOUNT2: usize = 39;
/// mount syscall
pub const SYSCALL_MOUNT: usize = 40;
/// chdir syscall
pub const SYSCALL_CHDIR: usize = 49;
/// openat syscall
pub const SYSCALL_OPENAT: usize = 56;
/// close syscall
pub const SYSCALL_CLOSE: usize = 57;
/// getdents64 syscall
pub const SYSCALL_GETDENTS64: usize = 61;
/// read syscall
pub const SYSCALL_READ: usize = 63;
/// write syscall
pub const SYSCALL_WRITE: usize = 64;
/// writev syscall
pub const SYSCALL_WRITEV: usize = 66;
/// sendfile syscall
pub const SYSCALL_SENDFILE: usize = 71;
/// ppol syscall
pub const SYSCALL_PPOLL: usize = 73;
/// fstat syscall
pub const SYSCALL_FSTAT: usize = 80;
/// exit syscall
pub const SYSCALL_EXIT: usize = 93;
/// exit group syscall
pub const SYSCALL_EXIT_GROUP: usize = 94;
/// set tid syscall
pub const SYSCALL_SETTID: usize = 96;
/// sleep syscall
pub const SYSCALL_SLEEP: usize = 101;
/// clock gettime syscall
pub const SYSCALL_CLOCK_GETTIME: usize = 113;
/// yield syscall
pub const SYSCALL_YIELD: usize = 124;
/// kill syscall
pub const SYSCALL_KILL: usize = 129;
/// sigaction syscall
pub const SYSCALL_SIGACTION: usize = 134;
/// sigprocmask syscall
pub const SYSCALL_SIGPROCMASK: usize = 135;
/// sigtimedwait syscall
pub const SYSCALL_SIGTIMEDWAIT: usize = 137;
/// sigreturn syscall
pub const SYSCALL_SIGRETURN: usize = 139;
/// times syscall
pub const SYSCALL_TIMES: usize = 153;
/// uname syscall
pub const SYSCALL_UNAME: usize = 160;
/// gettimeofday syscall
pub const SYSCALL_GETTIMEOFDAY: usize = 169;
/// getpid syscall
pub const SYSCALL_GETPID: usize = 172;
/// getppid syscall
pub const SYSCALL_GETPPID: usize = 173;
/// getuid syscall
pub const SYSCALL_GETUID: usize = 174;
/// get euid syscall
pub const SYSCALL_GETEUID: usize = 175;
/// getgid syscall
pub const SYSCALL_GETGID: usize = 176;
/// getegid syscall
pub const SYSCALL_GETEGID: usize = 177;
/// gettid syscall
pub const SYSCALL_GETTID: usize = 178;
/// fork syscall
pub const SYSCALL_CLONE: usize = 220;
/// exec syscall
pub const SYSCALL_EXECVE: usize = 221;
/// waitpid syscall
pub const SYSCALL_WAIT4: usize = 260;
/// set priority syscall
pub const SYSCALL_SET_PRIORITY: usize = 140;
/// sbrk syscall
pub const SYSCALL_BRK: usize = 214;
/// munmap syscall
pub const SYSCALL_MUNMAP: usize = 215;
/// mmap syscall
pub const SYSCALL_MMAP: usize = 222;
/// spawn syscall
pub const SYSCALL_SPAWN: usize = 400;
/*
/// mail read syscall
Expand Down

0 comments on commit 877c091

Please sign in to comment.