Questions tagged [minix]

is a Unix-like computer operating system based on a microkernel architecture created by Andrew S. Tanenbaum for educational purposes.

MINIX is a Unix-like computer operating system based on a microkernel architecture created by Andrew S. Tanenbaum for educational purposes; MINIX also inspired the creation of the Linux kernel.

MINIX (from "mini-Unix") was first released in 1987, with its complete source code made available to universities for study in courses and research. It has been free and open source software since it was re-licensed under the BSD license in April 2000.

Sizeable subset of Minix source code is also published in the book by its creator Design and Implementation of Operating Systems.

230 questions
0
votes
0 answers

Multiply defined error when using fprintf(), while modifying the kernel of minix 3.1.6

I am modifying kernel of minix 3.1.6 as part of my undergraduate OS project, and I intend to first analyze the scheduling algorithm previously implemented with it by storing scheduling related info for each process in some file, which can be…
0
votes
0 answers

How to edit the hello world driver for Minix/ARM running on a BeagleBone Black

I am a novice student in operating systems, and am having some trouble with a seemingly trivial task. I am simply trying to edit the hello world driver on Minix/ARM running on a BeagleBone Black to print something different from the original…
0
votes
1 answer

Counting number of processes in Minix

I need to create a user program that will be able to see how many processes are running with help of system calls. I found out that getsysinfo() function can give me the result but I get errors when I try to compile my code. I used the following…
Bozic
  • 159
  • 1
  • 12
0
votes
2 answers

Change /dev/zero in MINIX to produce 'a'

For a project I have to change the zero-driver to produce an infinite amount of 'a' instead of the usual zero. So I modified /usr/src/drivers/memory/memory.c This was the original: /* Initialize /dev/zero. Simply write zeros into the buffer. */ for…
Armand Maree
  • 488
  • 2
  • 6
  • 21
0
votes
1 answer

Unexpected output after the first iteration of this code

I honestly have no idea how the following even happens. Here is the code: while(1) { char** line = read_command(); char* command = line[0]; char** parameters = malloc(100); int i; for(i = 0; i < pNum; i++) // pNum is a global…
Armand Maree
  • 488
  • 2
  • 6
  • 21
0
votes
1 answer

Load a Disc (HD) trail into memory (Minix)

Minix is a micro-kernel OS, programmed in C, based in the unix archtecture, used sometimes in embbeded systems, and I have a task to alter the way it works in some ways. In Minix there is a cache for disk blocks (used to make access to disk fast). I…
0
votes
0 answers

Calling assembly macro in minix

I am working on minix 3.1.7, I want to use a macro "SAVE_PROCESS_CTX" defined in "/usr/src/kernel/arch/i386/sconst.h" in my assembly file in "/usr/src/kernel/test.s": /usr/src/kernel/arch/i386/sconst.h: #ifndef __SCONST_H__ #define…
user2963216
  • 391
  • 2
  • 4
  • 11
0
votes
2 answers

Minix 3.2.1 Modifying do_mkdir to print the absolute file path

I want to modify do_mkdir in /usr/src/servers/vfs/open.c in order to when i try to use mkdir command to print in terminal the absolute path to the directory i created.How can i achive that ? Any ideas? I tried the getcwd but i got a undefined…
user1809300
  • 703
  • 4
  • 9
  • 17
0
votes
2 answers

Assembler: jmpf, testb and else instructions

Help me please, i don't understand this code: ... BUFFER = 0x0600 ... rep movs jmpf BUFFER+migrate, 0 ;??? migrate: findactive: testb dl,dl ; ??? jns nextdisk
Glebka
  • 1,420
  • 3
  • 20
  • 37
0
votes
1 answer

Minix grep search with specific extensions

For school I have to do an assignment in which I need to use the grep command within minix to search the source tree for files containing "int main(". With the source tree being stored in /usr/src, I have the following command: grep -rn…
Wouter Pol
  • 1,031
  • 1
  • 8
  • 16
0
votes
1 answer

Does a new process is created when syscall is called in Minix?

For example, when we call write(...) in program in minix. Does a new process is created(like with fork()) or is it done within current process? Is it efficient to make a lot of syscalls?
zlenyk
  • 922
  • 2
  • 7
  • 22
0
votes
3 answers

"Illegal use of selector" in C

As part of a larger project, I am trying to write a C function that searches an implemented sorted linked list for a value in the struct olnode. I'm receiving a few errors, however. I'm new to C and I'm struggling with pointers and double pointers…
vaindil
  • 7,536
  • 21
  • 68
  • 127
0
votes
2 answers

Installing VIM in Minix 3.1.8

I've Googled this a thousand times and I cannot, for the life of me, get VIM to work on my Minix 3. For the record, I am running on a Windows machine with Minix 3 working on Oracle's VM VirtualBox. I've tried typing, # pkgin up && pkgin in vim…
The Hound
  • 81
  • 8
0
votes
0 answers

Assertion "(char *) NextSlot(p) <= next" failed, file "/usr/src/lib/libc/ansi/malloc.c"

I'm currently working on Minix. I'm creating a game "Arkanoid" and so far it's been working fine. I've already added the keyboard and timer functionalities but now when I add the mouse my program just crashes. I checked my log files and I'm getting…
Oneah
  • 11
  • 1
0
votes
0 answers

"Error: No table entry for 64" when compiling C program using cc

I get this error when I try to compile C program in minix 203 using cc compiler. Minix is run from image using qemu on ubuntu 14.04. Does anyone know what that can mean and what to do to compile it succesfully? Regards, Andrzej
Andrzej Smyk
  • 1,684
  • 11
  • 21