1 |
/* |
/* |
2 |
Copyright (C) 1994 Free Software Foundation |
Copyright (C) 1994,2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
5 |
modify it under the terms of the GNU General Public License as |
modify it under the terms of the GNU General Public License as |
16 |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ |
17 |
|
|
18 |
#include "priv.h" |
#include "priv.h" |
|
#include "fs_S.h" |
|
19 |
|
|
20 |
kern_return_t |
kern_return_t |
21 |
trivfs_S_file_getcontrol (struct trivfs_protid *cred, |
trivfs_S_file_getcontrol (struct trivfs_protid *cred, |
26 |
return EOPNOTSUPP; |
return EOPNOTSUPP; |
27 |
if (!cred->isroot) |
if (!cred->isroot) |
28 |
return EPERM; |
return EPERM; |
29 |
|
|
30 |
*cntl = ports_get_right (cred->po->cntl); |
*cntl = ports_get_right (cred->po->cntl); |
31 |
*cntltype = MACH_MSG_TYPE_MAKE_SEND; |
*cntltype = MACH_MSG_TYPE_MAKE_SEND; |
32 |
return 0; |
return 0; |