LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 12-17-2006, 10:42 PM   #1
henry0712
LQ Newbie
 
Registered: Dec 2006
Posts: 5

Rep: Reputation: 0
What is the system call of getting the terminal attribute?


Hi, everybody:
When I want to get the terminal attribute , I can use the tcgetattr() of c lib function , or use the stty command of Shell. But, what system call the function or command use to perform?
The fcntl() call can get a file attribute, however, it cannot return the termios struct.
Thanks!

henry
 
Old 01-01-2007, 12:47 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,408

Rep: Reputation: 108Reputation: 108
Moved: This thread is more suitable in Programming and has been moved accordingly to help your thread/question get the exposure it deserves. It's not a Newbie question...

After a grep it confirms my suspicion that it's a kind of iocntl. Search for TCGETS (and other TC*). They're defined in system headers.
 
Old 01-02-2007, 12:06 PM   #3
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: Slackware64 13.37, Kubuntu 10.04
Posts: 2,944

Rep: Reputation: Disabled
Take a look at "info libc". That has everything you need to know about that sort of thing.
ta0kira
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
system system call usage sureshkellemane Programming 3 03-20-2007 12:41 AM
System Call asmeti Linux - Kernel 1 11-08-2006 07:18 AM
Calling a system call from a system call? Loc_8 Programming 0 09-16-2006 04:21 PM
using system call ej25 Programming 9 11-30-2004 11:45 AM
Is it possible to use system() and get the return value from the system call newguy21 Programming 1 08-11-2004 01:37 PM


All times are GMT -5. The time now is 06:07 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration