Linux equivalent

  • Follow


gettaskid(),settaskid() functions are
found in Solaris, Geeks can I get 
equivalent for these functions on Linux
side.
alex
0
Reply alex_xml (1) 9/7/2004 9:25:31 AM

In article <ead09bef.0409070125.1ca1c2e9@posting.google.com> (Tue, 07 Sep
2004 02:25:31 -0700), alex stuart wrote:

> gettaskid(),settaskid() functions are
> found in Solaris, Geeks can I get 
> equivalent for these functions on Linux
> side.

RTFM
0
Reply hamilcar2 (2631) 9/7/2004 10:12:37 AM


begin  alex stuart wrote:

> gettaskid(),settaskid() functions are
> found in Solaris, Geeks can I get
> equivalent for these functions on Linux
> side.
> alex

So you inist on posting irrelevant questions onder different names, "alex
stuart" aka "shane_lca"

In other words, you try to troll.

Get lost, cretin
-- 
Just out of curiosity does this actually mean something or have some
of the few remaining bits of your brain just evaporated?

0
Reply Peter.Koehlmann (13202) 9/7/2004 10:39:53 AM

Error BR-549: MS DRM 1.0 rejects the following post from alex stuart:

> gettaskid(),settaskid() functions are found in Solaris, Geeks can I get
> equivalent for these functions on Linux side.

You're using google to post, why not use it to search?

-- 
[X] Check here to always trust content from Lin�nut
0
Reply iso 9/7/2004 10:49:50 AM

On 2004-09-07, Lin�nut <lin�nut@bone.com> sputtered:
> Error BR-549: MS DRM 1.0 rejects the following post from alex stuart:
>
>> gettaskid(),settaskid() functions are found in Solaris, Geeks can I get
>> equivalent for these functions on Linux side.
>
> You're using google to post, why not use it to search?

The trolls don't have that google link in their browsers.

-- 
When you boil it down to the essentials, it's because Linux is
designed to be *used* and Windows is designed to be *sold*.
0
Reply sinister2419 (3164) 9/7/2004 11:05:50 AM

Peter Köhlmann wrote:

> begin  alex stuart wrote:
> 
>> gettaskid(),settaskid() functions are
>> found in Solaris, Geeks can I get
>> equivalent for these functions on Linux
>> side.
>> alex
> 
> So you inist on posting irrelevant questions onder different names, "alex
> stuart" aka "shane_lca"
> 
> In other words, you try to troll.
> 
> Get lost, cretin

Peter Kohlmann a.k.a. Herr Fritz Grubbel a.k.a. "The Baker of Leone" 

How long can you hide ?!!?!?!




0
Reply cj359 (40) 9/7/2004 12:17:33 PM

On Tue, 07 Sep 2004 02:25:31 +0000, alex stuart wrote:

> gettaskid(),settaskid() functions are
> found in Solaris, Geeks can I get 
> equivalent for these functions on Linux
> side.
> alex

dunno - what do they do???

0
Reply ray65 (5398) 9/7/2004 4:00:01 PM

alex_xml@yahoo.co.in (alex stuart) wrote in message news:<ead09bef.0409070125.1ca1c2e9@posting.google.com>...
> gettaskid(),settaskid() functions are
> found in Solaris,

Each version of UNIX (AIX, HP_UX, Solaris, UnixWare,...) implements a
number of system specific functions to access things like kernel
properties.  Normally the more commonly used ones can be accessed in
an equivalent form using the glibc libraries.

Can you tell me what code you are trying to implement that offers
these functions?  Can you tell me more about what these specific
functions provide?

There is a link that shows how to implement an equivalent.
http://rpmfind.net/linux/RPM/suse/8.1/i386/suse/i586/gridengine-5.3-50.i586.html


See if this helps for gettaskid()

http://yasa.e-technik.uni-rostock.de/cgi-bin/cvsweb.cgi/yasa/yasagui/statistics.h?rev=1.4

> Geeks can I get 
> equivalent for these functions on Linux
> side.
> alex
0
Reply r.e.ballard (1110) 9/7/2004 5:07:48 PM


Rex Ballard wrote:

> alex_xml@yahoo.co.in (alex stuart) wrote in message news:<ead09bef.0409070125.1ca1c2e9@posting.google.com>...
> 
>>gettaskid(),settaskid() functions are
>>found in Solaris,
> 
> 
> Each version of UNIX (AIX, HP_UX, Solaris, UnixWare,...) implements a
> number of system specific functions to access things like kernel
> properties.  Normally the more commonly used ones can be accessed in
> an equivalent form using the glibc libraries.
> 
> Can you tell me what code you are trying to implement that offers
> these functions?  Can you tell me more about what these specific
> functions provide?
> 
> There is a link that shows how to implement an equivalent.
> http://rpmfind.net/linux/RPM/suse/8.1/i386/suse/i586/gridengine-5.3-50.i586.html
> 
> 
> See if this helps for gettaskid()
> 

http://docs.sun.com/db/doc/817-0691/6mgfmmdp2?q=gettaskid&a=view

Maybe you can make out what it is comparable to.

> http://yasa.e-technik.uni-rostock.de/cgi-bin/cvsweb.cgi/yasa/yasagui/statistics.h?rev=1.4
> 
> 
>>Geeks can I get 
>>equivalent for these functions on Linux
>>side.
>>alex

-- 
---------------------------------
The Golden Years Sux.

0
Reply mist (10317) 9/7/2004 6:06:35 PM

Peter K�hlmann <Peter.Koehlmann@t-online.de> wrote in message news:<chk304$35n$00$1@news.t-online.com>...
> begin  alex stuart wrote:
> 
> > gettaskid(),settaskid() functions are
> > found in Solaris, Geeks can I get
> > equivalent for these functions on Linux
> > side.
> > alex
> 
> So you inist on posting irrelevant questions onder different names, "alex
> stuart" aka "shane_lca"
> 
> In other words, you try to troll.
> 
> Get lost, cretin

And who are to question any poaster's question, you fucking kuntmann
idiot, just answer the fucking question or put 7's dick back in your
mouth and resume your cocksucking hobby, moron.
0
Reply peterbilt_usa (255) 9/7/2004 11:26:43 PM

begin  <30a094b6.0409071526.716277d2@posting.google.com>,
	peterbilt_usa@hotmail.com (Peter Bilt) writes:
> 
> And who are to question any poaster's question, you fucking kuntmann
> idiot, just answer the fucking question or put 7's dick back in your
> mouth and resume your cocksucking hobby, moron.

Yet another closet gay exposes himself. I suppose posting your
fantasies here is safer than trawling the local WC's these days..
0
Reply rgc4 (3216) 9/7/2004 11:40:21 PM


Roy Culley wrote:

> begin  <30a094b6.0409071526.716277d2@posting.google.com>,
> 	peterbilt_usa@hotmail.com (Peter Bilt) writes:
> 
>>And who are to question any poaster's question, you fucking kuntmann
>>idiot, just answer the fucking question or put 7's dick back in your
>>mouth and resume your cocksucking hobby, moron.
> 
> 
> Yet another closet gay exposes himself. I suppose posting your
> fantasies here is safer than trawling the local WC's these days..

His nym should be enough to expose him for what he is.

-- 
---------------------------------
The Golden Years Sux.

0
Reply mist (10317) 9/8/2004 5:20:21 AM

hi GreyCloud
im new to Linux, does linux provides the equivalent
functions to the following Interface,
wsspn()
 wstod()
 wstok()
 wstol()
 wstostr()
 wstring()
 wsxfrm()
  Acutally these are wide character string operations
normally found on the Solaris.  i searched a lot but
no such thing is present on Linux libraries
Prasanna Bhat M
>sudharshana "glimpse of self"
GreyCloud <mist@cumulus.com> wrote in message news:<IIqdndcjn_e2ZaDcRVn-gA@bresnan.com>...
> Rex Ballard wrote:
> 
> > alex_xml@yahoo.co.in (alex stuart) wrote in message news:<ead09bef.0409070125.1ca1c2e9@posting.google.com>...
> > 
> >>gettaskid(),settaskid() functions are
> >>found in Solaris,
> > 
> > 
> > Each version of UNIX (AIX, HP_UX, Solaris, UnixWare,...) implements a
> > number of system specific functions to access things like kernel
> > properties.  Normally the more commonly used ones can be accessed in
> > an equivalent form using the glibc libraries.
> > 
> > Can you tell me what code you are trying to implement that offers
> > these functions?  Can you tell me more about what these specific
> > functions provide?
> > 
> > There is a link that shows how to implement an equivalent.
> > http://rpmfind.net/linux/RPM/suse/8.1/i386/suse/i586/gridengine-5.3-50.i586.html
> > 
> > 
> > See if this helps for gettaskid()
> > 
> 
> http://docs.sun.com/db/doc/817-0691/6mgfmmdp2?q=gettaskid&a=view
> 
> Maybe you can make out what it is comparable to.
> 
> > http://yasa.e-technik.uni-rostock.de/cgi-bin/cvsweb.cgi/yasa/yasagui/statistics.h?rev=1.4
> > 
> > 
> >>Geeks can I get 
> >>equivalent for these functions on Linux
> >>side.
> >>alex
0
Reply boss_bhat (11) 9/8/2004 2:35:52 PM

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

prasanna bhat mavinkuli wrote:

You posted as "alex stuart" not that long ago.  Why did you change
identity?  It couldn't be because you were trolling, could it?

> im new to Linux, does linux provides the equivalent
> functions to the following Interface,
> wsspn()
>  wstod()
>  wstok()
>  wstol()
>  wstostr()
>  wstring()
>  wsxfrm()
>   Acutally these are wide character string operations
> normally found on the Solaris.  i searched a lot but
> no such thing is present on Linux libraries

Why don't you explain what the functions *do*, instead of just expecting
the function names to be the same (and if they're not in POSIX or some
comparable standard, I don't see why they should be).

You've been trolling a lot lately, asking for equivalent Linux functions
to lots of obscure Solaris functions.  Why?  If you're trying to port
some app, you should have thought about portability before starting, and
only gone with standardized functions.  If you're trying to somehow give
the impression that Linux is lacking because some obscure function
doesn't exist, then I could probably point out a lot if other things
that Linux does right but Solaris screws up.  What's the deal?  And
don't you dare reply with another list of functions you can't find Linux
equivalents for ...

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBPycld1ZThqotgfgRAleiAKC40G4LARhBJLsvxQ2WunzhOggY7ACgkKbq
UK18DUBGt8+8DIXtvWAjw30=
=lpf0
-----END PGP SIGNATURE-----
-- 
PeKaJe

I'll defend to the death your right to say that, but I never said I'd
listen to it!  -- Tom Galloway with apologies to Voltaire
0
Reply usenet21 (2476) 9/8/2004 3:37:12 PM

Error BR-549: MS DRM 1.0 rejects the following post from prasanna bhat mavinkuli:

> hi GreyCloud
> im new to Linux, does linux provides the equivalent
> functions to the following Interface,
> wsspn()
>  wstod()
>  wstok()
>  wstol()
>  wstostr()
>  wstring()
>  wsxfrm()
>   Acutally these are wide character string operations
> normally found on the Solaris.  i searched a lot but
> no such thing is present on Linux libraries
> Prasanna Bhat M

You didn't look very hard.  gcc supports the full complement of ANSI wide
string operations, including some GNU extensions.

Try replacing "w" with "wc" and you'll have a bit better luck, language lamer.
The names you quote are non-standard.

Freakin' idiot "Solaris" troll!

-- 
[X] Check here to always trust content from Lin�nut
0
Reply iso 9/8/2004 4:10:16 PM


prasanna bhat mavinkuli wrote:

> hi GreyCloud
> im new to Linux, does linux provides the equivalent
> functions to the following Interface,
> wsspn()
>  wstod()
>  wstok()
>  wstol()
>  wstostr()
>  wstring()
>  wsxfrm()
>   Acutally these are wide character string operations
> normally found on the Solaris.  i searched a lot but
> no such thing is present on Linux libraries
> Prasanna Bhat M
> 

http://docs.sun.com/db/doc/817-0692/6mgfnkv1f?q=wsspn&a=view

Go here and then go to the gnu C website and see if it is there as well.
I would say that wide character support is in there for Linux.


>>sudharshana "glimpse of self"
> 
> GreyCloud <mist@cumulus.com> wrote in message news:<IIqdndcjn_e2ZaDcRVn-gA@bresnan.com>...
> 
>>Rex Ballard wrote:
>>
>>
>>>alex_xml@yahoo.co.in (alex stuart) wrote in message news:<ead09bef.0409070125.1ca1c2e9@posting.google.com>...
>>>
>>>
>>>>gettaskid(),settaskid() functions are
>>>>found in Solaris,
>>>
>>>
>>>Each version of UNIX (AIX, HP_UX, Solaris, UnixWare,...) implements a
>>>number of system specific functions to access things like kernel
>>>properties.  Normally the more commonly used ones can be accessed in
>>>an equivalent form using the glibc libraries.
>>>
>>>Can you tell me what code you are trying to implement that offers
>>>these functions?  Can you tell me more about what these specific
>>>functions provide?
>>>
>>>There is a link that shows how to implement an equivalent.
>>>http://rpmfind.net/linux/RPM/suse/8.1/i386/suse/i586/gridengine-5.3-50.i586.html
>>>
>>>
>>>See if this helps for gettaskid()
>>>
>>
>>http://docs.sun.com/db/doc/817-0691/6mgfmmdp2?q=gettaskid&a=view
>>
>>Maybe you can make out what it is comparable to.
>>
>>
>>>http://yasa.e-technik.uni-rostock.de/cgi-bin/cvsweb.cgi/yasa/yasagui/statistics.h?rev=1.4
>>>
>>>
>>>
>>>>Geeks can I get 
>>>>equivalent for these functions on Linux
>>>>side.
>>>>alex

-- 
---------------------------------
The Golden Years Sux.

0
Reply mist (10317) 9/8/2004 6:57:21 PM


Peter Jensen wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> prasanna bhat mavinkuli wrote:
> 
> You posted as "alex stuart" not that long ago.  Why did you change
> identity?  It couldn't be because you were trolling, could it?
> 
> 
>>im new to Linux, does linux provides the equivalent
>>functions to the following Interface,
>>wsspn()
>> wstod()
>> wstok()
>> wstol()
>> wstostr()
>> wstring()
>> wsxfrm()
>>  Acutally these are wide character string operations
>>normally found on the Solaris.  i searched a lot but
>>no such thing is present on Linux libraries
> 
> 
> Why don't you explain what the functions *do*, instead of just expecting
> the function names to be the same (and if they're not in POSIX or some
> comparable standard, I don't see why they should be).
> 
> You've been trolling a lot lately, asking for equivalent Linux functions
> to lots of obscure Solaris functions.  Why?  If you're trying to port
> some app, you should have thought about portability before starting, and
> only gone with standardized functions.  If you're trying to somehow give
> the impression that Linux is lacking because some obscure function
> doesn't exist, then I could probably point out a lot if other things
> that Linux does right but Solaris screws up.  What's the deal?  And
> don't you dare reply with another list of functions you can't find Linux
> equivalents for ...
> 

According to Suns docs, they are ISO C standard.

-- 
---------------------------------
The Golden Years Sux.

0
Reply mist (10317) 9/8/2004 6:58:05 PM

alex_xml@yahoo.co.in (alex stuart) wrote in message news:<ead09bef.0409070125.1ca1c2e9@posting.google.com>...
> gettaskid(),settaskid() functions are
> found in Solaris, Geeks can I get 
> equivalent for these functions on Linux
> side.
> alex

Greycloud, thanks for the reference back to the sun man pages.

gettaskid and settaskid are functions of the directory services or
LDAP function.

<quote>
gettaskid: http://www.scit.wlv.ac.uk/cgi-bin/mansec?2+gettaskid

     The settaskid() function makes a request of  the  system  to
     assign  a  new  task ID to the calling process, changing the
     associated project ID to that specified.  The  calling  pro-
     cess  must  have superuser privileges to perform this opera-
     tion.  The flags argument should be either TASK_NORMAL for a
     regular task, or TASK_FINAL, which disallows subsequent set-
     taskid() calls by the created task.

     The gettaskid() function returns the task ID of the  calling
     process.

     The getprojid() function returns the project ID of the  cal-
     ling process.
</quote>

http://pds.irt.vein.hu/jgrid/ea_doc/ComputeService/

It looks like these would be part of the mpi clusting used in grids.
This is very advanced stuff, grids are used when you wnat to strap
several machines together and start processes on all of them and pass
messages between them.

Sun has integrated mpi at the kernel level.  Linux has implemented mpi
at the library level.

This gives some descriptions of how Jgrid, which is a 
http://pds.irt.vein.hu/jgrid/ea_doc/ComputeService/#task


from: 
http://www.it.fht-esslingen.de/~linkohr/realzeit/leo/usr/local/LEO/doc/pdf/leo.pdf

LEO Kernel Thread
The OSEK kernel runs as an individual thread. When making a system
call, OSEK Tasks or ISRs post the corresponding request to the system
thread. All system calls operate synchronously and await the
completion before giving control back to the caller. Note that a
number of services, like GetTaskId() do not require making such a
system call, and hence provide a significantly faster performance. See
also Section 3.4 [System Services], page 8.

A bit more:
<b><quote>
3.4 System Services
The OSEK system services available under LEO comprise all services of
the OSEK OS specification 2.0. The table below lists all system
services along with their availability within Task or ISR contexts.
The last column displays whether a real system call is necessary to
perform the service. Services which do not require a real system call
execute significantly faster than the others.
Service             In Tasks   In ISRs    System Call
ActivateTask()      yes        yes        yes
TerminateTask()     yes        �          �
ChainTask()         yes        �          yes
Schedule()          yes        �          yes
GetTaskId()         yes        �          �
GetTaskState()      yes        yes        �
EnterISR()          �          yes       yes
LeaveISR()          �          yes       yes
EnableInterrupt()   yes        yes       yes
DisableInterrupt()  yes        yes       yes
GetInterruptDescriptor() yes   yes       �
GetResource()       yes        �         yes
ReleaseResource()   yes        �         yes
SetEvent()          yes        yes       yes
ClearEvent()        yes        �         yes
GetEvent()          yes        yes       �
WaitEvent()         yes        �         yes
SetRelAlarm()       yes        yes       yes
SetAbsAlarm()       yes        yes       yes
CancelAlarm()       yes        yes       yes
GetAlarm()          yes        yes       �
GetAlarmBase()      yes        yes       �
StartOS() � � �
ShutdownOS() yes � �
In addition to the official OSEK API version 2.0, LEO still provides
the obsolete OSEK1
Counter
and the Message API. Using the Counter and Message API make your code
will no longer be
portable to other implementations of OSEK2.
Service             In Tasks       In ISRs   System Call
SendStateMessage()       yes       yes       yes
ReceiveStateMessage()    yes       �         yes
SendEventMessage()       yes       yes       yes
ReceiveEventMessage()    yes       �         yes
InitCounter()            yes       �         yes
CounterTrigger()         yes       yes       yes
GetCounterValue()        yes       �         yes
GetCounterInfo()         yes       �         �
LEO for Linux User's Manual
</quote></b>

Does that also cover some of the other issues you had?
0
Reply r.e.ballard (1110) 9/8/2004 11:32:03 PM

Lin�nut <lin�nut@bone.com> wrote in message news:<Xfudne7Hu891s6LcRVn-jA@comcast.com>...
> Error BR-549: MS DRM 1.0 rejects the following post from prasanna bhat mavinkuli:
> 
> > hi GreyCloud
> > im new to Linux, does linux provides the equivalent
> > functions to the following Interface,
> > wsspn()
> >  wstod()
> >  wstok()
> >  wstol()
> >  wstostr()
> >  wstring()
> >  wsxfrm()
> >   Acutally these are wide character string operations
> > normally found on the Solaris.  i searched a lot but
> > no such thing is present on Linux libraries
> > Prasanna Bhat M
> 
> You didn't look very hard.  gcc supports the full complement of ANSI wide
> string operations, including some GNU extensions.
> 
> Try replacing "w" with "wc" and you'll have a bit better luck, language lamer.
> The names you quote are non-standard.
> 
> Freakin' idiot "Solaris" troll!

Were you perhaps looking in the wrong part of the manual?  Sun may
have put them in their Man 2 section, where Linux may have put them in
their Man 3 sections.

Linux helped to set the standard for internationalization.  Linux
developers in Europe and Asia were able to adopt a number of standards
which has reduced the dependency on these lower level primatives.  But
you can use them if you wish.
0
Reply r.e.ballard (1110) 9/8/2004 11:38:14 PM

Error BR-549: MS DRM 1.0 rejects the following post from Rex Ballard:

> Linux helped to set the standard for internationalization.  Linux
> developers in Europe and Asia were able to adopt a number of standards
> which has reduced the dependency on these lower level primatives.  But
> you can use them if you wish.

Not Linux.  GNU.  I'm looking at the book "GNU C Library:  Application
Fundamentals" that I bought from GNU Press.

Chapter 5 describes string and array utilities including

   wcslen()
   wcsnlen()
   wmempcpy()
   wmemmove()
   wmemset()
   wcscpy()
   wcsncpy()
   wcsdup()
   wcpcpy()
   wcpncpy()
   wcscat()
   wcsncat()
   wmemcmp()
   wcscmp()
   wcscasecmp()
   wcsncmp()
   wscoll()
   wcsxfrm()
   wmemchr()
   wcschr()
   wcschrnul()
   wcsrchr()
   wcstr()
   wcscws()
   wcsspn()
   wcwcspn()
   wcspbrk()
   wcstok()

Chapter 6 is 50 pages on "Character-Set Handling", including discussions of

   btow()
   wctobc()
   mbrtowc()
   mbrlen()
   wcrtomb()
   mbsrtowcs()
   wcsrtombs()
   mbsnrtowcs()
   wcsnrtombs()
   mbtowc()
   wctomb()
   mblen()
   mbstowcs()
   wcstombs()
   iconv_open(), _close(), and iconv()

Chapter 7 addresses "Locales and Internationalization"

And this is just C.  You have to go to Stroustrop's book to learn about all the
multibyte, wide-character, and localization handling available in Standard C++.

And it is all pretty portable.

-- 
[X] Check here to always trust content from Lin�nut
0
Reply iso 9/9/2004 2:31:59 AM

In article <413f2728$0$241$edfadb0f@dread12.news.tele.dk> (Wed, 08 Sep
2004 15:37:12 +0000), Peter Jensen wrote:

> prasanna bhat mavinkuli wrote:
> 
> You posted as "alex stuart" not that long ago.  Why did you change
> identity?  It couldn't be because you were trolling, could it?

This kook's been posting in various newsgroups, asking about various and
sundry kernel (or library) calls.  It doesn't seem to be looking for a
fight.
0
Reply hamilcar2 (2631) 9/9/2004 4:31:54 AM


Rex Ballard wrote:

> alex_xml@yahoo.co.in (alex stuart) wrote in message news:<ead09bef.0409070125.1ca1c2e9@posting.google.com>...
> 
>>gettaskid(),settaskid() functions are
>>found in Solaris, Geeks can I get 
>>equivalent for these functions on Linux
>>side.
>>alex
> 
> 
> Greycloud, thanks for the reference back to the sun man pages.
> 
> gettaskid and settaskid are functions of the directory services or
> LDAP function.
> 

I sure wish Sun would add that little extra bit of info like you did.
I didn't know about this until you tied it all together.  Thnx much.

> <quote>
> gettaskid: http://www.scit.wlv.ac.uk/cgi-bin/mansec?2+gettaskid
> 
>      The settaskid() function makes a request of  the  system  to
>      assign  a  new  task ID to the calling process, changing the
>      associated project ID to that specified.  The  calling  pro-
>      cess  must  have superuser privileges to perform this opera-
>      tion.  The flags argument should be either TASK_NORMAL for a
>      regular task, or TASK_FINAL, which disallows subsequent set-
>      taskid() calls by the created task.
> 
>      The gettaskid() function returns the task ID of the  calling
>      process.
> 
>      The getprojid() function returns the project ID of the  cal-
>      ling process.
> </quote>
> 
> http://pds.irt.vein.hu/jgrid/ea_doc/ComputeService/
> 
> It looks like these would be part of the mpi clusting used in grids.
> This is very advanced stuff, grids are used when you wnat to strap
> several machines together and start processes on all of them and pass
> messages between them.
> 
> Sun has integrated mpi at the kernel level.  Linux has implemented mpi
> at the library level.
> 
> This gives some descriptions of how Jgrid, which is a 
> http://pds.irt.vein.hu/jgrid/ea_doc/ComputeService/#task
> 
> 
> from: 
> http://www.it.fht-esslingen.de/~linkohr/realzeit/leo/usr/local/LEO/doc/pdf/leo.pdf
> 
> LEO Kernel Thread
> The OSEK kernel runs as an individual thread. When making a system
> call, OSEK Tasks or ISRs post the corresponding request to the system
> thread. All system calls operate synchronously and await the
> completion before giving control back to the caller. Note that a
> number of services, like GetTaskId() do not require making such a
> system call, and hence provide a significantly faster performance. See
> also Section 3.4 [System Services], page 8.
> 
> A bit more:
> <b><quote>
> 3.4 System Services
> The OSEK system services available under LEO comprise all services of
> the OSEK OS specification 2.0. The table below lists all system
> services along with their availability within Task or ISR contexts.
> The last column displays whether a real system call is necessary to
> perform the service. Services which do not require a real system call
> execute significantly faster than the others.
> Service             In Tasks   In ISRs    System Call
> ActivateTask()      yes        yes        yes
> TerminateTask()     yes        �          �
> ChainTask()         yes        �          yes
> Schedule()          yes        �          yes
> GetTaskId()         yes        �          �
> GetTaskState()      yes        yes        �
> EnterISR()          �          yes       yes
> LeaveISR()          �          yes       yes
> EnableInterrupt()   yes        yes       yes
> DisableInterrupt()  yes        yes       yes
> GetInterruptDescriptor() yes   yes       �
> GetResource()       yes        �         yes
> ReleaseResource()   yes        �         yes
> SetEvent()          yes        yes       yes
> ClearEvent()        yes        �         yes
> GetEvent()          yes        yes       �
> WaitEvent()         yes        �         yes
> SetRelAlarm()       yes        yes       yes
> SetAbsAlarm()       yes        yes       yes
> CancelAlarm()       yes        yes       yes
> GetAlarm()          yes        yes       �
> GetAlarmBase()      yes        yes       �
> StartOS() � � �
> ShutdownOS() yes � �
> In addition to the official OSEK API version 2.0, LEO still provides
> the obsolete OSEK1
> Counter
> and the Message API. Using the Counter and Message API make your code
> will no longer be
> portable to other implementations of OSEK2.
> Service             In Tasks       In ISRs   System Call
> SendStateMessage()       yes       yes       yes
> ReceiveStateMessage()    yes       �         yes
> SendEventMessage()       yes       yes       yes
> ReceiveEventMessage()    yes       �         yes
> InitCounter()            yes       �         yes
> CounterTrigger()         yes       yes       yes
> GetCounterValue()        yes       �         yes
> GetCounterInfo()         yes       �         �
> LEO for Linux User's Manual
> </quote></b>
> 
> Does that also cover some of the other issues you had?

-- 
---------------------------------
The Golden Years Sux.

0
Reply mist (10317) 9/9/2004 5:48:56 AM

alex_xml@yahoo.co.in (alex stuart) wrote in message news:<ead09bef.0409070125.1ca1c2e9@posting.google.com>...

Ummm... I thought you're looking for a OS alternative to linux (I was
going to suggest QNX!)

> gettaskid(),settaskid() functions are
> found in Solaris, Geeks can I get 
> equivalent for these functions on Linux
> side.

They're not in POSIX standard and there is no direct equivalent in
linux.
Read this: http://bama.ua.edu/cgi-bin/man-cgi?project+4

If you tell us what you want to use it to do, maybe I can provide more
help (e-mail me).

You have better to post this in comp.os.linux.development.system, most
people here can do nothing but *plonk* you because they can't
understand wtf you're talking about :D
0
Reply aquila_deus (691) 9/10/2004 3:56:16 AM

The old girl Lin�nut <lin�nut@bone.com> cried:
> Error BR-549: MS DRM 1.0 rejects the following post from alex stuart:
> 
> > gettaskid(),settaskid() functions are found in Solaris, Geeks can I get
> > equivalent for these functions on Linux side.
> 
> You're using google to post, why not use it to search?

Because there is no result, dude :)
0
Reply aquila_deus (691) 9/10/2004 3:57:47 AM

"ray" <ray@zianet.com> wrote in message news:<2q6481Fs2ik4U2@uni-berlin.de>...
> On Tue, 07 Sep 2004 02:25:31 +0000, alex stuart wrote:
> 
> > gettaskid(),settaskid() functions are
> > found in Solaris, Geeks can I get 
> > equivalent for these functions on Linux
> > side.
> > alex
> 
> dunno - what do they do???

RTFM :)

See http://bama.ua.edu/cgi-bin/man-cgi?gettaskid+2

The *task* is a damned solaris-specific functionality.
0
Reply aquila_deus (691) 9/10/2004 4:00:33 AM

thanks to all,
i have got the answer ,
The correct way for applications to do the wide-character string
operations is to use wcs* APIs. The following table shows the Solaris
ws* API to Linux wcs* API mapping:

Solaris API    Linux API
===========    =========
wscat()        wcscat() 
wsncat()       wcsncat() 
wscmp()        wcscmp()
wsncmp()       wcsncmp()
wscspn()       wcscspn()
wstok()        wcstok() 
wscoll()       wcscoll()
wstod()        wcstod() 
wstol()        wcstol()
wsxfrm()       wcsxfrm()
once again thanks to all
Prasanna Bhat M



aquila_deus@yahoo.co.uk (Aquila Deus) wrote in message news:<c5cfac8f.0409091956.1062d32@posting.google.com>...
> alex_xml@yahoo.co.in (alex stuart) wrote in message news:<ead09bef.0409070125.1ca1c2e9@posting.google.com>...
> 
> Ummm... I thought you're looking for a OS alternative to linux (I was
> going to suggest QNX!)
> 
> > gettaskid(),settaskid() functions are
> > found in Solaris, Geeks can I get 
> > equivalent for these functions on Linux
> > side.
> 
> They're not in POSIX standard and there is no direct equivalent in
> linux.
> Read this: http://bama.ua.edu/cgi-bin/man-cgi?project+4
> 
> If you tell us what you want to use it to do, maybe I can provide more
> help (e-mail me).
> 
> You have better to post this in comp.os.linux.development.system, most
> people here can do nothing but *plonk* you because they can't
> understand wtf you're talking about :D
0
Reply boss_bhat (11) 9/13/2004 6:01:05 AM

Lin�nut <lin�nut@bone.com> wrote in message news:<Xfudne7Hu891s6LcRVn-jA@comcast.com>...
> Error BR-549: MS DRM 1.0 rejects the following post from prasanna bhat mavinkuli:
> 
> > hi GreyCloud
> > im new to Linux, does linux provides the equivalent
> > functions to the following Interface,
> > wsspn()
> >  wstod()
> >  wstok()
> >  wstol()
> >  wstostr()
> >  wstring()
> >  wsxfrm()
> >   Acutally these are wide character string operations
> > normally found on the Solaris.  i searched a lot but
> > no such thing is present on Linux libraries
> > Prasanna Bhat M
> 
> You didn't look very hard.  gcc supports the full complement of ANSI wide
> string operations, including some GNU extensions.
> 
> Try replacing "w" with "wc" and you'll have a bit better luck, language lamer.
> The names you quote are non-standard.
> 
> Freakin' idiot "Solaris" troll!

But what he asked is not about wide string at all...

> 
> -- 
> [ ] Check here to always trust content from Lin�nut

OK.
0
Reply aquila_deus (691) 9/13/2004 12:46:08 PM

26 Replies
55 Views

(page loaded in 0.351 seconds)

Similiar Articles:


















7/23/2012 2:20:31 AM


Reply: