Commit Graph

405 Commits

Author SHA1 Message Date
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 bb05de4b6e Remove TABs 2015-10-04 16:01:21 -06:00
Gregory Nutt af086c40ff Remove dangling whitespace 2015-10-04 15:28:54 -06:00
Gregory Nutt 0b12dbf95d Fix some spacing problems 2015-10-04 15:04:00 -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 a813baef0a User workqueue, cosmetic changes 2015-09-30 14:03:55 -06:00
Gregory Nutt 4cd57e1e4e Work queues: Logic that sets the queued indication and the logic that does the actual queuing must be atomic 2015-09-30 11:04:29 -06:00
Stefan Kolb 983128e16a sscanf: Formats a, A, e, E, g, and G should be treated the same as f and F 2015-09-17 07:41:33 -06:00
Paul A. Patience 9f108b7b63 Fix issues detected by clang 2015-09-10 20:59:43 -04:00
Gregory Nutt d0e4df9931 Update ChangeLog 2015-09-10 07:24:58 -06:00
Gregory Nutt 5058ed3ef4 Only build shutdown if CONFIG_NET=y. The warning is pretty annoying 2015-09-09 12:14:04 -06:00
Gregory Nutt 8a87e3ca6e Add an empty function that can serve as a placeholder for the network shutdown() function 2015-09-09 07:03:05 -06:00
Gregory Nutt bc46130c70 Rename libc/stdio/lib_avsprintf.c to lib_vasprintf.c 2015-09-07 13:28:00 -06:00
Sebastien Lorquet 77e4e7b231 Change all references from avsprintf to vasprintf. From Sebastien Lorquet 2015-09-07 13:22:13 -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
OrbitalFox 381c587770 Fix typo but should be buf. From OrbitalFox 2015-09-03 07:35:32 -06:00
Gregory Nutt 168e9d3ddb Merged in paulpatience/nuttx (pull request #23)
Correct #if to #ifdef when the macro can be undefined.  Fix bug in AT24XX driver:  it should compare AT24XX_ADDRSIZE to 2.
2015-09-01 12:28:35 -06:00
Paul A. Patience 3b89eabd50 Correct #if to #ifdef when the macro can be undefined. Fix bug in AT24XX driver: it should compare AT24XX_ADDRSIZE to 2. 2015-09-01 13:52:29 -04:00
Stefan Kolb 5ac6de118e libc/math/lib_asin.c: The function did not convert for some input values. Asin did not convert for values which do not belong to the domain of the function. But aside of that the function also did not convert for sine allowed values. I achieved a conversion of the function by reducing the DBL_EPSION and by checking if the input value is in the domain of the function. This is a fix for the problem but the function should always terminate after a given number of iterations. From Stefan Kolb. 2015-09-01 08:45:14 -06:00
Gregory Nutt 6158086dd4 Update some comments 2015-08-24 15:41:45 -06:00
Gregory Nutt 933d74e5c1 Networking: With these changes, I can ping the local loopback device from the simulator 2015-08-24 13:49:12 -06:00
Gregory Nutt 0b012c7978 Fix some initial loop back device compilation errors; mark configuration as EXPERIMENTAL 2015-08-24 11:29:54 -06:00
Gregory Nutt 07bdff9ef7 Networking: Add NetDB support for the local loopback device 2015-08-24 10:08:26 -06:00
Gregory Nutt 6fc449f689 Moving canned_symtab from nuttx/libc to apps/system 2015-08-23 11:33:29 -06:00
Alan Carvalho de Assis 9b036311c0 Missing comma in spi.h header file 2015-08-23 11:06:32 -06:00
Gregory Nutt 4723ff5563 Update README 2015-08-23 10:46:11 -06:00
Gregory Nutt f12692b78f Extend canned symbol table logic to work in protected build mode 2015-08-23 10:44:04 -06:00
Pavel Pisa 9ab3f03153 Define some symbol export conditions, correct errno and add sleep and usleep. From Pavel Pisa 2015-08-23 09:05:40 -06:00
Pavel Pisa 81a257eeb0 Optional canned symtab inclusion to the build. When option CONFIG_LIBC_SYMTAB is selected and symbol table file libc/symtab/canned_symtab.inc is prepared then application can use system provided complete symbol table. The option has substantial effect on system image size. Mainly code/text. If loading of applications at runtime is not planned do not select this. From Pavel Pisa. 2015-08-23 08:38:58 -06:00
Pavel Pisa 23035ca68d [PATCH] gethostbyname(): correct returned address format when DNS is used. The hostent.h_addr_list should point to raw in_addr or in6_addr as defined in the standard. Original implementation used that
for numeric addresses but for DNS lookup returned pointer to whole sockaddr_in or sockaddr_in6.

getaddrinfo() should be preferred in a long term perspective. Return of complete addresses from the lookup would be better in such case but it requires significant changes anyway - multiple addresses support and most probably dynamic memory allocation which is bad for many RT applications. So gethostbyname() is sufficient for most applications now.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2015-08-21 18:33:03 -06:00
Gregory Nutt 51f386d08a Fix more common typos 2015-08-16 11:07:23 -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 5772813d29 Change the name of the local variable sigset to set to prevent name collisions with the function of the same name 2015-07-31 13:32:10 -06:00
Librae dce921c1cd Check if DNS server has been initialized before trying to lookup the server address in the cache. From Librae 2015-07-27 14:16:45 -06:00
Gregory Nutt c6c424583d Fix a test for valid scheduling policies 2015-07-24 10:20:22 -06:00
Gregory Nutt 5baa738019 Most cosmetic, but includes some fixes to some range checking 2015-07-23 14:36:49 -06:00
Gregory Nutt 9095e8eab4 include/, sched/, and libc/: Add support for sporadic scheduling parameters in struct sched_param, posix_spawnattr_t, and pthread_attr_t. Update all user interfaces to pass sporadic scheduling parameters. Feature is dependent on EXPERIMENTAL and no changes have yet been made to core scheduling logic. 2015-07-23 13:16:32 -06:00
Gregory Nutt ab37a759d8 Eliminate a warning detected by nuttx/tools/testbuild.sh 2015-07-22 14:11:25 -06:00
Gregory Nutt ccd3ec0f52 STM32 F7 Ethernet: Add logic to align all DMA memory to the D-Cache line size 2015-07-19 16:35:25 -06:00
Gregory Nutt 8b9cafe70a Another FIX for gethostbyname if CONFIG_NETDB_DNSCLIENT is not defined 2015-07-19 14:45:34 -06:00
Gregory Nutt a314561474 STM32F746G-DISCO: Getting closer to a build 2015-07-17 11:47:16 -06:00
Sebastien Lorquet b5016f3a7f gethostbyname() and gethostbyname_r() should be built even if there is no host file support. From Sebastien Lorquet 2015-07-17 09:43:28 -06:00
Sebastien Lorquet 4eec7041fc Move definition of h_errno from lib_parsehostfile.c to lib_netdb. h_errno should still be defined even if there is no host file support. From Sebastien Lorquet. 2015-07-17 09:39:45 -06:00