summaryrefslogtreecommitdiff
path: root/usr/src/lib/libast/common/stdio
diff options
context:
space:
mode:
authorRoland Mainz <roland.mainz@nrubsig.org>2009-10-28 10:36:39 -0700
committerRoland Mainz <roland.mainz@nrubsig.org>2009-10-28 10:36:39 -0700
commit34f9b3eef6fdadbda0a846aa4d68691ac40eace5 (patch)
tree0b0fdfb35f8eb9324728de5a99e50e939aca650f /usr/src/lib/libast/common/stdio
parent14969419acb89bb74e6c95fa472119b710224440 (diff)
downloadillumos-joyent-34f9b3eef6fdadbda0a846aa4d68691ac40eace5.tar.gz
Portions contributed by Olga Kryzhanovska <olga.kryzhanovska@gmail.com>
PSARC/2009/063 ksh93 update 2 PSARC/2009/248 ksh93 update to 2009-03-10 PSARC/2009/249 more ksh93 command conversions 6888396 libast sources should not include localedef.h 6605478 ksh93 profile shell option does not work 6631006 ksh93 hangs in situations that ksh handles okay 6661487 logname reports nothing after running the script command 6705126 first call to read doesn't honor new setting of HISTFILE 6764665 *libpp* Array overrun in libpp 6765756 *libast* Array overruns in libast 6769332 Recursive function+command substitutions terminate shell after 257 iterations 6777491 *ksh93* lacks arithmetric function iszero() 6778077 *ksh93* does not understand "THAW" as a signal for use with trap 6789247 [ku1] libast/ksh93 1-digit hexfloat base conversion rounds incorrectly 6791838 *ksh93* unset of a variable which is not set should return 0 6793714 RFE: Update /usr/bin/comm to AT&T AST "comm" 6793719 RFE: Update /usr/bin/cut to AT&T AST "cut" 6793721 RFE: Update /usr/bin/paste to AT&T AST "paste" 6793722 RFE: Update /usr/bin/cmp to AT&T AST "cmp" 6793726 RFE: Update /usr/bin/uniq to AT&T AST "uniq" 6793735 RFE: Update /usr/bin/wc to AT&T AST "wc" 6793744 RFE: Add /usr/share/doc/ksh/ for ksh93 documentation 6793747 RFE: Provide "print" builtin as /usr/bin/print for external applications 6793763 RFE: Update /usr/bin/ksh93 to ast-ksh.2009-05-05 6794952 RFE: Enable "globstar" mode in /etc/ksh.kshrc (= interactive ksh93 shells) 6805792 [ku1] Moving local compound var into array does not work 6805794 [ku1] printf returns "invalid character constant" for $ printf "%d\n" "'<euro>" 6805795 [ku1] ksh93 does not differ between -0 and +0 6805797 [ku1]Can't append to nodes of an array of compound vars if addressing them via nameref 6805799 Indexed compound variable arrays do not work... 6805800 [ku1] Declaring associative compound array does not work 6805813 RFE: Update /usr/bin/join to AT&T AST "join". 6805819 RFE: Update /usr/bin/tee to AT&T AST "tee". 6809663 shlint missing ending newline on errors 6811916 ksh93 repeatedly segfaults when "tee" builtin is interrupted via <ctrl-c> in interactive mode 6821113 SUNWosdem package issues 6828644 RFE: Update /usr/bin/logname to AT&T AST "logname". 6828692 RFE: Update /usr/bin/cksum to AT&T AST "cksum". 6834184 ksh93 gets SIGSEGV if HISTFILE is changed in place. 6834207 ksh93 gets SIGSEGV on interactive function definition with HISTSIZE unset 6835835 ksh93 "cat" builtin does not handle "-n" correctly 6841442 Need exception list for OS/Net trees managed via Subversion 6848486 "echo ${test}" with test undefined crashes the shell 6850672 ksh93 (VISUAL=vi) crashes with memory fault while scrolling through history 6855875 typeset -X x ; print $x # does not print sufficient digits to restore value 6857344 /usr/bin/hash core dump with invalid arguments 6866676 Need test suite module to test the kernel support for compiled shell scripts 6881017 Subshell doesn't exit, holds pipe open preventing callers from exiting 6884409 fts functions in libast library can result in segv with deep dir trees (similar to CERT VU#590371)
Diffstat (limited to 'usr/src/lib/libast/common/stdio')
-rw-r--r--usr/src/lib/libast/common/stdio/_doprnt.c2
-rw-r--r--usr/src/lib/libast/common/stdio/_doscan.c2
-rw-r--r--usr/src/lib/libast/common/stdio/_filbuf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/_flsbuf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/_stdfun.c6
-rw-r--r--usr/src/lib/libast/common/stdio/_stdopen.c2
-rw-r--r--usr/src/lib/libast/common/stdio/_stdprintf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/_stdscanf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/_stdsprnt.c2
-rw-r--r--usr/src/lib/libast/common/stdio/_stdvbuf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/_stdvsnprnt.c2
-rw-r--r--usr/src/lib/libast/common/stdio/_stdvsprnt.c2
-rw-r--r--usr/src/lib/libast/common/stdio/_stdvsscn.c2
-rw-r--r--usr/src/lib/libast/common/stdio/asprintf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/clearerr.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fclose.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fcloseall.c57
-rw-r--r--usr/src/lib/libast/common/stdio/fdopen.c2
-rw-r--r--usr/src/lib/libast/common/stdio/feof.c2
-rw-r--r--usr/src/lib/libast/common/stdio/ferror.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fflush.c8
-rw-r--r--usr/src/lib/libast/common/stdio/fgetc.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fgetpos.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fgets.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fgetwc.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fgetws.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fileno.c2
-rw-r--r--usr/src/lib/libast/common/stdio/flockfile.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fmemopen.c (renamed from usr/src/lib/libast/common/stdio/stdio_gnu.c)48
-rw-r--r--usr/src/lib/libast/common/stdio/fopen.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fprintf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fpurge.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fputc.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fputs.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fputwc.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fputws.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fread.c2
-rw-r--r--usr/src/lib/libast/common/stdio/freopen.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fscanf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fseek.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fseeko.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fsetpos.c2
-rw-r--r--usr/src/lib/libast/common/stdio/ftell.c2
-rw-r--r--usr/src/lib/libast/common/stdio/ftello.c2
-rw-r--r--usr/src/lib/libast/common/stdio/ftrylockfile.c2
-rw-r--r--usr/src/lib/libast/common/stdio/funlockfile.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fwide.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fwprintf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fwrite.c2
-rw-r--r--usr/src/lib/libast/common/stdio/fwscanf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/getc.c2
-rw-r--r--usr/src/lib/libast/common/stdio/getchar.c2
-rw-r--r--usr/src/lib/libast/common/stdio/getdelim.c96
-rw-r--r--usr/src/lib/libast/common/stdio/getline.c36
-rw-r--r--usr/src/lib/libast/common/stdio/getw.c2
-rw-r--r--usr/src/lib/libast/common/stdio/getwc.c2
-rw-r--r--usr/src/lib/libast/common/stdio/getwchar.c2
-rw-r--r--usr/src/lib/libast/common/stdio/pclose.c2
-rw-r--r--usr/src/lib/libast/common/stdio/popen.c2
-rw-r--r--usr/src/lib/libast/common/stdio/printf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/putc.c2
-rw-r--r--usr/src/lib/libast/common/stdio/putchar.c2
-rw-r--r--usr/src/lib/libast/common/stdio/puts.c2
-rw-r--r--usr/src/lib/libast/common/stdio/putw.c2
-rw-r--r--usr/src/lib/libast/common/stdio/putwc.c2
-rw-r--r--usr/src/lib/libast/common/stdio/putwchar.c2
-rw-r--r--usr/src/lib/libast/common/stdio/rewind.c2
-rw-r--r--usr/src/lib/libast/common/stdio/scanf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/setbuf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/setbuffer.c2
-rw-r--r--usr/src/lib/libast/common/stdio/setlinebuf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/setvbuf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/snprintf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/sprintf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/sscanf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/stdhdr.h2
-rw-r--r--usr/src/lib/libast/common/stdio/stdio_c99.c2
-rw-r--r--usr/src/lib/libast/common/stdio/swprintf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/swscanf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/tmpfile.c2
-rw-r--r--usr/src/lib/libast/common/stdio/ungetc.c2
-rw-r--r--usr/src/lib/libast/common/stdio/ungetwc.c2
-rw-r--r--usr/src/lib/libast/common/stdio/vasprintf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/vfprintf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/vfscanf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/vfwprintf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/vfwscanf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/vprintf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/vscanf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/vsnprintf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/vsprintf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/vsscanf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/vswprintf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/vswscanf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/vwprintf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/vwscanf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/wprintf.c2
-rw-r--r--usr/src/lib/libast/common/stdio/wscanf.c2
98 files changed, 294 insertions, 141 deletions
diff --git a/usr/src/lib/libast/common/stdio/_doprnt.c b/usr/src/lib/libast/common/stdio/_doprnt.c
index abe981daeb..5f02ffdd7b 100644
--- a/usr/src/lib/libast/common/stdio/_doprnt.c
+++ b/usr/src/lib/libast/common/stdio/_doprnt.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/_doscan.c b/usr/src/lib/libast/common/stdio/_doscan.c
index 1e1f40006b..8334f44bee 100644
--- a/usr/src/lib/libast/common/stdio/_doscan.c
+++ b/usr/src/lib/libast/common/stdio/_doscan.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/_filbuf.c b/usr/src/lib/libast/common/stdio/_filbuf.c
index 48fc226ca7..420c429c91 100644
--- a/usr/src/lib/libast/common/stdio/_filbuf.c
+++ b/usr/src/lib/libast/common/stdio/_filbuf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/_flsbuf.c b/usr/src/lib/libast/common/stdio/_flsbuf.c
index 4c335cec46..ecf9a2cbb6 100644
--- a/usr/src/lib/libast/common/stdio/_flsbuf.c
+++ b/usr/src/lib/libast/common/stdio/_flsbuf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/_stdfun.c b/usr/src/lib/libast/common/stdio/_stdfun.c
index 94c8b77241..a6a82ae902 100644
--- a/usr/src/lib/libast/common/stdio/_stdfun.c
+++ b/usr/src/lib/libast/common/stdio/_stdfun.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
@@ -36,10 +36,12 @@ void _STUB_stdfun(){}
#if _lib___iob_func
#define IOB ((char*)__iob_func())
+#elif _lib___p__iob
+#define IOB ((char*)__p__iob())
#elif _dat__iob
#define IOB ((char*)_iob)
#else
-#define IOB ((char*)__p__iob())
+#define IOB ((char*)_p__iob())
#endif
#define IOBMAX (512*32)
diff --git a/usr/src/lib/libast/common/stdio/_stdopen.c b/usr/src/lib/libast/common/stdio/_stdopen.c
index cd2b40babf..0290aa9e5f 100644
--- a/usr/src/lib/libast/common/stdio/_stdopen.c
+++ b/usr/src/lib/libast/common/stdio/_stdopen.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/_stdprintf.c b/usr/src/lib/libast/common/stdio/_stdprintf.c
index 0ccd914243..9f46637c9a 100644
--- a/usr/src/lib/libast/common/stdio/_stdprintf.c
+++ b/usr/src/lib/libast/common/stdio/_stdprintf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/_stdscanf.c b/usr/src/lib/libast/common/stdio/_stdscanf.c
index 863847ccf2..998636a41f 100644
--- a/usr/src/lib/libast/common/stdio/_stdscanf.c
+++ b/usr/src/lib/libast/common/stdio/_stdscanf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/_stdsprnt.c b/usr/src/lib/libast/common/stdio/_stdsprnt.c
index ebff0918a3..bd91deafd7 100644
--- a/usr/src/lib/libast/common/stdio/_stdsprnt.c
+++ b/usr/src/lib/libast/common/stdio/_stdsprnt.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/_stdvbuf.c b/usr/src/lib/libast/common/stdio/_stdvbuf.c
index 7ad8add7e6..6307c47115 100644
--- a/usr/src/lib/libast/common/stdio/_stdvbuf.c
+++ b/usr/src/lib/libast/common/stdio/_stdvbuf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/_stdvsnprnt.c b/usr/src/lib/libast/common/stdio/_stdvsnprnt.c
index 4d07332060..fb992302cf 100644
--- a/usr/src/lib/libast/common/stdio/_stdvsnprnt.c
+++ b/usr/src/lib/libast/common/stdio/_stdvsnprnt.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/_stdvsprnt.c b/usr/src/lib/libast/common/stdio/_stdvsprnt.c
index 7a145eeef7..af3840f345 100644
--- a/usr/src/lib/libast/common/stdio/_stdvsprnt.c
+++ b/usr/src/lib/libast/common/stdio/_stdvsprnt.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/_stdvsscn.c b/usr/src/lib/libast/common/stdio/_stdvsscn.c
index 451d036675..be57402e0c 100644
--- a/usr/src/lib/libast/common/stdio/_stdvsscn.c
+++ b/usr/src/lib/libast/common/stdio/_stdvsscn.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/asprintf.c b/usr/src/lib/libast/common/stdio/asprintf.c
index f7ed170751..bbf155196d 100644
--- a/usr/src/lib/libast/common/stdio/asprintf.c
+++ b/usr/src/lib/libast/common/stdio/asprintf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/clearerr.c b/usr/src/lib/libast/common/stdio/clearerr.c
index c7198a7c7a..39c202d1de 100644
--- a/usr/src/lib/libast/common/stdio/clearerr.c
+++ b/usr/src/lib/libast/common/stdio/clearerr.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fclose.c b/usr/src/lib/libast/common/stdio/fclose.c
index e7cbcfd483..7ba4a27dda 100644
--- a/usr/src/lib/libast/common/stdio/fclose.c
+++ b/usr/src/lib/libast/common/stdio/fclose.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fcloseall.c b/usr/src/lib/libast/common/stdio/fcloseall.c
new file mode 100644
index 0000000000..37728c9dc5
--- /dev/null
+++ b/usr/src/lib/libast/common/stdio/fcloseall.c
@@ -0,0 +1,57 @@
+/***********************************************************************
+* *
+* This software is part of the ast package *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
+* and is licensed under the *
+* Common Public License, Version 1.0 *
+* by AT&T Intellectual Property *
+* *
+* A copy of the License is available at *
+* http://www.opensource.org/licenses/cpl1.0.txt *
+* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
+* *
+* Information and Software Systems Research *
+* AT&T Research *
+* Florham Park NJ *
+* *
+* Glenn Fowler <gsf@research.att.com> *
+* David Korn <dgk@research.att.com> *
+* Phong Vo <kpv@research.att.com> *
+* *
+***********************************************************************/
+#pragma prototyped
+
+#include "stdhdr.h"
+
+#define MAXLOOP 3
+
+int
+fcloseall(void)
+{
+ Sfpool_t* p;
+ Sfpool_t* next;
+ int n;
+ int nclose;
+ int count;
+ int loop;
+
+ STDIO_INT(0, "fcloseall", int, (void), ())
+
+ for(loop = 0; loop < MAXLOOP; ++loop)
+ { nclose = count = 0;
+ for(p = &_Sfpool; p; p = next)
+ { /* find the next legitimate pool */
+ for(next = p->next; next; next = next->next)
+ if(next->n_sf > 0)
+ break;
+ for(n = 0; n < ((p == &_Sfpool) ? p->n_sf : 1); ++n)
+ { count += 1;
+ if(sfclose(p->sf[n]) >= 0)
+ nclose += 1;
+ }
+ }
+ if(nclose == count)
+ break;
+ }
+ return 0; /* always return 0 per GNU */
+}
diff --git a/usr/src/lib/libast/common/stdio/fdopen.c b/usr/src/lib/libast/common/stdio/fdopen.c
index 92e1d7d9e5..c356270653 100644
--- a/usr/src/lib/libast/common/stdio/fdopen.c
+++ b/usr/src/lib/libast/common/stdio/fdopen.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/feof.c b/usr/src/lib/libast/common/stdio/feof.c
index 8357345e69..e289f7c2b8 100644
--- a/usr/src/lib/libast/common/stdio/feof.c
+++ b/usr/src/lib/libast/common/stdio/feof.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/ferror.c b/usr/src/lib/libast/common/stdio/ferror.c
index 698ade88b8..53879696f5 100644
--- a/usr/src/lib/libast/common/stdio/ferror.c
+++ b/usr/src/lib/libast/common/stdio/ferror.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fflush.c b/usr/src/lib/libast/common/stdio/fflush.c
index e30eb34bd7..3abb8b4257 100644
--- a/usr/src/lib/libast/common/stdio/fflush.c
+++ b/usr/src/lib/libast/common/stdio/fflush.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
@@ -21,13 +21,17 @@
***********************************************************************/
#pragma prototyped
+#ifndef _USE_GNU
+#define _USE_GNU
+#endif
+
#include "stdhdr.h"
int
fflush(Sfio_t* f)
{
if (!f)
- return sfsync(NiL);
+ return fcloseall();
STDIO_INT(f, "fflush", int, (Sfio_t*), (f))
diff --git a/usr/src/lib/libast/common/stdio/fgetc.c b/usr/src/lib/libast/common/stdio/fgetc.c
index 880c4a5abd..a99d12bb0c 100644
--- a/usr/src/lib/libast/common/stdio/fgetc.c
+++ b/usr/src/lib/libast/common/stdio/fgetc.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fgetpos.c b/usr/src/lib/libast/common/stdio/fgetpos.c
index 988a3ebf2f..df9573e8d8 100644
--- a/usr/src/lib/libast/common/stdio/fgetpos.c
+++ b/usr/src/lib/libast/common/stdio/fgetpos.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fgets.c b/usr/src/lib/libast/common/stdio/fgets.c
index 99880271a0..15368b5add 100644
--- a/usr/src/lib/libast/common/stdio/fgets.c
+++ b/usr/src/lib/libast/common/stdio/fgets.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fgetwc.c b/usr/src/lib/libast/common/stdio/fgetwc.c
index 03728d867e..65acb7925e 100644
--- a/usr/src/lib/libast/common/stdio/fgetwc.c
+++ b/usr/src/lib/libast/common/stdio/fgetwc.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fgetws.c b/usr/src/lib/libast/common/stdio/fgetws.c
index d7e941c10a..d1d9acde30 100644
--- a/usr/src/lib/libast/common/stdio/fgetws.c
+++ b/usr/src/lib/libast/common/stdio/fgetws.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fileno.c b/usr/src/lib/libast/common/stdio/fileno.c
index f0cb8db31e..b5507afdc6 100644
--- a/usr/src/lib/libast/common/stdio/fileno.c
+++ b/usr/src/lib/libast/common/stdio/fileno.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/flockfile.c b/usr/src/lib/libast/common/stdio/flockfile.c
index 1da30178ef..5df7aa11a5 100644
--- a/usr/src/lib/libast/common/stdio/flockfile.c
+++ b/usr/src/lib/libast/common/stdio/flockfile.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/stdio_gnu.c b/usr/src/lib/libast/common/stdio/fmemopen.c
index ea420bb666..fa1cdb5adb 100644
--- a/usr/src/lib/libast/common/stdio/stdio_gnu.c
+++ b/usr/src/lib/libast/common/stdio/fmemopen.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
@@ -21,54 +21,12 @@
***********************************************************************/
#pragma prototyped
-/*
- * gnu stdio extensions
- */
-
#include "stdhdr.h"
-int
-fcloseall(void)
-{
- return sfsync(NiL) < 0 ? -1 : 0;
-}
-
Sfio_t*
fmemopen(void* buf, size_t size, const char* mode)
{
- return sfnew(NiL, buf, size, -1, SF_STRING|_sftype(mode, NiL, NiL));
-}
-
-ssize_t
-__getdelim(char** pbuf, size_t* psize, int del, Sfio_t* sp)
-{
- char* s;
- size_t n;
- size_t m;
+ STDIO_PTR(0, "fmemopen", Sfio_t*, (void*, size_t, const char*), (buf, size, mode))
- if (!(s = sfgetr(sp, del, 1)))
- return -1;
- n = sfsize(sp);
- m = n + 1;
- if (!*pbuf || m > *psize)
- {
- m = roundof(m, 1024);
- if (!(*pbuf = newof(*pbuf, char, m, 0)))
- return -1;
- *psize = m;
- }
- memcpy(*pbuf, s, n);
- return n;
-}
-
-ssize_t
-getdelim(char** pbuf, size_t* psize, int del, Sfio_t* sp)
-{
- return __getdelim(pbuf, psize, del, sp);
-}
-
-ssize_t
-getline(char** pbuf, size_t* psize, Sfio_t* sp)
-{
- return __getdelim(pbuf, psize, '\n', sp);
+ return sfnew(NiL, buf, size, -1, SF_STRING|_sftype(mode, NiL, NiL));
}
diff --git a/usr/src/lib/libast/common/stdio/fopen.c b/usr/src/lib/libast/common/stdio/fopen.c
index 27d942a04b..8c723e849a 100644
--- a/usr/src/lib/libast/common/stdio/fopen.c
+++ b/usr/src/lib/libast/common/stdio/fopen.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fprintf.c b/usr/src/lib/libast/common/stdio/fprintf.c
index c9974ff04c..345fce71cb 100644
--- a/usr/src/lib/libast/common/stdio/fprintf.c
+++ b/usr/src/lib/libast/common/stdio/fprintf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fpurge.c b/usr/src/lib/libast/common/stdio/fpurge.c
index e71564657e..2b57e51ac0 100644
--- a/usr/src/lib/libast/common/stdio/fpurge.c
+++ b/usr/src/lib/libast/common/stdio/fpurge.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fputc.c b/usr/src/lib/libast/common/stdio/fputc.c
index 1c4ece7e61..4ea662824c 100644
--- a/usr/src/lib/libast/common/stdio/fputc.c
+++ b/usr/src/lib/libast/common/stdio/fputc.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fputs.c b/usr/src/lib/libast/common/stdio/fputs.c
index 1fd2c228b9..a5d5a94cd6 100644
--- a/usr/src/lib/libast/common/stdio/fputs.c
+++ b/usr/src/lib/libast/common/stdio/fputs.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fputwc.c b/usr/src/lib/libast/common/stdio/fputwc.c
index 0fe7f8c9e8..7f7637f7bd 100644
--- a/usr/src/lib/libast/common/stdio/fputwc.c
+++ b/usr/src/lib/libast/common/stdio/fputwc.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fputws.c b/usr/src/lib/libast/common/stdio/fputws.c
index a37f961f5a..844088b694 100644
--- a/usr/src/lib/libast/common/stdio/fputws.c
+++ b/usr/src/lib/libast/common/stdio/fputws.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fread.c b/usr/src/lib/libast/common/stdio/fread.c
index 0caeebc590..d94c1f341d 100644
--- a/usr/src/lib/libast/common/stdio/fread.c
+++ b/usr/src/lib/libast/common/stdio/fread.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/freopen.c b/usr/src/lib/libast/common/stdio/freopen.c
index f774b91b47..1746a450b7 100644
--- a/usr/src/lib/libast/common/stdio/freopen.c
+++ b/usr/src/lib/libast/common/stdio/freopen.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fscanf.c b/usr/src/lib/libast/common/stdio/fscanf.c
index 73da47c4a2..6ab28131ea 100644
--- a/usr/src/lib/libast/common/stdio/fscanf.c
+++ b/usr/src/lib/libast/common/stdio/fscanf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fseek.c b/usr/src/lib/libast/common/stdio/fseek.c
index 84233b1b87..b6175f1b15 100644
--- a/usr/src/lib/libast/common/stdio/fseek.c
+++ b/usr/src/lib/libast/common/stdio/fseek.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fseeko.c b/usr/src/lib/libast/common/stdio/fseeko.c
index 1bafc4c97e..cb69bbeaa6 100644
--- a/usr/src/lib/libast/common/stdio/fseeko.c
+++ b/usr/src/lib/libast/common/stdio/fseeko.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fsetpos.c b/usr/src/lib/libast/common/stdio/fsetpos.c
index 9e5c193cad..3212b9499d 100644
--- a/usr/src/lib/libast/common/stdio/fsetpos.c
+++ b/usr/src/lib/libast/common/stdio/fsetpos.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/ftell.c b/usr/src/lib/libast/common/stdio/ftell.c
index 225b34f408..cf5b1336cf 100644
--- a/usr/src/lib/libast/common/stdio/ftell.c
+++ b/usr/src/lib/libast/common/stdio/ftell.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/ftello.c b/usr/src/lib/libast/common/stdio/ftello.c
index 0fbcbe153f..65ba754468 100644
--- a/usr/src/lib/libast/common/stdio/ftello.c
+++ b/usr/src/lib/libast/common/stdio/ftello.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/ftrylockfile.c b/usr/src/lib/libast/common/stdio/ftrylockfile.c
index d4c40a5ce1..b00fe135b7 100644
--- a/usr/src/lib/libast/common/stdio/ftrylockfile.c
+++ b/usr/src/lib/libast/common/stdio/ftrylockfile.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/funlockfile.c b/usr/src/lib/libast/common/stdio/funlockfile.c
index 6aee88a525..fb186a32cb 100644
--- a/usr/src/lib/libast/common/stdio/funlockfile.c
+++ b/usr/src/lib/libast/common/stdio/funlockfile.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fwide.c b/usr/src/lib/libast/common/stdio/fwide.c
index 4d472cafaa..4db3e3d4eb 100644
--- a/usr/src/lib/libast/common/stdio/fwide.c
+++ b/usr/src/lib/libast/common/stdio/fwide.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fwprintf.c b/usr/src/lib/libast/common/stdio/fwprintf.c
index 3e7579369b..7ced942740 100644
--- a/usr/src/lib/libast/common/stdio/fwprintf.c
+++ b/usr/src/lib/libast/common/stdio/fwprintf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fwrite.c b/usr/src/lib/libast/common/stdio/fwrite.c
index 94a192ae4f..2121d32c19 100644
--- a/usr/src/lib/libast/common/stdio/fwrite.c
+++ b/usr/src/lib/libast/common/stdio/fwrite.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/fwscanf.c b/usr/src/lib/libast/common/stdio/fwscanf.c
index 29838447a3..dc6e31667d 100644
--- a/usr/src/lib/libast/common/stdio/fwscanf.c
+++ b/usr/src/lib/libast/common/stdio/fwscanf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/getc.c b/usr/src/lib/libast/common/stdio/getc.c
index bfc0c9a0f6..b52909ef49 100644
--- a/usr/src/lib/libast/common/stdio/getc.c
+++ b/usr/src/lib/libast/common/stdio/getc.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/getchar.c b/usr/src/lib/libast/common/stdio/getchar.c
index f1c4a168b3..5c85793bb6 100644
--- a/usr/src/lib/libast/common/stdio/getchar.c
+++ b/usr/src/lib/libast/common/stdio/getchar.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/getdelim.c b/usr/src/lib/libast/common/stdio/getdelim.c
new file mode 100644
index 0000000000..a24ad68fd8
--- /dev/null
+++ b/usr/src/lib/libast/common/stdio/getdelim.c
@@ -0,0 +1,96 @@
+/***********************************************************************
+* *
+* This software is part of the ast package *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
+* and is licensed under the *
+* Common Public License, Version 1.0 *
+* by AT&T Intellectual Property *
+* *
+* A copy of the License is available at *
+* http://www.opensource.org/licenses/cpl1.0.txt *
+* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
+* *
+* Information and Software Systems Research *
+* AT&T Research *
+* Florham Park NJ *
+* *
+* Glenn Fowler <gsf@research.att.com> *
+* David Korn <dgk@research.att.com> *
+* Phong Vo <kpv@research.att.com> *
+* *
+***********************************************************************/
+#pragma prototyped
+
+#include "stdhdr.h"
+
+ssize_t
+getdelim(char** sp, size_t* np, int delim, Sfio_t* f)
+{
+ ssize_t m;
+ ssize_t n;
+ ssize_t k;
+ ssize_t p;
+ uchar* s;
+ uchar* ps;
+ SFMTXDECL(f);
+
+ STDIO_INT(f, "getdelim", ssize_t, (char**, size_t*, int, Sfio_t*), (sp, np, delim, f))
+
+ SFMTXENTER(f, -1);
+
+ if(delim < 0 || delim > 255 || !sp || !np) /* bad parameters */
+ SFMTXRETURN(f, -1);
+
+ if(f->mode != SF_READ && _sfmode(f,SF_READ,0) < 0)
+ SFMTXRETURN(f, -1);
+
+ SFLOCK(f,0);
+
+ if(!(s = (uchar*)(*sp)) || (n = *np) < 0)
+ { s = NIL(uchar*); n = 0; }
+ for(m = 0;; )
+ { /* read new data */
+ if((p = f->endb - (ps = f->next)) <= 0 )
+ { f->getr = delim;
+ f->mode |= SF_RC;
+ if(SFRPEEK(f,ps,p) <= 0)
+ { m = -1;
+ break;
+ }
+ }
+
+ for(k = 0; k < p; ++k) /* find the delimiter */
+ { if(ps[k] == delim)
+ { k += 1; /* include delim in copying */
+ break;
+ }
+ }
+
+ if((m+k+1) >= n ) /* make sure there is space */
+ { n = ((m+k+15)/8)*8;
+ if(!(s = (uchar*)realloc(s, n)) )
+ { *sp = 0; *np = 0;
+ m = -1;
+ break;
+ }
+ *sp = (char*)s; *np = n;
+ }
+
+ memcpy(s+m, ps, k); m += k;
+ f->next = ps+k; /* skip copied data in buffer */
+
+ if(s[m-1] == delim)
+ { s[m] = 0; /* 0-terminated */
+ break;
+ }
+ }
+
+ SFOPEN(f,0);
+ SFMTXRETURN(f,m);
+}
+
+ssize_t
+__getdelim(char** sp, size_t* np, int delim, Sfio_t* f)
+{
+ return getdelim(sp, np, delim, f);
+}
diff --git a/usr/src/lib/libast/common/stdio/getline.c b/usr/src/lib/libast/common/stdio/getline.c
new file mode 100644
index 0000000000..b4936c2b30
--- /dev/null
+++ b/usr/src/lib/libast/common/stdio/getline.c
@@ -0,0 +1,36 @@
+/***********************************************************************
+* *
+* This software is part of the ast package *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
+* and is licensed under the *
+* Common Public License, Version 1.0 *
+* by AT&T Intellectual Property *
+* *
+* A copy of the License is available at *
+* http://www.opensource.org/licenses/cpl1.0.txt *
+* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
+* *
+* Information and Software Systems Research *
+* AT&T Research *
+* Florham Park NJ *
+* *
+* Glenn Fowler <gsf@research.att.com> *
+* David Korn <dgk@research.att.com> *
+* Phong Vo <kpv@research.att.com> *
+* *
+***********************************************************************/
+#pragma prototyped
+
+#ifndef _USE_GNU
+#define _USE_GNU
+#endif
+
+#include "stdhdr.h"
+
+ssize_t
+getline(char** sp, size_t* np, Sfio_t* f)
+{
+ STDIO_INT(f, "getline", ssize_t, (char**, size_t*, Sfio_t*), (sp, np, f))
+
+ return getdelim(sp, np, '\n', f);
+}
diff --git a/usr/src/lib/libast/common/stdio/getw.c b/usr/src/lib/libast/common/stdio/getw.c
index 031f4588c5..264fd7b375 100644
--- a/usr/src/lib/libast/common/stdio/getw.c
+++ b/usr/src/lib/libast/common/stdio/getw.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/getwc.c b/usr/src/lib/libast/common/stdio/getwc.c
index 27d1273a86..970d1fb588 100644
--- a/usr/src/lib/libast/common/stdio/getwc.c
+++ b/usr/src/lib/libast/common/stdio/getwc.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/getwchar.c b/usr/src/lib/libast/common/stdio/getwchar.c
index 2b08127e46..59b85f41c7 100644
--- a/usr/src/lib/libast/common/stdio/getwchar.c
+++ b/usr/src/lib/libast/common/stdio/getwchar.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/pclose.c b/usr/src/lib/libast/common/stdio/pclose.c
index 51bdf3071b..5c49dc9bea 100644
--- a/usr/src/lib/libast/common/stdio/pclose.c
+++ b/usr/src/lib/libast/common/stdio/pclose.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/popen.c b/usr/src/lib/libast/common/stdio/popen.c
index 0f15e8b961..38329fd259 100644
--- a/usr/src/lib/libast/common/stdio/popen.c
+++ b/usr/src/lib/libast/common/stdio/popen.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/printf.c b/usr/src/lib/libast/common/stdio/printf.c
index 45dd3c8b5c..a191f32bc1 100644
--- a/usr/src/lib/libast/common/stdio/printf.c
+++ b/usr/src/lib/libast/common/stdio/printf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/putc.c b/usr/src/lib/libast/common/stdio/putc.c
index c42448dd6b..ad8742f63c 100644
--- a/usr/src/lib/libast/common/stdio/putc.c
+++ b/usr/src/lib/libast/common/stdio/putc.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/putchar.c b/usr/src/lib/libast/common/stdio/putchar.c
index a43c666486..e339082c75 100644
--- a/usr/src/lib/libast/common/stdio/putchar.c
+++ b/usr/src/lib/libast/common/stdio/putchar.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/puts.c b/usr/src/lib/libast/common/stdio/puts.c
index 96c114a3d9..523383f93e 100644
--- a/usr/src/lib/libast/common/stdio/puts.c
+++ b/usr/src/lib/libast/common/stdio/puts.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/putw.c b/usr/src/lib/libast/common/stdio/putw.c
index 662a746d2a..bb120a8434 100644
--- a/usr/src/lib/libast/common/stdio/putw.c
+++ b/usr/src/lib/libast/common/stdio/putw.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/putwc.c b/usr/src/lib/libast/common/stdio/putwc.c
index 5929ca938b..21d0006257 100644
--- a/usr/src/lib/libast/common/stdio/putwc.c
+++ b/usr/src/lib/libast/common/stdio/putwc.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/putwchar.c b/usr/src/lib/libast/common/stdio/putwchar.c
index 9d6215ecde..bbca267759 100644
--- a/usr/src/lib/libast/common/stdio/putwchar.c
+++ b/usr/src/lib/libast/common/stdio/putwchar.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/rewind.c b/usr/src/lib/libast/common/stdio/rewind.c
index ae475316ab..285857848e 100644
--- a/usr/src/lib/libast/common/stdio/rewind.c
+++ b/usr/src/lib/libast/common/stdio/rewind.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/scanf.c b/usr/src/lib/libast/common/stdio/scanf.c
index 459b3340e6..e06681ee09 100644
--- a/usr/src/lib/libast/common/stdio/scanf.c
+++ b/usr/src/lib/libast/common/stdio/scanf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/setbuf.c b/usr/src/lib/libast/common/stdio/setbuf.c
index 54998bda2a..7ec63c4604 100644
--- a/usr/src/lib/libast/common/stdio/setbuf.c
+++ b/usr/src/lib/libast/common/stdio/setbuf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/setbuffer.c b/usr/src/lib/libast/common/stdio/setbuffer.c
index 9f2559e52a..18e6f5dac9 100644
--- a/usr/src/lib/libast/common/stdio/setbuffer.c
+++ b/usr/src/lib/libast/common/stdio/setbuffer.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/setlinebuf.c b/usr/src/lib/libast/common/stdio/setlinebuf.c
index d354a94d0d..ffb71365ce 100644
--- a/usr/src/lib/libast/common/stdio/setlinebuf.c
+++ b/usr/src/lib/libast/common/stdio/setlinebuf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/setvbuf.c b/usr/src/lib/libast/common/stdio/setvbuf.c
index f2d5cc46c7..b8673fafe8 100644
--- a/usr/src/lib/libast/common/stdio/setvbuf.c
+++ b/usr/src/lib/libast/common/stdio/setvbuf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/snprintf.c b/usr/src/lib/libast/common/stdio/snprintf.c
index 20495a7354..fd22ea1088 100644
--- a/usr/src/lib/libast/common/stdio/snprintf.c
+++ b/usr/src/lib/libast/common/stdio/snprintf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/sprintf.c b/usr/src/lib/libast/common/stdio/sprintf.c
index c887627f9a..76f434e73d 100644
--- a/usr/src/lib/libast/common/stdio/sprintf.c
+++ b/usr/src/lib/libast/common/stdio/sprintf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/sscanf.c b/usr/src/lib/libast/common/stdio/sscanf.c
index 4d064d3758..014a328f7e 100644
--- a/usr/src/lib/libast/common/stdio/sscanf.c
+++ b/usr/src/lib/libast/common/stdio/sscanf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/stdhdr.h b/usr/src/lib/libast/common/stdio/stdhdr.h
index 1b0c160453..3436bb9fc5 100644
--- a/usr/src/lib/libast/common/stdio/stdhdr.h
+++ b/usr/src/lib/libast/common/stdio/stdhdr.h
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/stdio_c99.c b/usr/src/lib/libast/common/stdio/stdio_c99.c
index c75aad10e1..9bfe96ebba 100644
--- a/usr/src/lib/libast/common/stdio/stdio_c99.c
+++ b/usr/src/lib/libast/common/stdio/stdio_c99.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/swprintf.c b/usr/src/lib/libast/common/stdio/swprintf.c
index b7b412f726..4b43fccc33 100644
--- a/usr/src/lib/libast/common/stdio/swprintf.c
+++ b/usr/src/lib/libast/common/stdio/swprintf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/swscanf.c b/usr/src/lib/libast/common/stdio/swscanf.c
index acf72fdc48..6653930fba 100644
--- a/usr/src/lib/libast/common/stdio/swscanf.c
+++ b/usr/src/lib/libast/common/stdio/swscanf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/tmpfile.c b/usr/src/lib/libast/common/stdio/tmpfile.c
index cfcd311da5..7d19057681 100644
--- a/usr/src/lib/libast/common/stdio/tmpfile.c
+++ b/usr/src/lib/libast/common/stdio/tmpfile.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/ungetc.c b/usr/src/lib/libast/common/stdio/ungetc.c
index bf3f5fa8fc..dc86703317 100644
--- a/usr/src/lib/libast/common/stdio/ungetc.c
+++ b/usr/src/lib/libast/common/stdio/ungetc.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/ungetwc.c b/usr/src/lib/libast/common/stdio/ungetwc.c
index 08c5aa362a..12aa1cc92a 100644
--- a/usr/src/lib/libast/common/stdio/ungetwc.c
+++ b/usr/src/lib/libast/common/stdio/ungetwc.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/vasprintf.c b/usr/src/lib/libast/common/stdio/vasprintf.c
index 6bdaf77fa0..1bb9609243 100644
--- a/usr/src/lib/libast/common/stdio/vasprintf.c
+++ b/usr/src/lib/libast/common/stdio/vasprintf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/vfprintf.c b/usr/src/lib/libast/common/stdio/vfprintf.c
index cff1bd5d1d..42fca64d7e 100644
--- a/usr/src/lib/libast/common/stdio/vfprintf.c
+++ b/usr/src/lib/libast/common/stdio/vfprintf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/vfscanf.c b/usr/src/lib/libast/common/stdio/vfscanf.c
index c9d4df1051..dd0d2a1a0d 100644
--- a/usr/src/lib/libast/common/stdio/vfscanf.c
+++ b/usr/src/lib/libast/common/stdio/vfscanf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/vfwprintf.c b/usr/src/lib/libast/common/stdio/vfwprintf.c
index a4a274c340..06e4bfcdeb 100644
--- a/usr/src/lib/libast/common/stdio/vfwprintf.c
+++ b/usr/src/lib/libast/common/stdio/vfwprintf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/vfwscanf.c b/usr/src/lib/libast/common/stdio/vfwscanf.c
index 4ae8697fca..7e3d9baa51 100644
--- a/usr/src/lib/libast/common/stdio/vfwscanf.c
+++ b/usr/src/lib/libast/common/stdio/vfwscanf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/vprintf.c b/usr/src/lib/libast/common/stdio/vprintf.c
index 0824e692e9..983bf17118 100644
--- a/usr/src/lib/libast/common/stdio/vprintf.c
+++ b/usr/src/lib/libast/common/stdio/vprintf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/vscanf.c b/usr/src/lib/libast/common/stdio/vscanf.c
index 4e36c27bb3..4e5d8a6f7d 100644
--- a/usr/src/lib/libast/common/stdio/vscanf.c
+++ b/usr/src/lib/libast/common/stdio/vscanf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/vsnprintf.c b/usr/src/lib/libast/common/stdio/vsnprintf.c
index 8ce4424d40..d794845cbf 100644
--- a/usr/src/lib/libast/common/stdio/vsnprintf.c
+++ b/usr/src/lib/libast/common/stdio/vsnprintf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/vsprintf.c b/usr/src/lib/libast/common/stdio/vsprintf.c
index 7f3c173aaf..365f54b8a8 100644
--- a/usr/src/lib/libast/common/stdio/vsprintf.c
+++ b/usr/src/lib/libast/common/stdio/vsprintf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/vsscanf.c b/usr/src/lib/libast/common/stdio/vsscanf.c
index ea5a1adccd..f3a76d6d5e 100644
--- a/usr/src/lib/libast/common/stdio/vsscanf.c
+++ b/usr/src/lib/libast/common/stdio/vsscanf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/vswprintf.c b/usr/src/lib/libast/common/stdio/vswprintf.c
index a3e90472b6..a6c1d84e48 100644
--- a/usr/src/lib/libast/common/stdio/vswprintf.c
+++ b/usr/src/lib/libast/common/stdio/vswprintf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/vswscanf.c b/usr/src/lib/libast/common/stdio/vswscanf.c
index da785c3723..94dabdda18 100644
--- a/usr/src/lib/libast/common/stdio/vswscanf.c
+++ b/usr/src/lib/libast/common/stdio/vswscanf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/vwprintf.c b/usr/src/lib/libast/common/stdio/vwprintf.c
index 77cdfcf99a..5b44f2caa8 100644
--- a/usr/src/lib/libast/common/stdio/vwprintf.c
+++ b/usr/src/lib/libast/common/stdio/vwprintf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/vwscanf.c b/usr/src/lib/libast/common/stdio/vwscanf.c
index fd388d0894..f9fa06eac8 100644
--- a/usr/src/lib/libast/common/stdio/vwscanf.c
+++ b/usr/src/lib/libast/common/stdio/vwscanf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/wprintf.c b/usr/src/lib/libast/common/stdio/wprintf.c
index 180c83ef72..5a3e5d5510 100644
--- a/usr/src/lib/libast/common/stdio/wprintf.c
+++ b/usr/src/lib/libast/common/stdio/wprintf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
diff --git a/usr/src/lib/libast/common/stdio/wscanf.c b/usr/src/lib/libast/common/stdio/wscanf.c
index 607a109219..1aa647a5cf 100644
--- a/usr/src/lib/libast/common/stdio/wscanf.c
+++ b/usr/src/lib/libast/common/stdio/wscanf.c
@@ -1,7 +1,7 @@
/***********************************************************************
* *
* This software is part of the ast package *
-* Copyright (c) 1985-2008 AT&T Intellectual Property *
+* Copyright (c) 1985-2009 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *