aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-11-02 18:39:04 +0100
committerAlejandro Colomar <alx.manpages@gmail.com>2022-02-24 23:17:45 +0100
commit5309828dfe8dde676ea47f2393bcd2e482ead18e (patch)
tree3bdc1eb1b9341858b21da7ac30e316de605f6869 /man3
parent9227d704794f37e16ef5b8999ce68b8aee8004f4 (diff)
downloadman-pages-5309828dfe8dde676ea47f2393bcd2e482ead18e.tar.gz
div_t.3, lldiv_t.3, system_data_types.7: Move lldiv_t to div_t.3
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'man3')
-rw-r--r--man3/div_t.314
-rw-r--r--man3/lldiv_t.32
2 files changed, 11 insertions, 5 deletions
diff --git a/man3/div_t.3 b/man3/div_t.3
index 3d2697cac1..34513ca91e 100644
--- a/man3/div_t.3
+++ b/man3/div_t.3
@@ -1,6 +1,6 @@
.TH DIV_T 3 2021-11-02 Linux "Linux Programmer's Manual"
.SH NAME
-div_t, ldiv_t, imaxdiv_t \- quotient and remainder of an integer division
+div_t, ldiv_t, lldiv_t, imaxdiv_t \- quotient and remainder of an integer division
.SH SYNOPSIS
.nf
.B #include <stdlib.h>
@@ -15,6 +15,11 @@ div_t, ldiv_t, imaxdiv_t \- quotient and remainder of an integer division
.BR " long rem;" " /* Remainder */"
.B } ldiv_t;
.PP
+.B typedef struct {
+.BR " long long quot;" " /* Quotient */"
+.BR " long long rem;" " /* Remainder */"
+.B } lldiv_t;
+.PP
.B #include <inttypes.h>
.PP
.B typedef struct {
@@ -23,9 +28,9 @@ div_t, ldiv_t, imaxdiv_t \- quotient and remainder of an integer division
.B } imaxdiv_t;
.fi
.SH DESCRIPTION
-.RI [ l ] div_t
+.RI [[ l ] l ] div_t
is the type of the value returned by the
-.RB [ l ] div (3)
+.RB [[ l ] l ] div (3)
function.
.PP
.I imaxdiv_t
@@ -37,4 +42,5 @@ C99 and later; POSIX.1-2001 and later.
.SH SEE ALSO
.BR div (3),
.BR imaxdiv (3),
-.BR ldiv (3)
+.BR ldiv (3),
+.BR lldiv (3)
diff --git a/man3/lldiv_t.3 b/man3/lldiv_t.3
index db50c0f091..e29b9e797d 100644
--- a/man3/lldiv_t.3
+++ b/man3/lldiv_t.3
@@ -1 +1 @@
-.so man7/system_data_types.7
+.so man3/div_t.3