aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-11-03 18:58:36 +0100
committerMattias Andrée <maandree@kth.se>2018-11-03 18:58:36 +0100
commit721aac481a6cd36048f4cca9097ce81377ece704 (patch)
tree7428aab6a11002fddeeee26f47d6043fd18a4393 /man
parentFix man pages (diff)
downloadlibsimple-721aac481a6cd36048f4cca9097ce81377ece704.tar.gz
libsimple-721aac481a6cd36048f4cca9097ce81377ece704.tar.bz2
libsimple-721aac481a6cd36048f4cca9097ce81377ece704.tar.xz
Add man pages for posix_memalign wrappers
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--man/libsimple_enposix_memalign.3151
-rw-r--r--man/libsimple_posix_memalignz.3185
-rw-r--r--man/libsimple_vposix_memalignn.3233
-rw-r--r--man/libsimple_vposix_memalignzn.3236
4 files changed, 805 insertions, 0 deletions
diff --git a/man/libsimple_enposix_memalign.3 b/man/libsimple_enposix_memalign.3
new file mode 100644
index 0000000..598e4f3
--- /dev/null
+++ b/man/libsimple_enposix_memalign.3
@@ -0,0 +1,151 @@
+.TH LIBSIMPLE_ENPOSIX_MEMALIGN 3 2018-11-03 libsimple
+.SH NAME
+libsimple_enposix_memalign \- allocate memory with custom alignment or die
+.SH SYNOPSIS
+.nf
+#include <libsimple.h>
+
+static inline void libsimple_enposix_memalign(int \fIstatus\fP, void **\fImemptr\fP, size_t \fIalignment\fP, size_t \fIn\fP);
+static inline void libsimple_eposix_memalign(void **\fImemptr\fP, size_t \fIalignment\fP, size_t \fIn\fP);
+
+#ifndef enposix_memalign
+# define enposix_memalign libsimple_enposix_memalign
+#endif
+#ifndef eposix_memalign
+# define eposix_memalign libsimple_eposix_memalign
+#endif
+.fi
+.PP
+Link with
+.IR \-lsimple .
+.SH DESCRIPTION
+The
+.BR libsimple_enposix_memalign ()
+and
+.BR libsimple_eposix_memalign ()
+functions allocate
+.I n
+uninitialised bytes to the heap and store a
+pointer with an alignment of
+.I alignment
+bytes to the allocated memory in
+.IR memptr .
+The function
+.BR free (3)
+shall be called with the pointer stored in
+.I memptr
+as input when the allocated memory is no longer needed.
+.I *memptr
+remains unmodified on failure.
+.PP
+The
+.BR libsimple_enposix_memalign ()
+and
+.BR libsimple_eposix_memalign ()
+functions will terminate the process if the memory
+cannot be allocated of if the user tries to allocate
+0 bytes, by calling the
+.BR libsimple_enprintf ()
+and
+.BR libsimple_eprintf ()
+functions, respectively.
+On failure, the process's exit value will be
+.I status
+if the
+.BR libsimple_enposix_memalign ()
+function is used or
+.IR libsimple_default_failure_exit (3)
+if the
+.BR libsimple_eposix_memalign ()
+function is used. Failure include,
+.I alignment
+not being a power of two, or
+.I alignment
+not being a multiple of
+.IR "sizeof(void *)" .
+.PP
+The
+.BR libsimple_enposix_memalign ()
+and
+.BR libsimple_eposix_memalign ()
+functions behaviour is unspecified if
+.I n
+is 0.
+.SH RETURN VALUE
+The
+.BR libsimple_enposix_memalign ()
+and
+.BR libsimple_eposix_memalign ()
+functions do not return a value, but
+terminated the process on failure.
+.SH ERRORS
+The
+.BR libsimple_enposix_memalign ()
+and
+.BR libsimple_eposix_memalign ()
+functions will terminate the process on failure.
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lb lb lb
+l l l.
+Interface Attribute Value
+T{
+.BR libsimple_enposix_memalign (),
+.br
+.BR libsimple_eposix_memalign ()
+T} Thread safety MT-Safe
+T{
+.BR libsimple_enposix_memalign (),
+.br
+.BR libsimple_eposix_memalign ()
+T} Async-signal safety AS-Safe
+T{
+.BR libsimple_enposix_memalign (),
+.br
+.BR libsimple_eposix_memalign ()
+T} Async-cancel safety AC-Safe
+.TE
+.SH EXAMPLES
+None.
+.SH APPLICATION USAGE
+None.
+.SH RATIONALE
+None.
+.SH FUTURE DIRECTIONS
+None.
+.SH NOTES
+None.
+.SH BUGS
+None.
+.SH SEE ALSO
+.BR libsimple_enmalloc (3),
+.BR libsimple_mallocz (3),
+.BR libsimple_vmallocn (3),
+.BR libsimple_vmalloczn (3),
+.BR libsimple_encalloc (3),
+.BR libsimple_vcallocn (3),
+.BR libsimple_enrealloc (3),
+.BR libsimple_vreallocn (3),
+.BR libsimple_memalign (3),
+.BR libsimple_memalignz (3),
+.BR libsimple_vmemalignn (3),
+.BR libsimple_vmemalignzn (3),
+.BR libsimple_posix_memalignz (3),
+.BR libsimple_vposix_memalignn (3),
+.BR libsimple_vposix_memalignzn (3),
+.BR libsimple_enaligned_alloc (3),
+.BR libsimple_aligned_allocz (3),
+.BR libsimple_valigned_allocn (3),
+.BR libsimple_valigned_alloczn (3),
+.BR libsimple_pvalloc (3),
+.BR libsimple_pvallocz (3),
+.BR libsimple_vpvallocn (3),
+.BR libsimple_vpvalloczn (3),
+.BR libsimple_valloc (3),
+.BR libsimple_vallocz (3),
+.BR libsimple_vvallocn (3),
+.BR libsimple_vvalloczn (3),
+.BR posix_memalign (3)
diff --git a/man/libsimple_posix_memalignz.3 b/man/libsimple_posix_memalignz.3
new file mode 100644
index 0000000..83f2d67
--- /dev/null
+++ b/man/libsimple_posix_memalignz.3
@@ -0,0 +1,185 @@
+.TH LIBSIMPLE_POSIX_MEMALIGNZ 3 2018-11-03 libsimple
+.SH NAME
+libsimple_posix_memalignz \- allocate optionally initialised memory with custom alignment
+.SH SYNOPSIS
+.nf
+#include <libsimple.h>
+
+static inline int libsimple_posix_memalignz(void **\fImemptr\fP, int \fIclear\fP, size_t \fIalignment\fP, size_t \fIn\fP);
+void libsimple_enposix_memalignz(int \fIstatus\fP, void **\fImemptr\fP, int \fIclear\fP, size_t \fIalignment\fP, size_t \fIn\fP);
+static inline void libsimple_eposix_memalignz(void **\fImemptr\fP, int \fIclear\fP, size_t \fIalignment\fP, size_t \fIn\fP);
+
+#ifndef posix_memalignz
+# define posix_memalignz libsimple_posix_memalignz
+#endif
+#ifndef enposix_memalignz
+# define enposix_memalignz libsimple_enposix_memalignz
+#endif
+#ifndef eposix_memalignz
+# define eposix_memalignz libsimple_eposix_memalignz
+#endif
+.fi
+.PP
+Link with
+.IR \-lsimple .
+.SH DESCRIPTION
+The
+.BR libsimple_posix_memalignz (),
+.BR libsimple_enposix_memalignz (),
+and
+.BR libsimple_eposix_memalignz ()
+functions allocate
+.I n
+bytes to the heap and store a pointer with an
+alignment of
+.I alignment
+bytes to the allocated memory in
+.IR memptr .
+The memory will be initialised with zeroes if
+.I clear
+is a non-zero value. The function
+.BR free (3)
+shall be called with the pointer stored in
+.I memptr
+as input when the allocated memory is no longer needed.
+.I *memptr
+remains unmodified on failure.
+.PP
+The
+.BR libsimple_enposix_memalignz ()
+and
+.BR libsimple_eposix_memalignz ()
+functions will terminate the process if the memory
+cannot be allocated of if the user tries to allocate
+0 bytes, by calling the
+.BR libsimple_enprintf ()
+and
+.BR libsimple_eprintf ()
+functions, respectively.
+On failure, the process's exit value will be
+.I status
+if the
+.BR libsimple_enposix_memalignz ()
+function is used or
+.IR libsimple_default_failure_exit (3)
+if the
+.BR libsimple_eposix_memalignz ()
+function is used.
+.PP
+The
+.BR libsimple_enposix_memalignz ()
+and
+.BR libsimple_eposix_memalignz ()
+functions behaviour is unspecified if
+.I n
+is 0.
+.SH RETURN VALUE
+The
+.BR libsimple_posix_memalignz ()
+function returns 0 upon successful completion;
+otherwise an error code is returned to indicate
+the error.
+.PP
+The
+.BR libsimple_enposix_memalignz ()
+and
+.BR libsimple_eposix_memalignz ()
+functions do not return a value, but
+terminated the process on failure.
+.SH ERRORS
+The
+.BR libsimple_posix_memalignz ()
+function will fail if:
+.TP
+.B EINVAL
+.I n
+is 0.
+.TP
+.B EINVAL
+.I alignment
+is not a power of two.
+.TP
+.B EINVAL
+.I alignment
+is not a multiple of
+.IR "sizeof(void *)" .
+.TP
+.B ENOMEM
+Enough memory could not be allocated.
+.PP
+The
+.BR libsimple_enposix_memalignz ()
+and
+.BR libsimple_eposix_memalignz ()
+functions will terminate the process on failure.
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lb lb lb
+l l l.
+Interface Attribute Value
+T{
+.BR libsimple_posix_memalignz (),
+.br
+.BR libsimple_enposix_memalignz (),
+.br
+.BR libsimple_eposix_memalignz ()
+T} Thread safety MT-Safe
+T{
+.BR libsimple_posix_memalignz (),
+.br
+.BR libsimple_enposix_memalignz (),
+.br
+.BR libsimple_eposix_memalignz ()
+T} Async-signal safety AS-Safe
+T{
+.BR libsimple_posix_memalignz (),
+.br
+.BR libsimple_enposix_memalignz (),
+.br
+.BR libsimple_eposix_memalignz ()
+T} Async-cancel safety AC-Safe
+.TE
+.SH EXAMPLES
+None.
+.SH APPLICATION USAGE
+None.
+.SH RATIONALE
+None.
+.SH FUTURE DIRECTIONS
+None.
+.SH NOTES
+None.
+.SH BUGS
+None.
+.SH SEE ALSO
+.BR libsimple_enmalloc (3),
+.BR libsimple_mallocz (3),
+.BR libsimple_vmallocn (3),
+.BR libsimple_vmalloczn (3),
+.BR libsimple_encalloc (3),
+.BR libsimple_vcallocn (3),
+.BR libsimple_enrealloc (3),
+.BR libsimple_vreallocn (3),
+.BR libsimple_memalign (3),
+.BR libsimple_memalignz (3),
+.BR libsimple_vmemalignn (3),
+.BR libsimple_vmemalignzn (3),
+.BR libsimple_enposix_memalign (3),
+.BR libsimple_vposix_memalignn (3),
+.BR libsimple_vposix_memalignzn (3),
+.BR libsimple_enaligned_alloc (3),
+.BR libsimple_aligned_allocz (3),
+.BR libsimple_valigned_allocn (3),
+.BR libsimple_valigned_alloczn (3),
+.BR libsimple_pvalloc (3),
+.BR libsimple_pvallocz (3),
+.BR libsimple_vpvallocn (3),
+.BR libsimple_vpvalloczn (3),
+.BR libsimple_valloc (3),
+.BR libsimple_vallocz (3),
+.BR libsimple_vvallocn (3),
+.BR libsimple_vvalloczn (3),
+.BR posix_memalign (3)
diff --git a/man/libsimple_vposix_memalignn.3 b/man/libsimple_vposix_memalignn.3
new file mode 100644
index 0000000..dae4a85
--- /dev/null
+++ b/man/libsimple_vposix_memalignn.3
@@ -0,0 +1,233 @@
+.TH LIBSIMPLE_VPOSIX_MEMALIGNN 3 2018-11-03 libsimple
+.SH NAME
+libsimple_vposix_memalignn \- allocate memory with custom alignment
+.SH SYNOPSIS
+.nf
+#include <libsimple.h>
+
+static inline int libsimple_vposix_memalignn(void **\fImemptr\fP, size_t \fIalignment\fP, size_t \fIn\fP, va_list \fIap\fP);
+static inline void libsimple_envposix_memalignn(int \fIstatus\fP, void **\fImemptr\fP, size_t \fIalignment\fP, size_t \fIn\fP, va_list \fIap\fP);
+static inline void libsimple_evposix_memalignn(void **\fImemptr\fP, size_t \fIalignment\fP, size_t \fIn\fP, va_list \fIap\fP);
+static inline int libsimple_posix_memalignn(void **\fImemptr\fP, size_t \fIalignment\fP, size_t \fIn\fP, ..., /* (size_t)0 */);
+static inline void libsimple_enposix_memalignn(int \fIstatus\fP, void **\fImemptr\fP, size_t \fIalignment\fP, size_t \fIn\fP, ..., /* (size_t)0 */);
+static inline void libsimple_eposix_memalignn(void **\fImemptr\fP, size_t \fIalignment\fP, size_t \fIn\fP, ..., /* (size_t)0 */);
+
+#ifndef vposix_memalignn
+# define vposix_memalignn libsimple_vposix_memalignn
+#endif
+#ifndef envposix_memalignn
+# define envposix_memalignn libsimple_envposix_memalignn
+#endif
+#ifndef evposix_memalignn
+# define evposix_memalignn libsimple_evposix_memalignn
+#endif
+#ifndef posix_memalignn
+# define posix_memalignn libsimple_posix_memalignn
+#endif
+#ifndef enposix_memalignn
+# define enposix_memalignn libsimple_enposix_memalignn
+#endif
+#ifndef eposix_memalignn
+# define eposix_memalignn libsimple_eposix_memalignn
+#endif
+.fi
+.PP
+Link with
+.IR \-lsimple .
+.SH DESCRIPTION
+The
+.BR libsimple_posix_memalignn (),
+.BR libsimple_enposix_memalignn (),
+and
+.BR libsimple_eposix_memalignn ()
+functions allocate
+.I N
+uninitialised bytes to the heap and store a
+pointer with an alignment of
+.I alignment
+bytes to the allocated memory in
+.IR memptr ,
+where
+.I N
+is the product of
+.I n
+and all following arguments (which should have the type
+.BR size_t )
+up to the first 0;
+.I n
+must not be 0. The function
+.BR free (3)
+shall be called with the pointer stored in
+.I memptr
+as input when the allocated memory is no longer needed.
+.I *memptr
+remains unmodified on failure.
+.PP
+The
+.BR libsimple_enposix_memalignn ()
+and
+.BR libsimple_eposix_memalignn ()
+functions will terminate the process if the memory
+cannot be allocated, by calling the
+.BR libsimple_enprintf ()
+and
+.BR libsimple_eprintf ()
+functions, respectively.
+On failure, the process's exit value will be
+.I status
+if the
+.BR libsimple_enposix_memalignn ()
+function is used or
+.IR libsimple_default_failure_exit (3)
+if the
+.BR libsimple_eposix_memalignn ()
+function is used.
+.PP
+The
+.BR libsimple_vposix_memalignn (),
+.BR libsimple_envposix_memalignn (),
+and
+.BR libsimple_evposix_memalignn ()
+functions are versions of the
+.BR libsimple_posix_memalignn (),
+.BR libsimple_enposix_memalignn (),
+and
+.BR libsimple_eposix_memalignn (),
+respectively, that use
+.B va_list
+instead of variadic arguments.
+.SH RETURN VALUE
+The
+.BR libsimple_vposix_memalignn ()
+and
+.BR libsimple_posix_memalignn ()
+functions return 0 upon successful completion;
+otherwise an error code is returned to indicate
+the error.
+.PP
+The
+.BR libsimple_envposix_memalignn (),
+.BR libsimple_evposix_memalignn (),
+.BR libsimple_enposix_memalignn (),
+and
+.BR libsimple_eposix_memalignn ()
+functions to not return a value, but
+terminated the process on failure.
+.SH ERRORS
+The
+.BR libsimple_vposix_memalignn (),
+.BR libsimple_posix_memalignn ()
+function will fail if:
+.TP
+.B EINVAL
+.I n
+is 0.
+.TP
+.B EINVAL
+.I alignment
+is not a power of two.
+.TP
+.B EINVAL
+.I alignment
+is not a multiple of
+.IR "sizeof(void *)" .
+.TP
+.B ENOMEM
+Enough memory could not be allocated.
+.PP
+The
+.BR libsimple_envposix_memalignn (),
+.BR libsimple_evposix_memalignn (),
+.BR libsimple_enposix_memalignn (),
+and
+.BR libsimple_eposix_memalignn ()
+functions will terminate the process on failure.
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lb lb lb
+l l l.
+Interface Attribute Value
+T{
+.BR libsimple_vposix_memalignn (),
+.br
+.BR libsimple_envposix_memalignn (),
+.br
+.BR libsimple_evposix_memalignn (),
+.br
+.BR libsimple_posix_memalignn (),
+.br
+.BR libsimple_enposix_memalignn (),
+.br
+.BR libsimple_eposix_memalignn ()
+T} Thread safety MT-Safe
+T{
+.BR libsimple_vposix_memalignn (),
+.br
+.BR libsimple_envposix_memalignn (),
+.br
+.BR libsimple_evposix_memalignn (),
+.br
+.BR libsimple_posix_memalignn (),
+.br
+.BR libsimple_enposix_memalignn (),
+.br
+.BR libsimple_eposix_memalignn ()
+T} Async-signal safety AS-Safe
+T{
+.BR libsimple_vposix_memalignn (),
+.br
+.BR libsimple_envposix_memalignn (),
+.br
+.BR libsimple_evposix_memalignn (),
+.br
+.BR libsimple_posix_memalignn (),
+.br
+.BR libsimple_enposix_memalignn (),
+.br
+.BR libsimple_eposix_memalignn ()
+T} Async-cancel safety AC-Safe
+.TE
+.SH EXAMPLES
+None.
+.SH APPLICATION USAGE
+None.
+.SH RATIONALE
+None.
+.SH FUTURE DIRECTIONS
+None.
+.SH NOTES
+None.
+.SH BUGS
+None.
+.SH SEE ALSO
+.BR libsimple_enmalloc (3),
+.BR libsimple_mallocz (3),
+.BR libsimple_vmallocn (3),
+.BR libsimple_vmalloczn (3),
+.BR libsimple_encalloc (3),
+.BR libsimple_vcallocn (3),
+.BR libsimple_enrealloc (3),
+.BR libsimple_vreallocn (3),
+.BR libsimple_memalign (3),
+.BR libsimple_memalignz (3),
+.BR libsimple_vmemalignn (3),
+.BR libsimple_vmemalignzn (3),
+.BR libsimple_enposix_memalign (3),
+.BR libsimple_posix_memalignz (3),
+.BR libsimple_vposix_memalignzn (3),
+.BR libsimple_enaligned_alloc (3),
+.BR libsimple_aligned_allocz (3),
+.BR libsimple_valigned_allocn (3),
+.BR libsimple_valigned_alloczn (3),
+.BR libsimple_pvalloc (3),
+.BR libsimple_pvallocz (3),
+.BR libsimple_vpvallocn (3),
+.BR libsimple_vpvalloczn (3),
+.BR libsimple_valloc (3),
+.BR libsimple_vallocz (3),
+.BR libsimple_vvallocn (3),
+.BR libsimple_vvalloczn (3),
+.BR posix_memalign (3)
diff --git a/man/libsimple_vposix_memalignzn.3 b/man/libsimple_vposix_memalignzn.3
new file mode 100644
index 0000000..ca8eeb2
--- /dev/null
+++ b/man/libsimple_vposix_memalignzn.3
@@ -0,0 +1,236 @@
+.TH LIBSIMPLE_VPOSIX_MEMALIGNZN 3 2018-11-03 libsimple
+.SH NAME
+libsimple_vposix_memalignzn \- allocate optionally initialised memory with custom alignment
+.SH SYNOPSIS
+.nf
+#include <libsimple.h>
+
+int libsimple_vposix_memalignzn(void **\fImemptr\fP, int \fIclear\fP, size_t \fIalignment\fP, size_t \fIn\fP, va_list \fIap\fP);
+void libsimple_envposix_memalignzn(int \fIstatus\fP, void **\fImemptr\fP, int \fIclear\fP, size_t \fIalignment\fP, size_t \fIn\fP, va_list \fIap\fP);
+static inline void libsimple_evposix_memalignzn(void **\fImemptr\fP, int \fIclear\fP, size_t \fIalignment\fP, size_t \fIn\fP, va_list \fIap\fP);
+static inline int libsimple_posix_memalignzn(void **\fImemptr\fP, int \fIclear\fP, size_t \fIalignment\fP, size_t \fIn\fP, ..., /* (size_t)0 */);
+static inline void libsimple_enposix_memalignzn(int \fIstatus\fP, void **\fImemptr\fP, int \fIclear\fP, size_t \fIalignment\fP, size_t \fIn\fP, ..., /* (size_t)0 */);
+static inline int libsimple_eposix_memalignzn(void **\fImemptr\fP, int \fIclear\fP, size_t \fIalignment\fP, size_t \fIn\fP, ..., /* (size_t)0 */);
+
+#ifndef vposix_memalignzn
+# define vposix_memalignzn libsimple_vposix_memalignzn
+#endif
+#ifndef envposix_memalignzn
+# define envposix_memalignzn libsimple_envposix_memalignzn
+#endif
+#ifndef evposix_memalignzn
+# define evposix_memalignzn libsimple_evposix_memalignzn
+#endif
+#ifndef posix_memalignzn
+# define posix_memalignzn libsimple_posix_memalignzn
+#endif
+#ifndef enposix_memalignzn
+# define enposix_memalignzn libsimple_enposix_memalignzn
+#endif
+#ifndef eposix_memalignzn
+# define eposix_memalignzn libsimple_eposix_memalignzn
+#endif
+.fi
+.PP
+Link with
+.IR \-lsimple .
+.SH DESCRIPTION
+The
+.BR libsimple_posix_memalignzn (),
+.BR libsimple_enposix_memalignzn (),
+and
+.BR libsimple_eposix_memalignzn ()
+functions allocate
+.I N
+bytes to the heap and store a pointer with an
+alignment of
+.I alignment
+bytes to the allocated memory in
+.IR memptr ,
+where
+.I N
+is the product of
+.I n
+and all following arguments (which should have the type
+.BR size_t )
+up to the first 0;
+.I n
+must not be 0. The memory will be initialised
+with zeroes if
+.I clear
+is a non-zero value. The function
+.BR free (3)
+shall be called with the pointer stored in
+.I memptr
+as input when the allocated memory is no longer needed.
+.I *memptr
+remains unmodified on failure.
+.PP
+The
+.BR libsimple_enposix_memalignzn ()
+and
+.BR libsimple_eposix_memalignzn ()
+functions will terminate the process if the memory
+cannot be allocated, by calling the
+.BR libsimple_enprintf ()
+and
+.BR libsimple_eprintf ()
+functions, respectively.
+On failure, the process's exit value will be
+.I status
+if the
+.BR libsimple_enposix_memalignzn ()
+function is used or
+.IR libsimple_default_failure_exit (3)
+if the
+.BR libsimple_eposix_memalignzn ()
+function is used.
+.PP
+The
+.BR libsimple_vposix_memalignzn (),
+.BR libsimple_envposix_memalignzn (),
+and
+.BR libsimple_evposix_memalignzn ()
+functions are versions of the
+.BR libsimple_posix_memalignzn (),
+.BR libsimple_enposix_memalignzn (),
+and
+.BR libsimple_eposix_memalignzn (),
+respectively, that use
+.B va_list
+instead of variadic arguments.
+.SH RETURN VALUE
+The
+.BR libsimple_vposix_memalignzn ()
+and
+.BR libsimple_posix_memalignzn ()
+functions return 0 upon successful completion;
+otherwise an error code is returned to indicate
+the error.
+.PP
+The
+.BR libsimple_envposix_memalignzn (),
+.BR libsimple_evposix_memalignzn (),
+.BR libsimple_enposix_memalignzn (),
+and
+.BR libsimple_eposix_memalignzn ()
+functions do not return a value, but
+terminated the process on failure.
+.SH ERRORS
+The
+.BR libsimple_vposix_memalignzn (),
+.BR libsimple_posix_memalignzn ()
+function will fail if:
+.TP
+.B EINVAL
+.I n
+is 0.
+.TP
+.B EINVAL
+.I alignment
+is not a power of two.
+.TP
+.B EINVAL
+.I alignment
+is not a multiple of
+.IR "sizeof(void *)" .
+.TP
+.B ENOMEM
+Enough memory could not be allocated.
+.PP
+The
+.BR libsimple_envposix_memalignzn (),
+.BR libsimple_evposix_memalignzn (),
+.BR libsimple_enposix_memalignzn (),
+and
+.BR libsimple_eposix_memalignzn ()
+functions will terminate the process on failure.
+.SH ATTRIBUTES
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lb lb lb
+l l l.
+Interface Attribute Value
+T{
+.BR libsimple_vposix_memalignzn (),
+.br
+.BR libsimple_envposix_memalignzn (),
+.br
+.BR libsimple_evposix_memalignzn (),
+.br
+.BR libsimple_posix_memalignzn (),
+.br
+.BR libsimple_enposix_memalignzn (),
+.br
+.BR libsimple_eposix_memalignzn ()
+T} Thread safety MT-Safe
+T{
+.BR libsimple_vposix_memalignzn (),
+.br
+.BR libsimple_envposix_memalignzn (),
+.br
+.BR libsimple_evposix_memalignzn (),
+.br
+.BR libsimple_posix_memalignzn (),
+.br
+.BR libsimple_enposix_memalignzn (),
+.br
+.BR libsimple_eposix_memalignzn ()
+T} Async-signal safety AS-Safe
+T{
+.BR libsimple_vposix_memalignzn (),
+.br
+.BR libsimple_envposix_memalignzn (),
+.br
+.BR libsimple_evposix_memalignzn (),
+.br
+.BR libsimple_posix_memalignzn (),
+.br
+.BR libsimple_enposix_memalignzn (),
+.br
+.BR libsimple_eposix_memalignzn ()
+T} Async-cancel safety AC-Safe
+.TE
+.SH EXAMPLES
+None.
+.SH APPLICATION USAGE
+None.
+.SH RATIONALE
+None.
+.SH FUTURE DIRECTIONS
+None.
+.SH NOTES
+None.
+.SH BUGS
+None.
+.SH SEE ALSO
+.BR libsimple_enmalloc (3),
+.BR libsimple_mallocz (3),
+.BR libsimple_vmallocn (3),
+.BR libsimple_vmalloczn (3),
+.BR libsimple_encalloc (3),
+.BR libsimple_vcallocn (3),
+.BR libsimple_enrealloc (3),
+.BR libsimple_vreallocn (3),
+.BR libsimple_memalign (3),
+.BR libsimple_memalignz (3),
+.BR libsimple_vmemalignn (3),
+.BR libsimple_vmemalignzn (3),
+.BR libsimple_enposix_memalign (3),
+.BR libsimple_posix_memalignz (3),
+.BR libsimple_vposix_memalignn (3),
+.BR libsimple_enaligned_alloc (3),
+.BR libsimple_aligned_allocz (3),
+.BR libsimple_valigned_allocn (3),
+.BR libsimple_valigned_alloczn (3),
+.BR libsimple_pvalloc (3),
+.BR libsimple_pvallocz (3),
+.BR libsimple_vpvallocn (3),
+.BR libsimple_vpvalloczn (3),
+.BR libsimple_valloc (3),
+.BR libsimple_vallocz (3),
+.BR libsimple_vvallocn (3),
+.BR libsimple_vvalloczn (3),
+.BR posix_memalign (3)