#include "fs.h"#include <fcntl.h>#include <unistd.h>#include <minix/callnr.h>#include <minix/endpoint.h>#include <minix/com.h>#include <sys/svrctl.h>#include "buf.h"#include "file.h"#include "fproc.h"#include "inode.h"#include "param.h"#include "super.h"Include dependency graph for misc.c:

Go to the source code of this file.
Defines | |
| #define | FP_EXITING 1 |
Functions | |
| FORWARD | _PROTOTYPE (int free_proc,(struct fproc *freed, int flags)) |
| PUBLIC int | do_getsysinfo () |
| PUBLIC int | do_dup () |
| PUBLIC int | do_fcntl () |
| PUBLIC int | do_sync () |
| PUBLIC int | do_fsync () |
| PUBLIC int | do_reboot () |
| PUBLIC int | do_fork () |
| PUBLIC int | do_exec () |
| PRIVATE int | free_proc (struct fproc *exiter, int flags) |
| PUBLIC int | do_exit () |
| PUBLIC int | do_set () |
| PUBLIC int | do_revive () |
| PUBLIC int | do_svrctl () |
|
|
|
|
||||||||||||
|
|
|
|
Definition at line 76 of file misc.c. References do_close(), dummy, DUP_MASK, EBADF, err_code, f, FD_SET, fp, get_fd(), get_filp(), m_in, NIL_FILP, OK, and r. |
|
|
Definition at line 358 of file misc.c. References bitmap, do_close(), EGENERIC, fp, i, if(), m_in, okendpt, PM_PROC_NR, and who_e. |
|
|
Definition at line 477 of file misc.c. References EGENERIC, free_proc(), m_in, okendpt, PM_PROC_NR, and who_e. |
|
|
Definition at line 115 of file misc.c. References dummy, EINVAL, err_code, f, F_DUPFD, F_FREESP, F_GETFD, F_GETFL, F_GETLK, F_SETFD, F_SETFL, F_SETLK, F_SETLKW, FD_CLOEXEC, fp, freesp_inode(), get_fd(), get_filp(), I_REGULAR, I_TYPE, L, lock_op(), long(), m_in, NIL_FILP, O_ACCMODE, O_APPEND, O_NONBLOCK, offset, OK, r, SEEK_CUR, SEEK_END, SEEK_SET, SELF, start, sys_datacopy, truncate_inode(), and who_e. |
|
|
Definition at line 301 of file misc.c. References _ENDPOINT_P, cp, dup_inode(), EGENERIC, fproc::fp_pid, i, m_in, NIL_FILP, NR_PROCS, OK, okendpt, panic, PID_FREE, PM_PROC_NR, printf, and who_e. |
|
|
|
|
|
Definition at line 41 of file misc.c. References EINVAL, if(), m_in, NR_DEVICES, NR_PROCS, OK, proc_addr, s, SELF, SI_DMAP_TAB, SI_PROC_ADDR, SI_PROC_TAB, sys_datacopy, and who_e. |
|
|
Definition at line 257 of file misc.c. References dummy, EGENERIC, i, m_in, NO_DEV, NONE, NR_PROCS, NR_SUPERS, PM_PROC_NR, put_inode(), sp, unmount(), and who_e. |
|
|
|
|
|
Definition at line 494 of file misc.c. References call_nr, EGENERIC, fproc::fp_effgid, fproc::fp_effuid, fproc::fp_realgid, fproc::fp_realuid, m_in, OK, okendpt, PM_PROC_NR, SETGID, SETUID, and who_e. |
|
|
Definition at line 538 of file misc.c. References BYTE, dev_up(), device, DMAP_BABY, EINVAL, EPERM, fp, FS_PROC_NR, FSDEVUNMAP, FSSIGNON, isokendpt, m_in, MAJOR, major, map_driver(), NONE, OK, r, SERVERS_UID, SU_UID, sys_datacopy, and who_e. |
|
|
Definition at line 221 of file misc.c. References bp, DIRTY, flushall(), inode::i_count, inode::i_dirt, NO_DEV, NR_BUFS, NR_INODES, OK, rw_inode(), and WRITING. Referenced by do_close(), do_fsync(), main(), and panic(). |
|
||||||||||||
|
Definition at line 398 of file misc.c. References dev, do_close(), do_unpause(), fp, i, m_in, NOT_SUSPENDED, susp_count, SUSPENDED, XPIPE, and XPOPEN. Referenced by do_exit(). |
1.4.6