Update some C++ header files
This commit is contained in:
parent
2325ea4a45
commit
6bcace62a8
13
TODO
13
TODO
@ -23,7 +23,7 @@ nuttx/:
|
|||||||
(4) USB (drivers/usbdev, drivers/usbhost)
|
(4) USB (drivers/usbdev, drivers/usbhost)
|
||||||
(0) Other drivers (drivers/)
|
(0) Other drivers (drivers/)
|
||||||
(12) Libraries (libc/, libm/)
|
(12) Libraries (libc/, libm/)
|
||||||
(11) File system/Generic drivers (fs/, drivers/)
|
(10) File system/Generic drivers (fs/, drivers/)
|
||||||
(9) Graphics Subsystem (graphics/)
|
(9) Graphics Subsystem (graphics/)
|
||||||
(2) Build system / Toolchains
|
(2) Build system / Toolchains
|
||||||
(3) Linux/Cywgin simulation (arch/sim)
|
(3) Linux/Cywgin simulation (arch/sim)
|
||||||
@ -1463,7 +1463,7 @@ o File system / Generic drivers (fs/, drivers/)
|
|||||||
file descriptors could lie in the same range.
|
file descriptors could lie in the same range.
|
||||||
|
|
||||||
Another example of how the current implementation limits
|
Another example of how the current implementation limits
|
||||||
functionality: I recently started an implement of the FILEMAX
|
functionality: I recently started to implement of the FILEMAX
|
||||||
(using pctl() instead sysctl()). My objective was to be able
|
(using pctl() instead sysctl()). My objective was to be able
|
||||||
to control the number of available file descriptors on a task-
|
to control the number of available file descriptors on a task-
|
||||||
by-task basis. The complexity due to the partitioning of
|
by-task basis. The complexity due to the partitioning of
|
||||||
@ -1495,15 +1495,6 @@ o File system / Generic drivers (fs/, drivers/)
|
|||||||
Status: Open
|
Status: Open
|
||||||
Priority: Low
|
Priority: Low
|
||||||
|
|
||||||
Title: FAT LONG FILENAME COMPATIBILITY
|
|
||||||
Description: Recently there have been reports that file with long file
|
|
||||||
names created by NuttX don't have long file names when viewed
|
|
||||||
on Windows. The long file name support has been around for a
|
|
||||||
long time and I don't ever having seen this before so I am
|
|
||||||
suspecting that some evil has crept in.
|
|
||||||
Status: Open
|
|
||||||
Priority: Medium
|
|
||||||
|
|
||||||
Title: MISSING FILES IN NSH 'LS' OF A DIRECTORY
|
Title: MISSING FILES IN NSH 'LS' OF A DIRECTORY
|
||||||
Description: I have seen cases where (1) long file names are enabled,
|
Description: I have seen cases where (1) long file names are enabled,
|
||||||
but (2) a short file name is created like:
|
but (2) a short file name is created like:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//***************************************************************************
|
//***************************************************************************
|
||||||
// include/cxx/cstdio
|
// include/cxx/cstdio
|
||||||
//
|
//
|
||||||
// Copyright (C) 2009, 2014 Gregory Nutt. All rights reserved.
|
// Copyright (C) 2009, 2014, 2017 Gregory Nutt. All rights reserved.
|
||||||
// Author: Gregory Nutt <gnutt@nuttx.org>
|
// Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
//
|
//
|
||||||
// Redistribution and use in source and binary forms, with or without
|
// Redistribution and use in source and binary forms, with or without
|
||||||
@ -69,6 +69,7 @@ namespace std
|
|||||||
using ::fputc;
|
using ::fputc;
|
||||||
using ::fputs;
|
using ::fputs;
|
||||||
using ::fread;
|
using ::fread;
|
||||||
|
using ::freopen;
|
||||||
using ::fseek;
|
using ::fseek;
|
||||||
using ::fsetpos;
|
using ::fsetpos;
|
||||||
using ::ftell;
|
using ::ftell;
|
||||||
@ -105,6 +106,7 @@ namespace std
|
|||||||
|
|
||||||
using ::tmpnam;
|
using ::tmpnam;
|
||||||
using ::tempnam;
|
using ::tempnam;
|
||||||
|
using ::remove;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // __INCLUDE_CXX_CSTDIO
|
#endif // __INCLUDE_CXX_CSTDIO
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//***************************************************************************
|
//***************************************************************************
|
||||||
// include/cxx/cstdlib
|
// include/cxx/cstdlib
|
||||||
//
|
//
|
||||||
// Copyright (C) 2009, 2012, 2015-2016 Gregory Nutt. All rights reserved.
|
// Copyright (C) 2009, 2012, 2015-2017 Gregory Nutt. All rights reserved.
|
||||||
// Author: Gregory Nutt <gnutt@nuttx.org>
|
// Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
//
|
//
|
||||||
// Redistribution and use in source and binary forms, with or without
|
// Redistribution and use in source and binary forms, with or without
|
||||||
@ -90,12 +90,25 @@ namespace std
|
|||||||
using ::strtoll;
|
using ::strtoll;
|
||||||
using ::strtoull;
|
using ::strtoull;
|
||||||
#endif
|
#endif
|
||||||
|
using ::strtof;
|
||||||
|
#ifdef CONFIG_HAVE_DOUBLE
|
||||||
using ::strtod;
|
using ::strtod;
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_HAVE_LONG_DOUBLE
|
||||||
|
using ::strtold;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Binary to string conversions
|
// Binary to string conversions
|
||||||
|
|
||||||
using ::itoa;
|
using ::itoa;
|
||||||
|
|
||||||
|
// Wide character operations
|
||||||
|
|
||||||
|
#ifdef CONFIG_LIBC_WCHAR
|
||||||
|
using ::mbtowc;
|
||||||
|
using ::wctomb;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Memory Management
|
// Memory Management
|
||||||
|
|
||||||
using ::malloc;
|
using ::malloc;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//***************************************************************************
|
//***************************************************************************
|
||||||
// include/cxx/cstring
|
// include/cxx/cstring
|
||||||
//
|
//
|
||||||
// Copyright (C) 2009-2012 Gregory Nutt. All rights reserved.
|
// Copyright (C) 2009-2012, 2017 Gregory Nutt. All rights reserved.
|
||||||
// Author: Gregory Nutt <gnutt@nuttx.org>
|
// Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
//
|
//
|
||||||
// Redistribution and use in source and binary forms, with or without
|
// Redistribution and use in source and binary forms, with or without
|
||||||
@ -62,6 +62,8 @@ namespace std
|
|||||||
using ::strncmp;
|
using ::strncmp;
|
||||||
using ::strcasecmp;
|
using ::strcasecmp;
|
||||||
using ::strncasecmp;
|
using ::strncasecmp;
|
||||||
|
using ::strcoll;
|
||||||
|
using ::stpcpy;
|
||||||
using ::strcpy;
|
using ::strcpy;
|
||||||
using ::strncpy;
|
using ::strncpy;
|
||||||
using ::strpbrk;
|
using ::strpbrk;
|
||||||
@ -73,6 +75,7 @@ namespace std
|
|||||||
using ::strcasestr;
|
using ::strcasestr;
|
||||||
using ::strtok;
|
using ::strtok;
|
||||||
using ::strtok_r;
|
using ::strtok_r;
|
||||||
|
using ::strxfrm;
|
||||||
|
|
||||||
using ::memchr;
|
using ::memchr;
|
||||||
using ::memccpy;
|
using ::memccpy;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//***************************************************************************
|
//***************************************************************************
|
||||||
// include/cxx/cunistd
|
// include/cxx/cunistd
|
||||||
//
|
//
|
||||||
// Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
// Copyright (C) 2012, 2017 Gregory Nutt. All rights reserved.
|
||||||
// Author: Gregory Nutt <gnutt@nuttx.org>
|
// Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
//
|
//
|
||||||
// Redistribution and use in source and binary forms, with or without
|
// Redistribution and use in source and binary forms, with or without
|
||||||
@ -48,10 +48,17 @@
|
|||||||
|
|
||||||
namespace std
|
namespace std
|
||||||
{
|
{
|
||||||
|
// Task control interfaces
|
||||||
|
|
||||||
|
using ::vfork;
|
||||||
using ::getpid;
|
using ::getpid;
|
||||||
using ::_exit;
|
using ::_exit;
|
||||||
using ::sleep;
|
using ::sleep;
|
||||||
using ::usleep;
|
using ::usleep;
|
||||||
|
using ::pause;
|
||||||
|
|
||||||
|
// File descriptor opertions
|
||||||
|
`
|
||||||
using ::close;
|
using ::close;
|
||||||
using ::dup;
|
using ::dup;
|
||||||
using ::dup2;
|
using ::dup2;
|
||||||
@ -61,15 +68,60 @@ namespace std
|
|||||||
using ::write;
|
using ::write;
|
||||||
using ::pread;
|
using ::pread;
|
||||||
using ::pwrite;
|
using ::pwrite;
|
||||||
|
|
||||||
|
// Terminal I/O
|
||||||
|
|
||||||
|
using ::isatty;
|
||||||
|
|
||||||
|
// Memory management
|
||||||
|
|
||||||
|
#if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_MM_PGALLOC) && \
|
||||||
|
defined(CONFIG_ARCH_USE_MMU)
|
||||||
|
using sbrk;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Special devices
|
||||||
|
|
||||||
using ::pipe;
|
using ::pipe;
|
||||||
|
|
||||||
|
// Operations on working directories
|
||||||
|
|
||||||
using ::chdir;
|
using ::chdir;
|
||||||
using ::getcwd;
|
using ::getcwd;
|
||||||
|
|
||||||
|
// Operations on file paths
|
||||||
|
|
||||||
|
using ::access;
|
||||||
using ::unlink;
|
using ::unlink;
|
||||||
using ::rmdir;
|
using ::rmdir;
|
||||||
|
#ifdef CONFIG_PSEUDOFS_SOFTLINKS
|
||||||
|
using ::link;
|
||||||
|
using ::readlink;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Execution of program files
|
||||||
|
|
||||||
|
#ifdef CONFIG_LIBC_EXECFUNCS
|
||||||
|
using ::execl;
|
||||||
|
using ::execv;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Other
|
||||||
|
|
||||||
using ::getopt;
|
using ::getopt;
|
||||||
|
|
||||||
|
// Non-standard accessor functions
|
||||||
|
|
||||||
using ::getoptargp;
|
using ::getoptargp;
|
||||||
using ::getoptindp;
|
using ::getoptindp;
|
||||||
using ::getoptoptp;
|
using ::getoptoptp;
|
||||||
|
|
||||||
|
// Networking
|
||||||
|
|
||||||
|
#ifdef CONFIG_NET
|
||||||
|
using ::gethostname;
|
||||||
|
using ::sethostname;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // __INCLUDE_CXX_CUNISTD
|
#endif // __INCLUDE_CXX_CUNISTD
|
||||||
|
Loading…
Reference in New Issue
Block a user