Skip to content

Commit b433367

Browse files
authored
Merge pull request nasa#822 from skliper/fix770-rm_deprecated
Fix nasa#770, Remove deprecated elements
2 parents 2f6e54e + 38db4a3 commit b433367

File tree

13 files changed

+0
-661
lines changed

13 files changed

+0
-661
lines changed

src/os/inc/osapi-file.h

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -117,65 +117,6 @@ typedef enum
117117
* @{
118118
*/
119119

120-
#ifndef OSAL_OMIT_DEPRECATED
121-
122-
/*-------------------------------------------------------------------------------------*/
123-
/**
124-
* @brief Creates a file specified by path
125-
*
126-
* Creates a file specified by const char *path, with read/write
127-
* permissions by access. The file is also automatically opened by the
128-
* create call.
129-
*
130-
* @param[in] path File name to create
131-
* @param[in] access Intended access mode - see @ref OSFileAccess
132-
*
133-
* @note Valid handle IDs are never negative. Failure of this
134-
* call can be checked by testing if the result is less than 0.
135-
*
136-
* @return A file handle ID or appropriate error code, see @ref OSReturnCodes
137-
* @retval #OS_INVALID_POINTER if path is NULL
138-
* @retval #OS_FS_ERR_PATH_TOO_LONG if path exceeds the maximum number of chars
139-
* @retval #OS_FS_ERR_PATH_INVALID if path cannot be parsed
140-
* @retval #OS_FS_ERR_NAME_TOO_LONG if the name of the file is too long
141-
* @retval #OS_ERROR if permissions are unknown or OS call fails
142-
* @retval #OS_ERR_NO_FREE_IDS if there are no free file descriptors left
143-
*
144-
* @deprecated Replaced by OS_OpenCreate() with flags set to
145-
* OS_FILE_FLAG_CREATE | OS_FILE_FLAG_TRUNCATE.
146-
*/
147-
int32 OS_creat(const char *path, int32 access);
148-
149-
/*-------------------------------------------------------------------------------------*/
150-
/**
151-
* @brief Opens a file
152-
*
153-
* Opens a file.
154-
*
155-
* @param[in] path File name to create
156-
* @param[in] access Intended access mode - see @ref OSFileAccess
157-
* @param[in] mode The file permissions. This parameter is passed through to the
158-
* native open call, but will be ignored. The file mode (or permissions)
159-
* are ignored by the POSIX open call when the O_CREAT access flag is not passed in.
160-
*
161-
* @note Valid handle IDs are never negative. Failure of this
162-
* call can be checked by testing if the result is less than 0.
163-
*
164-
* @return A file handle ID or appropriate error code, see @ref OSReturnCodes
165-
* @retval #OS_INVALID_POINTER if path is NULL
166-
* @retval #OS_FS_ERR_PATH_TOO_LONG if path exceeds the maximum number of chars
167-
* @retval #OS_FS_ERR_PATH_INVALID if path cannot be parsed
168-
* @retval #OS_FS_ERR_NAME_TOO_LONG if the name of the file is too long
169-
* @retval #OS_ERROR if permissions are unknown or OS call fails
170-
* @retval #OS_ERR_NO_FREE_IDS if there are no free file descriptors left
171-
*
172-
* @deprecated Replaced by OS_OpenCreate() with flags set to
173-
* OS_FILE_FLAG_NONE.
174-
*/
175-
int32 OS_open(const char *path, int32 access, uint32 mode);
176-
177-
#endif
178-
179120
/*-------------------------------------------------------------------------------------*/
180121
/**
181122
* @brief Open or create a file

src/os/inc/osapi-filesys.h

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -188,52 +188,6 @@ int32 OS_rmfs(const char *devname);
188188
*/
189189
int32 OS_unmount(const char *mountpoint);
190190

191-
#ifndef OSAL_OMIT_DEPRECATED
192-
193-
/*-------------------------------------------------------------------------------------*/
194-
/**
195-
* @brief Obtain number of blocks free
196-
*
197-
* Returns the number of free blocks in a volume
198-
*
199-
* @param[in] name The device/path to operate on
200-
*
201-
* @return Block count or appropriate error code, see @ref OSReturnCodes
202-
* @retval #OS_INVALID_POINTER if name is NULL
203-
* @retval #OS_FS_ERR_PATH_TOO_LONG if the name is too long
204-
* @retval #OS_ERROR if the OS call failed
205-
*
206-
* @deprecated Replaced by OS_FileSysStatVolume() -
207-
* Value can be obtained by reading the "blocks_free" struct member.
208-
*
209-
*/
210-
int32 OS_fsBlocksFree(const char *name);
211-
212-
/*-------------------------------------------------------------------------------------*/
213-
/**
214-
* @brief Obtains the number of free bytes in a volume
215-
*
216-
* Returns the number of free bytes in a volume
217-
*
218-
* @note uses a 64 bit data type to support filesystems that
219-
* are greater than 4 Gigabytes
220-
*
221-
* @param[in] name The device/path to operate on
222-
* @param[out] bytes_free The number of free bytes
223-
*
224-
* @return Execution status, see @ref OSReturnCodes
225-
* @retval #OS_SUCCESS @copybrief OS_SUCCESS
226-
* @retval #OS_INVALID_POINTER if name is NULL
227-
* @retval #OS_FS_ERR_PATH_TOO_LONG if the name is too long
228-
* @retval #OS_ERROR if the OS call failed
229-
*
230-
* @deprecated Replaced by OS_FileSysStatVolume().
231-
* Value can be obtained by multiplying the "blocks_free" by the "block_size" struct members.
232-
*/
233-
int32 OS_fsBytesFree(const char *name, uint64 *bytes_free);
234-
235-
#endif /* OSAL_OMIT_DEPRECATED */
236-
237191
/*-------------------------------------------------------------------------------------*/
238192
/**
239193
* @brief Obtains information about size and free space in a volume

src/os/inc/osapi-os-core.h

Lines changed: 0 additions & 59 deletions
This file was deleted.

src/os/inc/osapi-os-filesys.h

Lines changed: 0 additions & 49 deletions
This file was deleted.

src/os/inc/osapi-os-loader.h

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/os/inc/osapi-os-net.h

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/os/inc/osapi-os-timer.h

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)