1 |
/* Fetching identity port |
/* Fetching identity port |
2 |
Copyright (C) 1996 Free Software Foundation, Inc. |
Copyright (C) 1996,2002 Free Software Foundation, Inc. |
3 |
Written by Michael I. Bushnell, p/BSG. |
Written by Michael I. Bushnell, p/BSG. |
4 |
|
|
5 |
This file is part of the GNU Hurd. |
This file is part of the GNU Hurd. |
29 |
mach_msg_type_name_t *idport_type, |
mach_msg_type_name_t *idport_type, |
30 |
mach_port_t *fsidport, |
mach_port_t *fsidport, |
31 |
mach_msg_type_name_t *fsidport_type, |
mach_msg_type_name_t *fsidport_type, |
32 |
int *fileno) |
ino_t *fileno) |
33 |
{ |
{ |
34 |
error_t err; |
error_t err; |
35 |
struct stat st; |
struct stat st; |
36 |
|
|
37 |
if (!cred) |
if (!cred) |
38 |
return EOPNOTSUPP; |
return EOPNOTSUPP; |
39 |
|
|
40 |
err = io_stat (cred->realnode, &st); |
err = io_stat (cred->realnode, &st); |
41 |
if (err) |
if (err) |
42 |
return err; |
return err; |