@@ -117,65 +117,6 @@ typedef enum
117
117
* @{
118
118
*/
119
119
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
-
179
120
/*-------------------------------------------------------------------------------------*/
180
121
/**
181
122
* @brief Open or create a file
0 commit comments