libs/unistd and other affected files: Hostname support no longer depends on CONFIG_NET since the host name is also useful in the non-network environment. CONFIG_NET_HOSTNAME changed to CONFIG_LIB_HOSTNAME.

This commit is contained in:
Xiang Xiao
2019-01-27 06:56:16 -06:00
committed by Gregory Nutt
parent c40daffb5b
commit 16850297f3
45 changed files with 67 additions and 92 deletions
+1 -1
View File
@@ -56,7 +56,7 @@
*
* FIELD Default
* sysname NuttX
* nodename CONFIG_NET_HOSTNAME
* nodename CONFIG_LIB_HOSTNAME
* release From version.h
* version From version.h
* machine CONFIG_ARCH
-2
View File
@@ -361,10 +361,8 @@ FAR char **getoptargp(void); /* Optional argument following option */
FAR int *getoptindp(void); /* Index into argv */
FAR int *getoptoptp(void); /* Unrecognized option character */
#ifdef CONFIG_NET
int gethostname(FAR char *name, size_t size);
int sethostname(FAR const char *name, size_t size);
#endif
/* Get configurable system variables */