Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Major Improvements to the Native and Java code #27

Merged
merged 26 commits into from
Oct 5, 2023

Conversation

pavly-gerges
Copy link
Member

This is a major PR addressing improvements in the following APIs:

  • ErrnoToException: implemented a dynamic interpreter pattern.
  • SerialMonitor: minimized app resources by keeping both read/write on the same thread.
  • Permissions: implemented a full interpreter pattern for the POSIX file permissions.
  • Semaphores: deprecated this trivial API and utilized the stock ReenterrantLock instead.
  • TerminalFlag: implemented a full interpreter pattern for terminal flags API.
  • NativeTerminalDevice: minimized resources by utilizing the smallest compatible types for terminal flags and read configuration attributes, and removed the faulty NativeTerminalDevice#readData() and int NativeTerminalDevice#getReadData().

And, adding new stuff:

  • TerminalFlags API: interpreted POSIX input flags, local flags, control flags, and output flags into Java TerminalFlag objects.
  • Permissions API: interpreted POSIX file permissions (file mode) into Java Permissions objects.

…hecking ports in read-only mode for better resource management
@pavly-gerges pavly-gerges added documentation Improvements or additions to documentation enhancement New feature or request c/c++ stuff related to c/c++ API java Java related stuff labels Oct 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c/c++ stuff related to c/c++ API documentation Improvements or additions to documentation enhancement New feature or request java Java related stuff jni Java Native Interface (Glue Code)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] Replace the hard-coded bitmasks and native flags with a JNI/POSIX implementation
1 participant