BIO_S_FD(3ssl) OpenSSL BIO_S_FD(3ssl) BIO_s_fd, BIO_set_fd, BIO_get_fd, BIO_new_fd - BIO #include const BIO_METHOD *BIO_s_fd(void); int BIO_set_fd(BIO *b, int fd, int c); int BIO_get_fd(BIO *b, int *c); BIO *BIO_new_fd(int fd, int close_flag); BIO_s_fd() BIO . read() write(). BIO_read_ex() BIO_write_ex() . BIO_puts() BIO_gets() . close() BIO. BIO_reset() lseek(fd, 0, 0). BIO_seek() ofs lseek(fd, ofs, 0). BIO_tell() lseek(fd, 0, 1). BIO_set_fd() BIO b fd c. BIO_get_fd() BIO b c NULL. . BIO_new_fd() BIO fd close_flag. BIO_read_ex() BIO_write_ex() read() write() . BIO BIO_read_ex(3) BIO_should_retry(3). BIOs / . BIOs . BIO_set_fd() BIO_get_fd() . BIO_s_fd() BIO . BIO_set_fd() 1 <=0 . BIO_get_fd() -1 BIO. . BIO_new_fd() BIO NULL . BIO "Hello World": BIO *out; out = BIO_new_fd(fileno(stdout), BIO_NOCLOSE); BIO_printf(out, "Hello World\n"); BIO_free(out); BIO_seek(3), BIO_tell(3), BIO_reset(3), BIO_read_ex(3), BIO_write_ex(3), BIO_puts(3), BIO_gets(3), BIO_printf(3), BIO_set_close(3), BIO_get_close(3) 2000-2021 OpenSSL. . Apache 2.0 ( ""). . LICENSE . 3 . . : . 3.6.2 7 2026 BIO_S_FD(3ssl)