Commit Graph

25 Commits

Author SHA1 Message Date
Takumi Ando
730370e565 fsutils: passwd: Fix wrong macro
passwd_update/adduser/deluser should be enabled
if CONFIG_FSUTILS_PASSWD_READONLY is NOT defined.

Signed-off-by: Takumi Ando <t-ando@advaly.co.jp>
2023-12-21 16:16:20 +01:00
Alin Jerpelea
adc3c9fae9 include: nxstyle fixes
fixes for nxstyle errors reported by nxstyle tool

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-11 08:53:57 -05:00
Alin Jerpelea
324155cd1e include: update licenses to Apache
Gregory Nutt is has submitted the SGA

Uros Platise has submitted the ICLA

Ken Pettit has submitted the ICLA

Sebastien Lorquet has submitted the ICLA

Pierre-Noel Bouteville has submitted the ICLA

as a result we can migrate the licenses to Apache.

Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-11 05:05:27 -05:00
Gregory Nutt
f65b16bb2e Incorporate IP configuration files into netinit.
Uses logic from apps/fsutils/ipcfg to obtain the IP address configuration from a file, if available.  This only effects the behavior of netinit if CONFIG_FSUTILS_IPCFG is selected and if an IP configuration file is available on a file system. Otherwise, it reverts to the preceding behavior.

Also adds definitions to apps/include/fsutils/ipcfg.h to formalize a bit encoding of the prototype which was already in use, but not documented.

Also fixes some bad assertions (duplication of PR #420) and makes use of variable names consistent in ipcfg.h comments and in ipcfg_text implementation.
2020-10-06 10:42:35 -07:00
Gregory Nutt
a627561c8f apps/fsutils/ipcfg: Add support for IPv6 2020-10-05 00:07:05 +08:00
Gregory Nutt
707e827ded ipcfg: Add hooks for future IPv6 support.
This commit adds structures, modifies function prototypes, and renames data to support the future addition of IPv6 support.  This commit does NOT add that IPv6, only the hooks for backward compatible future support.
2020-10-02 12:30:47 -07:00
David Sidrane
16dc85417b fsutils:ipcfg Add extern 'C' under cpp 2020-09-30 14:09:18 -06:00
Gregory Nutt
5e1ba408b4 Add IPv4 Configuration File Access Helper
This commit adds support to access an IPv4 Configuration file similar to the Linux dhpc.client ipfcg file.  This version, tailored for deeply embedded systems supports several options to tailor the file and file access to different environments.  It supports:

- Writable as well as read-only configuration files.
- ASCII human readable files as well as smaller binary files.
- It supports using character driver access to constrained media (such as EEPROM).
- Add examples/ipcfg to exercise IPv4 Configuration File support
2020-09-29 12:24:07 -07:00
Gregory Nutt
1a9444a68b Remove support for CONFIG_FS_WRITABLE and CONFIG_FS_READABLE 2020-03-22 08:23:28 -05:00
Xiang Xiao
41d88f06e7 Run codespell -w with the latest dictonary again 2020-02-23 07:10:14 -06:00
Xiang Xiao
d660492289 Run codespell -w against all files
and fix the wrong correction
2020-02-22 14:41:36 -06:00
Xiang Xiao
1154735ca6 Refine the preprocess conditional guard style 2020-01-31 11:04:10 -06:00
Gregory Nutt
735644766f apps/fsutils/passwd: Handle the improved the format of the /etc/passwd format. It is now a little similar to other systems. 2019-08-03 10:37:27 -06:00
Xiang Xiao
8116d10da3 apps/fsutils/mksmartfs: Add a check to see if the SmartFS is already formatted. apps/nshlib: Add a force flag (-f) to mksmartfs. SmartFS will be formatted only if (1) the FLASH does not already hold a SmartFS, or (2) the force flag is set 2018-08-23 07:14:30 -06:00
Gregory Nutt
a57610c2c4 Remove trailing spaces at the end of lines. 2018-08-13 07:47:26 -06:00
Gregory Nutt
35ec1b9244 Squashed commit of the following:
apps/fsutils/mkfatfs:  New user-space fatfs appears to work fine.
    apps/fsutils/mkfatfs:  Move mkfatfs from the OS to here.  Not fully integrated on the intial commit.
2017-10-20 12:35:19 -06:00
Gregory Nutt
2541a4cb13 apps/fsutils/flash_eraseall: Add MDIOC_BULKERASE IOCTL wrapper function 2016-06-03 07:58:54 -06:00
Gregory Nutt
6125e9376e Standardize some naming in code section comments 2016-02-21 18:15:00 -06:00
Gregory Nutt
64f484d71a Move include/inifile.h to include/fsutils/inifile.h 2016-01-20 18:45:03 -06:00
Gregory Nutt
29d65eb866 apps/fsutils/passwd: Fix a few more errors found in integration 2016-01-20 14:41:27 -06:00
Gregory Nutt
681bfa2605 NSH: Add logic for the case where the passwd file is read-only. ROMFS image needs to be marked as const, or it will end up in RAM. 2016-01-20 13:05:25 -06:00
Gregory Nutt
5aa177e03b apps/fsutils/passwd: Fix numerous errors found during testing 2016-01-20 09:36:07 -06:00
Gregory Nutt
8630130299 Remove dangle whitespace at the end of the line and some files with carriage returns in them 2016-01-19 19:22:45 -06:00
Gregory Nutt
c98e51a31d apps/fsutils/passwd: Add a password fila management library 2016-01-19 19:19:04 -06:00
Ken Pettit
ad48d89fe2 mksmartfs: Move into apps/fsutils from kernel, now uses only open and ioctl. Add configuration option to supported multiple root directories. From Ken Petit 2015-11-23 06:59:56 -06:00