]> Kevux Git Server - fll/commit
Feature: Add additional network and socket related functions.
authorKevin Day <kevin@kevux.org>
Sat, 24 Jun 2023 03:08:45 +0000 (22:08 -0500)
committerKevin Day <kevin@kevux.org>
Sat, 24 Jun 2023 03:13:40 +0000 (22:13 -0500)
commit22a1cb6f8bb440ddf7fb597757daf2d83a834d3d
treee2cb66ecf50ef2663edc7f663470d8b9ce4978dd
parent076b7f6aeabeb7f15cd84d10b3f865beb42b4c7a
Feature: Add additional network and socket related functions.

Add the following:
- f_file_poll() for poll().
- f_socket_read_stream() for recv().
- f_socket_write_stream() for send().

Add f_poll_t, f_polls_t, and f_pollss_t typedefs.
This adds the appropriate array management functions.
To be consistent with type_file.h a new type_array_file.h is created to manage these.

Update the existing f_signal_read() to use the new typdef f_poll_t.

This includes unit tests as appropriate.
72 files changed:
build/monolithic/settings
level_0/f_file/c/file.c
level_0/f_file/c/file.h
level_0/f_file/data/build/settings-mocks
level_0/f_file/data/build/settings-tests
level_0/f_file/tests/unit/c/mock-file.c
level_0/f_file/tests/unit/c/mock-file.h
level_0/f_file/tests/unit/c/test-file-poll.c [new file with mode: 0644]
level_0/f_file/tests/unit/c/test-file-poll.h [new file with mode: 0644]
level_0/f_file/tests/unit/c/test-file.c
level_0/f_file/tests/unit/c/test-file.h
level_0/f_signal/c/signal.c
level_0/f_signal/c/signal.h
level_0/f_signal/tests/unit/c/mock-signal.h
level_0/f_signal/tests/unit/c/test-signal.h
level_0/f_socket/c/socket.c
level_0/f_socket/c/socket.h
level_0/f_socket/data/build/settings-mocks
level_0/f_socket/data/build/settings-tests
level_0/f_socket/tests/unit/c/mock-socket.c
level_0/f_socket/tests/unit/c/mock-socket.h
level_0/f_socket/tests/unit/c/test-socket-read_stream.c [new file with mode: 0644]
level_0/f_socket/tests/unit/c/test-socket-read_stream.h [new file with mode: 0644]
level_0/f_socket/tests/unit/c/test-socket-write_stream.c [new file with mode: 0644]
level_0/f_socket/tests/unit/c/test-socket-write_stream.h [new file with mode: 0644]
level_0/f_socket/tests/unit/c/test-socket.c
level_0/f_socket/tests/unit/c/test-socket.h
level_0/f_type/c/type_file.h
level_0/f_type_array/c/type_array/poll.c [new file with mode: 0644]
level_0/f_type_array/c/type_array/poll.h [new file with mode: 0644]
level_0/f_type_array/c/type_array/private-poll.c [new file with mode: 0644]
level_0/f_type_array/c/type_array/private-poll.h [new file with mode: 0644]
level_0/f_type_array/c/type_array_file.h [new file with mode: 0644]
level_0/f_type_array/data/build/settings
level_0/f_type_array/data/build/settings-mocks [new file with mode: 0644]
level_0/f_type_array/data/build/settings-tests
level_0/f_type_array/tests/unit/c/mock-type_array.c [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/mock-type_array.h [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-polls_adjust.c [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-polls_adjust.h [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-polls_append.c [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-polls_append.h [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-polls_append_all.c [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-polls_append_all.h [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-polls_decimate_by.c [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-polls_decimate_by.h [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-polls_decrease_by.c [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-polls_decrease_by.h [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-polls_increase.c [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-polls_increase.h [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-polls_increase_by.c [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-polls_increase_by.h [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-polls_resize.c [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-polls_resize.h [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-pollss_adjust.c [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-pollss_adjust.h [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-pollss_append.c [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-pollss_append.h [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-pollss_append_all.c [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-pollss_append_all.h [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-pollss_decimate_by.c [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-pollss_decimate_by.h [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-pollss_decrease_by.c [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-pollss_decrease_by.h [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-pollss_increase.c [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-pollss_increase.h [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-pollss_increase_by.c [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-pollss_increase_by.h [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-pollss_resize.c [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array-pollss_resize.h [new file with mode: 0644]
level_0/f_type_array/tests/unit/c/test-type_array.c
level_0/f_type_array/tests/unit/c/test-type_array.h