OLD | NEW |
1 =pod | 1 =pod |
2 | 2 |
3 =head1 NAME | 3 =head1 NAME |
4 | 4 |
5 BIO_s_file, BIO_new_file, BIO_new_fp, BIO_set_fp, BIO_get_fp, | 5 BIO_s_file, BIO_new_file, BIO_new_fp, BIO_set_fp, BIO_get_fp, |
6 BIO_read_filename, BIO_write_filename, BIO_append_filename, | 6 BIO_read_filename, BIO_write_filename, BIO_append_filename, |
7 BIO_rw_filename - FILE bio | 7 BIO_rw_filename - FILE bio |
8 | 8 |
9 =head1 SYNOPSIS | 9 =head1 SYNOPSIS |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 reading, writing, append or read write respectively. | 69 reading, writing, append or read write respectively. |
70 | 70 |
71 =head1 NOTES | 71 =head1 NOTES |
72 | 72 |
73 When wrapping stdout, stdin or stderr the underlying stream should not | 73 When wrapping stdout, stdin or stderr the underlying stream should not |
74 normally be closed so the BIO_NOCLOSE flag should be set. | 74 normally be closed so the BIO_NOCLOSE flag should be set. |
75 | 75 |
76 Because the file BIO calls the underlying stdio functions any quirks | 76 Because the file BIO calls the underlying stdio functions any quirks |
77 in stdio behaviour will be mirrored by the corresponding BIO. | 77 in stdio behaviour will be mirrored by the corresponding BIO. |
78 | 78 |
| 79 On Windows BIO_new_files reserves for the filename argument to be |
| 80 UTF-8 encoded. In other words if you have to make it work in multi- |
| 81 lingual environment, encode file names in UTF-8. |
| 82 |
79 =head1 EXAMPLES | 83 =head1 EXAMPLES |
80 | 84 |
81 File BIO "hello world": | 85 File BIO "hello world": |
82 | 86 |
83 BIO *bio_out; | 87 BIO *bio_out; |
84 bio_out = BIO_new_fp(stdout, BIO_NOCLOSE); | 88 bio_out = BIO_new_fp(stdout, BIO_NOCLOSE); |
85 BIO_printf(bio_out, "Hello World\n"); | 89 BIO_printf(bio_out, "Hello World\n"); |
86 | 90 |
87 Alternative technique: | 91 Alternative technique: |
88 | 92 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 1 for success and a non positive value if an error occurred. | 139 1 for success and a non positive value if an error occurred. |
136 | 140 |
137 =head1 SEE ALSO | 141 =head1 SEE ALSO |
138 | 142 |
139 L<BIO_seek(3)|BIO_seek(3)>, L<BIO_tell(3)|BIO_tell(3)>, | 143 L<BIO_seek(3)|BIO_seek(3)>, L<BIO_tell(3)|BIO_tell(3)>, |
140 L<BIO_reset(3)|BIO_reset(3)>, L<BIO_flush(3)|BIO_flush(3)>, | 144 L<BIO_reset(3)|BIO_reset(3)>, L<BIO_flush(3)|BIO_flush(3)>, |
141 L<BIO_read(3)|BIO_read(3)>, | 145 L<BIO_read(3)|BIO_read(3)>, |
142 L<BIO_write(3)|BIO_write(3)>, L<BIO_puts(3)|BIO_puts(3)>, | 146 L<BIO_write(3)|BIO_write(3)>, L<BIO_puts(3)|BIO_puts(3)>, |
143 L<BIO_gets(3)|BIO_gets(3)>, L<BIO_printf(3)|BIO_printf(3)>, | 147 L<BIO_gets(3)|BIO_gets(3)>, L<BIO_printf(3)|BIO_printf(3)>, |
144 L<BIO_set_close(3)|BIO_set_close(3)>, L<BIO_get_close(3)|BIO_get_close(3)> | 148 L<BIO_set_close(3)|BIO_set_close(3)>, L<BIO_get_close(3)|BIO_get_close(3)> |
OLD | NEW |