Skip to content

Commit 2a08af4

Browse files
burblebeetkoeppe
authored andcommitted
LWG3869 Deprecate std::errc constants related to UNIX STREAMS
1 parent 045f6e9 commit 2a08af4

File tree

2 files changed

+36
-12
lines changed

2 files changed

+36
-12
lines changed

source/diagnostics.tex

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,6 @@
538538
\indexlibraryglobal{ENETUNREACH}%
539539
\indexlibraryglobal{ENFILE}%
540540
\indexlibraryglobal{ENOBUFS}%
541-
\indexlibraryglobal{ENODATA}%
542541
\indexlibraryglobal{ENODEV}%
543542
\indexlibraryglobal{ENOENT}%
544543
\indexlibraryglobal{ENOEXEC}%
@@ -548,8 +547,6 @@
548547
\indexlibraryglobal{ENOMSG}%
549548
\indexlibraryglobal{ENOPROTOOPT}%
550549
\indexlibraryglobal{ENOSPC}%
551-
\indexlibraryglobal{ENOSR}%
552-
\indexlibraryglobal{ENOSTR}%
553550
\indexlibraryglobal{ENOSYS}%
554551
\indexlibraryglobal{ENOTCONN}%
555552
\indexlibraryglobal{ENOTDIR}%
@@ -571,7 +568,6 @@
571568
\indexlibraryglobal{EROFS}%
572569
\indexlibraryglobal{ESPIPE}%
573570
\indexlibraryglobal{ESRCH}%
574-
\indexlibraryglobal{ETIME}%
575571
\indexlibraryglobal{ETIMEDOUT}%
576572
\indexlibraryglobal{ETXTBSY}%
577573
\indexlibraryglobal{EWOULDBLOCK}%
@@ -619,7 +615,6 @@
619615
#define ENETUNREACH @\seebelow@
620616
#define ENFILE @\seebelow@
621617
#define ENOBUFS @\seebelow@
622-
#define ENODATA @\seebelow@
623618
#define ENODEV @\seebelow@
624619
#define ENOENT @\seebelow@
625620
#define ENOEXEC @\seebelow@
@@ -629,8 +624,6 @@
629624
#define ENOMSG @\seebelow@
630625
#define ENOPROTOOPT @\seebelow@
631626
#define ENOSPC @\seebelow@
632-
#define ENOSR @\seebelow@
633-
#define ENOSTR @\seebelow@
634627
#define ENOSYS @\seebelow@
635628
#define ENOTCONN @\seebelow@
636629
#define ENOTDIR @\seebelow@
@@ -652,7 +645,6 @@
652645
#define EROFS @\seebelow@
653646
#define ESPIPE @\seebelow@
654647
#define ESRCH @\seebelow@
655-
#define ETIME @\seebelow@
656648
#define ETIMEDOUT @\seebelow@
657649
#define ETXTBSY @\seebelow@
658650
#define EWOULDBLOCK @\seebelow@
@@ -750,18 +742,15 @@
750742
no_child_process, // \tcode{ECHILD}
751743
no_link, // \tcode{ENOLINK}
752744
no_lock_available, // \tcode{ENOLCK}
753-
no_message_available, // \tcode{ENODATA}
754745
no_message, // \tcode{ENOMSG}
755746
no_protocol_option, // \tcode{ENOPROTOOPT}
756747
no_space_on_device, // \tcode{ENOSPC}
757-
no_stream_resources, // \tcode{ENOSR}
758748
no_such_device_or_address, // \tcode{ENXIO}
759749
no_such_device, // \tcode{ENODEV}
760750
no_such_file_or_directory, // \tcode{ENOENT}
761751
no_such_process, // \tcode{ESRCH}
762752
not_a_directory, // \tcode{ENOTDIR}
763753
not_a_socket, // \tcode{ENOTSOCK}
764-
not_a_stream, // \tcode{ENOSTR}
765754
not_connected, // \tcode{ENOTCONN}
766755
not_enough_memory, // \tcode{ENOMEM}
767756
not_supported, // \tcode{ENOTSUP}
@@ -779,7 +768,6 @@
779768
resource_unavailable_try_again, // \tcode{EAGAIN}
780769
result_out_of_range, // \tcode{ERANGE}
781770
state_not_recoverable, // \tcode{ENOTRECOVERABLE}
782-
stream_timeout, // \tcode{ETIME}
783771
text_file_busy, // \tcode{ETXTBSY}
784772
timed_out, // \tcode{ETIMEDOUT}
785773
too_many_files_open_in_system, // \tcode{ENFILE}

source/future.tex

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,6 +1341,42 @@
13411341
\tcode{rdbuf()->pcount()}.
13421342
\end{itemdescr}
13431343

1344+
\rSec1[depr.cerrno]{Deprecated error numbers}
1345+
1346+
\pnum
1347+
The following macros are defined in addition to those
1348+
specified in \ref{cerrno.syn}:
1349+
1350+
\indexlibraryglobal{ENODATA}%
1351+
\indexlibraryglobal{ENOSR}%
1352+
\indexlibraryglobal{ENOSTR}%
1353+
\indexlibraryglobal{ETIME}%
1354+
\begin{codeblock}
1355+
#define ENODATA @\seebelow@
1356+
#define ENOSR @\seebelow@
1357+
#define ENOSTR @\seebelow@
1358+
#define ETIME @\seebelow@
1359+
\end{codeblock}
1360+
1361+
\pnum
1362+
The meaning of these macros is defined by the POSIX standard.
1363+
1364+
\pnum
1365+
The following \tcode{enum errc} enumerators are defined
1366+
in addition to those specified in \ref{system.error.syn}:
1367+
1368+
\begin{codeblock}
1369+
no_message_available, // \tcode{ENODATA}
1370+
no_stream_resources, // \tcode{ENOSR}
1371+
not_a_stream, // \tcode{ENOSTR}
1372+
stream_timeout, // \tcode{ETIME}
1373+
\end{codeblock}
1374+
1375+
\pnum
1376+
The value of each \tcode{enum errc} enumerator above
1377+
is the same as the value of the \libheader{cerrno} macro
1378+
shown in the above synopsis.
1379+
13441380
\rSec1[depr.default.allocator]{The default allocator}
13451381

13461382
\pnum

0 commit comments

Comments
 (0)