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
1 answer

Why strcpy is defined in Lint_strcpy.c in minix?

For example in FreeBSD strcpy is defined in lib/libc/string/strcpy.c. Why in minix it is defined in lib/libc/string/Lint_strcpy.c, not in strcpy.c just like in FreeBSD? What does Lint prefix mean? It's worth mentioning that in minix some functions…
yomol777
  • 463
  • 4
  • 16
0
votes
1 answer

MINIX 3.3.0: How do I add a new command binary?

I am trying to make a new command in the src/bin folder as a test (called "tcom" for test command, not to be confused with "test" command). I already tried editing src/bin/tcom/Makefile to add the program name and src/bin/Makefile to include the…
Zakalite
  • 13
  • 4
0
votes
1 answer

'No such file or directory.' but file is there

As the title implies I am trying to open a text file in the same directory as of the program I'm running. Here is the code I am using: int main(int argc, char *argv[]){ FILE *filePtr; filePtr = fopen("something.txt", "r"); if (filePtr…
NoHoly
  • 23
  • 4
0
votes
0 answers

There is a task I am unsure based on how to call a loop method to represent a child and parent

With my lab work at uni I have to replace the pseudo code underlined with a method to solve the task involving to " call the loop method, passing in 2 to represent child", im really unsure on how to start this task. if( childProcess >= 0 ) { if(…
Cryces
  • 37
  • 1
0
votes
1 answer

Difference between system call and kernel call in Minix/Microkernel

Conceptually, whats the difference in Minix between a System call and a Kernel call? I kind of understand this difference in an Operating System like Linux, but what about in a microkernel like Minix? Are both types of calls the same?
Bori G
  • 1
  • 3
0
votes
1 answer

Why does strtok() append a space to the last token

I am working on creating a simple version of Minix. I am using fgets() to grab user input. I am then using strtok() to split the string up with the delimiter " ". The problem is when I call strtok(NULL, " "), my token stored appends a space to the…
kCorcoran
  • 19
  • 4
0
votes
1 answer

Microsoft Azure hostname didn't match

I am using Microsoft Azure Face to get the data from an image in an Android Application running in an android box (minix), when I reach the point in the code where I send the image to receive this data I get the following error: Detection failed:…
0
votes
0 answers

pointer returned by malloc changes to NULL at NULLcheck

I have this part of my program: ProcessItem *new_process = (ProcessItem *)malloc(sizeof(ProcessItem)); printf("%p, %d\n", new_process, errno); if(NULL == new_process) { printf("%p, %d\n", new_process, errno); panic("SS: ProcessItem malloc…
Mlezi
  • 105
  • 1
  • 13
0
votes
0 answers

Minix X68-i accelerometer

I have a Minix X68-i with Android 5.1 , I developed an application which uses the accelerometer and the gyroscope. This application works well in my mobile phone but in the Minix it doesn't work, I suppose is because the Minix doesn't have this…
Gerard E
  • 27
  • 9
0
votes
1 answer

Why bit shift left on system call bits?

In kernel/ipc.h Tanenbaum defines the system call bits as: /* System call numbers that are passed when trapping to the kernel. The * numbers are carefully defined so that it can easily be seen (based on * the bits that are on) which checks…
nanoman
  • 341
  • 4
  • 11
0
votes
2 answers

Missing type information in parameters in MINIX 3 (v3.1.0)

In kernel/proto.h, MINIX 3 defines two forward declarations struct proc and struct timer. However much of the type information within the parameters is missing. Examples such as clock_t,U16_t,tmr_func_t, and message are totally missing. There does…
nanoman
  • 341
  • 4
  • 11
0
votes
2 answers

Same type defined in two header files

In the source code of MINIX 3 described in Tanenbaum's MINIX book, the line typedef void _PROTOTYPE( (*sighandler_t),(int) ); appears in both include/signal.h and sys/types.h. Why is it defined twice? EDIT: In sys/types.h some of the surrounding…
nanoman
  • 341
  • 4
  • 11
0
votes
1 answer

How to rename a file by its inode in Minix mfs?

As a part of an alignement at university I have to modify the function unlink_file located in /usr/src/minix/fs/mfs/link.c, so (under certain conditions) instead of removing files it just changes their name. I have parent directory's inode, file's…
Mysquff
  • 293
  • 4
  • 11
0
votes
1 answer

How to change the source code of minix in a local repository

I've been wondering how to solve the following problem. I'm currently learning how to modify an OS's source code to my liking, working example being A.S.Tanenbaum's minix. Say I run minix with qemu and I redirect the ssh port to localhost:10022…
Jytug
  • 1,072
  • 2
  • 11
  • 29
0
votes
0 answers

Threading test program under MINIX has incorrect arc

I'm trying to use the following program to test IPC between threads/processes under Minix. However, this code gives bizarre results - a fair number of errnos, but strangest of all, the "Creating socket was ok.."/"Binding was ok.." message appears…
Mark Green
  • 1,310
  • 12
  • 19