Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 2001 11:01:21 -0800 (PST)
From:      Mikko Tyolajarvi <mikko@dynas.se>
To:        bigstar@astercity.net
Cc:        freebsd-questions@freebsd.org
Subject:   Re: System functions in BSD and others *nix systems.
Message-ID:  <200101181901.f0IJ1Le53616@explorer.rsa.com>
References:  <Pine.BSF.4.21.0101181618110.570-100000@BS.home.astercity.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In local.freebsd.questions you write:

>I was writeing simple program for school using system funcions
>msgget, msgsnd and msgrcv. This program run fine on other OS
>i tested it on debian,RedHat and SunOS on my FreeBSD box
>the resaults are bad. Are the system funcion different in FBSD?
>This is my simple program

Two of them actually...

[...]

>When i run ./one | ./two on FreeBSD i get 
> I recive: 671473920
>and sa on as i wrote on other tested OS it works fine.

Which is never a guarantee of program correctness :-)

>Anyone know where the problem is?

You don't check the return values of any of the msg* function calls,
which may have failed for various reasons.  If you do that, you may be
able to find out what is going wrong.

    $.02,
    /Mikko
-- 
 Mikko Työläjärvi_______________________________________mikko@rsasecurity.com
 RSA Security


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101181901.f0IJ1Le53616>