mkfs: symlink support
[minix.git] / kernel / system / do_statectl.c
blob88818dd093429c51f535a4c846a814a4fd24431c
1 /* The kernel call implemented in this file:
2 * m_type: SYS_STATECTL
4 * The parameters for this kernel call are:
5 * m2_i2: CTL_REQUEST (state control request)
6 */
8 #include "kernel/system.h"
10 #if USE_STATECTL
12 /*===========================================================================*
13 * do_statectl *
14 *===========================================================================*/
15 int do_statectl(struct proc * caller, message * m_ptr)
17 /* Handle sys_statectl(). A process has issued a state control request. */
19 switch(m_ptr->CTL_REQUEST)
21 case SYS_STATE_CLEAR_IPC_REFS:
22 /* Clear IPC references for all the processes communicating
23 * with the caller.
25 clear_ipc_refs(caller, EDEADSRCDST);
26 return(OK);
27 default:
28 printf("do_statectl: bad request %d\n", m_ptr->CTL_REQUEST);
29 return EINVAL;
33 #endif /* USE_STATECTL */