mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-02 17:15:34 +08:00
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
38 lines
632 B
C
38 lines
632 B
C
/*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rtems.com/license/LICENSE.
|
|
*/
|
|
|
|
#if HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
#include <rtems.h>
|
|
#include <rtems/io.h>
|
|
|
|
#include "devfs.h"
|
|
|
|
int devFS_close(
|
|
rtems_libio_t *iop
|
|
)
|
|
{
|
|
rtems_libio_open_close_args_t args;
|
|
rtems_status_code status;
|
|
const devFS_node *np = iop->pathinfo.node_access;
|
|
|
|
args.iop = iop;
|
|
args.flags = 0;
|
|
args.mode = 0;
|
|
|
|
status = rtems_io_close(
|
|
np->major,
|
|
np->minor,
|
|
(void *) &args
|
|
);
|
|
|
|
return rtems_deviceio_errno(status);
|
|
}
|
|
|
|
|