From owner-freebsd-questions Thu Jan 18 11: 1:45 2001 Delivered-To: freebsd-questions@freebsd.org Received: from karon.dynas.se (karon.dynas.se [192.71.43.4]) by hub.freebsd.org (Postfix) with SMTP id 0F35A37B402 for ; Thu, 18 Jan 2001 11:01:27 -0800 (PST) Received: (qmail 81914 invoked from network); 18 Jan 2001 19:01:25 -0000 Received: from spirit.sto.dynas.se (HELO spirit.dynas.se) (172.16.1.10) by karon.sto.dynas.se with SMTP; 18 Jan 2001 19:01:25 -0000 Received: (qmail 28608 invoked from network); 18 Jan 2001 19:01:25 -0000 Received: from explorer.rsa.com (10.81.217.59) by spirit.dynas.se with SMTP; 18 Jan 2001 19:01:25 -0000 Received: (from mikko@localhost) by explorer.rsa.com (8.11.1/8.11.1) id f0IJ1Le53616; Thu, 18 Jan 2001 11:01:21 -0800 (PST) (envelope-from mikko) Date: Thu, 18 Jan 2001 11:01:21 -0800 (PST) From: Mikko Tyolajarvi Message-Id: <200101181901.f0IJ1Le53616@explorer.rsa.com> To: bigstar@astercity.net Cc: freebsd-questions@freebsd.org Subject: Re: System functions in BSD and others *nix systems. Newsgroups: local.freebsd.questions References: X-Newsreader: NN version 6.5.6 (NOV) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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