1 |
|
|
/**************************************************************************/ |
2 |
|
|
/* */ |
3 |
|
|
/* Copyright (c) Microsoft Corporation. All rights reserved. */ |
4 |
|
|
/* */ |
5 |
|
|
/* This software is licensed under the Microsoft Software License */ |
6 |
|
|
/* Terms for Microsoft Azure RTOS. Full text of the license can be */ |
7 |
|
|
/* found in the LICENSE file at https://aka.ms/AzureRTOS_EULA */ |
8 |
|
|
/* and in the root directory of this software. */ |
9 |
|
|
/* */ |
10 |
|
|
/**************************************************************************/ |
11 |
|
|
|
12 |
|
|
|
13 |
|
|
/**************************************************************************/ |
14 |
|
|
/**************************************************************************/ |
15 |
|
|
/** */ |
16 |
|
|
/** FileX Component */ |
17 |
|
|
/** */ |
18 |
|
|
/** Directory */ |
19 |
|
|
/** */ |
20 |
|
|
/**************************************************************************/ |
21 |
|
|
/**************************************************************************/ |
22 |
|
|
|
23 |
|
|
#define FX_SOURCE_CODE |
24 |
|
|
|
25 |
|
|
|
26 |
|
|
/* Include necessary system files. */ |
27 |
|
|
|
28 |
|
|
#include "fx_api.h" |
29 |
|
|
#include "fx_directory.h" |
30 |
|
|
|
31 |
|
|
FX_CALLER_CHECKING_EXTERNS |
32 |
|
|
|
33 |
|
|
|
34 |
|
|
/**************************************************************************/ |
35 |
|
|
/* */ |
36 |
|
|
/* FUNCTION RELEASE */ |
37 |
|
|
/* */ |
38 |
|
|
/* _fxe_directory_next_full_entry_find PORTABLE C */ |
39 |
|
|
/* 6.1 */ |
40 |
|
|
/* AUTHOR */ |
41 |
|
|
/* */ |
42 |
|
|
/* William E. Lamie, Microsoft Corporation */ |
43 |
|
|
/* */ |
44 |
|
|
/* DESCRIPTION */ |
45 |
|
|
/* */ |
46 |
|
|
/* This function checks the next directory full entry find call for */ |
47 |
|
|
/* errors. */ |
48 |
|
|
/* */ |
49 |
|
|
/* INPUT */ |
50 |
|
|
/* */ |
51 |
|
|
/* media_ptr Media control block pointer */ |
52 |
|
|
/* directory_name Destination for directory */ |
53 |
|
|
/* name */ |
54 |
|
|
/* attributes Destination for attributes */ |
55 |
|
|
/* size Destination for size */ |
56 |
|
|
/* year Destination for year */ |
57 |
|
|
/* month Destination for month */ |
58 |
|
|
/* day Destination for day */ |
59 |
|
|
/* hour Destination for hour */ |
60 |
|
|
/* minute Destination for minute */ |
61 |
|
|
/* second Destination for second */ |
62 |
|
|
/* */ |
63 |
|
|
/* OUTPUT */ |
64 |
|
|
/* */ |
65 |
|
|
/* return status */ |
66 |
|
|
/* */ |
67 |
|
|
/* CALLS */ |
68 |
|
|
/* */ |
69 |
|
|
/* _fx_directory_next_full_entry_find Actual full entry find service*/ |
70 |
|
|
/* */ |
71 |
|
|
/* CALLED BY */ |
72 |
|
|
/* */ |
73 |
|
|
/* Application Code */ |
74 |
|
|
/* */ |
75 |
|
|
/* RELEASE HISTORY */ |
76 |
|
|
/* */ |
77 |
|
|
/* DATE NAME DESCRIPTION */ |
78 |
|
|
/* */ |
79 |
|
|
/* 05-19-2020 William E. Lamie Initial Version 6.0 */ |
80 |
|
|
/* 09-30-2020 William E. Lamie Modified comment(s), */ |
81 |
|
|
/* resulting in version 6.1 */ |
82 |
|
|
/* */ |
83 |
|
|
/**************************************************************************/ |
84 |
|
453 |
UINT _fxe_directory_next_full_entry_find(FX_MEDIA *media_ptr, |
85 |
|
|
CHAR *directory_name, UINT *attributes, ULONG *size, |
86 |
|
|
UINT *year, UINT *month, UINT *day, UINT *hour, UINT *minute, UINT *second) |
87 |
|
|
{ |
88 |
|
|
|
89 |
|
|
UINT status; |
90 |
|
|
|
91 |
|
|
|
92 |
|
|
/* Check for a null media pointer. */ |
93 |
✓✓ |
453 |
if (media_ptr == FX_NULL) |
94 |
|
|
{ |
95 |
|
1 |
return(FX_PTR_ERROR); |
96 |
|
|
} |
97 |
|
|
|
98 |
|
|
/* Check for a valid caller. */ |
99 |
✓✓✓✓ ✓✓ |
452 |
FX_CALLER_CHECKING_CODE |
100 |
|
|
|
101 |
|
|
/* Call actual next directory full entry find service. */ |
102 |
|
44 |
status = _fx_directory_next_full_entry_find(media_ptr, directory_name, |
103 |
|
|
attributes, size, year, month, day, hour, minute, second); |
104 |
|
|
|
105 |
|
|
/* Return status to the caller. */ |
106 |
|
44 |
return(status); |
107 |
|
|
} |
108 |
|
|
|