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
1
vote
0 answers

Minix 3.2.1 get_uptime usage

Hi I try to calculate time that spend through boot operations; I put get_uptime() just before switch_to_user() function call in kernel/main.c printf("Uptime= %d \n",get_uptime()); however after building and reboot result shown as 0. Is there a…
Palindrom
  • 451
  • 9
  • 26
1
vote
3 answers

Read in users command and execute it

I am new to C programming language and i am trying to do an exercise that i have set myself. What I am wanting to do is to be able to read in a command that the user writes and then execute it. I haven't written any code for this yet and i am…
user3411748
  • 55
  • 1
  • 1
  • 6
1
vote
1 answer

Changing the Priority Queue of Minix3

I installed minix3 on a virtual machine and was hoping I could manipulate the current queue selection algorithm so that I could change it from a priority order to a priority order that includes a random assortment of lower priority jobs. I was able…
John123
  • 301
  • 3
  • 19
1
vote
1 answer

Interrupt handler in ASM/C - How to? -Minix

I've been programming hardware (mouse, keyboard etc) in the Unix OS, Minix and I came across with a few problems when prompted to combine it with Assembly (AT&T syntax). As of now I'm programming the keyboard (getting and printing the scan codes),…
GRoutar
  • 1,311
  • 1
  • 15
  • 38
1
vote
1 answer

Retrieving minix OS version

I'm having a project for the university in which (above others ) i have to get the minix os version from kernell call. This is what i have come to (with some help): int main (int argc, char *argv[] ) { char M3ca1[23]; message ml; …
majnun
  • 19
  • 1
1
vote
2 answers

How to write a simple command line OS?

I have downloaded a MINIX 3 OS, and I run it in parallels desktop on my Mac pro. the MINIX3 is a .iso file, and I want to know how to write some program and pack it out to a .iso file. and run it by virtual machine(Parallels Desktop)? what should I…
krosshj
  • 855
  • 2
  • 11
  • 25
1
vote
1 answer

How can i modify a command in MINIX 3.2.1 so that uses my own system call?

Good evening you all! I'm doing homework on minix 3.2.1, where i'm asked to create an new system call, my_rmdir, that acts exactly like rmdir but also prints the name of the deleted directory. Also I'm supposed to modify the system's source code so…
1
vote
0 answers

Phonegap black screen video tag on some kitkat android 4.4 devices (Minix X8 & Tronsmart S89)

In my Cordova application I use the HTML5 video tag to display videos. This worked just fine, but somehow the mp4/3gp/mov videos do not work on the Android 4.4.2 based media players: Minix X8 & Tronsmart S89. My Sony Xperia Z1 which also runs on…
Tober
  • 228
  • 1
  • 3
  • 14
1
vote
1 answer

Assembly on Minix

I've installed Minix 3 in VMWare on Windows7 64 bit. I'm trying to practice assembly on this VM. Just to start out, I tried a simple program to load numbers into eax and ebx and call the o/s to terminate the program. .globl _start: .section…
1
vote
1 answer

Creating a history command for a shell program using the c language

What I want to do is developing a history command in my shell program. So, whenever the user write history, the last 10 command entered with be displayed on the screen This is my piece of code.. int i; char cmd[4096]; int cmdHisC =0; char…
user3340449
  • 15
  • 1
  • 7
1
vote
1 answer

What do I have to include on a C program to use POSIX system calls?

I'm learning about operating systems on The MINIX Book (Tanembaum), and one of the exercises I went through is to build a VERY simple shell. For this, the book provides this piece of code: #define TRUE 1 while (TRUE) { type_prompt(); …
prcastro
  • 2,178
  • 3
  • 19
  • 21
1
vote
2 answers

Minix 3: add new command

I'm currently trying to add a new command to Minix. I want to add a command named smile, which I want to display continuously a smiling face :-)the same way the command yes do with y. I already created the smile dir in src/commands, with smile.c and…
HappyRave
  • 175
  • 1
  • 4
  • 11
1
vote
0 answers

How How can I change the MINIX Operating System to favor IO bound processes rather than CPU bound processes?

The scheduler currently uses round robin to schedule. I have access to the user time and system time of each process. USER TIME OF HEAD rdy_head[USER_Q]->user_time SYSTEM TIME OF HEAD rdy_head[USER_Q]->user_time I need to favor IO bound processes,…
iamcamcamiam2
  • 75
  • 2
  • 7
1
vote
1 answer

Total user number of user processes in Minix 2.0.4

I am trying to figure out the total number of user processes that Minix 2.0.4. I wrote a program that will perform forks until the forks fail and forks fails after 14 forks are executed and paused. So I think it would be 16 total user processes…
johns4ta
  • 886
  • 2
  • 12
  • 38
1
vote
2 answers

Auto run script in root mode

I am a root user. I want to auto run a script for all the users after login in a root mode. I did find my way to auto run a script for all the users. But for the normal users the permission is denied. Is there any workaround for this?
Rabin
  • 418
  • 3
  • 13