From 75c0d8546c368898af556b0e1a8f663c890457b8 Mon Sep 17 00:00:00 2001 From: leitner Date: Tue, 2 Mar 2004 22:51:14 +0000 Subject: [PATCH] add safemult man pages --- CHANGES | 2 +- mult/imult16.3 | 14 ++++++++++++++ mult/imult32.3 | 14 ++++++++++++++ mult/imult64.3 | 14 ++++++++++++++ mult/umult16.3 | 14 ++++++++++++++ mult/umult32.3 | 14 ++++++++++++++ mult/umult64.3 | 14 ++++++++++++++ 7 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 mult/imult16.3 create mode 100644 mult/imult32.3 create mode 100644 mult/imult64.3 create mode 100644 mult/umult16.3 create mode 100644 mult/umult32.3 create mode 100644 mult/umult64.3 diff --git a/CHANGES b/CHANGES index 8a8d30e..9271c66 100644 --- a/CHANGES +++ b/CHANGES @@ -2,7 +2,7 @@ add io_socketpair add io_passfd and io_receivefd (and test/fdpassing.c) io_trywrite and io_waitwrite not ignore SIGPIPE - add man pages for libio + add man pages for libio, safemult 0.18: make libowfat compile on BSD again (sorry, and thanks to everyone who diff --git a/mult/imult16.3 b/mult/imult16.3 new file mode 100644 index 0000000..982084d --- /dev/null +++ b/mult/imult16.3 @@ -0,0 +1,14 @@ +.TH imult16 3 +.SH NAME +imult16 \- integer multiplication with overflow checking +.SH SYNTAX +.B #include + +int \fBimult16\fP(int16 a,int16 b,int16* c); +.SH DESCRIPTION +imult16 does c=a*b and returns 1. + +In case of an integer overflow, imult16 leaves \fIc\fR alone and returns +0. +.SH "SEE ALSO" +umult16(3), imult32(3), imult64(3) diff --git a/mult/imult32.3 b/mult/imult32.3 new file mode 100644 index 0000000..f81b0c7 --- /dev/null +++ b/mult/imult32.3 @@ -0,0 +1,14 @@ +.TH imult32 3 +.SH NAME +imult32 \- integer multiplication with overflow checking +.SH SYNTAX +.B #include + +int \fBimult32\fP(int32 a,int32 b,int32* c); +.SH DESCRIPTION +imult32 does c=a*b and returns 1. + +In case of an integer overflow, imult32 leaves \fIc\fR alone and returns +0. +.SH "SEE ALSO" +imult16(3), umult32(3), imult64(3) diff --git a/mult/imult64.3 b/mult/imult64.3 new file mode 100644 index 0000000..0e053c8 --- /dev/null +++ b/mult/imult64.3 @@ -0,0 +1,14 @@ +.TH imult64 3 +.SH NAME +imult64 \- integer multiplication with overflow checking +.SH SYNTAX +.B #include + +int \fBimult64\fP(int64 a,int64 b,int64* c); +.SH DESCRIPTION +imult64 does c=a*b and returns 1. + +In case of an integer overflow, imult64 leaves \fIc\fR alone and returns +0. +.SH "SEE ALSO" +imult16(3), imult32(3), umult64(3) diff --git a/mult/umult16.3 b/mult/umult16.3 new file mode 100644 index 0000000..ae9b090 --- /dev/null +++ b/mult/umult16.3 @@ -0,0 +1,14 @@ +.TH umult16 3 +.SH NAME +umult16 \- integer multiplication with overflow checking +.SH SYNTAX +.B #include + +int \fBumult16\fP(uint16 a,uint16 b,uint16* c); +.SH DESCRIPTION +umult16 does c=a*b and returns 1. + +In case of an integer overflow, umult16 leaves \fIc\fR alone and returns +0. +.SH "SEE ALSO" +imult16(3), imult32(3), imult64(3) diff --git a/mult/umult32.3 b/mult/umult32.3 new file mode 100644 index 0000000..006f40f --- /dev/null +++ b/mult/umult32.3 @@ -0,0 +1,14 @@ +.TH umult32 3 +.SH NAME +umult32 \- integer multiplication with overflow checking +.SH SYNTAX +.B #include + +int \fBumult32\fP(uint32 a,uint32 b,uint32* c); +.SH DESCRIPTION +umult32 does c=a*b and returns 1. + +In case of an integer overflow, umult32 leaves \fIc\fR alone and returns +0. +.SH "SEE ALSO" +umult16(3), imult32(3), umult64(3) diff --git a/mult/umult64.3 b/mult/umult64.3 new file mode 100644 index 0000000..46c8129 --- /dev/null +++ b/mult/umult64.3 @@ -0,0 +1,14 @@ +.TH umult64 3 +.SH NAME +umult64 \- integer multiplication with overflow checking +.SH SYNTAX +.B #include + +int \fBumult64\fP(uint64 a,uint64 b,uint64* c); +.SH DESCRIPTION +umult64 does c=a*b and returns 1. + +In case of an integer overflow, umult64 leaves \fIc\fR alone and returns +0. +.SH "SEE ALSO" +imult16(3), imult32(3), imult64(3)