ioctl serial port and SIOCGSTAMP

L

lhommedumatch

Hi,
Does the ioctl(fd,SIOCGSTAMP,&time_val) function work for serial port?
(fd = open("/dev/ttyS1",O_RDWR))

Regards,
 
W

Willem

Eric wrote:
) lhommedumatch wrote:
)> Hi,
)> Does the ioctl(fd,SIOCGSTAMP,&time_val) function work for serial port?
)> (fd = open("/dev/ttyS1",O_RDWR))
)
) YOU ARE
) <snip>

Is anyone else getting the feeling that there are suddenly a lot of
very specific off-topic questions in this group ?

Offhand, the questions sound like they're copied from some FAQ list,
perhaps the comp.unix.programmer one, even.


SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
 
W

Walter Roberson

lhommedumatch wrote:
YOU ARE
HERE:
comp.lang.c
| +----------+
| | |
+------------+ |
|
+------+
| YOU BELONG
| HERE:
+---------------> comp.unix.programmer


SIOCGSTAMP does not appear to be part of Unix. It appears to
be primarily Linux.
 
A

Antoninus Twink

Does the ioctl(fd,SIOCGSTAMP,&time_val) function work for serial port?
(fd = open("/dev/ttyS1",O_RDWR))

I can't imagine so! The clue is in the question: SIOCGSTAMP is a
*socket IO control* request, giving you access to timestamp information
for a packet. What would it even mean for a serial device?
 
A

Antoninus Twink

Is anyone else getting the feeling that there are suddenly a lot of
very specific off-topic questions in this group ?

Offhand, the questions sound like they're copied from some FAQ list,
perhaps the comp.unix.programmer one, even.

Are you joking? Do you honestly believe a question as bizarre as the
OP's is frequently asked? I'd be surprised if it's ever occurred to
anyone ever before.
 
K

Kenny McCormack

Jack Klein said:
Perhaps it has to do with the fact that a certain recent regular here
(I don't want to criticize Walter Roberson by mentioning his name) has

But you just did...
 
W

Walter Roberson

Jack Klein said:
Perhaps it has to do with the fact that a certain recent regular here
(I don't want to criticize Walter Roberson by mentioning his name) has

"recent regular"? I've been a regular poster here since February 2005.
made a habit of answering many off-topic questions if they relate to
*NIX systems.

Well, that is an interesting hypothesis, but I don't think it is
supportable with very much in the way of facts and statistics.

For example, there have been quite a number of questions about
sockets recently; could you point to any of my comp.lang.c
postings that have provided more than a very basic hint about
socket programming? And then compare that to the number of times
I have said something similar to,

The C standards do not know anything about networking, let alone
NAT. Networking matters are platform dependant. You should ask
in a development newsgroup that supports your operating system.


Perhaps you became confused by a couple of my recent postings in which
I posted SGI IRIX specific answers in an effort to demonstrate concretely
to the OP that they question they asked truly was system dependant
and that the answer for one system was likely to be completely
useless for other systems. I am certainly not the only regular who
sometimes answers questions with correct but system-dependant
information (often for an obscure platform) as a didactic tool
to demonstrate a point.
 
S

santosh

Walter said:
"recent regular"? I've been a regular poster here since February 2005.


Well, that is an interesting hypothesis, but I don't think it is
supportable with very much in the way of facts and statistics.

Yes. His hypothesis better fits Antoninus Twink, IMO.

<snip>
 
L

lhommedumatch

I can't imagine so! The clue is in the question: SIOCGSTAMP is a
*socket IO control* request, giving you access to timestamp information
for a packet. What would it even mean for a serial device?

Ok, sorry for that and sorry to disturd comp.lang.c.
 
K

Kenny McCormack

-----------------------------------------------------------^^^-------

"recent regular"? I've been a regular poster here since February 2005.


Well, that is an interesting hypothesis, but I don't think it is
supportable with very much in the way of facts and statistics.

Um, whoosh!

Even *I* could tell that Jack was referring to AT.
His reference to you was indeed pretty elliptical, but it was clear you
weren't the one being slimed.

Actually, now that I think about it, I think the point is that the
antecedent of the word "his" (highlighted above) is AT, not WR.

E.g., Johnny did so and so. I won't insult Susie by mentioning his
(meaning Johnny's) last name.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,119
Latest member
IrmaNorcro
Top