Remove obsolete PROCSTAT/getsigset call.

This commit is contained in:
David van Moolenbroek 2012-01-12 23:33:46 +01:00
parent 2fe79d0b76
commit 8cb7ba7951
12 changed files with 3 additions and 57 deletions

View file

@ -98,7 +98,6 @@
*/
#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 */

View file

@ -184,8 +184,6 @@ _PROTOTYPE( char *crypt, (const char *_key, const char *_salt) );
#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) );

View file

@ -19,7 +19,6 @@ SRCS+= \
_getnprocnr.c \
_getpprocnr.c \
_getprocnr.c \
_getsigset.c \
_lseek64.c \
_mapdriver.c \
_mcontext.c \

View file

@ -1,15 +0,0 @@
#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);
}

View file

@ -55,7 +55,6 @@ SRCS+= \
getppid.S \
getpprocnr.S \
getprocnr.S \
getsigset.S \
getuid.S \
ioctl.S \
isatty.S \

View file

@ -1,6 +0,0 @@
#include <machine/asm.h>
IMPORT(_getsigset)
ENTRY(getsigset)
jmp _C_LABEL(_getsigset)

View file

@ -310,7 +310,6 @@ int lseek64(int fd, u64_t _offset, int _whence, u64_t *_newpos);
#if defined(_MINIX)
#include <minix/type.h>
int getsigset(sigset_t *sigset);
int getprocnr(void);
int getnprocnr(pid_t pid);
int getpprocnr(void);

View file

@ -118,7 +118,7 @@ PUBLIC _PROTOTYPE (int (*call_vec[]), (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 */

View file

@ -2,7 +2,6 @@
* 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
@ -60,31 +59,6 @@ PRIVATE char *uts_tbl[] = {
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 *
*===========================================================================*/

View file

@ -56,7 +56,6 @@ _PROTOTYPE( int do_setmcontext, (void) );
/* 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) );

View file

@ -114,7 +114,7 @@ _PROTOTYPE (int (*call_vec[]), (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 */

View file

@ -118,7 +118,7 @@ PUBLIC _PROTOTYPE (int (*call_vec[]), (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 */