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

printf in C is printing the specifier to the console

I am trying to print some stats about the hole struct in MINIX 3 kernel, I have modified the file alloc.c to print the number of holes in the list, number of iterations before a hole in the list was found and average size of the holes. I use printf…
1
vote
0 answers

Android app spontaneously goes to background on Minix Neo X7

I made an app whose goal is to show some information it gets from server via HTTP GET each second. It runs in fullscreen and stays awake. Some kind of information board. It works fine on phones and tablets, but I need it to work on Minix Neo X7/8.…
4xy
  • 3,494
  • 2
  • 20
  • 35
1
vote
0 answers

Number of running processes on Minix

I looked up for similar topics on this website and could not really find a solution. The answers were always shallow and confusing for rookie like myself. I have a task to create a C language program that will display how many processes were running…
Bozic
  • 159
  • 1
  • 12
1
vote
1 answer

Create a custom RAM disk in MINIX

So I am doing a project that requires me to create a RAM disk in MINIX. The question is as follows: Your task is to implement your own RAM disk which can be used as a location to store data where fast access is required. It should have read and…
Armand Maree
  • 488
  • 2
  • 6
  • 21
1
vote
1 answer

"char not expected" error when compiling in MINIX

I need to print a line to the screen and then get user input, but the printf("blah") statements cause my code to not compile. The error message says 'char not expected" but when I comment the printf() statements out, then the code compile. #include…
Armand Maree
  • 488
  • 2
  • 6
  • 21
1
vote
1 answer

Script to empty recycle bin not working

I have created a script of a recycle bin on minix. I move a file that will deleted to a folder instead of deleting it. I have used the alias command on rm command to use the script instead of rm. The problem now is that I have to empty the recycle…
Leonardo Burrone
  • 339
  • 2
  • 5
  • 13
1
vote
0 answers

Building Minix 3.3 Errors

i installed minix 3.3 ,then i downloaded the source and tried to build followd this link instructions. i got an error building minix as follows: *** Error code 1 Stop. make: stopped in /usr/src/gnu/usr.bin/texinfo *** Error code 1 Stop. make:…
user2963216
  • 391
  • 2
  • 4
  • 11
1
vote
2 answers

Kernel's global variable initialization

I am trying to change mechanism of scheduling in Minix203. I need for some reason global variable unsigned short QuantTime[3] = {1,1,1}; I put it in the /usr/src/kernel/proc.c file, then added extern unsigned short QuantTime[3]; to…
Julian Rubin
  • 1,175
  • 1
  • 11
  • 23
1
vote
2 answers

Order in which processes will be carried out

I'm fairly new to C, so I apologize if this is a simple question. I'm writing a C program, part of which is below. The goal of the overall program is to copy a file from one location to another (files are passed as arguments, with the final argument…
vaindil
  • 7,536
  • 21
  • 68
  • 127
1
vote
1 answer

Syscall to new server in Minix 3.2.1

I implemented a new server in minix. It seems to work fine, after "service up..." it is up and waits for messages. In client file: 1)I get endpoint with minix_rs_lookup("serverName",*pt) 2)call _syscall(pt,...) After that I'm getting: sys_call: ipc…
zlenyk
  • 922
  • 2
  • 7
  • 22
1
vote
1 answer

amiga minix , minix st , macminix and other minix1.5 versions posix compatibility

I know minix 2.0 and later have posix compatibility. I want test unix-like operating systems on historicial computers like Commodore Amiga, Atari ST and i386 cpu and run posix compatible apps like pkgsrc, x window system and blackbox wm (for 40Mhz…
1
vote
0 answers

Adjusting the priorities and time slices of processes in Minix, where and how to?

I'm trying to change the priorities of processes in Minix. For now I'm thinking about changing the schedule_process method under minix/servers/sched/schedule.c Original code looks like this: static int schedule_process(struct schedproc * rmp,…
arikan
  • 893
  • 9
  • 18
1
vote
1 answer

Pid from fork not 0 or less than 0 (minix)

I'm writting a C program in which I need some directory to be copied in the middle of the code. So I wrote this function, where I try to use fork and then execvp. However this code doesn't seem to enter pid==0, and is not less than 0 aswell. What…
Mr. Phil
  • 1,099
  • 2
  • 14
  • 31
1
vote
1 answer

Minix current time

How to write current time in printf on Minix 3.2.1? I try to use gmtime like below but it gives error on time(&nowtime). #include #include struct tm *now; time_t nowtime; time(&nowtime); now=gmtime(&nowtime); printf("TIME is…
Palindrom
  • 451
  • 9
  • 26
1
vote
0 answers

How to get my android device to check for system updates on start up?

I'm looking for any way to check for 'System Updates' automatically when I turn on my android device. I am working on a project in school and we are using a MINIX box which is running Android OS, but that is beside the point, and what I am asking is…