diff options
author | 2005-06-17 20:40:30 +0000 | |
---|---|---|
committer | 2005-06-17 20:40:30 +0000 | |
commit | c2fb321235c8dbfba0909bc43913400e90646ae7 (patch) | |
tree | 101c9655c9c5856e7de799c241b4fad9067a89db /lib/libc/stdio/fileext.h | |
parent | bye bye whiteouts (diff) | |
download | wireguard-openbsd-c2fb321235c8dbfba0909bc43913400e90646ae7.tar.xz wireguard-openbsd-c2fb321235c8dbfba0909bc43913400e90646ae7.zip |
next citrus step.
reviewed by millert, otto, kevlo, naddy, kettenis...
libc+libstdc++ bump
Diffstat (limited to 'lib/libc/stdio/fileext.h')
-rw-r--r-- | lib/libc/stdio/fileext.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/lib/libc/stdio/fileext.h b/lib/libc/stdio/fileext.h index 5619940c2bc..2d070430248 100644 --- a/lib/libc/stdio/fileext.h +++ b/lib/libc/stdio/fileext.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fileext.h,v 1.1 2005/04/30 09:25:17 espie Exp $ */ +/* $OpenBSD: fileext.h,v 1.2 2005/06/17 20:40:32 espie Exp $ */ /* $NetBSD: fileext.h,v 1.5 2003/07/18 21:46:41 nathanw Exp $ */ /*- @@ -34,9 +34,21 @@ */ struct __sfileext { struct __sbuf _ub; /* ungetc buffer */ - /* further data */ + struct wchar_io_data _wcio; /* wide char io status */ }; #define _EXT(fp) ((struct __sfileext *)((fp)->_ext._base)) #define _UB(fp) _EXT(fp)->_ub -#define _FILEEXT_SETUP(f, fext) /* LINTED */(f)->_ext._base = (unsigned char *)(fext) + +#define _FILEEXT_INIT(fp) \ +do { \ + _UB(fp)._base = NULL; \ + _UB(fp)._size = 0; \ + WCIO_INIT(fp); \ +} while (0) + +#define _FILEEXT_SETUP(f, fext) \ +do { \ + (f)->_ext._base = (unsigned char *)(fext); \ + _FILEEXT_INIT(f); \ +} while (0) |