Lines Matching defs:mode
65 static BIO *bio_open_default_(const char *filename, char mode, int format,
2991 static const char *modestr(char mode, int format)
2993 OPENSSL_assert(mode == 'a' || mode == 'r' || mode == 'w');
2995 switch (mode) {
3007 static const char *modeverb(char mode)
3009 switch (mode) {
3029 int fd = -1, mode;
3037 mode = O_WRONLY;
3039 mode |= O_CREAT;
3042 mode |= O_TRUNC;
3046 mode |= O_BINARY;
3048 mode |= _O_BINARY;
3059 fd = open(filename, mode, 0600, "ctx=bin");
3062 fd = open(filename, mode, 0600);
3093 static BIO *bio_open_default_(const char *filename, char mode, int format,
3099 ret = mode == 'r' ? dup_bio_in(format) : dup_bio_out(format);
3108 mode == 'r' ? "stdin" : "stdout", strerror(errno));
3110 ret = BIO_new_file(filename, modestr(mode, format));
3119 filename, modeverb(mode), strerror(errno));
3125 BIO *bio_open_default(const char *filename, char mode, int format)
3127 return bio_open_default_(filename, mode, format, 0);
3130 BIO *bio_open_default_quiet(const char *filename, char mode, int format)
3132 return bio_open_default_(filename, mode, format, 1);