Module Name: src Committed By: riastradh Date: Fri Aug 16 19:36:21 UTC 2024
Modified Files: src/lib/libc/locale: c16rtomb.3 c32rtomb.3 Log Message: c16rtomb(3), c32rtomb(3): Specify what happens if ps is null. PR lib/52374: <uchar.h> missing To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/lib/libc/locale/c16rtomb.3 \ src/lib/libc/locale/c32rtomb.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/locale/c16rtomb.3 diff -u src/lib/libc/locale/c16rtomb.3:1.3 src/lib/libc/locale/c16rtomb.3:1.4 --- src/lib/libc/locale/c16rtomb.3:1.3 Fri Aug 16 12:54:07 2024 +++ src/lib/libc/locale/c16rtomb.3 Fri Aug 16 19:36:21 2024 @@ -1,4 +1,4 @@ -.\" $NetBSD: c16rtomb.3,v 1.3 2024/08/16 12:54:07 uwe Exp $ +.\" $NetBSD: c16rtomb.3,v 1.4 2024/08/16 19:36:21 riastradh Exp $ .\" .\" Copyright (c) 2024 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -90,6 +90,25 @@ to denote failure with .Xr errno 2 set to .Er EILSEQ . +.Pp +If +.Fa ps +is a null pointer, +.Nm +uses an internal +.Vt mbstate_t +object with static storage duration, distinct from all other +.Vt mbstate_t +objects +.Po +including those used by +.Xr mbrtoc16 3 , +.Xr mbrtoc32 3 , +and +.Xr c32rtomb 3 +.Pc , +which is initialized at program startup to the initial conversion +state. .\""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" .Sh RETURN VALUES The Index: src/lib/libc/locale/c32rtomb.3 diff -u src/lib/libc/locale/c32rtomb.3:1.3 src/lib/libc/locale/c32rtomb.3:1.4 --- src/lib/libc/locale/c32rtomb.3:1.3 Fri Aug 16 12:54:07 2024 +++ src/lib/libc/locale/c32rtomb.3 Fri Aug 16 19:36:21 2024 @@ -1,4 +1,4 @@ -.\" $NetBSD: c32rtomb.3,v 1.3 2024/08/16 12:54:07 uwe Exp $ +.\" $NetBSD: c32rtomb.3,v 1.4 2024/08/16 19:36:21 riastradh Exp $ .\" .\" Copyright (c) 2024 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -73,6 +73,25 @@ to denote failure with .Xr errno 2 set to .Er EILSEQ . +.Pp +If +.Fa ps +is a null pointer, +.Nm +uses an internal +.Vt mbstate_t +object with static storage duration, distinct from all other +.Vt mbstate_t +objects +.Po +including those used by +.Xr mbrtoc16 3 , +.Xr mbrtoc32 3 , +and +.Xr c16rtomb 3 +.Pc , +which is initialized at program startup to the initial conversion +state. .\""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" .Sh RETURN VALUES The