Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kernel][libc][cmds] Add devname libc function #1708

Merged
merged 8 commits into from
Sep 10, 2023
Merged

[kernel][libc][cmds] Add devname libc function #1708

merged 8 commits into from
Sep 10, 2023

Conversation

ghaerr
Copy link
Owner

@ghaerr ghaerr commented Sep 10, 2023

No description provided.

@ghaerr ghaerr closed this Sep 10, 2023
@ghaerr ghaerr changed the title [libc][cmds [kernel][libc][cmds] Add devname libc function Sep 10, 2023
@ghaerr
Copy link
Owner Author

ghaerr commented Sep 10, 2023

Adds linuxmt/devnum.h as kernel header file for macros to access various block devices, in preparation for possible change of minor device numbers in the bioshd driver. Removes all hardcoded numbers from kernel source.

Adds devname to C library. By default opens /dev and reads directory for dynamic lookup of device names. The old versions contained in df.c and mount.c used hard-coded major/minor device numbers. This can be re-enabled for very slow floppy-only system using USE_FASTVERSION=1 in libc/misc/devname.c.

Rewrites ttyname, updates ps to use faster version of internal dev_name using less space.

@ghaerr ghaerr reopened this Sep 10, 2023
@ghaerr ghaerr merged commit 51b8bcc into master Sep 10, 2023
@ghaerr ghaerr deleted the devname branch September 10, 2023 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant