summaryrefslogtreecommitdiff
path: root/static/unix-v10/man3/poly.3
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-26 16:38:00 -0400
commit97d5c458cfa039d857301e1ca7d5af3beb37131d (patch)
treeb460cd850d0537eb71806ba30358840377b27688 /static/unix-v10/man3/poly.3
parentb89dc2331a50c63f8b33272a5c4c61ab98abdaa3 (diff)
build: Better Build System
Diffstat (limited to 'static/unix-v10/man3/poly.3')
-rw-r--r--static/unix-v10/man3/poly.350
1 files changed, 50 insertions, 0 deletions
diff --git a/static/unix-v10/man3/poly.3 b/static/unix-v10/man3/poly.3
new file mode 100644
index 00000000..f4ff7376
--- /dev/null
+++ b/static/unix-v10/man3/poly.3
@@ -0,0 +1,50 @@
+.TH POLY 3
+.CT 2 graphics math
+.SH NAME
+poly_lk, poly_read \(mi polyhedron database routines
+.SH SYNOPSIS
+.nf
+.B #include <poly.h>
+.PP
+.B int poly_lk(name)
+.B char *name;
+.PP
+.B int poly_read(p, dir, n)
+.B Polyhedron *p;
+.B char *dir;
+.fi
+.SH DESCRIPTION
+These routines access the
+.IR poly (7)
+database of polyhedra.
+.PP
+.I Poly_lk
+tries to interpret
+.I name
+as a polyhedron reference.
+If it is a number, it returns that number.
+Otherwise, it returns the number of the first polyhedron
+for which
+.I name
+is a prefix of the polyhedron's name.
+.PP
+.I Poly_read
+forms an in-core description of the polyhedron number
+.I n
+in the directory
+.IR dir .
+If
+.I dir
+is 0, the normal directory
+.RB ( /usr/lib/polyhedra )
+is used.
+.SH "SEE ALSO"
+.IR poly (5),
+.IR poly (7)
+.SH DIAGNOSTICS
+.I Poly
+returns \-1 on unknown names.
+.PP
+.I Poly_read
+returns zero on success,
+nonzero on error.