Newsgroups: comp.parallel.pvm
From: moyer@mathcs.emory.edu (Steve Moyer)
Subject: Re: Error in creating file descroptor using PIOUS
Keywords: file descriptor, PIOUS
Organization: Emory University, Dept of Math and CS
Date: 27 May 1995 08:25:08 -0400
Message-ID: <3q75n4$20i@chilidog.mathcs.emory.edu>

In article <3q5kpu$lck@news.tamu.edu>,
Wookho Son <wooks@slx12.NoSubdomain.NoDomain> wrote:
>
>I'm using PVM coupled with PIOUS for parallel I/O for some non STDIO to 
>enable concurrency.
>
>To create a file descriptor, I used the system call:
>   if ((parameter_fd=pious_open(parameter_fname,
>                                PIOUS_RDONLY|PIOUS_NOCREAT,
>                                PIOUS_IRGRP)) < 0){
> 
>The error code (the value returned) that I've got: PIOUS_ENOENT


From the manual:

PIOUS_ENOENT - file does not exist on data servers and create not specified,
               or path is the empty string.

You have specified that you want the file opened for reading, but that
you do not want it created if it does not exist.  My guess is that
the file does not exist, and hence you are getting the appropriate
error code.

Either change PIOUS_NOCREAT to PIOUS_CREAT in the above, or make sure
that the file is created elsewhere.

If you still have problems, send me email.

Regards,

Steve

-- 
-------------------------------------------------------------------------
Steven A. Moyer                            Email:  moyer@mathcs.emory.edu
Mathematics and Computer Science           Office: (404) 727-0668
Emory University, Atlanta, GA 30322        Fax:    (404) 727-5611

