Mercurial > hg > xemacs-beta
comparison src/fileio.c @ 5814:a216b3c2b09e
Add TLS support. See xemacs-patches message with ID
<CAHCOHQk6FNm2xf=XiGEpPq43+7WOzNZ=SuD9V79o3wb9WVCTrQ@mail.gmail.com>.
author | Jerry James <james@xemacs.org> |
---|---|
date | Tue, 07 Oct 2014 21:16:10 -0600 |
parents | 7277cf461612 |
children | e24390bd4235 |
comparison
equal
deleted
inserted
replaced
5813:36dddf9d90d1 | 5814:a216b3c2b09e |
---|---|
3175 | 3175 |
3176 { | 3176 { |
3177 Charbpos cur_point = BUF_PT (buf); | 3177 Charbpos cur_point = BUF_PT (buf); |
3178 struct gcpro ngcpro1; | 3178 struct gcpro ngcpro1; |
3179 Lisp_Object stream = make_filedesc_input_stream (fd, 0, total, | 3179 Lisp_Object stream = make_filedesc_input_stream (fd, 0, total, |
3180 LSTR_ALLOW_QUIT); | 3180 LSTR_ALLOW_QUIT, NULL); |
3181 Charcount last_tell = -1; | 3181 Charcount last_tell = -1; |
3182 | 3182 |
3183 NGCPRO1 (stream); | 3183 NGCPRO1 (stream); |
3184 Lstream_set_buffering (XLSTREAM (stream), LSTREAM_BLOCKN_BUFFERED, 65536); | 3184 Lstream_set_buffering (XLSTREAM (stream), LSTREAM_BLOCKN_BUFFERED, 65536); |
3185 stream = make_coding_input_stream | 3185 stream = make_coding_input_stream |
3514 With an NFS-mounted disk, it could make a lot of difference | 3514 With an NFS-mounted disk, it could make a lot of difference |
3515 because you're affecting the number of network requests | 3515 because you're affecting the number of network requests |
3516 that need to be made, and there could be a large latency | 3516 that need to be made, and there could be a large latency |
3517 for each request. So I've increased the buffer size | 3517 for each request. So I've increased the buffer size |
3518 to 64K.) */ | 3518 to 64K.) */ |
3519 outstream = make_filedesc_output_stream (desc, 0, -1, 0); | 3519 outstream = make_filedesc_output_stream (desc, 0, -1, 0, NULL); |
3520 Lstream_set_buffering (XLSTREAM (outstream), | 3520 Lstream_set_buffering (XLSTREAM (outstream), |
3521 LSTREAM_BLOCKN_BUFFERED, 65536); | 3521 LSTREAM_BLOCKN_BUFFERED, 65536); |
3522 outstream = | 3522 outstream = |
3523 make_coding_output_stream (XLSTREAM (outstream), codesys, | 3523 make_coding_output_stream (XLSTREAM (outstream), codesys, |
3524 CODING_ENCODE, 0); | 3524 CODING_ENCODE, 0); |