From 24a57029937207c4fa2ff4acb5a4e1ae1dc9e54b Mon Sep 17 00:00:00 2001 From: "Andrew J. Schorr" Date: Mon, 1 Jul 2013 21:19:30 -0400 Subject: Add PROCINFO["errno"] and errno extension to map between errno and strings. --- eval.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'eval.c') diff --git a/eval.c b/eval.c index cf2264bf..c1253f57 100644 --- a/eval.c +++ b/eval.c @@ -997,6 +997,7 @@ update_ERRNO_int(int errcode) { char *cp; + update_PROCINFO_num("errno", errcode); if (errcode) { cp = strerror(errcode); cp = gettext(cp); @@ -1020,6 +1021,7 @@ update_ERRNO_string(const char *string) void unset_ERRNO(void) { + update_PROCINFO_num("errno", 0); unref(ERRNO_node->var_value); ERRNO_node->var_value = dupnode(Nnull_string); } -- cgit v1.2.3 From 1f647aac9fa3e412c63a966535de8ee4fec855f2 Mon Sep 17 00:00:00 2001 From: "Andrew J. Schorr" Date: Tue, 2 Jul 2013 12:20:56 -0400 Subject: Enhance getline to return -2 when an I/O operation should be retried. --- eval.c | 1 + 1 file changed, 1 insertion(+) (limited to 'eval.c') diff --git a/eval.c b/eval.c index c1253f57..4ad5afe0 100644 --- a/eval.c +++ b/eval.c @@ -1012,6 +1012,7 @@ update_ERRNO_int(int errcode) void update_ERRNO_string(const char *string) { + update_PROCINFO_num("errno", 0); unref(ERRNO_node->var_value); ERRNO_node->var_value = make_string(string, strlen(string)); } -- cgit v1.2.3 From e3f20c041c078eacf648af94d9f012e4906359bb Mon Sep 17 00:00:00 2001 From: "Andrew J. Schorr" Date: Thu, 6 Nov 2014 14:18:37 -0500 Subject: Enhance get_file API to return info about input and output and to enable extensions to create already-opened files or sockets. --- eval.c | 1 - 1 file changed, 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index e7a346d3..2c8d3064 100644 --- a/eval.c +++ b/eval.c @@ -25,7 +25,6 @@ #include "awk.h" -extern void after_beginfile(IOBUF **curfile); extern double pow(double x, double y); extern double modf(double x, double *yp); extern double fmod(double x, double y); -- cgit v1.2.3