*/
#define SRV_FORK 101 /* to PM: special fork call for RS */
#define EXEC_RESTART 102 /* to PM: final part of exec for RS */
-#define PROCSTAT 103 /* to PM */
#define GETPROCNR 104 /* to PM */
#define ISSETUGID 106 /* to PM: ask if process is tainted */
#define GETEPINFO_O 107 /* to PM: get pid/uid/gid of an endpoint */
#include <minix/type.h>
#endif
-
-_PROTOTYPE( int getsigset, (sigset_t *sigset) );
_PROTOTYPE( int getprocnr, (void) );
_PROTOTYPE( int getnprocnr, (pid_t pid) );
_PROTOTYPE( int getpprocnr, (void) );
_getnprocnr.c \
_getpprocnr.c \
_getprocnr.c \
- _getsigset.c \
_lseek64.c \
_mapdriver.c \
_mcontext.c \
+++ /dev/null
-#include <lib.h>
-#define getsigset _getsigset
-#include <unistd.h>
-
-
-PUBLIC int getsigset(sp)
-sigset_t *sp; /* where to put it */
-{
- message m;
- m.m2_i1 = SELF; /* request own signal set */
- if (_syscall(PM_PROC_NR, PROCSTAT, &m) < 0) return(-1);
- *sp = m.m2_l1;
- return(0);
-}
-
getppid.S \
getpprocnr.S \
getprocnr.S \
- getsigset.S \
getuid.S \
ioctl.S \
isatty.S \
+++ /dev/null
-#include <machine/asm.h>
-
-IMPORT(_getsigset)
-ENTRY(getsigset)
- jmp _C_LABEL(_getsigset)
-
#if defined(_MINIX)
#include <minix/type.h>
-int getsigset(sigset_t *sigset);
int getprocnr(void);
int getnprocnr(pid_t pid);
int getpprocnr(void);
no_sys, /* 100 = (exec_newmem) */
no_sys, /* 101 = (srv_fork) */
no_sys, /* 102 = (exec_restart) */
- no_sys, /* 103 = (procstat) */
+ no_sys, /* 103 = unused */
no_sys, /* 104 = (getprocnr) */
no_sys, /* 105 = unused */
no_sys, /* 106 = unused */
* 31 Mar 2000
* The entry points into this file are:
* do_reboot: kill all processes, then reboot system
- * do_procstat: request process status (Jorrit N. Herder)
* do_getsysinfo: request copy of PM data structure (Jorrit N. Herder)
* do_getprocnr: lookup process slot number (Jorrit N. Herder)
* do_getepinfo: get the pid/uid/gid of a process given its endpoint
PUBLIC unsigned long calls_stats[NCALLS];
#endif
-/*===========================================================================*
- * do_procstat *
- *===========================================================================*/
-PUBLIC int do_procstat()
-{
- /* For the moment, this is only used to return pending signals to
- * system processes that request the PM for their own status.
- *
- * Future use might include the VFS requesting for process status of
- * any user process.
- */
-
- /* This call should be removed, or made more general. */
-
- if (m_in.stat_nr == SELF) {
- mp->mp_reply.sig_set = mp->mp_sigpending;
- (void) sigemptyset(&mp->mp_sigpending);
- (void) sigemptyset(&mp->mp_ksigpending);
- }
- else {
- return(ENOSYS);
- }
- return(OK);
-}
-
/*===========================================================================*
* do_sysuname *
*===========================================================================*/
/* misc.c */
_PROTOTYPE( int do_reboot, (void) );
-_PROTOTYPE( int do_procstat, (void) );
_PROTOTYPE( int do_sysuname, (void) );
_PROTOTYPE( int do_getsysinfo, (void) );
_PROTOTYPE( int do_getprocnr, (void) );
do_exec_newmem, /* 100 = exec_newmem */
do_srv_fork, /* 101 = srv_fork */
do_execrestart, /* 102 = exec_restart */
- do_procstat, /* 103 = procstat */
+ no_sys, /* 103 = unused */
do_getprocnr, /* 104 = getprocnr */
no_sys, /* 105 = unused */
do_get, /* 106 = issetugid */
no_sys, /* 100 = (exec_newmem) */
no_sys, /* 101 = (srv_fork) */
no_sys, /* 102 = (exec_restart) */
- no_sys, /* 103 = (procstat) */
+ no_sys, /* 103 = unused */
no_sys, /* 104 = (getprocnr) */
no_sys, /* 105 = unused */
no_sys, /* 106 = unused */