mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-25 12:11:10 +00:00
hurd: Make RPC input array parameters const
This follows mig's cf4bcc3f1435 ("Also add const qualifiers on server side")
This commit is contained in:
parent
41a11a5e83
commit
0eb230ccce
@ -165,8 +165,8 @@ _S_msg_add_auth (mach_port_t me,
|
|||||||
kern_return_t
|
kern_return_t
|
||||||
_S_msg_del_auth (mach_port_t me,
|
_S_msg_del_auth (mach_port_t me,
|
||||||
task_t task,
|
task_t task,
|
||||||
intarray_t uids, mach_msg_type_number_t nuids,
|
const_intarray_t uids, mach_msg_type_number_t nuids,
|
||||||
intarray_t gids, mach_msg_type_number_t ngids)
|
const_intarray_t gids, mach_msg_type_number_t ngids)
|
||||||
{
|
{
|
||||||
error_t err;
|
error_t err;
|
||||||
auth_t newauth;
|
auth_t newauth;
|
||||||
|
@ -93,7 +93,7 @@ _S_msg_get_init_ports (mach_port_t msgport, mach_port_t auth,
|
|||||||
|
|
||||||
kern_return_t
|
kern_return_t
|
||||||
_S_msg_set_init_ports (mach_port_t msgport, mach_port_t auth,
|
_S_msg_set_init_ports (mach_port_t msgport, mach_port_t auth,
|
||||||
mach_port_t *ports, mach_msg_type_number_t nports)
|
const mach_port_t *ports, mach_msg_type_number_t nports)
|
||||||
{
|
{
|
||||||
mach_msg_type_number_t i;
|
mach_msg_type_number_t i;
|
||||||
error_t err;
|
error_t err;
|
||||||
@ -243,7 +243,7 @@ _S_msg_set_init_int (mach_port_t msgport, mach_port_t auth,
|
|||||||
|
|
||||||
kern_return_t
|
kern_return_t
|
||||||
_S_msg_set_init_ints (mach_port_t msgport, mach_port_t auth,
|
_S_msg_set_init_ints (mach_port_t msgport, mach_port_t auth,
|
||||||
int *values, mach_msg_type_number_t nvalues)
|
const int *values, mach_msg_type_number_t nvalues)
|
||||||
{
|
{
|
||||||
error_t err;
|
error_t err;
|
||||||
mach_msg_type_number_t i;
|
mach_msg_type_number_t i;
|
||||||
@ -295,7 +295,7 @@ _S_msg_set_fd (mach_port_t msgport, mach_port_t auth,
|
|||||||
|
|
||||||
kern_return_t
|
kern_return_t
|
||||||
_S_msg_get_env_variable (mach_port_t msgport,
|
_S_msg_get_env_variable (mach_port_t msgport,
|
||||||
string_t variable, //
|
const_string_t variable, //
|
||||||
char **data, mach_msg_type_number_t *datalen)
|
char **data, mach_msg_type_number_t *datalen)
|
||||||
{
|
{
|
||||||
error_t err;
|
error_t err;
|
||||||
@ -322,8 +322,8 @@ _S_msg_get_env_variable (mach_port_t msgport,
|
|||||||
|
|
||||||
kern_return_t
|
kern_return_t
|
||||||
_S_msg_set_env_variable (mach_port_t msgport, mach_port_t auth,
|
_S_msg_set_env_variable (mach_port_t msgport, mach_port_t auth,
|
||||||
string_t variable, //
|
const_string_t variable, //
|
||||||
string_t value, //
|
const_string_t value, //
|
||||||
int replace)
|
int replace)
|
||||||
{
|
{
|
||||||
AUTHCHECK;
|
AUTHCHECK;
|
||||||
@ -367,7 +367,7 @@ _S_msg_get_environment (mach_port_t msgport,
|
|||||||
|
|
||||||
kern_return_t
|
kern_return_t
|
||||||
_S_msg_set_environment (mach_port_t msgport, mach_port_t auth,
|
_S_msg_set_environment (mach_port_t msgport, mach_port_t auth,
|
||||||
char *data, mach_msg_type_number_t datalen)
|
const char *data, mach_msg_type_number_t datalen)
|
||||||
{
|
{
|
||||||
int _hurd_split_args (char *, mach_msg_type_number_t, char **);
|
int _hurd_split_args (char *, mach_msg_type_number_t, char **);
|
||||||
int envc;
|
int envc;
|
||||||
@ -441,6 +441,6 @@ out:
|
|||||||
kern_return_t
|
kern_return_t
|
||||||
_S_msg_set_dtable (mach_port_t process,
|
_S_msg_set_dtable (mach_port_t process,
|
||||||
mach_port_t refport,
|
mach_port_t refport,
|
||||||
portarray_t dtable,
|
const_portarray_t dtable,
|
||||||
mach_msg_type_number_t dtableCnt)
|
mach_msg_type_number_t dtableCnt)
|
||||||
{ return EOPNOTSUPP; }
|
{ return EOPNOTSUPP; }
|
||||||
|
@ -234,7 +234,7 @@ _S_msg_report_wait (mach_port_t msgport, thread_t thread,
|
|||||||
|
|
||||||
kern_return_t
|
kern_return_t
|
||||||
_S_msg_describe_ports (mach_port_t msgport, mach_port_t refport,
|
_S_msg_describe_ports (mach_port_t msgport, mach_port_t refport,
|
||||||
mach_port_t *ports, mach_msg_type_number_t nports,
|
const mach_port_t *ports, mach_msg_type_number_t nports,
|
||||||
char **desc, mach_msg_type_number_t *desclen)
|
char **desc, mach_msg_type_number_t *desclen)
|
||||||
{
|
{
|
||||||
char *p, *end;
|
char *p, *end;
|
||||||
|
Loading…
Reference in New Issue
Block a user