Skip to content

Complete mbed_retarget FileHandle rework #5571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions platform/FileHandle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,4 @@ off_t FileHandle::size()
return size;
}

std::FILE *fdopen(FileHandle *fh, const char *mode)
{
return mbed_fdopen(fh, mode);
}

} // namespace mbed
12 changes: 0 additions & 12 deletions platform/FileHandle.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,18 +252,6 @@ class FileHandle : private NonCopyable<FileHandle> {
}
};

/** Not a member function
* This call is equivalent to posix fdopen().
* It associates a Stream to an already opened file descriptor (FileHandle)
*
* @param fh a pointer to an opened file descriptor
* @param mode operation upon the file descriptor, e.g., 'wb+'
*
* @returns a pointer to std::FILE
*/

std::FILE *fdopen(FileHandle *fh, const char *mode);

/**@}*/

/**@}*/
Expand Down
12 changes: 11 additions & 1 deletion platform/mbed_lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@
"name": "platform",
"config": {
"stdio-convert-newlines": {
"help": "Enable conversion to standard newlines on stdin/stdout",
"help": "Enable conversion to standard newlines on stdin/stdout/stderr",
"value": false
},

"stdio-convert-tty-newlines": {
"help": "Enable conversion to standard newlines on any tty FILE stream",
"value": false
},

"stdio-buffered-serial": {
"help": "Use UARTSerial driver to obtain buffered serial I/O on stdin/stdout/stderr. If false, unbuffered serial_getc and serial_putc are used directly.",
"value": false
},

Expand Down
Loading