include/cxx/ctime: Remove gititimer and setitimer. These are prototyped in sys/time.h, not time.h. Alternatively, ctime could include sys/time.h. Those APIs should also be in the std namespace.

This commit is contained in:
Gregory Nutt 2019-11-13 14:01:25 -06:00
parent dbf266b9d4
commit ace25a78d9
2 changed files with 4 additions and 6 deletions

View File

@ -65,8 +65,6 @@ namespace std
using ::timer_settime;
using ::timer_gettime;
using ::timer_getoverrun;
using ::getitimer;
using ::setitimer;
}
#endif // __INCLUDE_CXX_CTIME

View File

@ -179,9 +179,9 @@ ssize_t getdelim(FAR char **lineptr, size_t *n, int delimiter,
{
FAR char *newbuffer;
/* This function should fail with EOVERFLOW if bufize exeeds
* SSIZE_MAX. However, I think we will have crashed long before
* that occurs.
/* This function should fail with EOVERFLOW if ncopied exceeds
* SSIZE_MAX. However, I think we will have failed a memory
* allocation or crashed long before that could occur.
*/
bufsize += BUFSIZE_INCR;
@ -250,7 +250,7 @@ errout:
*
* NOTE: Because of this functional definition, getline() will not work
* with on systems where multiple characters are used to denote the end
* of line such a CR-LF sequences. In that case, the CR will be
* of line such a CR-LF sequences. In that case, the CR would be
* transferred into the user buffer.
*
****************************************************************************/