Post B4umu4JdmDRfrGfKvA by dalke@toots.nu
(DIR) More posts by dalke@toots.nu
(DIR) Post #B4ttn78JPPE75d2PTM by Unixbigot@aus.social
0 likes, 1 repeats
"You know, when I did my first six week introduction to programming course, the highlight of the final day was getting to use the computer""Hahaha, hard core!""Glad you think so. This interview will be conducted under Faraday Cage Rules; this laptop runs Minix 2.0 with full source code and manuals. Here's the Book. You have one hour to complete exercise seven from Tanenbaum chapter 5."#Tootfic #MicroFiction #PowerOnStoryToot #Title_Faraday_Rules
(DIR) Post #B4umu3oReCUYIW4QIS by me_@sueden.social
0 likes, 0 repeats
@Unixbigot Exercise 22 from chapter 5 would be much more interesting (assuming it's the second edition of the Minix book) 😀
(DIR) Post #B4umu42GonYCzOXSqW by Unixbigot@aus.social
0 likes, 0 repeats
@me_ TBH I didn't have my copy to hand and just guessed a number.
(DIR) Post #B4umu4JdmDRfrGfKvA by dalke@toots.nu
0 likes, 0 repeats
@Unixbigot @me_ FWIW, from 1st ed. 1987,7. A UNIX file system uses 1024-byte blocks and 16-bit disk addresses. The i-node holds 8 disk addresses for data blocks, one single indirect block address, and one double-indirect block address. What is the maximum file size? Think carefully.22. Three different protection mechanisms that we have discusses are capabilities, access control lists, and the UNIX rwx bit. For each of the following protection problems, tell me [...] which can be used ...
(DIR) Post #B4umu4opuEOnQ1GFXs by me_@sueden.social
0 likes, 0 repeats
@dalke @Unixbigot This is from the 2nd edition, but that would perhaps be a bit challenging to implement in one hour:22. Symbolic links are files that point to other files or directories indirectly. Unlike ordinary links such as those currently implemented in MINIX, a symbolic link has its own i-node, which points to a data block. [...] Symbolic links are not part of the 1990 POSIX standard, but it is expected they will be added to POSIX in the future. Implement symbolic links for MINIX.
(DIR) Post #B4umu5CEVF78aaCw0u by dalke@toots.nu
0 likes, 0 repeats
@me_ @Unixbigot I remember using elvis to open the directory. Not a list of the files in the directory, but the content of the directory inode.
(DIR) Post #B4umu5NvnkTJArgHFQ by me_@sueden.social
0 likes, 1 repeats
@dalke @Unixbigot I think the opendir and readdir syscalls only appeared only with the introduction of ffs around 4.1BSD. Before that, you had to interpret the directory entries yourself (2 bytes inode number, 14 bytes filename) - AFAIK, this was persevered even in System V, but you needed directory access syscalls to read other file systems using the VFS switch.