public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] microtime() in ecos tcp/ip
@ 2003-04-22  7:51 张 亮
  2003-04-22 16:33 ` [ECOS] " Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: 张 亮 @ 2003-04-22  7:51 UTC (permalink / raw)
  To: jifl; +Cc: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 688 bytes --]

hi,
   in ecos tcp/ip stack, in support.c,these three functions was like this:

void 
microtime(struct timeval *tp)
{
    panic("microtime");
}

void
get_mono_time(void)
{
    panic("get_mono_time");
}

void 
csignal(pid_t pgid, int signum, uid_t uid, uid_t euid)
{
    panic("csignal");
}

I want know whether they was be called at real condition?


BRS/johnsonest




_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger:  http://messenger.msn.com/cn  


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ECOS] Re: microtime() in ecos tcp/ip
  2003-04-22  7:51 [ECOS] microtime() in ecos tcp/ip 张 亮
@ 2003-04-22 16:33 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2003-04-22 16:33 UTC (permalink / raw)
  To: 张 亮; +Cc: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=GB2312, Size: 1364 bytes --]

ÕÅ ÁÁ wrote:
> hi,
>   in ecos tcp/ip stack, in support.c,these three functions was like this:
> 
> void microtime(struct timeval *tp)
> {
>    panic("microtime");
> }
> 
> void
> get_mono_time(void)
> {
>    panic("get_mono_time");
> }
> 
> void csignal(pid_t pgid, int signum, uid_t uid, uid_t euid)
> {
>    panic("csignal");
> }
> 
> I want know whether they was be called at real condition?

This is the older TCP/IP stack in net/tcpip only that is like this. The
bsd_tcpip stack is okay.

From what I can see, only one of those functions could be called in real
conditions. microtime() could be called if an ICMP timestamp is requested;
get_mono_time() is only used by the ipv6 code in the old net stack, and so
is irrelevant since IPv6 is not supported for it anyway; and csignal will
never be called.

If you want to submit a patch against the old net/tcpip stack to fix
microtime() you could, although that isn't a high priority for us so it
probably won't happen unless you do it.

Jifl
-- 
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-22 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-22  7:51 [ECOS] microtime() in ecos tcp/ip 张 亮
2003-04-22 16:33 ` [ECOS] " Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).