nuttx/libs/libc/unistd
Norman Rasmussen df956b08f2 Ensure that sethostname null terminates the hostname correctly
commit e1c306f2dd added sethostname using
strncpy. This replaces it with strlcpy and uses sizeof() instead of
re-calculating the buffer size.

Rename size argument for get/sethostname to match the implementation
2021-12-30 01:13:22 +08:00
..
Kconfig libc/symtab: optimize the find speed by bisection 2021-12-21 20:40:12 -06:00
lib_access.c
lib_alarm.c
lib_chdir.c Rename LIB_ to LIBC_ for all libc Kconfig 2021-08-05 19:45:24 +02:00
lib_daemon.c Fix typos in comments and identifiers 2021-07-19 22:55:30 -03:00
lib_execl.c Rename LIB_ to LIBC_ for all libc Kconfig 2021-08-05 19:45:24 +02:00
lib_fstatvfs.c
lib_futimes.c libc: Implement futimes on top of futimens 2021-07-09 15:51:28 -03:00
lib_getcwd.c Rename LIB_ to LIBC_ for all libc Kconfig 2021-08-05 19:45:24 +02:00
lib_getegid.c misc: : Author Gregory Nutt: update licenses to Apache 2021-03-28 13:34:50 -07:00
lib_geteuid.c
lib_getgid.c
lib_gethostname.c Rename LIB_ to LIBC_ for all libc Kconfig 2021-08-05 19:45:24 +02:00
lib_getopt_common.c libc/unistd: getopt: Use argc to end parsing 2021-12-15 12:02:59 -06:00
lib_getopt_long.c Implement getopt_long() and getopt_long_only() 2021-04-01 23:06:23 -05:00
lib_getopt_longonly.c Implement getopt_long() and getopt_long_only() 2021-04-01 23:06:23 -05:00
lib_getopt.c getopt(): Update comments about missing functionality 2021-04-04 22:31:47 +01:00
lib_getoptargp.c Move getopt() variables into TLS 2021-03-31 21:13:01 -05:00
lib_getopterrp.c Move getopt() variables into TLS 2021-03-31 21:13:01 -05:00
lib_getoptindp.c Move getopt() variables into TLS 2021-03-31 21:13:01 -05:00
lib_getoptoptp.c Move getopt() variables into TLS 2021-03-31 21:13:01 -05:00
lib_getoptvars.c arch: Allocate the space from the beginning in up_stack_frame 2021-04-16 12:41:41 +09:00
lib_getpriority.c libc/sched: Map the nice value more correctly 2021-06-24 08:50:48 -03:00
lib_getrlimit.c
lib_getrusage.c
lib_getuid.c
lib_lutimes.c fs: Add utimens and lutimens 2021-08-09 17:55:44 -03:00
lib_nice.c libc/sched: Implement nice API 2021-06-24 08:50:48 -03:00
lib_pathconf.c
lib_pipe2.c
lib_pipe.c
lib_posix_fallocate.c
lib_restoredir.c
lib_setegid.c
lib_seteuid.c
lib_setgid.c
lib_sethostname.c Ensure that sethostname null terminates the hostname correctly 2021-12-30 01:13:22 +08:00
lib_setpriority.c libc/sched: Map the nice value more correctly 2021-06-24 08:50:48 -03:00
lib_setregid.c
lib_setreuid.c
lib_setrlimit.c
lib_setuid.c
lib_sleep.c
lib_statvfs.c
lib_swab.c
lib_sysconf.c libc/sysconf: Implement the query of _SC_CLK_TCK 2021-07-21 13:11:54 -03:00
lib_times.c libc: Implement times function 2021-07-21 13:11:54 -03:00
lib_truncate.c
lib_usleep.c
lib_utime.c libc: Implement utime on top of utimes 2021-07-09 15:51:28 -03:00
lib_utimes.c fs: Add utimens and lutimens 2021-08-09 17:55:44 -03:00
Make.defs fs: Add utimens and lutimens 2021-08-09 17:55:44 -03:00
unistd.h libc/getopt: Move struct getopt_s to include/nuttx/tls.h 2021-12-06 06:30:16 -08:00