4.115
Last change
on this file since 78f4d6d7 was
78f4d6d7,
checked in by Sebastian Huber <sebastian.huber@…>, on 06/08/10 at 08:30:04
|
2010-06-08 Sebastian Huber <sebastian.huber@…>
- libfs/src/devfs/devclose.c, libfs/src/devfs/devopen.c,
libfs/src/imfs/deviceerrno.c, libfs/src/imfs/deviceio.c,
libfs/src/rfs/rtems-rfs-rtems-dev.c: Changed rtems_deviceio_errno() to
cope with a status code of RTEMS_SUCCESSFUL. Removed dependency on
association framework.
|
-
Property mode set to
100644
|
File size:
684 bytes
|
Line | |
---|
1 | /* |
---|
2 | * The license and distribution terms for this file may be |
---|
3 | * found in the file LICENSE in this distribution or at |
---|
4 | * http://www.rtems.com/license/LICENSE. |
---|
5 | * |
---|
6 | * $Id$ |
---|
7 | */ |
---|
8 | |
---|
9 | #if HAVE_CONFIG_H |
---|
10 | #include "config.h" |
---|
11 | #endif |
---|
12 | |
---|
13 | #include <rtems.h> |
---|
14 | #include <rtems/io.h> |
---|
15 | |
---|
16 | #include "devfs.h" |
---|
17 | |
---|
18 | int devFS_close( |
---|
19 | rtems_libio_t *iop |
---|
20 | ) |
---|
21 | { |
---|
22 | rtems_libio_open_close_args_t args; |
---|
23 | rtems_status_code status; |
---|
24 | rtems_device_name_t *np; |
---|
25 | |
---|
26 | np = (rtems_device_name_t *)iop->file_info; |
---|
27 | |
---|
28 | args.iop = iop; |
---|
29 | args.flags = 0; |
---|
30 | args.mode = 0; |
---|
31 | |
---|
32 | status = rtems_io_close( |
---|
33 | np->major, |
---|
34 | np->minor, |
---|
35 | (void *) &args |
---|
36 | ); |
---|
37 | |
---|
38 | return rtems_deviceio_errno(status); |
---|
39 | } |
---|
40 | |
---|
41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.