silc_file_open_mode

SYNOPSIS

    int silc_file_open_mode(const char *filename, int flags, int mode);

DESCRIPTION

Opens a file indicated by the filename `filename' with flags indicated by `flags'. The argument `mode' specifies the permissions to use in case a new file is created. The `flags' are defined in open(2). Returns the opened file descriptor or -1 on error and sets silc_errno.