Hi. This is my first post on this forum, and I'm a bit of a
to Linux programming. I got this book, C for dummies. It's very good so far, and I've finished volume one. All the examples are written with DOS in mind (it's quite an old book), but I've managed to get most of them to work in Debian Linux (which I'm also quite new to. Before that, I used Mac OS X. Actually, I still do on my other computer).
Anyway, I was forced to skip one chapter in the first book about DOS and BIOS calls, because they wouldn't work on Debian Linux. They required a header file called dos.h, which I didn't have. Now, in the second book, the examples make quite extensive use of these techniques, so I'd like to know how to do it on linux. I've been searching around the web a bit and on other forums, and BIOS calls seem to be a bit of a taboo. Everyone keeps insisting that there are "better ways to do it". I'm sure they have more experience than me, and are probably right, but I still want to know if it's possible because I need to learn how to do it in order to finish my book. I promise that I won't use these techniques in the future after I finish reading the book, if someone will just tell me how to do it!
Has anyone else tried C For Dummies on Linux? How did you get around the problem?
If it's actually impossible
to achieve this under Debian Linux, what "other ways" are there? For example, there's a simple program that ejects a page from the printer using the printer BIOS. There's a program which uses the keyboard BIOS, and stuff about the video BIOS etc. Please help me, this is driving me mad!!! Thankyou in advance for any and all help you give me.