Commit Graph

9 Commits

Author SHA1 Message Date
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
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
af086c40ff Remove dangling whitespace 2015-10-04 15:28:54 -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
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