Re: the difference between posix user and c user
On 12/01/18 02:28, Russell Haley wrote: On Wed, Jan 10, 2018 at 8:50 AM, Gedare Bloomwrote: On Thu, Dec 28, 2017 at 9:35 PM,bin.w...@qkmtech.com wrote: is the posix api and the c api used together? POSIX and ISO-C tend to go together. With RTEMS, you can also use ISO-C with the "Classic API", which consists of interface functions accessible from C programs as described in the "C User Guide". sorry . i am also confused about this two things . because i find that when i config the rtems kernel ,there is a option which is --enable posix. Most new development and ports of existing software probably use POSIX anyway, except for the simplest applications. This configure option was provided historically as a way to avoid compiling the POSIX library into an application, but modern compilers are able to remove the unused code any way. I really liked the cleanliness of the "Classic API". Are there limitations to it? Is there an advantage to the POSIX API other than compatibility? (I just threw up a little in my mouth) Is the Classic API going to be fully supported going forward? We removed already some Classic API functions in RTEMS 4.11 and 5. See the "Deprecated and Removed Directives" section in the manual, e.g. https://docs.rtems.org/branches/master/c-user/task_manager.html#deprecated-and-removed-directives I guess the remaining Classic API will only change if we start to support quantum computers. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG. ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users
Re: Re: the difference between posix user and c user
On Wed, Jan 10, 2018 at 8:50 AM, Gedare Bloom <ged...@rtems.org> wrote: > On Thu, Dec 28, 2017 at 9:35 PM, bin.w...@qkmtech.com > <bin.w...@qkmtech.com> wrote: >> is the posix api and the c api used together? >> > POSIX and ISO-C tend to go together. > > With RTEMS, you can also use ISO-C with the "Classic API", which > consists of interface functions accessible from C programs as > described in the "C User Guide". > >> sorry . i am also confused about this two things . because i find that when >> i config the rtems kernel ,there is a option which is --enable posix. >> > Most new development and ports of existing software probably use POSIX > anyway, except for the simplest applications. This configure option > was provided historically as a way to avoid compiling the POSIX > library into an application, but modern compilers are able to remove > the unused code any way. I really liked the cleanliness of the "Classic API". Are there limitations to it? Is there an advantage to the POSIX API other than compatibility? (I just threw up a little in my mouth) Is the Classic API going to be fully supported going forward? Russ >> >> bin.w...@qkmtech.com >> >> >> From: bin.w...@qkmtech.com >> Date: 2017-12-29 09:25 >> To: Chris Johns; Users >> Subject: Re: Re: the difference between posix user and c user >> i google the posix .now i know that posix is the abbreviation of "the >> Portable Operating System Interface" it is for software compatibility with >> variants of Unix and other operating systems >> >> but you said, "POSIX and the Classic API are both C APIs." >> than i think the posix is packaged on the basis of the standard C, is it >> right ? >> the classic api is the standard c interface , is it right? >> >> best wishes >> >> >> bin.w...@qkmtech.com >> >> >> From: Chris Johns >> Date: 2017-12-29 02:18 >> To: users >> Subject: Re: the difference between posix user and c user >> On 29/12/17 12:00 am, bin.w...@qkmtech.com wrote: >>> hi everyone: >>> >>> i am new to linux and rtems. i do not understand >>> what the difference between posix user and c user . >>> >>> i am confused about these two concept. which condition i should choose >>> posix ? >>> which condition i should choose c ? >>> >> >> This is a good question and it is understandable why you do not understand >> the >> difference. The reason is specific to RTEMS and relates to it's history. >> >> The original RTEMS was written in Ada and C and the C API is what we now >> call >> the Classic API. It's manual was called the C User Guide hence the name. >> >> The Ada version of RTEMS was removed from the source tree and POSIX came a >> while >> later. >> >> POSIX and the Classic API are both C APIs. The C User manual is now called >> the >> RTEMS Classic API Guide. See: >> >> https://docs.rtems.org/ >> >> Chris >> ___ >> users mailing list >> users@rtems.org >> http://lists.rtems.org/mailman/listinfo/users >> >> >> ___ >> users mailing list >> users@rtems.org >> http://lists.rtems.org/mailman/listinfo/users > ___ > users mailing list > users@rtems.org > http://lists.rtems.org/mailman/listinfo/users ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users
Re: Re: the difference between posix user and c user
think you very much. as you said: >POSIX and ISO-C tend to go together. >With RTEMS, you can also use ISO-C with the "Classic API", which >consists of interface functions accessible from C programs as >described in the "C User Guide". Does it mean that i can just use ISO-c? so ,i think I do not need care about posix API because i think i use the classic api is enough for me . is it right? >Most new development and ports of existing software probably use POSIX >anyway, except for the simplest applications. This configure option >was provided historically as a way to avoid compiling the POSIX >library into an application, but modern compilers are able to remove >the unused code any way. i think i understand what you said in this part . if i use the --enable posix in the configure , but i do not use the posix api, then ,the compiler will not use the unused code . thanks bin.w...@qkmtech.com From: Gedare Bloom Date: 2018-01-11 00:50 To: bin.w...@qkmtech.com CC: Chris Johns; Users Subject: Re: Re: the difference between posix user and c user On Thu, Dec 28, 2017 at 9:35 PM, bin.w...@qkmtech.com <bin.w...@qkmtech.com> wrote: > is the posix api and the c api used together? > POSIX and ISO-C tend to go together. With RTEMS, you can also use ISO-C with the "Classic API", which consists of interface functions accessible from C programs as described in the "C User Guide". > sorry . i am also confused about this two things . because i find that when > i config the rtems kernel ,there is a option which is --enable posix. > Most new development and ports of existing software probably use POSIX anyway, except for the simplest applications. This configure option was provided historically as a way to avoid compiling the POSIX library into an application, but modern compilers are able to remove the unused code any way. > > bin.w...@qkmtech.com > > > From: bin.w...@qkmtech.com > Date: 2017-12-29 09:25 > To: Chris Johns; Users > Subject: Re: Re: the difference between posix user and c user > i google the posix .now i know that posix is the abbreviation of "the > Portable Operating System Interface" it is for software compatibility with > variants of Unix and other operating systems > > but you said, "POSIX and the Classic API are both C APIs." > than i think the posix is packaged on the basis of the standard C, is it > right ? > the classic api is the standard c interface , is it right? > > best wishes > > ____ > bin.w...@qkmtech.com > > > From: Chris Johns > Date: 2017-12-29 02:18 > To: users > Subject: Re: the difference between posix user and c user > On 29/12/17 12:00 am, bin.w...@qkmtech.com wrote: >> hi everyone: >> >> i am new to linux and rtems. i do not understand >> what the difference between posix user and c user . >> >> i am confused about these two concept. which condition i should choose >> posix ? >> which condition i should choose c ? >> > > This is a good question and it is understandable why you do not understand > the > difference. The reason is specific to RTEMS and relates to it's history. > > The original RTEMS was written in Ada and C and the C API is what we now > call > the Classic API. It's manual was called the C User Guide hence the name. > > The Ada version of RTEMS was removed from the source tree and POSIX came a > while > later. > > POSIX and the Classic API are both C APIs. The C User manual is now called > the > RTEMS Classic API Guide. See: > > https://docs.rtems.org/ > > Chris > ___ > users mailing list > users@rtems.org > http://lists.rtems.org/mailman/listinfo/users > > > ___ > users mailing list > users@rtems.org > http://lists.rtems.org/mailman/listinfo/users ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users
Re: Re: the difference between posix user and c user
On Thu, Dec 28, 2017 at 9:35 PM, bin.w...@qkmtech.com <bin.w...@qkmtech.com> wrote: > is the posix api and the c api used together? > POSIX and ISO-C tend to go together. With RTEMS, you can also use ISO-C with the "Classic API", which consists of interface functions accessible from C programs as described in the "C User Guide". > sorry . i am also confused about this two things . because i find that when > i config the rtems kernel ,there is a option which is --enable posix. > Most new development and ports of existing software probably use POSIX anyway, except for the simplest applications. This configure option was provided historically as a way to avoid compiling the POSIX library into an application, but modern compilers are able to remove the unused code any way. > > bin.w...@qkmtech.com > > > From: bin.w...@qkmtech.com > Date: 2017-12-29 09:25 > To: Chris Johns; Users > Subject: Re: Re: the difference between posix user and c user > i google the posix .now i know that posix is the abbreviation of "the > Portable Operating System Interface" it is for software compatibility with > variants of Unix and other operating systems > > but you said, "POSIX and the Classic API are both C APIs." > than i think the posix is packaged on the basis of the standard C, is it > right ? > the classic api is the standard c interface , is it right? > > best wishes > > ____________ > bin.w...@qkmtech.com > > > From: Chris Johns > Date: 2017-12-29 02:18 > To: users > Subject: Re: the difference between posix user and c user > On 29/12/17 12:00 am, bin.w...@qkmtech.com wrote: >> hi everyone: >> >> i am new to linux and rtems. i do not understand >> what the difference between posix user and c user . >> >> i am confused about these two concept. which condition i should choose >> posix ? >> which condition i should choose c ? >> > > This is a good question and it is understandable why you do not understand > the > difference. The reason is specific to RTEMS and relates to it's history. > > The original RTEMS was written in Ada and C and the C API is what we now > call > the Classic API. It's manual was called the C User Guide hence the name. > > The Ada version of RTEMS was removed from the source tree and POSIX came a > while > later. > > POSIX and the Classic API are both C APIs. The C User manual is now called > the > RTEMS Classic API Guide. See: > > https://docs.rtems.org/ > > Chris > ___ > users mailing list > users@rtems.org > http://lists.rtems.org/mailman/listinfo/users > > > ___ > users mailing list > users@rtems.org > http://lists.rtems.org/mailman/listinfo/users ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users
Re: Re: the difference between posix user and c user
is the posix api and the c api used together? sorry . i am also confused about this two things . because i find that when i config the rtems kernel ,there is a option which is --enable posix. bin.w...@qkmtech.com From: bin.w...@qkmtech.com Date: 2017-12-29 09:25 To: Chris Johns; Users Subject: Re: Re: the difference between posix user and c user i google the posix .now i know that posix is the abbreviation of "the Portable Operating System Interface" it is for software compatibility with variants of Unix and other operating systems but you said, "POSIX and the Classic API are both C APIs." than i think the posix is packaged on the basis of the standard C, is it right ? the classic api is the standard c interface , is it right? best wishes bin.w...@qkmtech.com From: Chris Johns Date: 2017-12-29 02:18 To: users Subject: Re: the difference between posix user and c user On 29/12/17 12:00 am, bin.w...@qkmtech.com wrote: > hi everyone: > > i am new to linux and rtems. i do not understand > what the difference between posix user and c user . > > i am confused about these two concept. which condition i should choose posix ? > which condition i should choose c ? > This is a good question and it is understandable why you do not understand the difference. The reason is specific to RTEMS and relates to it's history. The original RTEMS was written in Ada and C and the C API is what we now call the Classic API. It's manual was called the C User Guide hence the name. The Ada version of RTEMS was removed from the source tree and POSIX came a while later. POSIX and the Classic API are both C APIs. The C User manual is now called the RTEMS Classic API Guide. See: https://docs.rtems.org/ Chris ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users
Re: Re: the difference between posix user and c user
i google the posix .now i know that posix is the abbreviation of "the Portable Operating System Interface" it is for software compatibility with variants of Unix and other operating systems but you said, "POSIX and the Classic API are both C APIs." than i think the posix is packaged on the basis of the standard C, is it right ? the classic api is the standard c interface , is it right? best wishes bin.w...@qkmtech.com From: Chris Johns Date: 2017-12-29 02:18 To: users Subject: Re: the difference between posix user and c user On 29/12/17 12:00 am, bin.w...@qkmtech.com wrote: > hi everyone: > > i am new to linux and rtems. i do not understand > what the difference between posix user and c user . > > i am confused about these two concept. which condition i should choose posix ? > which condition i should choose c ? > This is a good question and it is understandable why you do not understand the difference. The reason is specific to RTEMS and relates to it's history. The original RTEMS was written in Ada and C and the C API is what we now call the Classic API. It's manual was called the C User Guide hence the name. The Ada version of RTEMS was removed from the source tree and POSIX came a while later. POSIX and the Classic API are both C APIs. The C User manual is now called the RTEMS Classic API Guide. See: https://docs.rtems.org/ Chris ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users
Re: the difference between posix user and c user
On 29/12/17 12:00 am, bin.w...@qkmtech.com wrote: > hi everyone: > > i am new to linux and rtems. i do not understand > what the difference between posix user and c user . > > i am confused about these two concept. which condition i should choose posix ? > which condition i should choose c ? > This is a good question and it is understandable why you do not understand the difference. The reason is specific to RTEMS and relates to it's history. The original RTEMS was written in Ada and C and the C API is what we now call the Classic API. It's manual was called the C User Guide hence the name. The Ada version of RTEMS was removed from the source tree and POSIX came a while later. POSIX and the Classic API are both C APIs. The C User manual is now called the RTEMS Classic API Guide. See: https://docs.rtems.org/ Chris ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users