Sortix cisortix manual
This manual documents Sortix cisortix. You can instead view this document in the latest official manual.
NAME
BIO_s_fd, BIO_set_fd, BIO_get_fd, BIO_new_fd — file descriptor BIOSYNOPSIS
#include <openssl/bio.h>BIO_s_fd(void);
BIO_set_fd(BIO *b, int fd, long close_flag);
BIO_get_fd(BIO *b, int *c);
BIO_new_fd(int fd, int close_flag);
DESCRIPTION
BIO_s_fd() returns the file descriptor BIO method. This is a wrapper around the platform's file descriptor routines such as read(2) and write(2).RETURN VALUES
BIO_s_fd() returns the file descriptor BIO method.EXAMPLES
This is a file descriptor BIO version of "Hello World":BIO *out; out = BIO_new_fd(fileno(stdout), BIO_NOCLOSE); BIO_printf(out, "Hello World\n"); BIO_free(out);