operating-system

What does YOUR uname say?

Short story: I need to write a PHP script which finds the correct OS type from uname (eg: both wince and winnt would return windows). See here for more info. Shouldn't this be a community wiki? Yes but...see here. How to help: If your OS is not listed below, please run this code and share your findings: <?php echo php_uname(); ?>...

Compiling Unix Version 6 in Snow Leopard

Hi i downloaded souce for unix version 6, i want to study it and test it. I am running Snow Leopard on a macbook pro. 1)Is there a way to compile it in mac. If i comile using make or gmake i am getting the following error. *** Error: Couldn't find an i386-*-elf version of GCC/binutils. *** Is the directory with i386-jos-elf-gcc in your ...

how to mentioned custom UUID in plist file for new bluetooth RFCOMM service using max os x bluetooth api

Hello Experts, I am new to mac os x programming and want to create new RFCOMM bluetooth service with newly generated UUID. I read the Bluetooth Device Access Guide and learned that UUID need to maintain in plist file. But could not find how to maintain uuid in plist file. It will be great help to me if some one can provide sample plist ...

How do i create a VM Ware Image of an AIX LPAR?

Hi, I want to clone a AIX LPAR and was wondering if the physical machine could be converted into a VM Image? I have used the VMWare Converter to create a VM Image of a physical windows box and the documentation states that you can do that for Linux Boxes too. http://www.vmware.com/products/converter/ I don't see information on AIX ...

Are cores (device abstraction level) of OSs written entirely in C? (Like: "UNIX is written in C")

Are cores of OSs (device interaction level) really written in C, or "written in C" means that only most part of OS is written in C and interaction with devices is written in asm? Why I ask that: If core is written in asm - it can't be cross-platform. If it is written is C - I can't imagine how it could be written in C. OK. And what ...

How process returns control back to task manager in multitask systems?

Just a simple question: in a single-task system OS copies smt to memory and then 'goes to' somewhere there and program returns control to task manager later. But in multitasking OS we just make a few steps inside the process and than return to task manager waiting for own turn. How do we 'go to task manager' without 'goto' and 'ret's? (...

i need information on system calls and understanding them

Hello guys, i am new to the Operating System development , and in college i have to add a system call to linux kernel, could you guys give me some in sight on what i will have to learn to be able to do this please. i have to extend the linux kernel, so any cool ideas would also be very helpful... thank you ...

access os x IME capabilities from code

Hi, How can I access the IME configuration of an OS X system? I would like to get the key to enable/disable IME input for instance, get the composition window position, selected candidate etc. Any language is fine, I just want to know how such a thing is possible, thanks! ...

combined paging and segmentation

Actually I'm little more interested about paging and segmentation of memory management of Operating system. I know little about paging and segmentation. Modern OS used combined paging and segmentation. but my question is how they do? what is the modern concept of memory management of operating system? ...

Task management on x86

Can someone please point out some books or online resources which explain in detail and at an advanced level the task management features of x86? I'm specifically interested in understanding the relationship between x86 hardware and the OS (POSIX style) when an interrupt or context switch occurs. Intel manuals are very confusing and I ca...

Problem while creating floppy disk

I am going through BrokenThorn Operating System Development Series. I am trying to create virtual floppy using steps provided there. Steps are : We will use VFD to create a virtual floppy image to copy our OS to. This will explain how to use it. Open vfdwin.exe. Under the Driver tab, Click the Start button. Thi...

where do i add a systemcall to the linux Kernel source

Hello Guys i am tryin to add a new helloworld system call to a new version of the linux ubuntu kernel, i have been looking through the web but i cannot find a consistent example to show me what files i will have to modify to enable a helloworld system call to be added to the kernel. i have tried many and compile error have occured s...

how do i switch custom kernels?

hello guys, i have created and installed a new kernel in my ubuntu system, but now i have added a new system call and created a new kernel, how do i set this new kernel as the one the OS should boot from. dpkg -i kernel-image-2.6.deb i tried this on my first kernel and this set the kernel to this one then i added a new system call ...

why am i getting these syntax errors when trying to implement system call

hello guys, still working on this system call!!! i have added a system call to a kernel, compiled and the OS is running off it. now i am getting syntax error on the compilation of my test application. testmycall.h #include<linux/unistd.h> #define __NR_mycall 244 _syscall1(long, mycall, int, i) testmycall.c #include<stdio.h> #i...

On redirection does the redirected page gets processed?

I put redirection code on the top of a page which has bootstrapping code below. Does redirection spawn a different process making the redirecting page process as a background process or it kills the current process entirely? Im using header() for redirection but surprisingly the remaining code below header() which required database con...

How are cell phones ringing its alarm while they are closed?

Cell phones are opening their os and ringing alarm while they are not working when the time came up. How? ...

Reading In A File While It's Being Changed

I'm curious what happens in this scenero. Suppose I open a file for reading, and begin reading the contents in a loop. Like this: $fp = fopen('test.txt', 'r'); while(!feof($fp)) { fread($fp, 1024); } fclose($fp); What happens if another process starts appending to the file while I'm reading it? ...

system timer implementation

Normally, a computer system only has a timer(hardware), and it trigger the system bu interrupts. But on application layer, we can set multiple tasks based on timer, like cron jobs. I am just wondering how system utilize the timer(hardware) to implement the application tasks(cron jobs, or java scheduled tasks). Thanks ...

What is the best book about osdev?

What is the best book about operating systems development and programming? What books can be more helpful for those looking to program operating systems? ...

How to get the OS information and the Databases that are installed on a machine whose IP address known using Java ?

Hi, I am going to create a tool which shows the OS and Databases related information of a machine. I have the IP address/Host Name of a machine. Using the IP Address/Host Name of that machine I want to get the OS and Databases related information. I need the information of databases(Like Oracle, MySQL, SQL Server..) without actually c...