/[hurd]/hurd/libtrivfs/file-getcontrol.c
ViewVC logotype

Diff of /hurd/libtrivfs/file-getcontrol.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by miles, Mon Nov 13 18:55:02 1995 UTC revision 1.8 by roland, Thu Jun 13 21:26:15 2002 UTC
# Line 1  Line 1 
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
# Line 16  Line 16 
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,
# Line 27  trivfs_S_file_getcontrol (struct trivfs_ Line 26  trivfs_S_file_getcontrol (struct trivfs_
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;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26