date and time created 81/02/18 21:49:27 by dlw
authorDavid Wasley <dlw@ucbvax.Berkeley.EDU>
Thu, 19 Feb 1981 13:49:27 +0000 (05:49 -0800)
committerDavid Wasley <dlw@ucbvax.Berkeley.EDU>
Thu, 19 Feb 1981 13:49:27 +0000 (05:49 -0800)
SCCS-vsn: usr.bin/f77/libU77/ierrno_.c 1.1

usr/src/usr.bin/f77/libU77/ierrno_.c [new file with mode: 0644]

diff --git a/usr/src/usr.bin/f77/libU77/ierrno_.c b/usr/src/usr.bin/f77/libU77/ierrno_.c
new file mode 100644 (file)
index 0000000..0709ff5
--- /dev/null
@@ -0,0 +1,17 @@
+/*
+char id_ierrno[] = "@(#)ierrno_.c      1.1";
+ *
+ * return the current value of the system error register
+ *
+ * calling sequence:
+ *     ier = ierrno()
+ * where:
+ *     ier will receive the current value of errno
+ */
+
+extern int errno;
+
+long ierrno_()
+{
+       return((long)errno);
+}