4.115
Last change
on this file since 9b4422a2 was
9b4422a2,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24
|
Remove All CVS Id Strings Possible Using a Script
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.
|
-
Property mode set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | /* |
---|
2 | * MSDOS shut down handler implementation |
---|
3 | * |
---|
4 | * Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia |
---|
5 | * Author: Eugeny S. Mints <Eugeny.Mints@oktet.ru> |
---|
6 | * |
---|
7 | * The license and distribution terms for this file may be |
---|
8 | * found in the file LICENSE in this distribution or at |
---|
9 | * http://www.rtems.com/license/LICENSE. |
---|
10 | */ |
---|
11 | |
---|
12 | #if HAVE_CONFIG_H |
---|
13 | #include "config.h" |
---|
14 | #endif |
---|
15 | |
---|
16 | #include <sys/types.h> |
---|
17 | #include <fcntl.h> |
---|
18 | #include <unistd.h> |
---|
19 | #include <stdlib.h> |
---|
20 | #include <stdio.h> |
---|
21 | |
---|
22 | #include <rtems.h> |
---|
23 | #include <rtems/libio_.h> |
---|
24 | |
---|
25 | #include "fat.h" |
---|
26 | #include "fat_fat_operations.h" |
---|
27 | #include "fat_file.h" |
---|
28 | |
---|
29 | #include "msdos.h" |
---|
30 | |
---|
31 | /* msdos_shut_down -- |
---|
32 | * Shut down MSDOS filesystem - free all allocated resources (don't |
---|
33 | * return if deallocation of some resource failed - free as much as |
---|
34 | * possible). |
---|
35 | * |
---|
36 | * PARAMETERS: |
---|
37 | * temp_mt_entry - mount table entry |
---|
38 | * |
---|
39 | */ |
---|
40 | void |
---|
41 | msdos_shut_down(rtems_filesystem_mount_table_entry_t *temp_mt_entry) |
---|
42 | { |
---|
43 | msdos_fs_info_t *fs_info = temp_mt_entry->fs_info; |
---|
44 | fat_file_fd_t *fat_fd = temp_mt_entry->mt_fs_root->location.node_access; |
---|
45 | |
---|
46 | /* close fat-file which correspondes to root directory */ |
---|
47 | fat_file_close(temp_mt_entry, fat_fd); |
---|
48 | |
---|
49 | fat_shutdown_drive(temp_mt_entry); |
---|
50 | |
---|
51 | rtems_semaphore_delete(fs_info->vol_sema); |
---|
52 | free(fs_info->cl_buf); |
---|
53 | free(temp_mt_entry->fs_info); |
---|
54 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.