Commit Graph

8 Commits

Author SHA1 Message Date
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