wiki:BackendUtilities

Version 1 (modified by Nicolas, 17 years ago) (diff)

Converted by an automatic script

Back-end utility functions

The following functions can be used in your validator and assimilator code:

int try_fopen(char* path, FILE*& f, char* mode);

Open a file, distinguishing between recoverable and nonrecoverable errors. Returns zero on success. Returns ERR_FOPEN if the directory is present but not the file (this is considered a nonrecoverable error). Returns ERR_OPENDIR if the directory is not there (this is generally a recoverable error, like NFS mount failure). Return to BOINC main page Last modified 10:06 PM UTC, April 16 2007. Copyright © 2007 University of California. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.