Commit Graph

369 Commits

Author SHA1 Message Date
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
Gregory Nutt
2a2e9fa56a gethostbyname_r: Fix test of return value from inet_pton(). Zero does not mean success 2015-07-17 08:24:21 -06:00
Gregory Nutt
95424d9ef3 NETDB: Add support for caching DNS name resultion mappings 2015-07-13 10:41:32 -06:00
Gregory Nutt
fcaac468b1 NETDB: Make sure that we have a valid DNS server address before attempting DNS queuries; Provide an optional default DNS server address in the configuration 2015-07-13 08:19:31 -06:00
Gregory Nutt
9a6cf5724e DNS: Finish off low-level DNS IPv6 request processing. Untested on initial commit 2015-07-12 16:23:08 -06:00
Gregory Nutt
835878b003 This completes all interface level support for IPv6 DNS. Still some missing logic at the lowest protocol levels 2015-07-12 13:45:52 -06:00
Gregory Nutt
3407ef5f33 netdb: Modifications to DNS client logic and to dns_get/setserver() interfaces to support DNS clients at IPv6 addresses (still no support for resolution to IPv6 addresses). 2015-07-12 11:56:53 -06:00
Gregory Nutt
95ae3ef23f Oops. Forgot to add a file in a previous commit 2015-07-12 09:28:03 -06:00
Gregory Nutt
5ace3311d9 Repartitioning of DNS client logic in preparation for IPv6 support
- Rename include/nuttx/net/dnsclient.h to dns.h
- Move internal DNS prototypes from dns.h to libc/netdb/lib_dns.h
- Global standard DNS definitions from libc/netdb/dns_soccket.c to dns.h
- Eliminate dns_gethostip().  This is now an internal part of gethostbyname()
- Eliminate interface dns_whois().  Not needed in this new context.
2015-07-12 09:19:40 -06:00
Gregory Nutt
e243b082ee DNS: Remove some unused, non-functional DNS functions; remove the annoying _sock at the end of some DNS functions names, it is no longer needed to distinguish the functions 2015-07-11 07:17:00 -06:00
Gregory Nutt
ed004be6d0 Clean up some syscall logic that has changed due to revised netdb configuration 2015-07-10 15:41:20 -06:00
Gregory Nutt
89e91333af Fix a warning 2015-07-10 14:53:30 -06:00
Gregory Nutt
23d8ab0fb1 Fix some mangled conditional compilation 2015-07-10 14:10:53 -06:00
Gregory Nutt
dc478617e5 Remove bogus references to CONFIG_HAVE_GETHOSTBYNAME 2015-07-10 14:03:03 -06:00
Gregory Nutt
7dec298ef3 gethostbyname() will not attempt a DNS lookup if so enabled 2015-07-10 13:30:09 -06:00
Gregory Nutt
4102470bdd Move the DNS server from apps/netutils/dnsclient to nuttx/libc/netdb. Move netdb functions from libc/net to libc/netdb. Fix up naming to reflect the repartitioning 2015-07-10 12:11:40 -06:00
Gregory Nutt
2be9bfa40a gethostbyname() should succeed for matches on host name aliases as well 2015-07-09 09:14:42 -06:00
Gregory Nutt
434eeefe52 inet_pton and ntop need to support IPv4 and IPv6 addressing unconditionally for the netdb logic 2015-07-08 16:45:42 -06:00
Gregory Nutt
d58d668f86 Fix an addressing problem in host file read logic 2015-07-08 16:25:16 -06:00
Gregory Nutt
1cd4ef1730 Fix an assertion 2015-07-08 16:00:50 -06:00
Gregory Nutt
299782e8ec Add support for gethostbyaddr() 2015-07-08 14:33:23 -06:00
Gregory Nutt
72701d753b Remove some whitespace at the end of lines 2015-07-08 13:42:36 -06:00
Gregory Nutt
1b1e34e1d5 libc: Add gethostbyname(). Untested on initial commit 2015-07-08 13:40:52 -06:00
Gregory Nutt
f94fe747ae Undo part of a previous change. Move get/sethostname back from net/netdb to libc/unistd 2015-07-08 11:11:52 -06:00
Gregory Nutt
d8d4ab8c10 The libc versions of get/sethostname should just call the internal net/netdb versions in the flat build. In the protected and kernel builds, sethostname is a system call but gethostname calls uname() to get the hostname 2015-07-05 10:45:00 -06:00
Gregory Nutt
6380832ab7 Move the header of set/sethostname from libc/unisted to net/netdb. This is OS internal stuff 2015-07-05 10:43:37 -06:00
Gregory Nutt
5f2a181599 Add conditional definition for MIN macro needed in last commit 2015-07-05 09:08:45 -06:00
Gregory Nutt
fc5281e2a1 get/sethostname: Add a critical section. There is a microscopic possibily that the global name could change while being accessed by a thread 2015-07-05 08:50:51 -06:00
Gregory Nutt
e1c306f2dd Add support for sethostname 2015-07-05 08:42:32 -06:00
Gregory Nutt
6576672e09 uname: version string must hold 40 character value; strings returned by uname must always be NUL terminated 2015-07-05 06:46:00 -06:00
Gregory Nutt
10ec4737c2 Use strncpy instead of strcpy in uname() 2015-07-04 15:20:36 -06:00
Gregory Nutt
bd69415963 Fix a typo 2015-07-03 07:52:57 -06:00
Stavros Polymenis
701509f9bd Add implementations of uname() and gethost(). From Stavros Polymenis. 2015-07-03 07:50:27 -06:00
Gregory Nutt
342f5fe33d Fix references to the no-longer-existent misc/ directory in comments, README files, and documentation 2015-06-28 08:08:57 -06:00
George McWilliams
c8b221e03f Uninitialized variable can cause hardfault from getopt if required argument is missing. 2015-06-18 13:55:19 -06:00
Gregory Nutt
bf9e1943a4 Clean up and review of header files for conformance to standards 2015-06-12 18:07:47 -06:00
Gregory Nutt
718d4d23ad Add asctime(), asctime_r(), ctime(), and ctime_r(). 2015-06-12 11:52:49 -06:00