From: Nick Ing-Simmons Date: Thu, 27 Dec 2001 11:11:51 +0000 (+0000) Subject: Integrate mainline X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c647d955ec5be212cbda9695b83885c68fc47cff;p=p5sagit%2Fp5-mst-13.2.git Integrate mainline p4raw-id: //depot/perlio@13900 --- c647d955ec5be212cbda9695b83885c68fc47cff diff --cc embed.pl index 26758eb,515fa11..e7ca79c --- a/embed.pl +++ b/embed.pl @@@ -2353,34 -2353,37 +2353,65 @@@ Apd |STRLEN |sv_utf8_upgrade_flags|SV * Apd |char* |sv_pvn_force_flags|SV* sv|STRLEN* lp|I32 flags Apd |char* |sv_2pv_flags |SV* sv|STRLEN* lp|I32 flags Ap |char* |my_atof2 |const char *s|NV* value + #if !defined(HAS_SOCKETPAIR) && defined(HAS_SOCKET) + Ap |int |my_socketpair |int family|int type|int protocol|int fd[2] + #endif + + + #if defined(USE_PERLIO) && !defined(USE_SFIO) + Ap |int |PerlIO_close |PerlIO * + Ap |int |PerlIO_fill |PerlIO * + Ap |int |PerlIO_fileno |PerlIO * + Ap |int |PerlIO_eof |PerlIO * + Ap |int |PerlIO_error |PerlIO * + Ap |int |PerlIO_flush |PerlIO * + Ap |void |PerlIO_clearerr |PerlIO * + Ap |void |PerlIO_set_cnt |PerlIO *|int + Ap |void |PerlIO_set_ptrcnt |PerlIO *|STDCHAR *|int + Ap |void |PerlIO_setlinebuf |PerlIO * + Ap |SSize_t|PerlIO_read |PerlIO *|void *|Size_t + Ap |SSize_t|PerlIO_write |PerlIO *|const void *|Size_t + Ap |SSize_t|PerlIO_unread |PerlIO *|const void *|Size_t + Ap |Off_t |PerlIO_tell |PerlIO * + Ap |int |PerlIO_seek |PerlIO *|Off_t|int + + Ap |STDCHAR *|PerlIO_get_base |PerlIO * + Ap |STDCHAR *|PerlIO_get_ptr |PerlIO * + Ap |int |PerlIO_get_bufsiz |PerlIO * + Ap |int |PerlIO_get_cnt |PerlIO * + + Ap |PerlIO *|PerlIO_stdin + Ap |PerlIO *|PerlIO_stdout + Ap |PerlIO *|PerlIO_stderr + #endif /* PERLIO_LAYERS */ + +#if defined(USE_PERLIO) && !defined(USE_SFIO) +Ap |int |PerlIO_close |PerlIO * +Ap |int |PerlIO_fill |PerlIO * +Ap |int |PerlIO_fileno |PerlIO * +Ap |int |PerlIO_eof |PerlIO * +Ap |int |PerlIO_error |PerlIO * +Ap |int |PerlIO_flush |PerlIO * +Ap |void |PerlIO_clearerr |PerlIO * +Ap |void |PerlIO_set_cnt |PerlIO *|int +Ap |void |PerlIO_set_ptrcnt |PerlIO *|STDCHAR *|int +Ap |void |PerlIO_setlinebuf |PerlIO * +Ap |SSize_t|PerlIO_read |PerlIO *|void *|Size_t +Ap |SSize_t|PerlIO_write |PerlIO *|const void *|Size_t +Ap |SSize_t|PerlIO_unread |PerlIO *|const void *|Size_t +Ap |Off_t |PerlIO_tell |PerlIO * +Ap |int |PerlIO_seek |PerlIO *|Off_t|int + +Ap |STDCHAR *|PerlIO_get_base |PerlIO * +Ap |STDCHAR *|PerlIO_get_ptr |PerlIO * +Ap |int |PerlIO_get_bufsiz |PerlIO * +Ap |int |PerlIO_get_cnt |PerlIO * + +Ap |PerlIO *|PerlIO_stdin +Ap |PerlIO *|PerlIO_stdout +Ap |PerlIO *|PerlIO_stderr +#endif /* PERLIO_LAYERS */ + END_EXTERN_C diff --cc proto.h index 0706e6c,fee2f9f..33b8e23 --- a/proto.h +++ b/proto.h @@@ -1331,16 -1331,19 +1331,47 @@@ PERL_CALLCONV STRLEN Perl_sv_utf8_upgra PERL_CALLCONV char* Perl_sv_pvn_force_flags(pTHX_ SV* sv, STRLEN* lp, I32 flags); PERL_CALLCONV char* Perl_sv_2pv_flags(pTHX_ SV* sv, STRLEN* lp, I32 flags); PERL_CALLCONV char* Perl_my_atof2(pTHX_ const char *s, NV* value); + #if !defined(HAS_SOCKETPAIR) && defined(HAS_SOCKET) + PERL_CALLCONV int Perl_my_socketpair(pTHX_ int family, int type, int protocol, int fd[2]); + #endif + + + #if defined(USE_PERLIO) && !defined(USE_SFIO) + PERL_CALLCONV int Perl_PerlIO_close(pTHX_ PerlIO *); + PERL_CALLCONV int Perl_PerlIO_fill(pTHX_ PerlIO *); + PERL_CALLCONV int Perl_PerlIO_fileno(pTHX_ PerlIO *); + PERL_CALLCONV int Perl_PerlIO_eof(pTHX_ PerlIO *); + PERL_CALLCONV int Perl_PerlIO_error(pTHX_ PerlIO *); + PERL_CALLCONV int Perl_PerlIO_flush(pTHX_ PerlIO *); + PERL_CALLCONV void Perl_PerlIO_clearerr(pTHX_ PerlIO *); ++PERL_CALLCONV void Perl_PerlIO_set_cnt(pTHX_ PerlIO *, int); ++PERL_CALLCONV void Perl_PerlIO_set_ptrcnt(pTHX_ PerlIO *, STDCHAR *, int); ++PERL_CALLCONV void Perl_PerlIO_setlinebuf(pTHX_ PerlIO *); ++PERL_CALLCONV SSize_t Perl_PerlIO_read(pTHX_ PerlIO *, void *, Size_t); ++PERL_CALLCONV SSize_t Perl_PerlIO_write(pTHX_ PerlIO *, const void *, Size_t); ++PERL_CALLCONV SSize_t Perl_PerlIO_unread(pTHX_ PerlIO *, const void *, Size_t); ++PERL_CALLCONV Off_t Perl_PerlIO_tell(pTHX_ PerlIO *); ++PERL_CALLCONV int Perl_PerlIO_seek(pTHX_ PerlIO *, Off_t, int); ++ ++PERL_CALLCONV STDCHAR * Perl_PerlIO_get_base(pTHX_ PerlIO *); ++PERL_CALLCONV STDCHAR * Perl_PerlIO_get_ptr(pTHX_ PerlIO *); ++PERL_CALLCONV int Perl_PerlIO_get_bufsiz(pTHX_ PerlIO *); ++PERL_CALLCONV int Perl_PerlIO_get_cnt(pTHX_ PerlIO *); ++ ++PERL_CALLCONV PerlIO * Perl_PerlIO_stdin(pTHX); ++PERL_CALLCONV PerlIO * Perl_PerlIO_stdout(pTHX); ++PERL_CALLCONV PerlIO * Perl_PerlIO_stderr(pTHX); ++#endif /* PERLIO_LAYERS */ + + +#if defined(USE_PERLIO) && !defined(USE_SFIO) +PERL_CALLCONV int Perl_PerlIO_close(pTHX_ PerlIO *); +PERL_CALLCONV int Perl_PerlIO_fill(pTHX_ PerlIO *); +PERL_CALLCONV int Perl_PerlIO_fileno(pTHX_ PerlIO *); +PERL_CALLCONV int Perl_PerlIO_eof(pTHX_ PerlIO *); +PERL_CALLCONV int Perl_PerlIO_error(pTHX_ PerlIO *); +PERL_CALLCONV int Perl_PerlIO_flush(pTHX_ PerlIO *); +PERL_CALLCONV void Perl_PerlIO_clearerr(pTHX_ PerlIO *); PERL_CALLCONV void Perl_PerlIO_set_cnt(pTHX_ PerlIO *, int); PERL_CALLCONV void Perl_PerlIO_set_ptrcnt(pTHX_ PerlIO *, STDCHAR *, int); PERL_CALLCONV void Perl_PerlIO_setlinebuf(pTHX_ PerlIO *);