ntp and libunix

Hi!
Has anyone ported ntp to RTP? I am “halfway” in the process. That is: I
have compiled the code, but the makefile wants to link in a library
called “unix”. I checked to see how this was handled in the port to
QNX4, and the library is present there. From what I have seen this
library holds som BSD stuff, msgget, msgsnd, etc. Has this library been
ported to RTP?

Regards,
Alf Bjorn Hustoft
ARX Innovation
Norway

In article <39FC1C6E.4CAB8E4C@arxi.no>,
Alf =?iso-8859-1?Q?Bj=F8rn?= Hustoft <abhustoft@arxi.no> wrote:

Hi!
Has anyone ported ntp to RTP? I am “halfway” in the process. That is: I
have compiled the code, but the makefile wants to link in a library
called “unix”. I checked to see how this was handled in the port to
QNX4, and the library is present there. From what I have seen this
library holds som BSD stuff, msgget, msgsnd, etc. Has this library been
ported to RTP?

Almost everything that was in QNX4 libunix (BSD memory functions,
some networking functions, etc.) is already in libc under Neutrino/QRTP.
In fact there shouldn’t be anything in libunix that isn’t already
in libc. Depending on the application needs, there still may be
some Unix functions missing, but not if it built on QNX4.

Regards,
Alf Bjorn Hustoft
ARX Innovation
Norway

Steve Furr email: furr@qnx.com
QNX Software Systems, Ltd.

Could you get rid of unix.h too? No software knows about its existance
and one has to include it for some definitions. Why not keep that stuff
where is normally belongs?

  • igor

Steve Furr wrote:

In article <> 39FC1C6E.4CAB8E4C@arxi.no> >,
Alf =?iso-8859-1?Q?Bj=F8rn?= Hustoft <> abhustoft@arxi.no> > wrote:
Hi!
Has anyone ported ntp to RTP? I am “halfway” in the process. That is: I
have compiled the code, but the makefile wants to link in a library
called “unix”. I checked to see how this was handled in the port to
QNX4, and the library is present there. From what I have seen this
library holds som BSD stuff, msgget, msgsnd, etc. Has this library been
ported to RTP?

Almost everything that was in QNX4 libunix (BSD memory functions,
some networking functions, etc.) is already in libc under Neutrino/QRTP.
In fact there shouldn’t be anything in libunix that isn’t already
in libc. Depending on the application needs, there still may be
some Unix functions missing, but not if it built on QNX4.


Regards,
Alf Bjorn Hustoft
ARX Innovation
Norway

Steve Furr email: > furr@qnx.com
QNX Software Systems, Ltd.

Hehe this is one unfamous artifact of RTP - it has msg.h but has no
libipc :wink:
They are not implemented so you should remove the header or edit
config.h to indicate those functions aren’t present.

  • igor

Alf Bjørn Hustoft wrote:

I have include “-L /x86/lib -lc” in the link command, but msgget and
msgsnd are still not found. The routines are declared in
/usr/include/sys/msg.h, so I guess somebody knows where they are
implemented. I also tried “-L /lib -lc” - not much help since the
libraries are identical (at least in size and date).

Alf Bjorn Hustoft

Steve Furr wrote:

In article <> 39FC1C6E.4CAB8E4C@arxi.no> >,
Alf =?iso-8859-1?Q?Bj=F8rn?= Hustoft <> abhustoft@arxi.no> > wrote:
Hi!
Has anyone ported ntp to RTP? I am “halfway” in the process. That is: I
have compiled the code, but the makefile wants to link in a library
called “unix”. I checked to see how this was handled in the port to
QNX4, and the library is present there. From what I have seen this
library holds som BSD stuff, msgget, msgsnd, etc. Has this library been
ported to RTP?

Almost everything that was in QNX4 libunix (BSD memory functions,
some networking functions, etc.) is already in libc under Neutrino/QRTP.
In fact there shouldn’t be anything in libunix that isn’t already
in libc. Depending on the application needs, there still may be
some Unix functions missing, but not if it built on QNX4.


Regards,
Alf Bjorn Hustoft
ARX Innovation
Norway

Steve Furr email: > furr@qnx.com
QNX Software Systems, Ltd.

I have include “-L /x86/lib -lc” in the link command, but msgget and
msgsnd are still not found. The routines are declared in
/usr/include/sys/msg.h, so I guess somebody knows where they are
implemented. I also tried “-L /lib -lc” - not much help since the
libraries are identical (at least in size and date).

Alf Bjorn Hustoft

Steve Furr wrote:

In article <> 39FC1C6E.4CAB8E4C@arxi.no> >,
Alf =?iso-8859-1?Q?Bj=F8rn?= Hustoft <> abhustoft@arxi.no> > wrote:
Hi!
Has anyone ported ntp to RTP? I am “halfway” in the process. That is: I
have compiled the code, but the makefile wants to link in a library
called “unix”. I checked to see how this was handled in the port to
QNX4, and the library is present there. From what I have seen this
library holds som BSD stuff, msgget, msgsnd, etc. Has this library been
ported to RTP?

Almost everything that was in QNX4 libunix (BSD memory functions,
some networking functions, etc.) is already in libc under Neutrino/QRTP.
In fact there shouldn’t be anything in libunix that isn’t already
in libc. Depending on the application needs, there still may be
some Unix functions missing, but not if it built on QNX4.


Regards,
Alf Bjorn Hustoft
ARX Innovation
Norway

Steve Furr email: > furr@qnx.com
QNX Software Systems, Ltd.

In article <39FDD8A2.3828134D@arxi.no>,
Alf =?iso-8859-1?Q?Bj=F8rn?= Hustoft <abhustoft@arxi.no> wrote:

I have include “-L /x86/lib -lc” in the link command, but msgget and
msgsnd are still not found. The routines are declared in
/usr/include/sys/msg.h, so I guess somebody knows where they are
implemented. I also tried “-L /lib -lc” - not much help since the
libraries are identical (at least in size and date).

They don’t exist. Nor did they exist on QNX4. The problem
with msgsend and msgget is that they are non-portable, assuming
a Unix driver model. In a streams based implementation, for
example, they post an arbitrarily formatted message onto the
stream head. It works its way down to the driver or STREAMS
module that knows about it.

What’s important is what type of message is being sent and
what it’s purpose is.

Alf Bjorn Hustoft

Steve Furr wrote:

In article <> 39FC1C6E.4CAB8E4C@arxi.no> >,
Alf =?iso-8859-1?Q?Bj=F8rn?= Hustoft <> abhustoft@arxi.no> > wrote:
Hi!
Has anyone ported ntp to RTP? I am “halfway” in the process. That is: I
have compiled the code, but the makefile wants to link in a library
called “unix”. I checked to see how this was handled in the port to
QNX4, and the library is present there. From what I have seen this
library holds som BSD stuff, msgget, msgsnd, etc. Has this library been
ported to RTP?

Almost everything that was in QNX4 libunix (BSD memory functions,
some networking functions, etc.) is already in libc under Neutrino/QRTP.
In fact there shouldn’t be anything in libunix that isn’t already
in libc. Depending on the application needs, there still may be
some Unix functions missing, but not if it built on QNX4.


Regards,
Alf Bjorn Hustoft
ARX Innovation
Norway

Steve Furr email: > furr@qnx.com
QNX Software Systems, Ltd.

Steve Furr email: furr@qnx.com
QNX Software Systems, Ltd.