1 |
/* Socket I/O operations |
/* Socket I/O operations |
2 |
|
|
3 |
Copyright (C) 1995, 1996, 1998, 1999, 2000 Free Software Foundation, Inc. |
Copyright (C) 1995,96,98,99,2000,02 Free Software Foundation, Inc. |
4 |
|
Written by Miles Bader <miles@gnu.org> |
|
Written by Miles Bader <miles@gnu.ai.mit.edu> |
|
5 |
|
|
6 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
7 |
modify it under the terms of the GNU General Public License as |
modify it under the terms of the GNU General Public License as |
391 |
uid_t *uids = uids_buf, *aux_uids = aux_uids_buf; |
uid_t *uids = uids_buf, *aux_uids = aux_uids_buf; |
392 |
gid_t gids_buf[NIDS], aux_gids_buf[NIDS]; |
gid_t gids_buf[NIDS], aux_gids_buf[NIDS]; |
393 |
gid_t *gids = gids_buf, *aux_gids = aux_gids_buf; |
gid_t *gids = gids_buf, *aux_gids = aux_gids_buf; |
394 |
unsigned num_uids = NIDS, num_aux_uids = NIDS; |
size_t num_uids = NIDS, num_aux_uids = NIDS; |
395 |
unsigned num_gids = NIDS, num_aux_gids = NIDS; |
size_t num_gids = NIDS, num_aux_gids = NIDS; |
396 |
|
|
397 |
if (!user) |
if (!user) |
398 |
return EOPNOTSUPP; |
return EOPNOTSUPP; |
436 |
S_io_restrict_auth (struct sock_user *user, |
S_io_restrict_auth (struct sock_user *user, |
437 |
mach_port_t *new_port, |
mach_port_t *new_port, |
438 |
mach_msg_type_name_t *new_port_type, |
mach_msg_type_name_t *new_port_type, |
439 |
uid_t *uids, unsigned num_uids, |
uid_t *uids, size_t num_uids, |
440 |
uid_t *gids, unsigned num_gids) |
uid_t *gids, size_t num_gids) |
441 |
{ |
{ |
442 |
if (!user) |
if (!user) |
443 |
return EOPNOTSUPP; |
return EOPNOTSUPP; |