System programming in C

Hi there,

Am very very interested in system level programming in C????

Please give me a good site or a sample program to start with..

will be of a great help to me..

Thanks,
Nisha

This example is a terminal handler in C sys level programming, it uses ioctl() subroutine.

#include &ltstdio.h>
#include &ltsgtty.h>
/* for Solaris Compilation */
#include &ltsys/termios.h>

struct ltchars old, new;
main()
{
  fprintf(stdout, "ORIGINAL TERMINAL ATTRIBUTES:-\n");
  system("stty all");
 
  ioctl(0,TIOCGLTC,&old); ioctl(0,TIOCGLTC,&new);       
  new.t_suspc='\033'; ioctl(0, TIOCSLTC, &new);        
  fprintf(stdout, "\n\nMODIFIED TERMINAL ATTRIBUTES:-\n");
  system("stty all");
  ioctl(0, TIOCSLTC, &old);                             
}

You can check this as an Example.

Thanks Killerserv!!!

Anybody give me good site for it???

Thanks,
Nisha

Here's one

Nisha,
check this site. Even though the site is not similar to Systems Programming in C. Mostly i did many of my own systems call function programming with the aid of this site.

http://www.cs.cf.ac.uk/Dave/C/CE.html

Thanks killerserv!!!

I used this site for application programming...

Will try it for system programming too...

Thanks,
Nisha
:slight_smile:

hi nisha,

Just download the doc file and

check the links in it with the hyperlink .

All are very nice books. Let me know if

--ajit

Moderator's note: Useless attachment deleted.

ajit_gupta,

You have taken [thread=13774]a thread from our FAQ section[/thread], converted it to a Microsoft Word file, and posted it in response to a thread that is over 3 years old. Please do not do anything like this again.

First, post a link to a thread, not a Microsoft Word copy of a thread. If we update the list of tutorials in that thread (which happens quite often), your Word Doc continues to have the old links. Most of the regulars here know about the thread. But you will cause them to download your copy because they don't know what it is. Not everyone here is running Windows and can deal easily with A Word file. If everyone did stuff like this, we would run out of disk space.

Second, responding to a very old thread is of questionable value. Nisha was last here in August of 2004. You can find that out by looking at Nisha's profile. And the date of the thread is on the thread itself.