minix

How to install vim into Minix3?

你说的曾经没有我的故事 提交于 2019-12-10 22:24:34
问题 I should install vim into Minix. But I couldnt find any useful information on the net. I've just installed Minix on VirtualBox. So I am a beginner on Minix. Do you have an idea how to install it? 回答1: Look at this site, then navigate to your version and architecture: ftp://ftp.minix3.org/pub/minix/packages/ For example, minix 3.3.0 on i386: ftp://ftp.minix3.org/pub/minix/packages/3.3.0/i386/editors/vim-7.3.762.tgz 回答2: Is it not possible to compile from source? With a half-decent machine,

In C, can't change a struct attribute except using #define val

。_饼干妹妹 提交于 2019-12-10 22:07:26
问题 In Minix 3.1.2a I've a struct " struct proc " where the PCB of any process stored, but I've a problem when adding new attribute " p_currenthash " in the code below to this struct. I can't change its value except using a constant defined by #define directive; otherwise, the system stops responding. For clarity here is the structure: struct proc { struct stackframe_s p_reg; /* process' registers saved in stack frame */ #if (CHIP == INTEL) reg_t p_ldt_sel; /* selector in gdt with ldt base and

MINIX Internal Fragmentation 2

扶醉桌前 提交于 2019-12-04 05:43:26
问题 I am in the middle of writing some software in C that recursively lists all files in a given directory and now I need to work out the internal fragmentation. I have spent a long time researching this and have found out that the internal fragmentation on ext2 only occurs in the last block. I know that from an inode number in theory you should be able to get the first and last block addresses but I have no idea how. I have looked into stat() , fcntl() and all sorts of ways. How do I get the

Minix vs Linux for Learning Operating System Design?

六月ゝ 毕业季﹏ 提交于 2019-12-03 05:20:06
问题 I wish to learn operating system design. I was wondering if I should tackle Minix or GNU/Linux in the process? I like books so I would be following mainly a book, though video resources (presumably videotaped lectures) would also be welcome. I have formally studied C and C# and can program small to medium sized programs in them. I also have a very basic understanding of data structures. If I take the Minix route, should I tackle version 2 (simpler??) or version 3? 回答1: I would go for the

Minix pkgin error

人盡茶涼 提交于 2019-12-02 06:48:35
问题 Hi I am working on Minix. I installed it on VirtualBox. Now I want to install to Minix some programs like vim, bash etc. However I've gor an error like below: pkgin: Can't open database /usr/var/db/pkgin/pkgin.db: unable to open database file: No such file or directory. I am searching on net but I couldnt find any useful link or sth. How can I get over this issue? 回答1: Maybe you should remove the installation disk from VirtualBox after setup and shutdown. I had this problem and solve it by

Minix pkgin error

蹲街弑〆低调 提交于 2019-12-02 00:43:00
Hi I am working on Minix. I installed it on VirtualBox. Now I want to install to Minix some programs like vim, bash etc. However I've gor an error like below: pkgin: Can't open database /usr/var/db/pkgin/pkgin.db: unable to open database file: No such file or directory. I am searching on net but I couldnt find any useful link or sth. How can I get over this issue? Maybe you should remove the installation disk from VirtualBox after setup and shutdown. I had this problem and solve it by this way. I had the same problem with a local zone in Openindiana 151a8. Try this: root@server:~# mkdir -p

Number of Running Processes on a Minix system from C code

你。 提交于 2019-11-30 15:43:02
So, this seemed simple at first, but after crawling Google and here, the answer doesn't seem as simple as I first thought. Basically, I'm editing a MINIX kernel as part of a practical for my Operating Systems course, and I have to add a little function that spits out the number of running processes when you hit a function key in the Information Server. I've figured out how to integrate the functionality so all the other stuff works, but for the life of me, I can not figure out how to get the current number of processes running in the system into my C code and into a variable to print out.