]> Kevux Git Server - fll/commit
Update: pipe and fifo, replace f_directory_mode with f_mode, f_file_copy()
authorKevin Day <thekevinday@gmail.com>
Sat, 30 May 2020 22:33:09 +0000 (17:33 -0500)
committerKevin Day <thekevinday@gmail.com>
Sat, 30 May 2020 22:33:09 +0000 (17:33 -0500)
commit63bf439d58264cda9a363334a4176604bcf3d910
treee028ca5266d6154d9665f7ab5f8598e649da22b4
parentb37ab92a7f469e71711aad72d799dd9240b5fcad
Update: pipe and fifo, replace f_directory_mode with f_mode, f_file_copy()

Stick to only using fifo terminology in file types.

Replace f_directory_mode with f_mode, a global type to be shared between f_file, f_directory, and anything else.

Update f_file_copy() to use f_mode instead of mode_t.
This allows the caller to just send the mode.
The copy function already stats the file and processes it per file type, so it can make the decision on which mode to use.
This alleviates the need for the caller to also perform a file type stat check.
level_0/f_directory/c/directory_type.h
level_0/f_file/c/file.c
level_0/f_file/c/file.h
level_0/f_type/c/type.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