X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=perlsdio.h;h=72ae584d4eb55b8ba070228de4144ff1f82e6cad;hb=a051bdb4a5dd256e73719c29e4e82ba666ed7f4d;hp=aaedec4541ad1a03d5b012f8e150f6594128b530;hpb=cf829ab07ccc67cf02ca41d6f870136b64d83833;p=p5sagit%2Fp5-mst-13.2.git diff --git a/perlsdio.h b/perlsdio.h index aaedec4..72ae584 100644 --- a/perlsdio.h +++ b/perlsdio.h @@ -1,4 +1,18 @@ +/* perlsdio.h + * + * Copyright (c) 1997-2002, Larry Wall + * + * You may distribute under the terms of either the GNU General Public + * License or the Artistic License, as specified in the README file. + * + */ + #ifdef PERLIO_IS_STDIO + +#ifdef NETWARE + #include "nwstdio.h" +#else + /* * This file #define-s the PerlIO_xxx abstraction onto stdio functions. * Make this as close to original stdio as possible. @@ -8,13 +22,13 @@ #define PerlIO_stdout() stdout #define PerlIO_stdin() stdin -#define PerlIO_fdupopen(f) (f) #define PerlIO_isutf8(f) 0 #define PerlIO_printf fprintf #define PerlIO_stdoutf printf #define PerlIO_vprintf(f,fmt,a) vfprintf(f,fmt,a) #define PerlIO_write(f,buf,count) fwrite1(buf,1,count,f) +#define PerlIO_unread(f,buf,count) (-1) #define PerlIO_open fopen #define PerlIO_fdopen fdopen #define PerlIO_reopen freopen @@ -60,12 +74,6 @@ #else # define PerlIO_seek(f,o,w) fseek(f,o,w) #endif -#ifdef HAS_FGETPOS -#define PerlIO_getpos(f,p) fgetpos(f,p) -#endif -#ifdef HAS_FSETPOS -#define PerlIO_setpos(f,p) fsetpos(f,p) -#endif #define PerlIO_rewind(f) rewind(f) #define PerlIO_tmpfile() tmpfile() @@ -141,4 +149,5 @@ #define PerlIO_get_bufsiz(f) (abort(),0) #endif +#endif /* NETWARE */ #endif /* PERLIO_IS_STDIO */