]> Kevux Git Server - fll/commit
Update: file and directory improvements, finish writing directory copy
authorKevin Day <thekevinday@gmail.com>
Wed, 27 May 2020 04:45:31 +0000 (23:45 -0500)
committerKevin Day <thekevinday@gmail.com>
Wed, 27 May 2020 04:45:31 +0000 (23:45 -0500)
commit6e966ee73009569a44d9f3e23ac4c88f38e2ddd3
tree07d8518fc22bc66c2eb832da23e46379ceda53fb
parent847d721d57c953f41dbfed99c49b97d9e7b8b033
Update: file and directory improvements, finish writing directory copy

Organize directory header structure, adding directory_type.h.
Add additional directory structures.
Directory copy needs to report what fails, so provide a structure for reporting each failure.
(There needs to be a verbose function for printing success/failure.)

Remove de-reference from numerous file functions.
POSIX denies certain operations of symlinks.
During copy operations, do not apply mode to symlink as it would now apply mode changes to the de-referenced link.
Allow block size to use default block size if set to 0 (convenience).
Add missing return statement to file copy (without it socket file types would incorrectly report F_unsupported).
Add link read functions so that symlink information may be obtained so that it can then be copied.
Add comments about poorly written umask() as per POSIX standard (at least according to manpages).

Other minor fixes and cleanups.
18 files changed:
build/level_0/settings
build/monolithic/settings
level_0/f_directory/c/directory.c
level_0/f_directory/c/directory.h
level_0/f_directory/c/directory_type.h [new file with mode: 0644]
level_0/f_directory/data/build/settings
level_0/f_file/c/file.c
level_0/f_file/c/file.h
level_0/f_file/c/private-file.c
level_0/f_file/c/private-file.h
level_0/f_status/c/status_array.h [new file with mode: 0644]
level_0/f_status/data/build/settings
level_0/f_string/c/string.h
level_0/f_type/c/type_array.h
level_1/fl_directory/c/directory.c
level_1/fl_directory/c/directory.h
level_1/fl_directory/c/private-directory.c
level_1/fl_directory/c/private-directory.h