minix/minix/include/sys/svrctl.h
David van Moolenbroek f737eea636 svrctl(2) update
- synchronize request type with ioctl by making it unsigned long;
- unbreak VFS requests, as they were being sent to PM;
- use proper ioctl direction flags (and new numbers) for requests;
- remove some needless header inclusions;
- svrctl is in libc, make its message name reflect this;
- keep backward compatibility: svrctl is part of the userland ABI.

Change-Id: I44902e8d0d11b8ebc1ef3bda94d2202481743c9b
2014-09-29 16:15:21 +00:00

36 lines
942 B
C

/*
sys/svrctl.h
Created: Feb 15, 1994 by Philip Homburg <philip@cs.vu.nl>
*/
#ifndef _SYS__SVRCTL_H
#define _SYS__SVRCTL_H
#include <sys/types.h>
/* Server control commands have the same encoding as the commands for ioctls. */
#include <minix/ioctl.h>
/* PM controls. */
#define PMGETPARAM _IOWR('P', 0, struct sysgetenv)
#define PMSETPARAM _IOW('P', 1, struct sysgetenv)
#define OPMGETPARAM _IOW('M', 5, struct sysgetenv) /* old, phasing out */
#define OPMSETPARAM _IOR('M', 7, struct sysgetenv) /* old, phasing out */
/* VFS controls */
#define VFSGETPARAM _IOWR('F', 0, struct sysgetenv)
#define VFSSETPARAM _IOW('F', 1, struct sysgetenv)
struct sysgetenv {
char *key; /* Name requested. */
size_t keylen; /* Length of name including \0. */
char *val; /* Buffer for returned data. */
size_t vallen; /* Size of return data buffer. */
};
int svrctl(unsigned long _request, void *_data);
#endif /* _SYS__SVRCTL_H */