NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Problems with "rename"

Hello,

 I had problems installing netcdf on my machine (SGI 4D35 running IRIX 4.0.2)
because I had the TMPDIR environment variable set to "/usr/tmp". tempnam()
will use the content of the variable instead of the directory name in the
parameter list. Therefore, I always got the message "cross-device link" and
the program aborted.
My (not very elegant) solution looks like this:

in file: src/file.c, line: 452, function: ncredef ()

/*
 * unicos ignores the first arg to tempnam
 * always seems to want to put the file in another file system
 */
/* IRIX too, so here's a little hack for SGI's ..... */
        if (getenv("TMPDIR")) putenv ("TMPDIR=.");


Dominik
Dominik Ulmer, Geologisches Institut, Albertstr.23-B
D-7800 Freiburg i.Br., FRG
Phone +49 761 203-2408   Fax +49 761 203-2463
e-mail: dominik@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx


  • 1992 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: