9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] APE inconsistencies
@ 2013-03-29 17:13 Jeff Sickel
  2013-03-29 17:20 ` Charles Forsyth
  0 siblings, 1 reply; 12+ messages in thread
From: Jeff Sickel @ 2013-03-29 17:13 UTC (permalink / raw)
  To: 9fans@9fans.net Bell Labs

Does anyone know if the netdb.h inclusion of hstrerror(int) was
just a copy/paste error?  Of if hstrerror() was intended to be
in the ape/lib/bsd source but got dropped somehow?

-jas




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

* Re: [9fans] APE inconsistencies
  2013-03-29 17:13 [9fans] APE inconsistencies Jeff Sickel
@ 2013-03-29 17:20 ` Charles Forsyth
  2013-03-29 17:25   ` Jeff Sickel
  0 siblings, 1 reply; 12+ messages in thread
From: Charles Forsyth @ 2013-03-29 17:20 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 319 bytes --]

On 29 March 2013 17:13, Jeff Sickel <jas@corpus-callosum.com> wrote:

> Does anyone know if the netdb.h inclusion of hstrerror(int) was
> just a copy/paste error?  Of if hstrerror() was intended to be
> in the ape/lib/bsd source but got dropped somehow?
>

the linux manual page describes hstrerror as obsolete

[-- Attachment #2: Type: text/html, Size: 634 bytes --]

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

* Re: [9fans] APE inconsistencies
  2013-03-29 17:20 ` Charles Forsyth
@ 2013-03-29 17:25   ` Jeff Sickel
  2013-03-29 17:41     ` Kurt H Maier
  0 siblings, 1 reply; 12+ messages in thread
From: Jeff Sickel @ 2013-03-29 17:25 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


On Mar 29, 2013, at 12:20 PM, Charles Forsyth <charles.forsyth@gmail.com> wrote:

> the linux manual page describes hstrerror as obsolete

Which distro?  So many to choose from…





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

* Re: [9fans] APE inconsistencies
  2013-03-29 17:25   ` Jeff Sickel
@ 2013-03-29 17:41     ` Kurt H Maier
  2013-03-29 18:00       ` Charles Forsyth
  0 siblings, 1 reply; 12+ messages in thread
From: Kurt H Maier @ 2013-03-29 17:41 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Fri, Mar 29, 2013 at 12:25:04PM -0500, Jeff Sickel wrote:
> 
> On Mar 29, 2013, at 12:20 PM, Charles Forsyth <charles.forsyth@gmail.com> wrote:
> 
> > the linux manual page describes hstrerror as obsolete
> 
> Which distro?  So many to choose from…
> 

It's sort of moot, since The Man wants you to stop using gethostbyname
and friends anyway.  They're marked as 'obsolete' because POSIX.1-2001
wants you to use getnameinfo et al. instead.

Anything using gethostbyname is probably going to want herror (and thus
hstrerror) to be there.

khm



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

* Re: [9fans] APE inconsistencies
  2013-03-29 17:41     ` Kurt H Maier
@ 2013-03-29 18:00       ` Charles Forsyth
  2013-03-29 18:26         ` Jeff Sickel
  0 siblings, 1 reply; 12+ messages in thread
From: Charles Forsyth @ 2013-03-29 18:00 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 272 bytes --]

On 29 March 2013 17:41, Kurt H Maier <khm-9@intma.in> wrote:

> Anything using gethostbyname is probably going to want herror (and thus
> hstrerror) to be there.
>

I see, although it seems herror/hstrerror is usually ifdef'd out, even when
gethostbyname remains!

[-- Attachment #2: Type: text/html, Size: 578 bytes --]

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

* Re: [9fans] APE inconsistencies
  2013-03-29 18:00       ` Charles Forsyth
@ 2013-03-29 18:26         ` Jeff Sickel
  2013-03-29 19:03           ` tlaronde
  2013-03-29 22:20           ` Lyndon Nerenberg
  0 siblings, 2 replies; 12+ messages in thread
From: Jeff Sickel @ 2013-03-29 18:26 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 819 bytes --]


On Mar 29, 2013, at 1:00 PM, Charles Forsyth <charles.forsyth@gmail.com> wrote:

> 
> On 29 March 2013 17:41, Kurt H Maier <khm-9@intma.in> wrote:
> Anything using gethostbyname is probably going to want herror (and thus
> hstrerror) to be there.
> 
> I see, although it seems herror/hstrerror is usually ifdef'd out, even when gethostbyname remains!


Though if I check recent FreeBSD manuals, it's all there.  And given that
this is part of the BSD extensions to APE, those might be more relevant
than the Linux man pages.  Not that BSD tries to be POSIX compliant
any more or less than GNU/Linux.

There are definitely some issues in gethostbyaddr() that are being
looked into at this time.  But while the review is taking place, it doesn't
hurt to look at other potential areas of a mismatch.


[-- Attachment #2: Type: text/html, Size: 1589 bytes --]

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

* Re: [9fans] APE inconsistencies
  2013-03-29 18:26         ` Jeff Sickel
@ 2013-03-29 19:03           ` tlaronde
  2013-03-29 19:12             ` Kurt H Maier
  2013-03-30  2:37             ` a
  2013-03-29 22:20           ` Lyndon Nerenberg
  1 sibling, 2 replies; 12+ messages in thread
From: tlaronde @ 2013-03-29 19:03 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Fri, Mar 29, 2013 at 01:26:53PM -0500, Jeff Sickel wrote:
>
> Though if I check recent FreeBSD manuals, it's all there.  And given that
> this is part of the BSD extensions to APE, those might be more relevant
> than the Linux man pages.  Not that BSD tries to be POSIX compliant
> any more or less than GNU/Linux.
>

It should be indeed underlined that this is a compatibility feature, and
not a POSIX feature. It seems that it is still here for legacy
compatibility on BSD (it is still here in NetBSD for example) but the
question arises whether it is worth supporting (because starting to
support all not POSIX is a daunting task).

This is what is said in the APE paper. The problem is not with Plan9
APE, it is that there are not a lot of programs that are written in a
POSIX compliant way...

--
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                      http://www.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C



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

* Re: [9fans] APE inconsistencies
  2013-03-29 19:03           ` tlaronde
@ 2013-03-29 19:12             ` Kurt H Maier
  2013-03-29 20:10               ` tlaronde
  2013-03-30  2:37             ` a
  1 sibling, 1 reply; 12+ messages in thread
From: Kurt H Maier @ 2013-03-29 19:12 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Fri, Mar 29, 2013 at 08:03:45PM +0100, tlaronde@polynum.com wrote:
> On Fri, Mar 29, 2013 at 01:26:53PM -0500, Jeff Sickel wrote:
> >
> > Though if I check recent FreeBSD manuals, it's all there.  And given that
> > this is part of the BSD extensions to APE, those might be more relevant
> > than the Linux man pages.  Not that BSD tries to be POSIX compliant
> > any more or less than GNU/Linux.
> >
>
> It should be indeed underlined that this is a compatibility feature, and
> not a POSIX feature. It seems that it is still here for legacy
> compatibility on BSD (it is still here in NetBSD for example) but the
> question arises whether it is worth supporting (because starting to
> support all not POSIX is a daunting task).
>
> This is what is said in the APE paper. The problem is not with Plan9
> APE, it is that there are not a lot of programs that are written in a
> POSIX compliant way...
>

It is a POSIX feature, I think.  It's just an outmoded one.  Supporting
all revisions of POSIX is damn near impossible.  Does APE have an
explicit target?

khm



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

* Re: [9fans] APE inconsistencies
  2013-03-29 19:12             ` Kurt H Maier
@ 2013-03-29 20:10               ` tlaronde
  2013-03-29 20:32                 ` Charles Forsyth
  0 siblings, 1 reply; 12+ messages in thread
From: tlaronde @ 2013-03-29 20:10 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On Fri, Mar 29, 2013 at 03:12:20PM -0400, Kurt H Maier wrote:
>
> It is a POSIX feature, I think.  It's just an outmoded one.  Supporting
> all revisions of POSIX is damn near impossible.  Does APE have an
> explicit target?

Well, it is not in SuSv3. And this is not already the latest...

--
        Thierry Laronde <tlaronde +AT+ polynum +dot+ com>
                      http://www.kergis.com/
Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C



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

* Re: [9fans] APE inconsistencies
  2013-03-29 20:10               ` tlaronde
@ 2013-03-29 20:32                 ` Charles Forsyth
  0 siblings, 0 replies; 12+ messages in thread
From: Charles Forsyth @ 2013-03-29 20:32 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 427 bytes --]

On 29 March 2013 20:10, <tlaronde@polynum.com> wrote:

> > It is a POSIX feature, I think.  It's just an outmoded one.  Supporting
> > all revisions of POSIX is damn near impossible.  Does APE have an
> > explicit target?
>

I think it's really a pragmatic matter of which interfaces are in some
standard that can be named,
that are also needed by most software that's being imported (eg, newer
versions of Python).

[-- Attachment #2: Type: text/html, Size: 803 bytes --]

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

* Re: [9fans] APE inconsistencies
  2013-03-29 18:26         ` Jeff Sickel
  2013-03-29 19:03           ` tlaronde
@ 2013-03-29 22:20           ` Lyndon Nerenberg
  1 sibling, 0 replies; 12+ messages in thread
From: Lyndon Nerenberg @ 2013-03-29 22:20 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


On 2013-03-29, at 11:26 AM, Jeff Sickel wrote:

> Not that BSD tries to be POSIX compliant
> any more or less than GNU/Linux.

FreeBSD is actually pretty good about adhering to POSIX/SUS/Xopen when you set the appropriate defines.




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

* Re: [9fans] APE inconsistencies
  2013-03-29 19:03           ` tlaronde
  2013-03-29 19:12             ` Kurt H Maier
@ 2013-03-30  2:37             ` a
  1 sibling, 0 replies; 12+ messages in thread
From: a @ 2013-03-30  2:37 UTC (permalink / raw)
  To: 9fans

> It should be indeed underlined that this is a compatibility
> feature, and not a POSIX feature.

APE does an excellent job of making that distinction clear.
Its use of defines to forcibly break syntax was quite
educational as a young programmer.

Anthony




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

end of thread, other threads:[~2013-03-30  2:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-29 17:13 [9fans] APE inconsistencies Jeff Sickel
2013-03-29 17:20 ` Charles Forsyth
2013-03-29 17:25   ` Jeff Sickel
2013-03-29 17:41     ` Kurt H Maier
2013-03-29 18:00       ` Charles Forsyth
2013-03-29 18:26         ` Jeff Sickel
2013-03-29 19:03           ` tlaronde
2013-03-29 19:12             ` Kurt H Maier
2013-03-29 20:10               ` tlaronde
2013-03-29 20:32                 ` Charles Forsyth
2013-03-30  2:37             ` a
2013-03-29 22:20           ` Lyndon Nerenberg

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 NNTP newsgroup(s).