|
nckernel
0.1
|
표준 기호 상수와 형을 선언한다. More...
|
Macros | |
| #define | STDERR_FILENO 2 /* Standard error output */ |
| #define | STDIN_FILENO 0 /* Standard input */ |
| #define | STDOUT_FILENO 1 /* Standard output */ |
Functions | |
| void | _exit (int ret) |
| int | access (const char *path, int mode) |
| unsigned | alarm (unsigned sec) |
| int | brk (void *ptr) |
| int | chdir (const char *path) |
| int | chown (const char *path, uid_t uid, gid_t gid) |
| int | close (int fd) |
| size_t | confstr (int name, char *buf, size_t len) |
| char * | crypt (const char *key, const char *salt) |
| char * | ctermid (char *s) |
| int | dup (int fd) |
| int | dup2 (int oldfd, int newfd) |
| void | encrypt (char block[64], int edflat) |
| int | execl (const char *path, const char *arg,...) |
| int | execle (const char *path, const char *arg,...) |
| int | execlp (const char *path, const char *arg,...) |
| int | execv (const char *path, char *const argv[]) |
| int | execve (const char *path, const char *const argv[], char *const envp[]) |
| int | execvp (const char *path, char *const argv[]) |
| int | faccessat (int dirfd, const char *path, int mode, int flag) |
| int | fchdir (int fd) |
| int | fchown (int fd, uid_t uid, gid_t gid) |
| int | fchownat (int dirfd, const char *path, uid_t uid, gid_t gid, int flag) |
| int | fdatasync (int fd) |
| int | fexecve (int fd, char *const argv[], char *const env[]) |
| pid_t | fork (void) |
| long | fpathconf (int fd, int name) |
| int | fsync (int fd) |
| int | ftruncate (int fd, off_t off) |
| char * | getcwd (char *buf, size_t size) |
| gid_t | getegid (void) |
| uid_t | geteuid (void) |
| gid_t | getgid (void) |
| int | getgroups (int size, gid_t list[]) |
| long | gethostid (void) |
| int | gethostname (char *buf, size_t size) |
| char * | getlogin (void) |
| int | getlogin_r (char *buf, size_t size) |
| int | getopt (int argc, char *const argv[], const char *optstring) |
| pid_t | getpgid (pid_t pid) |
| pid_t | getpgrp (void) |
| pid_t | getpid (void) |
| pid_t | getppid (void) |
| pid_t | getsid (pid_t pid) |
| uid_t | getuid (void) |
| int | isatty (int fd) |
| int | lchown (const char *path, uid_t owner, gid_t group) |
| int | link (const char *oldpath, const char *newpath) |
| int | linkat (int olddirfd, const char *oldname, int newdirfd, const char *newname, int flags) |
| int | lockf (int fd, int cmd, off_t len) |
| off_t | lseek (int fd, off_t offset, int whence) |
| int | nice (int val) |
| long | pathconf (const char *path, int name) |
| int | pause (void) |
| int | pipe (int fds[2]) |
| ssize_t | pread (int fd, void *buf, size_t size, off_t offset) |
| ssize_t | pwrite (int fd, const void *buf, size_t size, off_t offset) |
| ssize_t | read (int fd, void *buf, size_t size) |
| ssize_t | readlink (const char *restrict path, char *restrict buf, size_t bufsz) |
| ssize_t | readlinkat (int dirfd, const char *restrict path, char *restrict buf, size_t size) |
| int | rmdir (const char *path) |
| void * | sbrk (intptr_t increment) |
| int | setegid (gid_t gid) |
| int | seteuid (uid_t uid) |
| int | setgid (gid_t gid) |
| int | setpgid (pid_t pid, pid_t pgid) |
| pid_t | setpgrp (void) |
| int | setregid (gid_t rgid, gid_t egid) |
| int | setreuid (uid_t ruid, uid_t euid) |
| pid_t | setsid (void) |
| int | setuid (uid_t euid) |
| unsigned | sleep (unsigned secs) |
| void | swab (const void *restrict from, void *restrict to, ssize_t size) |
| int | symlink (const char *oldpath, const char *newpath) |
| int | symlinkat (const char *oldpath, int newdirfd, const char *newpath) |
| void | sync (void) |
| long | sysconf (int name) |
| pid_t | tcgetpgrp (int fd) |
| int | tcsetpgrp (int fd, pid_t pid) |
| int | truncate (const char *file, off_t offset) |
| char * | ttyname (int fd) |
| int | ttyname_r (int fd, char *buf, size_t size) |
| int | unlink (const char *file) |
| int | unlinkat (int dirfd, const char *file, int flags) |
| ssize_t | write (int fd, const void *buf, size_t size) |
Variables | |
| char ** | environ |
| char * | optarg |
| int | opterr |
| int | optind |
| int | optopt |
표준 기호 상수와 형을 선언한다.
| #define STDERR_FILENO 2 /* Standard error output */ |
Definition at line 16 of file unistd.h.
Referenced by thread_get_stderr().
| #define STDIN_FILENO 0 /* Standard input */ |
Definition at line 14 of file unistd.h.
Referenced by thread_get_stdin().
| #define STDOUT_FILENO 1 /* Standard output */ |
Definition at line 15 of file unistd.h.
Referenced by thread_get_stdout().
| void _exit | ( | int | ret) |
| [in] | ret |
| int access | ( | const char * | path, |
| int | mode | ||
| ) |
| [in] | path | |
| [in] | mode |
| unsigned alarm | ( | unsigned | sec) |
| [in] | sec |
| int brk | ( | void * | ptr) |
| [in] | ptr |
Definition at line 297 of file malloc.c.
References EBUSY, chunk::head, irq_local_restore(), irq_local_save(), list_entry, NEED_LOCK_TEST_BEGIN, NEED_LOCK_TEST_END, and chunk::size.

| int chdir | ( | const char * | path) |
| [in] | path |
| [in] | path | |
| [in] | uid | |
| [in] | gid |
| int close | ( | int | fd) |
| [in] | fd |
Definition at line 141 of file open.c.
References EFAULT, thread::file_ctx, file::object, object_destroy(), pthread_self(), and thread_file_ctx::table.
Referenced by create_fat_cache(), and destroy_fat_cache().


| [in] | name | |
| [in] | buf | |
| [in] | len |
| char* crypt | ( | const char * | key, |
| const char * | salt | ||
| ) |
| [in] | key | |
| [in] | salt |
| char* ctermid | ( | char * | s) |
| [in] | s |
| int dup | ( | int | fd) |
| [in] | fd |
| int dup2 | ( | int | oldfd, |
| int | newfd | ||
| ) |
| [in] | oldfd | |
| [in] | newfd |
| void encrypt | ( | char | block[64], |
| int | edflat | ||
| ) |
| [in] | block | |
| [in] | edflat |
| int execl | ( | const char * | path, |
| const char * | arg, | ||
| ... | |||
| ) |
| [in] | path | |
| [in] | arg | |
| [in] | ... |
Definition at line 326 of file pthread_fork.c.
References assert, thread::attr, ENOSYS, thread_attr::is_first, pthread_self(), va_end, and va_start.

| int execle | ( | const char * | path, |
| const char * | arg, | ||
| ... | |||
| ) |
| [in] | path | |
| [in] | arg | |
| [in] | ... |
Definition at line 354 of file pthread_fork.c.
References assert, thread::attr, ENOSYS, thread_attr::is_first, pthread_self(), va_end, and va_start.

| int execlp | ( | const char * | path, |
| const char * | arg, | ||
| ... | |||
| ) |
| [in] | path | |
| [in] | arg | |
| [in] | ... |
Definition at line 382 of file pthread_fork.c.
References assert, thread::attr, ENOSYS, thread_attr::is_first, pthread_self(), va_end, and va_start.

| int execv | ( | const char * | path, |
| char *const | argv[] | ||
| ) |
| [in] | path | |
| [in] | argv |
Definition at line 410 of file pthread_fork.c.
References assert, thread::attr, ENOSYS, thread_attr::is_first, and pthread_self().

| int execve | ( | const char * | path, |
| const char *const | argv[], | ||
| char *const | envp[] | ||
| ) |
| [in] | path | |
| [in] | argv | |
| [in] | envp |
| int execvp | ( | const char * | path, |
| char *const | argv[] | ||
| ) |
| [in] | path | |
| [in] | argv |
Definition at line 464 of file pthread_fork.c.
References assert, thread::attr, ENOSYS, thread_attr::is_first, and pthread_self().

| int faccessat | ( | int | dirfd, |
| const char * | path, | ||
| int | mode, | ||
| int | flag | ||
| ) |
| [in] | dirfd | |
| [in] | path | |
| [in] | mode | |
| [in] | flag |
| int fchdir | ( | int | fd) |
| [in] | fd |
| [in] | dirfd | |
| [in] | path | |
| [in] | uid | |
| [in] | gid | |
| [in] | flag |
| int fdatasync | ( | int | fd) |
| [in] | fd |
| int fexecve | ( | int | fd, |
| char *const | argv[], | ||
| char *const | env[] | ||
| ) |
| [in] | fd | |
| [in] | argv | |
| [in] | env |
| pid_t fork | ( | void | ) |
Definition at line 222 of file pthread_fork.c.
References ENOSYS.
| long fpathconf | ( | int | fd, |
| int | name | ||
| ) |
| [in] | fd | |
| [in] | name |
| int fsync | ( | int | fd) |
| [in] | fd |
| int ftruncate | ( | int | fd, |
| off_t | off | ||
| ) |
| [in] | fd | |
| [in] | off |
| char* getcwd | ( | char * | buf, |
| size_t | size | ||
| ) |
| [in] | buf | |
| [in] | size |
| gid_t getegid | ( | void | ) |
| uid_t geteuid | ( | void | ) |
| gid_t getgid | ( | void | ) |
| int getgroups | ( | int | size, |
| gid_t | list[] | ||
| ) |
| [in] | size | |
| [in] | list |
| long gethostid | ( | void | ) |
| int gethostname | ( | char * | buf, |
| size_t | size | ||
| ) |
| [in] | buf | |
| [in] | size |
| char* getlogin | ( | void | ) |
| int getlogin_r | ( | char * | buf, |
| size_t | size | ||
| ) |
| [in] | buf | |
| [in] | size |
| int getopt | ( | int | argc, |
| char *const | argv[], | ||
| const char * | optstring | ||
| ) |
| [in] | argc | |
| [in] | argv | |
| [in] | optstring |
| pid_t getpgrp | ( | void | ) |
| pid_t getpid | ( | void | ) |
| pid_t getppid | ( | void | ) |
| uid_t getuid | ( | void | ) |
| int isatty | ( | int | fd) |
| [in] | fd |
| [in] | path | |
| [in] | owner | |
| [in] | group |
| int link | ( | const char * | oldpath, |
| const char * | newpath | ||
| ) |
| [in] | oldpath | |
| [in] | newpath |
| int linkat | ( | int | olddirfd, |
| const char * | oldname, | ||
| int | newdirfd, | ||
| const char * | newname, | ||
| int | flags | ||
| ) |
| [in] | olddirfd | |
| [in] | oldname | |
| [in] | newdirfd | |
| [in] | newname | |
| [in] | flags |
| int lockf | ( | int | fd, |
| int | cmd, | ||
| off_t | len | ||
| ) |
| [in] | fd | |
| [in] | cmd | |
| [in] | len |
| [in] | fd | |
| [in] | offset | |
| [in] | whence |
Definition at line 57 of file open.c.
References file::ctx, EFAULT, EINVAL, EPERM, thread::file_ctx, ninfo_ops::lseek, entry::nctx, entry::ninfo, ninfo::nops, pthread_self(), and thread_file_ctx::table.
Referenced by update_fat_cache().


| int nice | ( | int | val) |
| [in] | val |
| long pathconf | ( | const char * | path, |
| int | name | ||
| ) |
| [in] | path | |
| [in] | name |
| int pause | ( | void | ) |
| int pipe | ( | int | fds[2]) |
| [in] | fds |
| [in] | fd | |
| [in] | buf | |
| [in] | size | |
| [in] | offset |
| [in] | fd | |
| [in] | buf | |
| [in] | size | |
| [in] | offset |
| [in] | fd | |
| [in] | buf | |
| [in] | size |
Definition at line 85 of file open.c.
References file::ctx, EFAULT, EINVAL, EPERM, thread::file_ctx, entry::nctx, entry::ninfo, ninfo::nops, pthread_self(), ninfo_ops::read, and thread_file_ctx::table.
Referenced by update_fat_cache().


| [in] | path | |
| [in] | buf | |
| [in] | bufsz |
| [in] | dirfd | |
| [in] | path | |
| [in] | buf | |
| [in] | size |
| int rmdir | ( | const char * | path) |
| [in] | path |
| void* sbrk | ( | intptr_t | increment) |
| [in] | increment |
Definition at line 350 of file malloc.c.
References chunk::head, irq_local_restore(), irq_local_save(), list_entry, NEED_LOCK_TEST_BEGIN, NEED_LOCK_TEST_END, NULL, and chunk::size.
Referenced by malloc(), and posix_memalign().


| int setegid | ( | gid_t | gid) |
| [in] | gid |
| int seteuid | ( | uid_t | uid) |
| [in] | uid |
| int setgid | ( | gid_t | gid) |
| [in] | gid |
| pid_t setpgrp | ( | void | ) |
| pid_t setsid | ( | void | ) |
| int setuid | ( | uid_t | euid) |
| [in] | euid |
| unsigned sleep | ( | unsigned | secs) |
| [in] | secs |
| [in] | from | |
| [in] | to | |
| [in] | size |
| int symlink | ( | const char * | oldpath, |
| const char * | newpath | ||
| ) |
| [in] | oldpath | |
| [in] | newpath |
| int symlinkat | ( | const char * | oldpath, |
| int | newdirfd, | ||
| const char * | newpath | ||
| ) |
| [in] | oldpath | |
| [in] | newdirfd | |
| [in] | newpath |
| void sync | ( | void | ) |
| long sysconf | ( | int | name) |
| [in] | name |
Definition at line 8 of file sysconf.c.
References _SC_PAGESIZE, and PAGESIZE.
Referenced by free(), initm_alloc(), initm_free(), initm_init(), malloc(), onetime_map_init(), onetime_unmap(), page_allocator_get_region(), page_allocator_info_size(), page_allocator_init(), page_fault_handler(), pthread_self(), valloc(), vm_init(), and vm_init_done().

| pid_t tcgetpgrp | ( | int | fd) |
| [in] | fd |
| int tcsetpgrp | ( | int | fd, |
| pid_t | pid | ||
| ) |
| [in] | fd | |
| [in] | pid |
| int truncate | ( | const char * | file, |
| off_t | offset | ||
| ) |
| [in] | file | |
| [in] | offset |
| char* ttyname | ( | int | fd) |
| [in] | fd |
| int ttyname_r | ( | int | fd, |
| char * | buf, | ||
| size_t | size | ||
| ) |
| [in] | fd | |
| [in] | buf | |
| [in] | size |
| int unlink | ( | const char * | file) |
| [in] | file |
| int unlinkat | ( | int | dirfd, |
| const char * | file, | ||
| int | flags | ||
| ) |
| [in] | dirfd | |
| [in] | file | |
| [in] | flags |
| [in] | fd | |
| [in] | buf | |
| [in] | size |
Definition at line 113 of file open.c.
References file::ctx, EFAULT, EINVAL, EPERM, thread::file_ctx, entry::nctx, entry::ninfo, ninfo::nops, pthread_self(), thread_file_ctx::table, and ninfo_ops::write.
Referenced by fflush(), and fputc().


| char* optarg |
| int opterr |
| int optind |
| int optopt |
1.8.4