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
3
votes
0 answers

How to return a clean error on incorrect mount with VTreeFS?

When trying to mount a VTreeFS filesystem with a set of arguments (by using options -o when mounting) we want to let it fail cleanly if the user doesn't use the predefined arguments correctly. Currently we get this nasty error message when we do not…
Joost
  • 1,426
  • 2
  • 16
  • 39
3
votes
1 answer

journaling in ext3 - Documentation

I have been looking around for documentation on how journalling is implemented in ext3 and couldn't find any good resources. I am familiar with the internals of ext2 and have gone through the implementation of the same in Linux and Minix. Could you…
user277465
3
votes
2 answers

How long does compiling minix take?

I downloaded the Minix source code through git: git clone git://git.minix3.org/minix minixsrc Then I followed the instructions on Crosscompiling MINIX with build.sh and ran the command sh build.sh -mi386 -O ../build tools Now I have been…
KNejad
  • 2,376
  • 2
  • 14
  • 26
3
votes
1 answer

MINIX: Retrieve a file's inode by the filename

In MINIX 3.2.1, I want to create a new system call which will be given a filename as a parameter and will print the certain file's inode number. I have created and modified all the needed files to do that. So in order to retrieve the inode of the…
thomas_p
  • 97
  • 1
  • 14
3
votes
1 answer

Modyifing existing do_mkdir() system call to print created folder that doesn't already exist

I'm trying to familiarize myself with modifying Minix system calls and rebuilding the kernel. I modified mkdir to print New dir -> every time it was called, unless the directory already existed. I edited…
solid.py
  • 2,782
  • 5
  • 23
  • 30
3
votes
0 answers

how to initialize an endpoint_t variable in minix3?

I have followed this and this to make a functional driver in minix3. I am trying to initialize an endpoint_t variable in order to call my function but all i get is Request 0x700 to RS failed; specified endpoint is not alive (error 215) I am…
3
votes
2 answers

Adding new System Call in Minix

I am trying to create a new system call in Minix 3.3. At first i just want to create simple printmsg() call that will write "Hello World" on screen. I looked various tutorials on internet and still couldn't find out solution. I defined my sys…
Bozic
  • 159
  • 1
  • 12
3
votes
2 answers

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

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…
user2963216
  • 391
  • 2
  • 4
  • 11
3
votes
2 answers

"void not expected" in C

I have the below code in a larger C program. I've had no issues until just now when I tried to compile it; it's being run in Minix 2.0.4 and compiled using cc. A compilation error is thrown as follows: line 26: void not expected Line 26 is simply a…
vaindil
  • 7,536
  • 21
  • 68
  • 127
3
votes
1 answer

Minix: undefined reference to 'strtok'?

I am trying to add a new system call at: /usr/src/servers/pm/exec.c I write a very simple method in exec.c: void parseBlack(char * value){ char * ptr = strtok(values, ";"); } However, when I try to compile it there is an error: In function…
fhlkm
  • 333
  • 1
  • 6
  • 14
3
votes
0 answers

Lite (ansi c 89) os for custom cpu?

A friend of mine created a 16-bit stack based CPU on an fpga and I've been developing an ANSI C 89 compiler for it. He needs a file system and networking so he's now working on an os for it based on minix, but he's doing it on a pascal based…
Anthony
  • 604
  • 6
  • 18
3
votes
1 answer

Python C extensions on MINIX

I was trying to build this package I wrote (which I know to be working), first in the usual way through distutils: # python2.7 setup.py build running build running build_py running build_ext building 'uptime._posix' extension gcc…
Cairnarvon
  • 25,981
  • 9
  • 51
  • 65
3
votes
1 answer

Minix write to the file from /kernel/system

I need to write some information to my special log file (for example, /home/log.txt) from kernel/system/do_kill.c (Minix). I already tried: int filedesc; filedesc=open("/home/log.txt", O_CREAT | O_RDWR); write(filedesc, "Test message\n",…
user1964654
  • 51
  • 1
  • 4
2
votes
0 answers

Minix Internal Fragmentation

Possible Duplicate: Internal Fragmentation I have recently been working on a project to recursively list all files within a directory and output the filename, size and path. I now need to add the amount of internal fragmentation to the output and…
Charlie
  • 1,308
  • 5
  • 14
  • 24
2
votes
1 answer

Minix 3 stdio.h doesn't recognize FILE *f

I'm developing something on Minix 3 and, when it comes to deal with io files, I got a problem. In the code: #include /* If I don't call any stdio funcs compiler doesnt's complain*/ int main() { FILE * fp; /* I get the following: " * not…
ikyr9999
  • 115
  • 1
  • 1
  • 6
1
2
3
15 16