cost 180 ms
Implementing dup2 in xv6

I'm taking an OS class and we have to implement dup2() in xv6. The code I've written should theoretically work, but, when I try to execute tests, it d ...

Why print the space to console?

This is the echo utility program. It reads the command-line argument from the console and prints it back to the console. In the following block of cod ...

2022-07-03 06:41:24   1   51    c / echo / xv6  
Why ELF's vaddr is not page aligned?

I'm trying to build a xv6-like system and I'm copying xv6's code below: This is the part where ELF is loaded into memory. It checks every PT_LOAD ...

2022-05-28 09:43:07   1   34    c / exec / elf / xv6  
xv6 C skipping blank lines

I am trying to write a program in C (for xv6) that returns the last "n" number of lines of input text or a file (essentially tail) with the exception ...

2022-05-05 03:23:59   1   88    c / tail / xv6  
hex file reading in xv6

I am trying to modify this xv6 c file into a hex viewer. I tried to utilize printf(%02X) but to no avail. I tried doing different combinations of plac ...

2022-02-12 22:02:10   1   177    c / xv6  

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM