Gregory Nutt
6642e20e05
libc and libnx: When the libraries are built into two libraries, a user space library and a OS space library (as in the PROTECTED and KERNEL build). Then the user space library must not use the OS internal interfaces; similarly, the OS must avoid using the userspace interfaces so that it does not muck the errno value or create spurious cancellation points.
2017-10-08 11:52:32 -06:00
Gregory Nutt
ccabac3eb6
More fixes for compilation with current SDCC compiler
2017-09-30 15:28:04 -06:00
Lokesh B V
59643679f8
libc/stdlib: Error Fix
...
1.Fix an error in mkstemp() the could result in an infinite loop.
2.Fix for wrong output in some cases.
For Example:
1) input: "FILEXX"
output: "FILE00" and repeats same output for further invocations of mkstemp().
But, the ouput has to be FILE01, FILE02, ...., FILEZZ.
2)input: "FILEXXXXXX"
output: "FILE100000", for next invocation "FILE200000" and so on
But it's good, if the ouput goes like FILE000001, FILE000002, ..., FILE000101, ...
Signed-off-by: Lokesh B V <lokeshbv333@gmail.com>
2017-07-21 12:48:05 +05:30
Gregory Nutt
5033a6def7
Socket interface: Added addref() and sockcaps() interfaces.
2017-07-13 13:36:18 -06:00
Alan Carvalho de Assis
0d08ce500e
C library: Fix an error in mkstemp() the could result in an infinite loop.
2017-07-12 15:25:55 -06:00
Gregory Nutt
56e8f480f5
Remove dangling whitespace at the end of some lines.
2017-06-28 10:39:54 -06:00
Julien Lecoeur
f26e83d0a1
Fix -Werror=implicit-fallthrough on gcc7
2017-06-28 17:48:04 +02:00
Gregory Nutt
4f5879f998
C library: Add ffs(). Add strings.h. Move strcasecmp, strncasecmp, bzero, bcmp, and bcopy to where they belong in strings.h.h, not string.h. bzero, bcmp, and bcopy are legacy functions; the contemporary counterparts should be used instead.
2017-02-16 16:10:09 -06:00
Gregory Nutt
4ed3ae19d7
Add file that I forgot to add in last commit. Move libc/stdlib/lib_imaxabs.c to inittypes/.
2017-02-16 14:54:35 -06:00
Gregory Nutt
67feda60b2
libc/Kconfig: Use menus vs. comments to better organize the C library menus
2017-02-10 10:04:56 -06:00
Gregory Nutt
de1b68dc4e
libc/Kconfig: Break big Kconfig up into separate Kconfig files in each libc subdirectory.
2017-02-10 09:32:55 -06:00
Juha Niskanen
b7ed12ebd3
Patch brings strtol() and related functions more conformant with POSIX. Corner cases like strtol(-2147483648, NULL, 10) now pass clang -fsanitize=integer without warnings.
2016-11-10 06:18:42 -06:00
Gregory Nutt
d08596a653
libc/stdlib: Fix a few minor coding style issues
2016-10-22 13:27:56 -06:00
Gregory Nutt
41137b82fa
Add strtold()
2016-10-22 13:02:55 -06:00
Gregory Nutt
9438c42fff
strtof: Also make sure that all integer values use in expressions are cast to float
2016-10-20 13:06:55 -06:00
Gregory Nutt
e30a47ba46
libc: Make sure that all constant floating point values have F suffix in strtof()
2016-10-20 13:03:15 -06:00
Gregory Nutt
2b22666554
Forgot to add a file before the last commit
2016-10-20 12:57:27 -06:00
Gregory Nutt
30ab01b1d8
strtof: Add strtof() as simply a compy of strtod with types and limits changed
2016-10-20 12:07:12 -06:00
Gregory Nutt
890a9eb45d
Fix a few wide character build issues
2016-10-18 19:11:09 -06:00
Gregory Nutt
155055d564
strtod(): Was not returning endptr on error conditions.
2016-08-11 18:20:25 -06:00
Gregory Nutt
7370d3171a
Move include/nuttx/lib.h to include/nuttx/lib/lib.h
2016-07-21 14:05:44 -06:00
Gregory Nutt
5a35abb488
Improve some comments
2016-07-17 08:31:02 -06:00
Gregory Nutt
07e20479ad
/dev/random: Add configuration option to use the congruential PRNG.
2016-07-17 07:56:25 -06:00
Gregory Nutt
ffd3a31649
Rename lib_rand.c to lib_srand.c
2016-07-17 07:11:09 -06:00
Gregory Nutt
95555a0199
PTY: Add ioctls to support locking and unlocking of the slave. LIBC: Add implementation of unlockpt()
2016-07-15 09:39:33 -06:00
Gregory Nutt
6139860c0b
PTY: Added PTY IOCTL command definitions. Add support for TIOCGPTN. LIB: Implement ptsname() and ptsname_r()
2016-07-15 08:33:47 -06:00
Gregory Nutt
90e60513b1
New strtoul[l] functions need to include errno.h
2016-06-13 08:49:46 -06:00
Gregory Nutt
56c5da3030
Cosmetic change from review of PR53
2016-06-13 08:21:06 -06:00
Sebastien Lorquet
15c92867de
Fixes for strtoul/strtoull. Fixes Issue #1
2016-06-13 15:29:05 +02:00
Kha Vo
51facd904d
bsearch: Fix an IAR compilation problem
2016-04-03 13:56:59 -06:00
Gregory Nutt
0fb035f76b
Standardize some naming in code section comments
2016-02-21 18:09:04 -06:00
Gregory Nutt
b682190f52
Rename all head files in main NuttX repository with names like *internal.h, removing the internal
2015-12-29 17:31:17 -06:00
Paul A. Patience
bfc95c641f
stdlib: Fix forgotten FARs
2015-11-18 14:22:43 -05:00
Gregory Nutt
e9bd8bceb4
nuttx/libc: Fix some spacing and alignment issues
2015-10-12 07:45:02 -06:00
Gregory Nutt
af086c40ff
Remove dangling whitespace
2015-10-04 15:28:54 -06:00
Gregory Nutt
16b32bbadd
Standardize the width of all comment boxes in C files
2015-10-03 07:25:53 -06:00
Gregory Nutt
5b51a9fcdd
Standardize the width of all comment boxes in C files
2015-10-02 17:43:18 -06:00
Gregory Nutt
cb9e27c3b0
Standardize naming used for public data and function groupings
2015-10-02 16:30:35 -06:00
Gregory Nutt
38e6142ae8
Make coding style more conformant, take description from OpenGroup.org, rename formal parameters to match names used on OpenGroup.org
2015-10-02 12:58:40 -06:00
Gregory Nutt
2ba224eca2
Add support for bsearch() in C library
2015-10-02 12:33:58 -06:00
Gregory Nutt
9c66bde5b0
Fix typo in pre-processor command noted by Pierre-noel Bouteville. Also move # of pre-processior command to column 1
2015-09-05 09:10:48 -06:00
Gregory Nutt
eb19e0c0e2
Add two files that I forgot in a previous commit
2015-08-14 10:12:04 -06:00
Gregory Nutt
6df94096ca
Add ldiv() and lldiv() too
2015-08-14 08:45:59 -06:00
Stavros Polymenis
301f215638
Add support for div() to the C library. From OrbitalFox
2015-08-14 08:35:01 -06:00
Gregory Nutt
1018296e27
Make some file section headers more consistent with standard
2015-04-08 07:32:08 -06:00
Gregory Nutt
9ac09db800
More fixes to problems noted by cppcheck. Some are kind of risky; some are real bugs.
2014-11-25 13:46:14 -06:00
Gregory Nutt
ee22104762
Can't use formal parameter name 'template' in stdlib.h. Causes C++ compilation errors. Noted by Lorenz Meier
2014-11-06 07:00:23 -06:00
Gregory Nutt
d13731711f
Add mktemp() and mkstemp()
2014-11-05 09:39:18 -06:00
Gregory Nutt
3a1324741a
More trailing whilespace removal
2014-04-13 14:32:20 -06:00
Gregory Nutt
303cc1902b
Make sure that there is one space between if and condition
2014-04-12 12:53:19 -06:00