I'm thinking of saving data in /sys/class/net from a C program.
Is this possible?
Is there a process explaining how to use this file system for writing?
Thanks in advance for any help.
Related
I am trying to write a programs that is processing data. And for example I want to run 5 of them and they can run in parallel.I have already written shell like program with lexer and parser but I don't know how to manage these processes. Can anyone give me any tips because I'm stuck and have no idea what to do next?
I think you're looking for fork(), wait() and pipe()
You can find tons of examples if you google with those keywords. Hope it helps.
I have to write a Hadoop Streaming program using just C. I have been trying to find a WordCount program online but without any success. I would be grateful if someone would share any C Hadoop Streaming program
Thanks
Just googled and found this page and this with different examples.
I wish to know is there any way (solaris api) for getting the process name from the given process id. In Linux there is way from using the /proc but I am not sure about Solaris.
Thanks in advance.
Thanks
Arpit
Solaris has /proc as well, but it behaves somewhat differently. The documentation for it is here. You probably want the psinfo stuff.
Can anybody point me to a simple (can't stress this enough) implementation of an in memory file system? If I can create a file and do a simple cat file.txt it's more than enough.
I would like to use it as part of my toy OS.
The OSDev wiki site might help you. You can also ask your questions there and if you look at wiki and their forum you will pretty likely get your answer.
In my opinion, in-memory file systems should be as basic as possible. Here is a virtual file system implemented in user-mode from Windows, but its design principals can be used in your own OS. http://www.flipcode.com/archives/Programming_a_Virtual_File_System-Part_I.shtml . Even this might be too much for your basic OS. I say just wing it and create a linked list of file descriptors that include only file attributes, file name, and file path with each file.
This belongs on Super User IMHO, but anyway, you might want to look at ImDisk. It should be more than enough for just creating a RAM disk.
Wait, I misread... this is for your "toy OS"? Your toy OS supports file systems? You're going to have to implement it yourself, since there's no way something preexisting will work with your home-made OS.
Just curious which legacy DOS based system is responsible for a 'TEXT.IX' data file.
If anyone has come across it before please tell :-) Thanks.
Possibly Framemaker (Adobe Systems).
http://filext.com/file-extension/ix