Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
ab208b71
Commit
ab208b71
authored
8 years ago
by
Deomid Ryabkov
Committed by
Cesanta Bot
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not define rename() when compiling with TI libc
PUBLISHED_FROM=e9878fc5d55b0b2da854573a7a84e8e14e2f301d
parent
68dd8d27
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
sdk.version
examples/CC3200/sdk.version
+1
-1
mongoose.c
mongoose.c
+2
-0
No files found.
examples/CC3200/sdk.version
View file @
ab208b71
docker.cesanta.com:5000/cc3200-build:1.2.0-r
3
docker.cesanta.com:5000/cc3200-build:1.2.0-r
5
This diff is collapsed.
Click to expand it.
mongoose.c
View file @
ab208b71
...
@@ -10192,6 +10192,7 @@ ssize_t _write(int fd, const void *buf, size_t count) {
...
@@ -10192,6 +10192,7 @@ ssize_t _write(int fd, const void *buf, size_t count) {
* On Newlib we override rename directly too, because the default
* On Newlib we override rename directly too, because the default
* implementation using _link and _unlink doesn't work for us.
* implementation using _link and _unlink doesn't work for us.
*/
*/
#if MG_TI_NO_HOST_INTERFACE || defined(_NEWLIB_VERSION)
int
rename
(
const
char
*
from
,
const
char
*
to
)
{
int
rename
(
const
char
*
from
,
const
char
*
to
)
{
int
r
=
-
1
;
int
r
=
-
1
;
from
=
drop_dir
(
from
);
from
=
drop_dir
(
from
);
...
@@ -10208,6 +10209,7 @@ int rename(const char *from, const char *to) {
...
@@ -10208,6 +10209,7 @@ int rename(const char *from, const char *to) {
DBG
((
"rename(%s, %s) = %d"
,
from
,
to
,
r
));
DBG
((
"rename(%s, %s) = %d"
,
from
,
to
,
r
));
return
r
;
return
r
;
}
}
#endif
/* MG_TI_NO_HOST_INTERFACE || defined(_NEWLIB_VERSION) */
#if MG_TI_NO_HOST_INTERFACE
#if MG_TI_NO_HOST_INTERFACE
int
unlink
(
const
char
*
filename
)
{
int
unlink
(
const
char
*
filename
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment