summaryrefslogtreecommitdiff
path: root/usr/src/cmd/awk
diff options
context:
space:
mode:
authorRoger A. Faulkner <Roger.Faulkner@Sun.COM>2009-01-14 06:44:41 -0800
committerRoger A. Faulkner <Roger.Faulkner@Sun.COM>2009-01-14 06:44:41 -0800
commitd09832051bb4b41ce2b3202c09fceedc089678af (patch)
treefcfac0ea5794c0254489e1106ccee80eea0fea14 /usr/src/cmd/awk
parent050ea1a201b4b554fc4350626c5dfc5d47488630 (diff)
downloadillumos-joyent-d09832051bb4b41ce2b3202c09fceedc089678af.tar.gz
PSARC 2008/778 asprintf, vasprintf
4508459 Solaris should have asprintf() and vasprintf() functions
Diffstat (limited to 'usr/src/cmd/awk')
-rw-r--r--usr/src/cmd/awk/awk.h6
-rw-r--r--usr/src/cmd/awk/maketab.c13
-rw-r--r--usr/src/cmd/awk/run.c6
3 files changed, 9 insertions, 16 deletions
diff --git a/usr/src/cmd/awk/awk.h b/usr/src/cmd/awk/awk.h
index fa5b3df0e2..9e26f2d511 100644
--- a/usr/src/cmd/awk/awk.h
+++ b/usr/src/cmd/awk/awk.h
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -30,8 +30,6 @@
#ifndef AWK_H
#define AWK_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/types.h>
#include <ctype.h>
#include <stdio.h>
@@ -339,7 +337,7 @@ extern Cell *substr(Node **, int);
extern Cell *sub(Node **, int);
extern Cell *gsub(Node **, int);
extern Cell *sindex(Node **, int);
-extern Cell *asprintf(Node **, int);
+extern Cell *a_sprintf(Node **, int);
extern Cell *arith(Node **, int);
extern Cell *incrdecr(Node **, int);
extern Cell *cat(Node **, int);
diff --git a/usr/src/cmd/awk/maketab.c b/usr/src/cmd/awk/maketab.c
index 7b34e4edfe..c80e6e1c28 100644
--- a/usr/src/cmd/awk/maketab.c
+++ b/usr/src/cmd/awk/maketab.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,17 +18,15 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
-
-#pragma ident "%Z%%M% %I% %E% SMI" /* SVr4.0 2.5 */
-
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
@@ -58,7 +55,7 @@ struct xx {
{ SUB, "sub", "sub" },
{ GSUB, "gsub", "gsub" },
{ INDEX, "sindex", "sindex" },
- { SPRINTF, "asprintf", "sprintf " },
+ { SPRINTF, "a_sprintf", "sprintf " },
{ ADD, "arith", " + " },
{ MINUS, "arith", " - " },
{ MULT, "arith", " * " },
diff --git a/usr/src/cmd/awk/run.c b/usr/src/cmd/awk/run.c
index 6c6dfc1e37..62f247ac6b 100644
--- a/usr/src/cmd/awk/run.c
+++ b/usr/src/cmd/awk/run.c
@@ -20,15 +20,13 @@
*/
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#define tempfree(x, s) if (istemp(x)) tfree(x, s)
#define execute(p) r_execute(p)
@@ -931,7 +929,7 @@ format(uchar **bufp, uchar *s, Node *a)
/*ARGSUSED*/
Cell *
-asprintf(Node **a, int n)
+a_sprintf(Node **a, int n)
{
register Cell *x;
register Node *y;