aboutsummaryrefslogtreecommitdiff
path: root/sys/qpoe/qprename.x
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/qpoe/qprename.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'sys/qpoe/qprename.x')
-rw-r--r--sys/qpoe/qprename.x25
1 files changed, 25 insertions, 0 deletions
diff --git a/sys/qpoe/qprename.x b/sys/qpoe/qprename.x
new file mode 100644
index 00000000..2287b0fd
--- /dev/null
+++ b/sys/qpoe/qprename.x
@@ -0,0 +1,25 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include "qpoe.h"
+
+# QP_RENAME -- Rename a poefile.
+
+procedure qp_rename (o_poefile, n_poefile)
+
+char o_poefile[ARB] #I old poefile name
+char n_poefile[ARB] #I new poefile name
+
+pointer sp, o_fname, n_fname
+string extn QPOE_EXTN
+
+begin
+ call smark (sp)
+ call salloc (o_fname, SZ_PATHNAME, TY_CHAR)
+ call salloc (n_fname, SZ_PATHNAME, TY_CHAR)
+
+ call qp_mkfname (o_poefile, extn, Memc[o_fname], SZ_PATHNAME)
+ call qp_mkfname (n_poefile, extn, Memc[n_fname], SZ_PATHNAME)
+ call fm_rename (Memc[o_fname], Memc[n_fname])
+
+ call sfree (sp)
+end