From 2c3307fb903f427be3d021c5780b75cac9af2ce8 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 17 Jun 2024 12:52:33 +0200 Subject: Merging upstream version 4.23.0. Signed-off-by: Daniel Baumann --- upstream/opensuse-tumbleweed/man3/CPU_SET.3 | 60 +- upstream/opensuse-tumbleweed/man3/INFINITY.3 | 14 +- upstream/opensuse-tumbleweed/man3/MAX.3 | 8 +- upstream/opensuse-tumbleweed/man3/MB_CUR_MAX.3 | 2 +- upstream/opensuse-tumbleweed/man3/MB_LEN_MAX.3 | 2 +- .../opensuse-tumbleweed/man3/TIMEVAL_TO_TIMESPEC.3 | 32 + upstream/opensuse-tumbleweed/man3/_Generic.3 | 8 +- .../opensuse-tumbleweed/man3/__ppc_get_timebase.3 | 8 +- .../opensuse-tumbleweed/man3/__ppc_set_ppr_med.3 | 13 +- upstream/opensuse-tumbleweed/man3/__ppc_yield.3 | 13 +- upstream/opensuse-tumbleweed/man3/__setfpucw.3 | 10 +- upstream/opensuse-tumbleweed/man3/a64l.3 | 21 +- upstream/opensuse-tumbleweed/man3/abort.3 | 11 +- upstream/opensuse-tumbleweed/man3/abs.3 | 21 +- upstream/opensuse-tumbleweed/man3/acos.3 | 21 +- upstream/opensuse-tumbleweed/man3/acosh.3 | 23 +- upstream/opensuse-tumbleweed/man3/add_wch.3ncurses | 33 +- .../opensuse-tumbleweed/man3/add_wchstr.3ncurses | 33 +- upstream/opensuse-tumbleweed/man3/addch.3ncurses | 516 +++--- .../opensuse-tumbleweed/man3/addchstr.3ncurses | 35 +- upstream/opensuse-tumbleweed/man3/addseverity.3 | 11 +- upstream/opensuse-tumbleweed/man3/addstr.3ncurses | 87 +- upstream/opensuse-tumbleweed/man3/addwstr.3ncurses | 103 +- upstream/opensuse-tumbleweed/man3/adjtime.3 | 21 +- upstream/opensuse-tumbleweed/man3/aio_cancel.3 | 15 +- upstream/opensuse-tumbleweed/man3/aio_error.3 | 5 +- upstream/opensuse-tumbleweed/man3/aio_fsync.3 | 15 +- upstream/opensuse-tumbleweed/man3/aio_init.3 | 10 +- upstream/opensuse-tumbleweed/man3/aio_read.3 | 23 +- upstream/opensuse-tumbleweed/man3/aio_return.3 | 9 +- upstream/opensuse-tumbleweed/man3/aio_suspend.3 | 17 +- upstream/opensuse-tumbleweed/man3/aio_write.3 | 23 +- upstream/opensuse-tumbleweed/man3/alloca.3 | 19 +- upstream/opensuse-tumbleweed/man3/arc4random.3 | 15 +- upstream/opensuse-tumbleweed/man3/argz_add.3 | 55 +- upstream/opensuse-tumbleweed/man3/asin.3 | 19 +- upstream/opensuse-tumbleweed/man3/asinh.3 | 19 +- upstream/opensuse-tumbleweed/man3/asprintf.3 | 5 +- upstream/opensuse-tumbleweed/man3/assert.3 | 13 +- upstream/opensuse-tumbleweed/man3/assert_perror.3 | 5 +- upstream/opensuse-tumbleweed/man3/atan.3 | 17 +- upstream/opensuse-tumbleweed/man3/atan2.3 | 35 +- upstream/opensuse-tumbleweed/man3/atanh.3 | 23 +- upstream/opensuse-tumbleweed/man3/atexit.3 | 17 +- upstream/opensuse-tumbleweed/man3/atof.3 | 9 +- upstream/opensuse-tumbleweed/man3/atoi.3 | 17 +- upstream/opensuse-tumbleweed/man3/attr.3ncurses | 30 +- upstream/opensuse-tumbleweed/man3/attributes.3menu | 6 +- upstream/opensuse-tumbleweed/man3/backtrace.3 | 17 +- upstream/opensuse-tumbleweed/man3/basename.3 | 25 +- upstream/opensuse-tumbleweed/man3/bcmp.3 | 6 +- upstream/opensuse-tumbleweed/man3/bcopy.3 | 7 +- upstream/opensuse-tumbleweed/man3/beep.3ncurses | 8 +- .../man3/bind_textdomain_codeset.3 | 2 +- upstream/opensuse-tumbleweed/man3/bindresvport.3 | 11 +- upstream/opensuse-tumbleweed/man3/bindtextdomain.3 | 2 +- upstream/opensuse-tumbleweed/man3/bkgd.3ncurses | 15 +- upstream/opensuse-tumbleweed/man3/bkgrnd.3ncurses | 17 +- upstream/opensuse-tumbleweed/man3/border.3ncurses | 18 +- .../opensuse-tumbleweed/man3/border_set.3ncurses | 16 +- upstream/opensuse-tumbleweed/man3/bsd_signal.3 | 17 +- upstream/opensuse-tumbleweed/man3/bsearch.3 | 9 +- upstream/opensuse-tumbleweed/man3/bstring.3 | 24 +- upstream/opensuse-tumbleweed/man3/bswap.3 | 6 +- upstream/opensuse-tumbleweed/man3/btowc.3 | 7 +- upstream/opensuse-tumbleweed/man3/btree.3 | 26 +- upstream/opensuse-tumbleweed/man3/byteorder.3 | 15 +- upstream/opensuse-tumbleweed/man3/bzero.3 | 17 +- upstream/opensuse-tumbleweed/man3/cabs.3 | 5 +- upstream/opensuse-tumbleweed/man3/cacos.3 | 9 +- upstream/opensuse-tumbleweed/man3/cacosh.3 | 9 +- .../man3/canonicalize_file_name.3 | 11 +- upstream/opensuse-tumbleweed/man3/carg.3 | 21 +- upstream/opensuse-tumbleweed/man3/casin.3 | 9 +- upstream/opensuse-tumbleweed/man3/casinh.3 | 9 +- upstream/opensuse-tumbleweed/man3/catan.3 | 13 +- upstream/opensuse-tumbleweed/man3/catanh.3 | 9 +- upstream/opensuse-tumbleweed/man3/catgets.3 | 9 +- upstream/opensuse-tumbleweed/man3/catopen.3 | 13 +- upstream/opensuse-tumbleweed/man3/cbrt.3 | 20 +- upstream/opensuse-tumbleweed/man3/ccos.3 | 9 +- upstream/opensuse-tumbleweed/man3/ccosh.3 | 8 +- upstream/opensuse-tumbleweed/man3/ceil.3 | 17 +- upstream/opensuse-tumbleweed/man3/cexp.3 | 9 +- upstream/opensuse-tumbleweed/man3/cexp2.3 | 6 +- upstream/opensuse-tumbleweed/man3/cfree.3 | 29 +- upstream/opensuse-tumbleweed/man3/cimag.3 | 9 +- upstream/opensuse-tumbleweed/man3/circleq.3 | 60 +- upstream/opensuse-tumbleweed/man3/clear.3ncurses | 6 +- upstream/opensuse-tumbleweed/man3/clearenv.3 | 23 +- upstream/opensuse-tumbleweed/man3/clock.3 | 11 +- .../opensuse-tumbleweed/man3/clock_getcpuclockid.3 | 13 +- upstream/opensuse-tumbleweed/man3/clog.3 | 13 +- upstream/opensuse-tumbleweed/man3/clog10.3 | 17 +- upstream/opensuse-tumbleweed/man3/clog2.3 | 10 +- upstream/opensuse-tumbleweed/man3/closedir.3 | 5 +- upstream/opensuse-tumbleweed/man3/cmsg.3 | 28 +- upstream/opensuse-tumbleweed/man3/color.3ncurses | 8 +- upstream/opensuse-tumbleweed/man3/confstr.3 | 19 +- upstream/opensuse-tumbleweed/man3/conj.3 | 9 +- upstream/opensuse-tumbleweed/man3/copysign.3 | 15 +- upstream/opensuse-tumbleweed/man3/cos.3 | 17 +- upstream/opensuse-tumbleweed/man3/cosh.3 | 23 +- upstream/opensuse-tumbleweed/man3/cpow.3 | 5 +- upstream/opensuse-tumbleweed/man3/cproj.3 | 7 +- upstream/opensuse-tumbleweed/man3/creal.3 | 9 +- upstream/opensuse-tumbleweed/man3/csin.3 | 9 +- upstream/opensuse-tumbleweed/man3/csinh.3 | 9 +- upstream/opensuse-tumbleweed/man3/csqrt.3 | 5 +- upstream/opensuse-tumbleweed/man3/ctan.3 | 9 +- upstream/opensuse-tumbleweed/man3/ctanh.3 | 9 +- upstream/opensuse-tumbleweed/man3/ctermid.3 | 11 +- upstream/opensuse-tumbleweed/man3/ctime.3 | 55 +- .../man3/curses_variables.3ncurses | 36 +- upstream/opensuse-tumbleweed/man3/cursor.3form | 6 +- upstream/opensuse-tumbleweed/man3/cursor.3menu | 6 +- upstream/opensuse-tumbleweed/man3/daemon.3 | 15 +- upstream/opensuse-tumbleweed/man3/data.3form | 6 +- upstream/opensuse-tumbleweed/man3/dbopen.3 | 40 +- .../man3/default_colors.3ncurses | 8 +- .../opensuse-tumbleweed/man3/define_key.3ncurses | 6 +- upstream/opensuse-tumbleweed/man3/delch.3ncurses | 77 +- .../opensuse-tumbleweed/man3/deleteln.3ncurses | 8 +- upstream/opensuse-tumbleweed/man3/des_crypt.3 | 15 +- upstream/opensuse-tumbleweed/man3/difftime.3 | 28 +- upstream/opensuse-tumbleweed/man3/dirfd.3 | 11 +- upstream/opensuse-tumbleweed/man3/div.3 | 21 +- .../opensuse-tumbleweed/man3/dl_iterate_phdr.3 | 39 +- upstream/opensuse-tumbleweed/man3/dladdr.3 | 17 +- upstream/opensuse-tumbleweed/man3/dlerror.3 | 11 +- upstream/opensuse-tumbleweed/man3/dlinfo.3 | 9 +- upstream/opensuse-tumbleweed/man3/dlopen.3 | 63 +- upstream/opensuse-tumbleweed/man3/dlsym.3 | 17 +- upstream/opensuse-tumbleweed/man3/drand48.3 | 43 +- upstream/opensuse-tumbleweed/man3/drand48_r.3 | 17 +- upstream/opensuse-tumbleweed/man3/driver.3form | 6 +- upstream/opensuse-tumbleweed/man3/driver.3menu | 6 +- upstream/opensuse-tumbleweed/man3/duplocale.3 | 14 +- upstream/opensuse-tumbleweed/man3/dysize.3 | 15 +- upstream/opensuse-tumbleweed/man3/ecvt.3 | 11 +- upstream/opensuse-tumbleweed/man3/ecvt_r.3 | 11 +- upstream/opensuse-tumbleweed/man3/encrypt.3 | 25 +- upstream/opensuse-tumbleweed/man3/end.3 | 8 +- upstream/opensuse-tumbleweed/man3/endian.3 | 28 +- upstream/opensuse-tumbleweed/man3/envz_add.3 | 31 +- upstream/opensuse-tumbleweed/man3/erf.3 | 27 +- upstream/opensuse-tumbleweed/man3/erfc.3 | 29 +- upstream/opensuse-tumbleweed/man3/err.3 | 29 +- upstream/opensuse-tumbleweed/man3/errno.3 | 34 +- upstream/opensuse-tumbleweed/man3/error.3 | 23 +- upstream/opensuse-tumbleweed/man3/ether_aton.3 | 27 +- upstream/opensuse-tumbleweed/man3/euidaccess.3 | 11 +- upstream/opensuse-tumbleweed/man3/exec.3 | 35 +- upstream/opensuse-tumbleweed/man3/exit.3 | 25 +- upstream/opensuse-tumbleweed/man3/exp.3 | 23 +- upstream/opensuse-tumbleweed/man3/exp10.3 | 9 +- upstream/opensuse-tumbleweed/man3/exp2.3 | 15 +- upstream/opensuse-tumbleweed/man3/expm1.3 | 31 +- .../opensuse-tumbleweed/man3/extensions.3ncurses | 6 +- upstream/opensuse-tumbleweed/man3/fabs.3 | 17 +- upstream/opensuse-tumbleweed/man3/fclose.3 | 7 +- upstream/opensuse-tumbleweed/man3/fcloseall.3 | 9 +- upstream/opensuse-tumbleweed/man3/fdim.3 | 15 +- upstream/opensuse-tumbleweed/man3/fenv.3 | 55 +- upstream/opensuse-tumbleweed/man3/ferror.3 | 13 +- upstream/opensuse-tumbleweed/man3/fexecve.3 | 13 +- upstream/opensuse-tumbleweed/man3/fflush.3 | 17 +- upstream/opensuse-tumbleweed/man3/ffs.3 | 17 +- upstream/opensuse-tumbleweed/man3/fgetc.3 | 25 +- upstream/opensuse-tumbleweed/man3/fgetgrent.3 | 13 +- upstream/opensuse-tumbleweed/man3/fgetpwent.3 | 13 +- upstream/opensuse-tumbleweed/man3/fgetwc.3 | 11 +- upstream/opensuse-tumbleweed/man3/fgetws.3 | 13 +- upstream/opensuse-tumbleweed/man3/field.3form | 6 +- .../man3/field_attributes.3form | 6 +- .../opensuse-tumbleweed/man3/field_buffer.3form | 6 +- upstream/opensuse-tumbleweed/man3/field_info.3form | 6 +- upstream/opensuse-tumbleweed/man3/field_just.3form | 6 +- upstream/opensuse-tumbleweed/man3/field_new.3form | 6 +- upstream/opensuse-tumbleweed/man3/field_opts.3form | 6 +- .../opensuse-tumbleweed/man3/field_userptr.3form | 6 +- .../man3/field_validation.3form | 6 +- upstream/opensuse-tumbleweed/man3/fieldtype.3form | 6 +- upstream/opensuse-tumbleweed/man3/fileno.3 | 11 +- upstream/opensuse-tumbleweed/man3/finite.3 | 25 +- upstream/opensuse-tumbleweed/man3/flockfile.3 | 23 +- upstream/opensuse-tumbleweed/man3/floor.3 | 17 +- upstream/opensuse-tumbleweed/man3/fma.3 | 27 +- upstream/opensuse-tumbleweed/man3/fmax.3 | 13 +- upstream/opensuse-tumbleweed/man3/fmemopen.3 | 45 +- upstream/opensuse-tumbleweed/man3/fmin.3 | 13 +- upstream/opensuse-tumbleweed/man3/fmod.3 | 50 +- upstream/opensuse-tumbleweed/man3/fmtmsg.3 | 53 +- upstream/opensuse-tumbleweed/man3/fnmatch.3 | 7 +- upstream/opensuse-tumbleweed/man3/fopen.3 | 45 +- upstream/opensuse-tumbleweed/man3/fopencookie.3 | 25 +- upstream/opensuse-tumbleweed/man3/form.3form | 6 +- .../opensuse-tumbleweed/man3/form_variables.3form | 6 +- upstream/opensuse-tumbleweed/man3/format.3menu | 6 +- upstream/opensuse-tumbleweed/man3/fpathconf.3 | 13 +- upstream/opensuse-tumbleweed/man3/fpclassify.3 | 17 +- upstream/opensuse-tumbleweed/man3/fpurge.3 | 11 +- upstream/opensuse-tumbleweed/man3/fputwc.3 | 11 +- upstream/opensuse-tumbleweed/man3/fputws.3 | 9 +- upstream/opensuse-tumbleweed/man3/fread.3 | 15 +- upstream/opensuse-tumbleweed/man3/frexp.3 | 22 +- upstream/opensuse-tumbleweed/man3/fseek.3 | 23 +- upstream/opensuse-tumbleweed/man3/fseeko.3 | 11 +- upstream/opensuse-tumbleweed/man3/ftime.3 | 15 +- upstream/opensuse-tumbleweed/man3/ftok.3 | 13 +- upstream/opensuse-tumbleweed/man3/fts.3 | 61 +- upstream/opensuse-tumbleweed/man3/ftw.3 | 37 +- upstream/opensuse-tumbleweed/man3/futimes.3 | 13 +- upstream/opensuse-tumbleweed/man3/fwide.3 | 14 +- upstream/opensuse-tumbleweed/man3/gamma.3 | 21 +- upstream/opensuse-tumbleweed/man3/gcvt.3 | 9 +- upstream/opensuse-tumbleweed/man3/get_nprocs.3 | 13 +- upstream/opensuse-tumbleweed/man3/get_phys_pages.3 | 10 +- upstream/opensuse-tumbleweed/man3/get_wch.3ncurses | 294 ++-- .../opensuse-tumbleweed/man3/get_wstr.3ncurses | 19 +- upstream/opensuse-tumbleweed/man3/getaddrinfo.3 | 53 +- upstream/opensuse-tumbleweed/man3/getaddrinfo_a.3 | 109 +- upstream/opensuse-tumbleweed/man3/getauxval.3 | 15 +- .../opensuse-tumbleweed/man3/getcchar.3ncurses | 40 +- upstream/opensuse-tumbleweed/man3/getch.3ncurses | 837 ++++++---- upstream/opensuse-tumbleweed/man3/getcontext.3 | 25 +- upstream/opensuse-tumbleweed/man3/getcwd.3 | 31 +- upstream/opensuse-tumbleweed/man3/getdate.3 | 41 +- upstream/opensuse-tumbleweed/man3/getdirentries.3 | 9 +- upstream/opensuse-tumbleweed/man3/getdtablesize.3 | 11 +- upstream/opensuse-tumbleweed/man3/getentropy.3 | 16 +- upstream/opensuse-tumbleweed/man3/getenv.3 | 21 +- upstream/opensuse-tumbleweed/man3/getfsent.3 | 23 +- upstream/opensuse-tumbleweed/man3/getgrent.3 | 29 +- upstream/opensuse-tumbleweed/man3/getgrent_r.3 | 26 +- upstream/opensuse-tumbleweed/man3/getgrnam.3 | 31 +- upstream/opensuse-tumbleweed/man3/getgrouplist.3 | 36 +- upstream/opensuse-tumbleweed/man3/gethostbyname.3 | 56 +- upstream/opensuse-tumbleweed/man3/gethostid.3 | 17 +- .../opensuse-tumbleweed/man3/getipnodebyname.3 | 18 +- upstream/opensuse-tumbleweed/man3/getline.3 | 21 +- upstream/opensuse-tumbleweed/man3/getloadavg.3 | 9 +- upstream/opensuse-tumbleweed/man3/getlogin.3 | 32 +- upstream/opensuse-tumbleweed/man3/getmntent.3 | 47 +- upstream/opensuse-tumbleweed/man3/getnameinfo.3 | 43 +- upstream/opensuse-tumbleweed/man3/getnetent.3 | 26 +- upstream/opensuse-tumbleweed/man3/getnetent_r.3 | 19 +- upstream/opensuse-tumbleweed/man3/getopt.3 | 51 +- upstream/opensuse-tumbleweed/man3/getpass.3 | 15 +- upstream/opensuse-tumbleweed/man3/getprotoent.3 | 24 +- upstream/opensuse-tumbleweed/man3/getprotoent_r.3 | 19 +- upstream/opensuse-tumbleweed/man3/getpt.3 | 9 +- upstream/opensuse-tumbleweed/man3/getpw.3 | 15 +- upstream/opensuse-tumbleweed/man3/getpwent.3 | 22 +- upstream/opensuse-tumbleweed/man3/getpwent_r.3 | 26 +- upstream/opensuse-tumbleweed/man3/getpwnam.3 | 35 +- upstream/opensuse-tumbleweed/man3/getrpcent.3 | 21 +- upstream/opensuse-tumbleweed/man3/getrpcent_r.3 | 17 +- upstream/opensuse-tumbleweed/man3/getrpcport.3 | 5 +- upstream/opensuse-tumbleweed/man3/gets.3 | 11 +- upstream/opensuse-tumbleweed/man3/getservent.3 | 24 +- upstream/opensuse-tumbleweed/man3/getservent_r.3 | 19 +- upstream/opensuse-tumbleweed/man3/getspnam.3 | 52 +- upstream/opensuse-tumbleweed/man3/getstr.3ncurses | 19 +- upstream/opensuse-tumbleweed/man3/getsubopt.3 | 23 +- upstream/opensuse-tumbleweed/man3/gettext.3 | 2 +- upstream/opensuse-tumbleweed/man3/getttyent.3 | 21 +- upstream/opensuse-tumbleweed/man3/getusershell.3 | 13 +- upstream/opensuse-tumbleweed/man3/getutent.3 | 62 +- upstream/opensuse-tumbleweed/man3/getutmp.3 | 5 +- upstream/opensuse-tumbleweed/man3/getw.3 | 11 +- upstream/opensuse-tumbleweed/man3/getwchar.3 | 9 +- upstream/opensuse-tumbleweed/man3/getyx.3ncurses | 8 +- upstream/opensuse-tumbleweed/man3/glob.3 | 32 +- .../man3/gnu_get_libc_version.3 | 9 +- upstream/opensuse-tumbleweed/man3/grantpt.3 | 15 +- upstream/opensuse-tumbleweed/man3/group_member.3 | 8 +- upstream/opensuse-tumbleweed/man3/gsignal.3 | 15 +- upstream/opensuse-tumbleweed/man3/hash.3 | 22 +- upstream/opensuse-tumbleweed/man3/hook.3form | 4 +- upstream/opensuse-tumbleweed/man3/hook.3menu | 6 +- upstream/opensuse-tumbleweed/man3/hsearch.3 | 45 +- upstream/opensuse-tumbleweed/man3/hypot.3 | 25 +- upstream/opensuse-tumbleweed/man3/iconv.3 | 19 +- upstream/opensuse-tumbleweed/man3/iconv_close.3 | 5 +- upstream/opensuse-tumbleweed/man3/iconv_open.3 | 11 +- upstream/opensuse-tumbleweed/man3/if_nameindex.3 | 17 +- upstream/opensuse-tumbleweed/man3/if_nametoindex.3 | 13 +- upstream/opensuse-tumbleweed/man3/ilogb.3 | 19 +- upstream/opensuse-tumbleweed/man3/in_wch.3ncurses | 35 +- .../opensuse-tumbleweed/man3/in_wchstr.3ncurses | 30 +- upstream/opensuse-tumbleweed/man3/inch.3ncurses | 33 +- upstream/opensuse-tumbleweed/man3/inchstr.3ncurses | 16 +- upstream/opensuse-tumbleweed/man3/index.3 | 8 +- upstream/opensuse-tumbleweed/man3/inet.3 | 43 +- upstream/opensuse-tumbleweed/man3/inet_net_pton.3 | 48 +- upstream/opensuse-tumbleweed/man3/inet_ntop.3 | 9 +- upstream/opensuse-tumbleweed/man3/inet_pton.3 | 9 +- upstream/opensuse-tumbleweed/man3/initgroups.3 | 11 +- upstream/opensuse-tumbleweed/man3/initscr.3ncurses | 10 +- upstream/opensuse-tumbleweed/man3/inopts.3ncurses | 45 +- upstream/opensuse-tumbleweed/man3/ins_wch.3ncurses | 15 +- .../opensuse-tumbleweed/man3/ins_wstr.3ncurses | 27 +- upstream/opensuse-tumbleweed/man3/insch.3ncurses | 42 +- upstream/opensuse-tumbleweed/man3/insque.3 | 25 +- upstream/opensuse-tumbleweed/man3/insstr.3ncurses | 18 +- upstream/opensuse-tumbleweed/man3/instr.3ncurses | 25 +- upstream/opensuse-tumbleweed/man3/intro.3 | 10 +- upstream/opensuse-tumbleweed/man3/inwstr.3ncurses | 16 +- upstream/opensuse-tumbleweed/man3/isalpha.3 | 35 +- upstream/opensuse-tumbleweed/man3/isatty.3 | 5 +- upstream/opensuse-tumbleweed/man3/isfdtype.3 | 8 +- upstream/opensuse-tumbleweed/man3/isgreater.3 | 13 +- upstream/opensuse-tumbleweed/man3/iswalnum.3 | 17 +- upstream/opensuse-tumbleweed/man3/iswalpha.3 | 19 +- upstream/opensuse-tumbleweed/man3/iswblank.3 | 15 +- upstream/opensuse-tumbleweed/man3/iswcntrl.3 | 9 +- upstream/opensuse-tumbleweed/man3/iswctype.3 | 7 +- upstream/opensuse-tumbleweed/man3/iswdigit.3 | 17 +- upstream/opensuse-tumbleweed/man3/iswgraph.3 | 13 +- upstream/opensuse-tumbleweed/man3/iswlower.3 | 21 +- upstream/opensuse-tumbleweed/man3/iswprint.3 | 9 +- upstream/opensuse-tumbleweed/man3/iswpunct.3 | 15 +- upstream/opensuse-tumbleweed/man3/iswspace.3 | 11 +- upstream/opensuse-tumbleweed/man3/iswupper.3 | 21 +- upstream/opensuse-tumbleweed/man3/iswxdigit.3 | 15 +- upstream/opensuse-tumbleweed/man3/items.3menu | 6 +- upstream/opensuse-tumbleweed/man3/j0.3 | 25 +- upstream/opensuse-tumbleweed/man3/kernel.3ncurses | 23 +- .../opensuse-tumbleweed/man3/key_defined.3ncurses | 6 +- upstream/opensuse-tumbleweed/man3/key_setsecret.3 | 21 +- .../opensuse-tumbleweed/man3/keybound.3ncurses | 6 +- upstream/opensuse-tumbleweed/man3/keyok.3ncurses | 6 +- upstream/opensuse-tumbleweed/man3/killpg.3 | 12 +- upstream/opensuse-tumbleweed/man3/ldexp.3 | 23 +- upstream/opensuse-tumbleweed/man3/legacy.3ncurses | 6 +- .../man3/legacy_coding.3ncurses | 75 +- upstream/opensuse-tumbleweed/man3/lgamma.3 | 34 +- upstream/opensuse-tumbleweed/man3/libsystemd.3 | 89 - upstream/opensuse-tumbleweed/man3/libudev.3 | 83 - upstream/opensuse-tumbleweed/man3/lio_listio.3 | 23 +- upstream/opensuse-tumbleweed/man3/list.3 | 58 +- upstream/opensuse-tumbleweed/man3/localeconv.3 | 5 +- upstream/opensuse-tumbleweed/man3/lockf.3 | 26 +- upstream/opensuse-tumbleweed/man3/log.3 | 23 +- upstream/opensuse-tumbleweed/man3/log10.3 | 19 +- upstream/opensuse-tumbleweed/man3/log1p.3 | 27 +- upstream/opensuse-tumbleweed/man3/log2.3 | 19 +- upstream/opensuse-tumbleweed/man3/logb.3 | 30 +- upstream/opensuse-tumbleweed/man3/login.3 | 12 +- upstream/opensuse-tumbleweed/man3/lrint.3 | 19 +- upstream/opensuse-tumbleweed/man3/lround.3 | 19 +- upstream/opensuse-tumbleweed/man3/lsearch.3 | 7 +- upstream/opensuse-tumbleweed/man3/lseek64.3 | 41 +- upstream/opensuse-tumbleweed/man3/makecontext.3 | 15 +- upstream/opensuse-tumbleweed/man3/makedev.3 | 15 +- upstream/opensuse-tumbleweed/man3/mallinfo.3 | 26 +- upstream/opensuse-tumbleweed/man3/malloc.3 | 47 +- .../opensuse-tumbleweed/man3/malloc_get_state.3 | 15 +- upstream/opensuse-tumbleweed/man3/malloc_hook.3 | 26 +- upstream/opensuse-tumbleweed/man3/malloc_info.3 | 17 +- upstream/opensuse-tumbleweed/man3/malloc_stats.3 | 5 +- upstream/opensuse-tumbleweed/man3/malloc_trim.3 | 11 +- .../opensuse-tumbleweed/man3/malloc_usable_size.3 | 5 +- upstream/opensuse-tumbleweed/man3/mallopt.3 | 28 +- upstream/opensuse-tumbleweed/man3/mark.3menu | 6 +- upstream/opensuse-tumbleweed/man3/matherr.3 | 53 +- upstream/opensuse-tumbleweed/man3/mblen.3 | 11 +- upstream/opensuse-tumbleweed/man3/mbrlen.3 | 11 +- upstream/opensuse-tumbleweed/man3/mbrtowc.3 | 17 +- upstream/opensuse-tumbleweed/man3/mbsinit.3 | 61 +- upstream/opensuse-tumbleweed/man3/mbsnrtowcs.3 | 21 +- upstream/opensuse-tumbleweed/man3/mbsrtowcs.3 | 46 +- upstream/opensuse-tumbleweed/man3/mbstowcs.3 | 43 +- upstream/opensuse-tumbleweed/man3/mbtowc.3 | 13 +- upstream/opensuse-tumbleweed/man3/mcheck.3 | 21 +- upstream/opensuse-tumbleweed/man3/memccpy.3 | 7 +- upstream/opensuse-tumbleweed/man3/memchr.3 | 17 +- upstream/opensuse-tumbleweed/man3/memcmp.3 | 9 +- upstream/opensuse-tumbleweed/man3/memcpy.3 | 7 +- upstream/opensuse-tumbleweed/man3/memfrob.3 | 7 +- .../opensuse-tumbleweed/man3/memleaks.3ncurses | 6 +- upstream/opensuse-tumbleweed/man3/memmem.3 | 5 +- upstream/opensuse-tumbleweed/man3/memmove.3 | 5 +- upstream/opensuse-tumbleweed/man3/mempcpy.3 | 13 +- upstream/opensuse-tumbleweed/man3/memset.3 | 5 +- upstream/opensuse-tumbleweed/man3/menu.3menu | 6 +- .../opensuse-tumbleweed/man3/menu_current.3menu | 6 +- upstream/opensuse-tumbleweed/man3/menu_name.3menu | 6 +- upstream/opensuse-tumbleweed/man3/menu_new.3menu | 6 +- upstream/opensuse-tumbleweed/man3/menu_opts.3menu | 6 +- .../opensuse-tumbleweed/man3/menu_userptr.3menu | 6 +- upstream/opensuse-tumbleweed/man3/menu_value.3menu | 6 +- .../opensuse-tumbleweed/man3/menu_visible.3menu | 6 +- upstream/opensuse-tumbleweed/man3/mkdtemp.3 | 11 +- upstream/opensuse-tumbleweed/man3/mkfifo.3 | 25 +- upstream/opensuse-tumbleweed/man3/mkstemp.3 | 31 +- upstream/opensuse-tumbleweed/man3/mktemp.3 | 11 +- upstream/opensuse-tumbleweed/man3/modf.3 | 15 +- upstream/opensuse-tumbleweed/man3/mouse.3ncurses | 47 +- upstream/opensuse-tumbleweed/man3/move.3ncurses | 70 +- upstream/opensuse-tumbleweed/man3/mpool.3 | 38 +- upstream/opensuse-tumbleweed/man3/mq_close.3 | 7 +- upstream/opensuse-tumbleweed/man3/mq_getattr.3 | 23 +- upstream/opensuse-tumbleweed/man3/mq_notify.3 | 29 +- upstream/opensuse-tumbleweed/man3/mq_open.3 | 19 +- upstream/opensuse-tumbleweed/man3/mq_receive.3 | 19 +- upstream/opensuse-tumbleweed/man3/mq_send.3 | 21 +- upstream/opensuse-tumbleweed/man3/mq_unlink.3 | 5 +- upstream/opensuse-tumbleweed/man3/mtrace.3 | 23 +- upstream/opensuse-tumbleweed/man3/nan.3 | 19 +- upstream/opensuse-tumbleweed/man3/ncurses.3ncurses | 1694 +++++++++++++------- upstream/opensuse-tumbleweed/man3/netlink.3 | 4 +- upstream/opensuse-tumbleweed/man3/new.3form | 6 +- upstream/opensuse-tumbleweed/man3/new.3menu | 6 +- upstream/opensuse-tumbleweed/man3/new_page.3form | 6 +- .../opensuse-tumbleweed/man3/new_pair.3ncurses | 6 +- upstream/opensuse-tumbleweed/man3/newlocale.3 | 34 +- upstream/opensuse-tumbleweed/man3/nextafter.3 | 33 +- upstream/opensuse-tumbleweed/man3/nextup.3 | 15 +- upstream/opensuse-tumbleweed/man3/ngettext.3 | 2 +- upstream/opensuse-tumbleweed/man3/nl_langinfo.3 | 29 +- upstream/opensuse-tumbleweed/man3/ntp_gettime.3 | 15 +- upstream/opensuse-tumbleweed/man3/offsetof.3 | 10 +- upstream/opensuse-tumbleweed/man3/on_exit.3 | 13 +- upstream/opensuse-tumbleweed/man3/opaque.3ncurses | 6 +- upstream/opensuse-tumbleweed/man3/open_memstream.3 | 23 +- upstream/opensuse-tumbleweed/man3/opendir.3 | 15 +- upstream/opensuse-tumbleweed/man3/openpty.3 | 19 +- upstream/opensuse-tumbleweed/man3/opts.3form | 6 +- upstream/opensuse-tumbleweed/man3/opts.3menu | 6 +- upstream/opensuse-tumbleweed/man3/outopts.3ncurses | 40 +- upstream/opensuse-tumbleweed/man3/overlay.3ncurses | 6 +- upstream/opensuse-tumbleweed/man3/pad.3ncurses | 158 +- upstream/opensuse-tumbleweed/man3/page.3form | 6 +- upstream/opensuse-tumbleweed/man3/panel.3ncurses | 6 +- upstream/opensuse-tumbleweed/man3/pattern.3menu | 6 +- upstream/opensuse-tumbleweed/man3/perror.3 | 23 +- upstream/opensuse-tumbleweed/man3/popen.3 | 29 +- .../opensuse-tumbleweed/man3/posix_fallocate.3 | 15 +- upstream/opensuse-tumbleweed/man3/posix_madvise.3 | 12 +- upstream/opensuse-tumbleweed/man3/posix_memalign.3 | 43 +- upstream/opensuse-tumbleweed/man3/posix_openpt.3 | 17 +- upstream/opensuse-tumbleweed/man3/posix_spawn.3 | 64 +- upstream/opensuse-tumbleweed/man3/post.3form | 6 +- upstream/opensuse-tumbleweed/man3/post.3menu | 6 +- upstream/opensuse-tumbleweed/man3/pow.3 | 61 +- upstream/opensuse-tumbleweed/man3/pow10.3 | 7 +- upstream/opensuse-tumbleweed/man3/powerof2.3 | 8 +- upstream/opensuse-tumbleweed/man3/print.3ncurses | 6 +- upstream/opensuse-tumbleweed/man3/printf.3 | 107 +- upstream/opensuse-tumbleweed/man3/printw.3ncurses | 24 +- upstream/opensuse-tumbleweed/man3/profil.3 | 11 +- .../man3/program_invocation_name.3 | 8 +- upstream/opensuse-tumbleweed/man3/psignal.3 | 13 +- upstream/opensuse-tumbleweed/man3/pthread_atfork.3 | 12 +- .../opensuse-tumbleweed/man3/pthread_attr_init.3 | 19 +- .../man3/pthread_attr_setaffinity_np.3 | 11 +- .../man3/pthread_attr_setdetachstate.3 | 15 +- .../man3/pthread_attr_setguardsize.3 | 21 +- .../man3/pthread_attr_setinheritsched.3 | 15 +- .../man3/pthread_attr_setschedparam.3 | 17 +- .../man3/pthread_attr_setschedpolicy.3 | 13 +- .../man3/pthread_attr_setscope.3 | 13 +- .../man3/pthread_attr_setsigmask_np.3 | 17 +- .../man3/pthread_attr_setstack.3 | 21 +- .../man3/pthread_attr_setstackaddr.3 | 11 +- .../man3/pthread_attr_setstacksize.3 | 15 +- upstream/opensuse-tumbleweed/man3/pthread_cancel.3 | 17 +- .../man3/pthread_cleanup_push.3 | 35 +- .../man3/pthread_cleanup_push_defer_np.3 | 22 +- .../opensuse-tumbleweed/man3/pthread_cond_init.3 | 268 ++++ .../man3/pthread_condattr_init.3 | 48 + upstream/opensuse-tumbleweed/man3/pthread_create.3 | 49 +- upstream/opensuse-tumbleweed/man3/pthread_detach.3 | 15 +- upstream/opensuse-tumbleweed/man3/pthread_equal.3 | 5 +- upstream/opensuse-tumbleweed/man3/pthread_exit.3 | 15 +- .../man3/pthread_getattr_default_np.3 | 13 +- .../opensuse-tumbleweed/man3/pthread_getattr_np.3 | 31 +- .../man3/pthread_getcpuclockid.3 | 7 +- upstream/opensuse-tumbleweed/man3/pthread_join.3 | 17 +- .../opensuse-tumbleweed/man3/pthread_key_create.3 | 181 +++ upstream/opensuse-tumbleweed/man3/pthread_kill.3 | 13 +- .../man3/pthread_kill_other_threads_np.3 | 5 +- .../man3/pthread_mutex_consistent.3 | 14 +- .../opensuse-tumbleweed/man3/pthread_mutex_init.3 | 244 +++ .../man3/pthread_mutexattr_getpshared.3 | 12 +- .../man3/pthread_mutexattr_init.3 | 10 +- .../man3/pthread_mutexattr_setkind_np.3 | 55 + .../man3/pthread_mutexattr_setrobust.3 | 26 +- upstream/opensuse-tumbleweed/man3/pthread_once.3 | 44 + .../man3/pthread_rwlockattr_setkind_np.3 | 10 +- upstream/opensuse-tumbleweed/man3/pthread_self.3 | 11 +- .../man3/pthread_setaffinity_np.3 | 19 +- .../man3/pthread_setcancelstate.3 | 17 +- .../man3/pthread_setconcurrency.3 | 17 +- .../opensuse-tumbleweed/man3/pthread_setname_np.3 | 15 +- .../man3/pthread_setschedparam.3 | 36 +- .../man3/pthread_setschedprio.3 | 7 +- .../opensuse-tumbleweed/man3/pthread_sigmask.3 | 15 +- .../opensuse-tumbleweed/man3/pthread_sigqueue.3 | 11 +- .../opensuse-tumbleweed/man3/pthread_spin_init.3 | 24 +- .../opensuse-tumbleweed/man3/pthread_spin_lock.3 | 20 +- .../opensuse-tumbleweed/man3/pthread_testcancel.3 | 7 +- .../opensuse-tumbleweed/man3/pthread_tryjoin_np.3 | 15 +- upstream/opensuse-tumbleweed/man3/pthread_yield.3 | 7 +- upstream/opensuse-tumbleweed/man3/ptsname.3 | 19 +- upstream/opensuse-tumbleweed/man3/putenv.3 | 25 +- upstream/opensuse-tumbleweed/man3/putgrent.3 | 9 +- upstream/opensuse-tumbleweed/man3/putpwent.3 | 13 +- upstream/opensuse-tumbleweed/man3/puts.3 | 21 +- upstream/opensuse-tumbleweed/man3/putwchar.3 | 9 +- upstream/opensuse-tumbleweed/man3/qecvt.3 | 11 +- upstream/opensuse-tumbleweed/man3/qsort.3 | 19 +- upstream/opensuse-tumbleweed/man3/raise.3 | 15 +- upstream/opensuse-tumbleweed/man3/rand.3 | 27 +- upstream/opensuse-tumbleweed/man3/random.3 | 23 +- upstream/opensuse-tumbleweed/man3/random_r.3 | 19 +- upstream/opensuse-tumbleweed/man3/rcmd.3 | 33 +- upstream/opensuse-tumbleweed/man3/re_comp.3 | 11 +- upstream/opensuse-tumbleweed/man3/readdir.3 | 31 +- upstream/opensuse-tumbleweed/man3/readdir_r.3 | 15 +- upstream/opensuse-tumbleweed/man3/realpath.3 | 25 +- upstream/opensuse-tumbleweed/man3/recno.3 | 20 +- upstream/opensuse-tumbleweed/man3/refresh.3ncurses | 8 +- upstream/opensuse-tumbleweed/man3/regex.3 | 37 +- upstream/opensuse-tumbleweed/man3/remainder.3 | 33 +- upstream/opensuse-tumbleweed/man3/remove.3 | 13 +- upstream/opensuse-tumbleweed/man3/remquo.3 | 25 +- .../opensuse-tumbleweed/man3/requestname.3form | 6 +- .../opensuse-tumbleweed/man3/requestname.3menu | 6 +- .../opensuse-tumbleweed/man3/resizeterm.3ncurses | 6 +- upstream/opensuse-tumbleweed/man3/resolver.3 | 71 +- upstream/opensuse-tumbleweed/man3/rewinddir.3 | 5 +- upstream/opensuse-tumbleweed/man3/rexec.3 | 17 +- upstream/opensuse-tumbleweed/man3/rint.3 | 21 +- upstream/opensuse-tumbleweed/man3/round.3 | 15 +- upstream/opensuse-tumbleweed/man3/roundup.3 | 12 +- upstream/opensuse-tumbleweed/man3/rpc.3 | 151 +- upstream/opensuse-tumbleweed/man3/rpmatch.3 | 19 +- upstream/opensuse-tumbleweed/man3/rtime.3 | 21 +- upstream/opensuse-tumbleweed/man3/rtnetlink.3 | 26 +- upstream/opensuse-tumbleweed/man3/scalb.3 | 31 +- upstream/opensuse-tumbleweed/man3/scalbln.3 | 29 +- upstream/opensuse-tumbleweed/man3/scandir.3 | 35 +- upstream/opensuse-tumbleweed/man3/scanf.3 | 38 +- upstream/opensuse-tumbleweed/man3/scanw.3ncurses | 31 +- upstream/opensuse-tumbleweed/man3/sched_getcpu.3 | 17 +- .../opensuse-tumbleweed/man3/scr_dump.3ncurses | 13 +- upstream/opensuse-tumbleweed/man3/scroll.3ncurses | 17 +- upstream/opensuse-tumbleweed/man3/sd-bus-errors.3 | 258 --- upstream/opensuse-tumbleweed/man3/sd-bus.3 | 207 --- upstream/opensuse-tumbleweed/man3/sd-daemon.3 | 117 -- upstream/opensuse-tumbleweed/man3/sd-device.3 | 74 - upstream/opensuse-tumbleweed/man3/sd-event.3 | 222 --- upstream/opensuse-tumbleweed/man3/sd-hwdb.3 | 64 - upstream/opensuse-tumbleweed/man3/sd-id128.3 | 332 ---- upstream/opensuse-tumbleweed/man3/sd-journal.3 | 115 -- upstream/opensuse-tumbleweed/man3/sd-login.3 | 188 --- upstream/opensuse-tumbleweed/man3/sd_booted.3 | 52 - .../opensuse-tumbleweed/man3/sd_bus_add_match.3 | 136 -- .../man3/sd_bus_add_node_enumerator.3 | 116 -- .../opensuse-tumbleweed/man3/sd_bus_add_object.3 | 721 --------- .../man3/sd_bus_add_object_manager.3 | 120 -- .../opensuse-tumbleweed/man3/sd_bus_attach_event.3 | 107 -- upstream/opensuse-tumbleweed/man3/sd_bus_call.3 | 204 --- .../opensuse-tumbleweed/man3/sd_bus_call_method.3 | 155 -- .../opensuse-tumbleweed/man3/sd_bus_can_send.3 | 87 - upstream/opensuse-tumbleweed/man3/sd_bus_close.3 | 95 -- .../man3/sd_bus_creds_get_pid.3 | 331 ---- .../man3/sd_bus_creds_new_from_pid.3 | 264 --- upstream/opensuse-tumbleweed/man3/sd_bus_default.3 | 260 --- .../opensuse-tumbleweed/man3/sd_bus_emit_signal.3 | 202 --- .../man3/sd_bus_enqueue_for_read.3 | 66 - upstream/opensuse-tumbleweed/man3/sd_bus_error.3 | 482 ------ .../man3/sd_bus_error_add_map.3 | 117 -- .../man3/sd_bus_get_current_handler.3 | 72 - upstream/opensuse-tumbleweed/man3/sd_bus_get_fd.3 | 152 -- .../man3/sd_bus_get_n_queued_read.3 | 69 - .../man3/sd_bus_get_name_creds.3 | 106 -- .../man3/sd_bus_get_name_machine_id.3 | 86 - .../man3/sd_bus_interface_name_is_valid.3 | 82 - upstream/opensuse-tumbleweed/man3/sd_bus_is_open.3 | 95 -- .../opensuse-tumbleweed/man3/sd_bus_list_names.3 | 118 -- .../man3/sd_bus_message_append.3 | 497 ------ .../man3/sd_bus_message_append_array.3 | 180 --- .../man3/sd_bus_message_append_basic.3 | 301 ---- .../man3/sd_bus_message_append_string_memfd.3 | 142 -- .../man3/sd_bus_message_append_strv.3 | 108 -- .../man3/sd_bus_message_at_end.3 | 85 - .../opensuse-tumbleweed/man3/sd_bus_message_copy.3 | 102 -- .../opensuse-tumbleweed/man3/sd_bus_message_dump.3 | 109 -- .../man3/sd_bus_message_get_cookie.3 | 78 - .../man3/sd_bus_message_get_monotonic_usec.3 | 101 -- .../man3/sd_bus_message_get_signature.3 | 101 -- .../man3/sd_bus_message_get_type.3 | 142 -- .../opensuse-tumbleweed/man3/sd_bus_message_new.3 | 188 --- .../man3/sd_bus_message_new_method_call.3 | 236 --- .../man3/sd_bus_message_new_method_error.3 | 178 -- .../man3/sd_bus_message_new_signal.3 | 144 -- .../man3/sd_bus_message_open_container.3 | 262 --- .../opensuse-tumbleweed/man3/sd_bus_message_read.3 | 500 ------ .../man3/sd_bus_message_read_array.3 | 86 - .../man3/sd_bus_message_read_basic.3 | 253 --- .../man3/sd_bus_message_read_strv.3 | 88 - .../man3/sd_bus_message_rewind.3 | 80 - .../opensuse-tumbleweed/man3/sd_bus_message_seal.3 | 97 -- .../man3/sd_bus_message_sensitive.3 | 69 - .../man3/sd_bus_message_set_destination.3 | 122 -- .../man3/sd_bus_message_set_expect_reply.3 | 147 -- .../opensuse-tumbleweed/man3/sd_bus_message_skip.3 | 97 -- .../man3/sd_bus_message_verify_type.3 | 103 -- .../man3/sd_bus_negotiate_fds.3 | 123 -- upstream/opensuse-tumbleweed/man3/sd_bus_new.3 | 185 --- .../opensuse-tumbleweed/man3/sd_bus_path_encode.3 | 105 -- upstream/opensuse-tumbleweed/man3/sd_bus_process.3 | 122 -- .../man3/sd_bus_query_sender_creds.3 | 122 -- .../man3/sd_bus_reply_method_error.3 | 151 -- .../man3/sd_bus_reply_method_return.3 | 110 -- .../opensuse-tumbleweed/man3/sd_bus_request_name.3 | 165 -- upstream/opensuse-tumbleweed/man3/sd_bus_send.3 | 158 -- .../opensuse-tumbleweed/man3/sd_bus_set_address.3 | 213 --- .../man3/sd_bus_set_close_on_exit.3 | 84 - .../man3/sd_bus_set_connected_signal.3 | 98 -- .../man3/sd_bus_set_description.3 | 220 --- .../man3/sd_bus_set_exit_on_disconnect.3 | 100 -- upstream/opensuse-tumbleweed/man3/sd_bus_set_fd.3 | 102 -- .../man3/sd_bus_set_method_call_timeout.3 | 94 -- .../opensuse-tumbleweed/man3/sd_bus_set_property.3 | 113 -- .../opensuse-tumbleweed/man3/sd_bus_set_sender.3 | 82 - .../opensuse-tumbleweed/man3/sd_bus_set_server.3 | 163 -- .../man3/sd_bus_set_watch_bind.3 | 95 -- .../opensuse-tumbleweed/man3/sd_bus_slot_get_bus.3 | 83 - .../opensuse-tumbleweed/man3/sd_bus_slot_ref.3 | 106 -- .../man3/sd_bus_slot_set_description.3 | 88 - .../man3/sd_bus_slot_set_destroy_callback.3 | 118 -- .../man3/sd_bus_slot_set_floating.3 | 97 -- .../man3/sd_bus_slot_set_userdata.3 | 82 - upstream/opensuse-tumbleweed/man3/sd_bus_start.3 | 112 -- .../man3/sd_bus_track_add_name.3 | 183 --- .../opensuse-tumbleweed/man3/sd_bus_track_new.3 | 204 --- upstream/opensuse-tumbleweed/man3/sd_bus_wait.3 | 101 -- .../man3/sd_device_get_syspath.3 | 157 -- upstream/opensuse-tumbleweed/man3/sd_device_ref.3 | 99 -- .../opensuse-tumbleweed/man3/sd_event_add_child.3 | 332 ---- .../opensuse-tumbleweed/man3/sd_event_add_defer.3 | 163 -- .../man3/sd_event_add_inotify.3 | 273 ---- .../opensuse-tumbleweed/man3/sd_event_add_io.3 | 241 --- .../man3/sd_event_add_memory_pressure.3 | 317 ---- .../opensuse-tumbleweed/man3/sd_event_add_signal.3 | 183 --- .../opensuse-tumbleweed/man3/sd_event_add_time.3 | 254 --- upstream/opensuse-tumbleweed/man3/sd_event_exit.3 | 124 -- .../opensuse-tumbleweed/man3/sd_event_get_fd.3 | 148 -- upstream/opensuse-tumbleweed/man3/sd_event_new.3 | 186 --- upstream/opensuse-tumbleweed/man3/sd_event_now.3 | 98 -- upstream/opensuse-tumbleweed/man3/sd_event_run.3 | 145 -- .../man3/sd_event_set_signal_exit.3 | 86 - .../man3/sd_event_set_watchdog.3 | 117 -- .../man3/sd_event_source_get_event.3 | 69 - .../man3/sd_event_source_get_pending.3 | 114 -- .../man3/sd_event_source_set_description.3 | 120 -- .../man3/sd_event_source_set_destroy_callback.3 | 102 -- .../man3/sd_event_source_set_enabled.3 | 152 -- .../man3/sd_event_source_set_exit_on_failure.3 | 89 - .../man3/sd_event_source_set_floating.3 | 95 -- .../man3/sd_event_source_set_prepare.3 | 113 -- .../man3/sd_event_source_set_priority.3 | 125 -- .../man3/sd_event_source_set_ratelimit.3 | 127 -- .../man3/sd_event_source_set_userdata.3 | 80 - .../man3/sd_event_source_unref.3 | 129 -- upstream/opensuse-tumbleweed/man3/sd_event_wait.3 | 284 ---- upstream/opensuse-tumbleweed/man3/sd_get_seats.3 | 95 -- upstream/opensuse-tumbleweed/man3/sd_hwdb_get.3 | 177 -- upstream/opensuse-tumbleweed/man3/sd_hwdb_new.3 | 116 -- .../man3/sd_id128_get_machine.3 | 257 --- .../opensuse-tumbleweed/man3/sd_id128_randomize.3 | 79 - .../opensuse-tumbleweed/man3/sd_id128_to_string.3 | 135 -- upstream/opensuse-tumbleweed/man3/sd_is_fifo.3 | 162 -- .../man3/sd_journal_add_match.3 | 151 -- .../man3/sd_journal_enumerate_fields.3 | 119 -- .../man3/sd_journal_get_catalog.3 | 88 - .../man3/sd_journal_get_cursor.3 | 72 - .../man3/sd_journal_get_cutoff_realtime_usec.3 | 87 - .../opensuse-tumbleweed/man3/sd_journal_get_data.3 | 204 --- .../opensuse-tumbleweed/man3/sd_journal_get_fd.3 | 340 ---- .../man3/sd_journal_get_realtime_usec.3 | 79 - .../man3/sd_journal_get_seqnum.3 | 87 - .../man3/sd_journal_get_usage.3 | 54 - .../man3/sd_journal_has_runtime_files.3 | 59 - .../opensuse-tumbleweed/man3/sd_journal_next.3 | 165 -- .../opensuse-tumbleweed/man3/sd_journal_open.3 | 182 --- .../opensuse-tumbleweed/man3/sd_journal_print.3 | 221 --- .../man3/sd_journal_query_unique.3 | 203 --- .../man3/sd_journal_seek_head.3 | 91 -- .../man3/sd_journal_stream_fd.3 | 129 -- upstream/opensuse-tumbleweed/man3/sd_listen_fds.3 | 213 --- .../man3/sd_login_monitor_new.3 | 222 --- .../man3/sd_machine_get_class.3 | 96 -- upstream/opensuse-tumbleweed/man3/sd_notify.3 | 471 ------ upstream/opensuse-tumbleweed/man3/sd_path_lookup.3 | 251 --- .../man3/sd_pid_get_owner_uid.3 | 211 --- .../opensuse-tumbleweed/man3/sd_seat_get_active.3 | 123 -- .../man3/sd_session_is_active.3 | 235 --- .../opensuse-tumbleweed/man3/sd_uid_get_state.3 | 151 -- .../opensuse-tumbleweed/man3/sd_watchdog_enabled.3 | 118 -- upstream/opensuse-tumbleweed/man3/seekdir.3 | 9 +- upstream/opensuse-tumbleweed/man3/sem_close.3 | 5 +- upstream/opensuse-tumbleweed/man3/sem_destroy.3 | 11 +- upstream/opensuse-tumbleweed/man3/sem_getvalue.3 | 7 +- upstream/opensuse-tumbleweed/man3/sem_init.3 | 15 +- upstream/opensuse-tumbleweed/man3/sem_open.3 | 9 +- upstream/opensuse-tumbleweed/man3/sem_post.3 | 5 +- upstream/opensuse-tumbleweed/man3/sem_unlink.3 | 5 +- upstream/opensuse-tumbleweed/man3/sem_wait.3 | 19 +- upstream/opensuse-tumbleweed/man3/setaliasent.3 | 29 +- upstream/opensuse-tumbleweed/man3/setbuf.3 | 33 +- upstream/opensuse-tumbleweed/man3/setenv.3 | 13 +- upstream/opensuse-tumbleweed/man3/setjmp.3 | 35 +- upstream/opensuse-tumbleweed/man3/setlocale.3 | 37 +- upstream/opensuse-tumbleweed/man3/setlogmask.3 | 17 +- upstream/opensuse-tumbleweed/man3/setnetgrent.3 | 18 +- upstream/opensuse-tumbleweed/man3/shm_open.3 | 56 +- upstream/opensuse-tumbleweed/man3/siginterrupt.3 | 13 +- upstream/opensuse-tumbleweed/man3/signbit.3 | 15 +- upstream/opensuse-tumbleweed/man3/significand.3 | 16 +- upstream/opensuse-tumbleweed/man3/sigpause.3 | 15 +- upstream/opensuse-tumbleweed/man3/sigqueue.3 | 17 +- upstream/opensuse-tumbleweed/man3/sigset.3 | 39 +- upstream/opensuse-tumbleweed/man3/sigsetops.3 | 35 +- upstream/opensuse-tumbleweed/man3/sigvec.3 | 43 +- upstream/opensuse-tumbleweed/man3/sigwait.3 | 20 +- upstream/opensuse-tumbleweed/man3/sin.3 | 17 +- upstream/opensuse-tumbleweed/man3/sincos.3 | 13 +- upstream/opensuse-tumbleweed/man3/sinh.3 | 23 +- upstream/opensuse-tumbleweed/man3/sleep.3 | 7 +- upstream/opensuse-tumbleweed/man3/slist.3 | 58 +- upstream/opensuse-tumbleweed/man3/slk.3ncurses | 9 +- upstream/opensuse-tumbleweed/man3/sockatmark.3 | 17 +- .../opensuse-tumbleweed/man3/sp_funcs.3ncurses | 20 +- upstream/opensuse-tumbleweed/man3/spacing.3menu | 6 +- upstream/opensuse-tumbleweed/man3/sqrt.3 | 21 +- upstream/opensuse-tumbleweed/man3/sscanf.3 | 70 +- upstream/opensuse-tumbleweed/man3/stailq.3 | 64 +- upstream/opensuse-tumbleweed/man3/static_assert.3 | 14 +- upstream/opensuse-tumbleweed/man3/statvfs.3 | 25 +- upstream/opensuse-tumbleweed/man3/stdarg.3 | 33 +- upstream/opensuse-tumbleweed/man3/stdin.3 | 18 +- upstream/opensuse-tumbleweed/man3/stdio.3 | 30 +- upstream/opensuse-tumbleweed/man3/stdio_ext.3 | 25 +- upstream/opensuse-tumbleweed/man3/stpncpy.3 | 71 +- upstream/opensuse-tumbleweed/man3/strcasecmp.3 | 13 +- upstream/opensuse-tumbleweed/man3/strchr.3 | 21 +- upstream/opensuse-tumbleweed/man3/strcmp.3 | 21 +- upstream/opensuse-tumbleweed/man3/strcoll.3 | 5 +- upstream/opensuse-tumbleweed/man3/strcpy.3 | 19 +- upstream/opensuse-tumbleweed/man3/strdup.3 | 19 +- upstream/opensuse-tumbleweed/man3/strerror.3 | 68 +- upstream/opensuse-tumbleweed/man3/strfmon.3 | 27 +- upstream/opensuse-tumbleweed/man3/strfromd.3 | 40 +- upstream/opensuse-tumbleweed/man3/strfry.3 | 5 +- upstream/opensuse-tumbleweed/man3/strftime.3 | 57 +- upstream/opensuse-tumbleweed/man3/string.3 | 13 +- upstream/opensuse-tumbleweed/man3/strlen.3 | 5 +- upstream/opensuse-tumbleweed/man3/strncat.3 | 67 +- upstream/opensuse-tumbleweed/man3/strnlen.3 | 9 +- upstream/opensuse-tumbleweed/man3/strpbrk.3 | 5 +- upstream/opensuse-tumbleweed/man3/strptime.3 | 39 +- upstream/opensuse-tumbleweed/man3/strsep.3 | 13 +- upstream/opensuse-tumbleweed/man3/strsignal.3 | 23 +- upstream/opensuse-tumbleweed/man3/strspn.3 | 9 +- upstream/opensuse-tumbleweed/man3/strstr.3 | 13 +- upstream/opensuse-tumbleweed/man3/strtod.3 | 27 +- upstream/opensuse-tumbleweed/man3/strtoimax.3 | 5 +- upstream/opensuse-tumbleweed/man3/strtok.3 | 31 +- upstream/opensuse-tumbleweed/man3/strtol.3 | 64 +- upstream/opensuse-tumbleweed/man3/strtoul.3 | 35 +- upstream/opensuse-tumbleweed/man3/strverscmp.3 | 11 +- upstream/opensuse-tumbleweed/man3/strxfrm.3 | 5 +- upstream/opensuse-tumbleweed/man3/swab.3 | 7 +- upstream/opensuse-tumbleweed/man3/sysconf.3 | 21 +- upstream/opensuse-tumbleweed/man3/syslog.3 | 33 +- upstream/opensuse-tumbleweed/man3/system.3 | 35 +- upstream/opensuse-tumbleweed/man3/sysv_signal.3 | 13 +- upstream/opensuse-tumbleweed/man3/tailq.3 | 70 +- upstream/opensuse-tumbleweed/man3/tan.3 | 19 +- upstream/opensuse-tumbleweed/man3/tanh.3 | 19 +- upstream/opensuse-tumbleweed/man3/tcgetpgrp.3 | 13 +- upstream/opensuse-tumbleweed/man3/tcgetsid.3 | 7 +- upstream/opensuse-tumbleweed/man3/telldir.3 | 13 +- upstream/opensuse-tumbleweed/man3/tempnam.3 | 25 +- .../opensuse-tumbleweed/man3/termattrs.3ncurses | 20 +- upstream/opensuse-tumbleweed/man3/termcap.3ncurses | 12 +- .../opensuse-tumbleweed/man3/terminfo.3ncurses | 78 +- .../man3/terminfo_variables.3ncurses | 6 +- upstream/opensuse-tumbleweed/man3/termios.3 | 89 +- upstream/opensuse-tumbleweed/man3/textdomain.3 | 2 +- upstream/opensuse-tumbleweed/man3/tgamma.3 | 45 +- upstream/opensuse-tumbleweed/man3/threads.3ncurses | 4 +- upstream/opensuse-tumbleweed/man3/timegm.3 | 11 +- upstream/opensuse-tumbleweed/man3/timeradd.3 | 26 +- upstream/opensuse-tumbleweed/man3/tmpfile.3 | 5 +- upstream/opensuse-tumbleweed/man3/tmpnam.3 | 19 +- upstream/opensuse-tumbleweed/man3/toascii.3 | 9 +- upstream/opensuse-tumbleweed/man3/touch.3ncurses | 14 +- upstream/opensuse-tumbleweed/man3/toupper.3 | 29 +- upstream/opensuse-tumbleweed/man3/towctrans.3 | 7 +- upstream/opensuse-tumbleweed/man3/towlower.3 | 15 +- upstream/opensuse-tumbleweed/man3/towupper.3 | 15 +- upstream/opensuse-tumbleweed/man3/trace.3ncurses | 68 +- upstream/opensuse-tumbleweed/man3/trunc.3 | 11 +- upstream/opensuse-tumbleweed/man3/tsearch.3 | 35 +- upstream/opensuse-tumbleweed/man3/ttyname.3 | 5 +- upstream/opensuse-tumbleweed/man3/ttyslot.3 | 23 +- upstream/opensuse-tumbleweed/man3/tzset.3 | 51 +- upstream/opensuse-tumbleweed/man3/ualarm.3 | 23 +- .../man3/udev_device_get_syspath.3 | 106 -- .../opensuse-tumbleweed/man3/udev_device_has_tag.3 | 117 -- .../man3/udev_device_new_from_syspath.3 | 160 -- .../man3/udev_enumerate_add_match_subsystem.3 | 72 - .../opensuse-tumbleweed/man3/udev_enumerate_new.3 | 57 - .../man3/udev_enumerate_scan_devices.3 | 67 - .../opensuse-tumbleweed/man3/udev_list_entry.3 | 62 - .../man3/udev_monitor_filter_update.3 | 57 - .../man3/udev_monitor_new_from_netlink.3 | 57 - .../man3/udev_monitor_receive_device.3 | 70 - upstream/opensuse-tumbleweed/man3/udev_new.3 | 58 - upstream/opensuse-tumbleweed/man3/ulimit.3 | 7 +- upstream/opensuse-tumbleweed/man3/undocumented.3 | 2 +- upstream/opensuse-tumbleweed/man3/ungetwc.3 | 13 +- upstream/opensuse-tumbleweed/man3/unlocked_stdio.3 | 29 +- upstream/opensuse-tumbleweed/man3/unlockpt.3 | 11 +- upstream/opensuse-tumbleweed/man3/updwtmp.3 | 11 +- upstream/opensuse-tumbleweed/man3/uselocale.3 | 10 +- upstream/opensuse-tumbleweed/man3/userptr.3form | 6 +- upstream/opensuse-tumbleweed/man3/userptr.3menu | 6 +- upstream/opensuse-tumbleweed/man3/usleep.3 | 13 +- upstream/opensuse-tumbleweed/man3/util.3ncurses | 20 +- upstream/opensuse-tumbleweed/man3/wcpcpy.3 | 13 +- upstream/opensuse-tumbleweed/man3/wcpncpy.3 | 13 +- upstream/opensuse-tumbleweed/man3/wcrtomb.3 | 17 +- upstream/opensuse-tumbleweed/man3/wcscasecmp.3 | 9 +- upstream/opensuse-tumbleweed/man3/wcscat.3 | 9 +- upstream/opensuse-tumbleweed/man3/wcschr.3 | 5 +- upstream/opensuse-tumbleweed/man3/wcscmp.3 | 5 +- upstream/opensuse-tumbleweed/man3/wcscpy.3 | 9 +- upstream/opensuse-tumbleweed/man3/wcscspn.3 | 5 +- upstream/opensuse-tumbleweed/man3/wcsdup.3 | 11 +- upstream/opensuse-tumbleweed/man3/wcslen.3 | 5 +- upstream/opensuse-tumbleweed/man3/wcsncasecmp.3 | 9 +- upstream/opensuse-tumbleweed/man3/wcsncat.3 | 9 +- upstream/opensuse-tumbleweed/man3/wcsncmp.3 | 5 +- upstream/opensuse-tumbleweed/man3/wcsncpy.3 | 9 +- upstream/opensuse-tumbleweed/man3/wcsnlen.3 | 9 +- upstream/opensuse-tumbleweed/man3/wcsnrtombs.3 | 19 +- upstream/opensuse-tumbleweed/man3/wcspbrk.3 | 5 +- upstream/opensuse-tumbleweed/man3/wcsrchr.3 | 5 +- upstream/opensuse-tumbleweed/man3/wcsrtombs.3 | 13 +- upstream/opensuse-tumbleweed/man3/wcsspn.3 | 5 +- upstream/opensuse-tumbleweed/man3/wcsstr.3 | 7 +- upstream/opensuse-tumbleweed/man3/wcstoimax.3 | 5 +- upstream/opensuse-tumbleweed/man3/wcstok.3 | 9 +- upstream/opensuse-tumbleweed/man3/wcstombs.3 | 11 +- upstream/opensuse-tumbleweed/man3/wcswidth.3 | 5 +- upstream/opensuse-tumbleweed/man3/wctob.3 | 9 +- upstream/opensuse-tumbleweed/man3/wctomb.3 | 11 +- upstream/opensuse-tumbleweed/man3/wctrans.3 | 9 +- upstream/opensuse-tumbleweed/man3/wctype.3 | 9 +- upstream/opensuse-tumbleweed/man3/wcwidth.3 | 9 +- upstream/opensuse-tumbleweed/man3/win.3form | 6 +- upstream/opensuse-tumbleweed/man3/win.3menu | 6 +- upstream/opensuse-tumbleweed/man3/window.3ncurses | 8 +- upstream/opensuse-tumbleweed/man3/wmemchr.3 | 5 +- upstream/opensuse-tumbleweed/man3/wmemcmp.3 | 5 +- upstream/opensuse-tumbleweed/man3/wmemcpy.3 | 9 +- upstream/opensuse-tumbleweed/man3/wmemmove.3 | 7 +- upstream/opensuse-tumbleweed/man3/wmemset.3 | 5 +- upstream/opensuse-tumbleweed/man3/wordexp.3 | 20 +- upstream/opensuse-tumbleweed/man3/wprintf.3 | 23 +- upstream/opensuse-tumbleweed/man3/wresize.3ncurses | 6 +- upstream/opensuse-tumbleweed/man3/xcrypt.3 | 13 +- upstream/opensuse-tumbleweed/man3/xdr.3 | 79 +- upstream/opensuse-tumbleweed/man3/y0.3 | 35 +- 882 files changed, 9851 insertions(+), 33457 deletions(-) create mode 100644 upstream/opensuse-tumbleweed/man3/TIMEVAL_TO_TIMESPEC.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/libsystemd.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/libudev.3 create mode 100644 upstream/opensuse-tumbleweed/man3/pthread_cond_init.3 create mode 100644 upstream/opensuse-tumbleweed/man3/pthread_condattr_init.3 create mode 100644 upstream/opensuse-tumbleweed/man3/pthread_key_create.3 create mode 100644 upstream/opensuse-tumbleweed/man3/pthread_mutex_init.3 create mode 100644 upstream/opensuse-tumbleweed/man3/pthread_mutexattr_setkind_np.3 create mode 100644 upstream/opensuse-tumbleweed/man3/pthread_once.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd-bus-errors.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd-bus.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd-daemon.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd-device.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd-event.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd-hwdb.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd-id128.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd-journal.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd-login.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_booted.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_add_match.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_add_node_enumerator.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_add_object.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_add_object_manager.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_attach_event.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_call.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_call_method.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_can_send.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_close.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_creds_get_pid.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_creds_new_from_pid.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_default.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_emit_signal.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_enqueue_for_read.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_error.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_error_add_map.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_get_current_handler.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_get_fd.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_get_n_queued_read.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_get_name_creds.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_get_name_machine_id.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_interface_name_is_valid.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_is_open.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_list_names.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_append.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_append_array.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_append_basic.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_append_string_memfd.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_append_strv.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_at_end.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_copy.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_dump.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_get_cookie.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_get_monotonic_usec.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_get_signature.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_get_type.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_new.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_new_method_call.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_new_method_error.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_new_signal.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_open_container.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_read.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_read_array.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_read_basic.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_read_strv.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_rewind.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_seal.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_sensitive.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_set_destination.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_set_expect_reply.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_skip.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_message_verify_type.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_negotiate_fds.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_new.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_path_encode.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_process.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_query_sender_creds.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_reply_method_error.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_reply_method_return.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_request_name.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_send.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_set_address.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_set_close_on_exit.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_set_connected_signal.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_set_description.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_set_exit_on_disconnect.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_set_fd.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_set_method_call_timeout.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_set_property.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_set_sender.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_set_server.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_set_watch_bind.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_slot_get_bus.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_slot_ref.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_slot_set_description.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_slot_set_destroy_callback.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_slot_set_floating.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_slot_set_userdata.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_start.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_track_add_name.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_track_new.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_bus_wait.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_device_get_syspath.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_device_ref.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_add_child.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_add_defer.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_add_inotify.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_add_io.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_add_memory_pressure.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_add_signal.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_add_time.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_exit.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_get_fd.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_new.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_now.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_run.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_set_signal_exit.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_set_watchdog.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_source_get_event.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_source_get_pending.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_source_set_description.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_source_set_destroy_callback.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_source_set_enabled.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_source_set_exit_on_failure.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_source_set_floating.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_source_set_prepare.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_source_set_priority.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_source_set_ratelimit.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_source_set_userdata.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_source_unref.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_event_wait.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_get_seats.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_hwdb_get.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_hwdb_new.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_id128_get_machine.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_id128_randomize.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_id128_to_string.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_is_fifo.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_journal_add_match.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_journal_enumerate_fields.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_journal_get_catalog.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_journal_get_cursor.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_journal_get_cutoff_realtime_usec.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_journal_get_data.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_journal_get_fd.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_journal_get_realtime_usec.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_journal_get_seqnum.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_journal_get_usage.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_journal_has_runtime_files.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_journal_next.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_journal_open.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_journal_print.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_journal_query_unique.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_journal_seek_head.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_journal_stream_fd.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_listen_fds.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_login_monitor_new.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_machine_get_class.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_notify.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_path_lookup.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_pid_get_owner_uid.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_seat_get_active.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_session_is_active.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_uid_get_state.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/sd_watchdog_enabled.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/udev_device_get_syspath.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/udev_device_has_tag.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/udev_device_new_from_syspath.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/udev_enumerate_add_match_subsystem.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/udev_enumerate_new.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/udev_enumerate_scan_devices.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/udev_list_entry.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/udev_monitor_filter_update.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/udev_monitor_new_from_netlink.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/udev_monitor_receive_device.3 delete mode 100644 upstream/opensuse-tumbleweed/man3/udev_new.3 (limited to 'upstream/opensuse-tumbleweed/man3') diff --git a/upstream/opensuse-tumbleweed/man3/CPU_SET.3 b/upstream/opensuse-tumbleweed/man3/CPU_SET.3 index aa5d71d7..b937a8ea 100644 --- a/upstream/opensuse-tumbleweed/man3/CPU_SET.3 +++ b/upstream/opensuse-tumbleweed/man3/CPU_SET.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH CPU_SET 3 2023-05-03 "Linux man-pages 6.05.01" +.TH CPU_SET 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME CPU_SET, CPU_CLR, CPU_ISSET, CPU_ZERO, CPU_COUNT, CPU_AND, CPU_OR, CPU_XOR, CPU_EQUAL, @@ -19,43 +19,43 @@ Standard C library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "void CPU_ZERO(cpu_set_t *" set ); -.PP +.P .BI "void CPU_SET(int " cpu ", cpu_set_t *" set ); .BI "void CPU_CLR(int " cpu ", cpu_set_t *" set ); .BI "int CPU_ISSET(int " cpu ", cpu_set_t *" set ); -.PP +.P .BI "int CPU_COUNT(cpu_set_t *" set ); -.PP +.P .BI "void CPU_AND(cpu_set_t *" destset , .BI " cpu_set_t *" srcset1 ", cpu_set_t *" srcset2 ); .BI "void CPU_OR(cpu_set_t *" destset , .BI " cpu_set_t *" srcset1 ", cpu_set_t *" srcset2 ); .BI "void CPU_XOR(cpu_set_t *" destset , .BI " cpu_set_t *" srcset1 ", cpu_set_t *" srcset2 ); -.PP +.P .BI "int CPU_EQUAL(cpu_set_t *" set1 ", cpu_set_t *" set2 ); -.PP +.P .BI "cpu_set_t *CPU_ALLOC(int " num_cpus ); .BI "void CPU_FREE(cpu_set_t *" set ); .BI "size_t CPU_ALLOC_SIZE(int " num_cpus ); -.PP +.P .BI "void CPU_ZERO_S(size_t " setsize ", cpu_set_t *" set ); -.PP +.P .BI "void CPU_SET_S(int " cpu ", size_t " setsize ", cpu_set_t *" set ); .BI "void CPU_CLR_S(int " cpu ", size_t " setsize ", cpu_set_t *" set ); .BI "int CPU_ISSET_S(int " cpu ", size_t " setsize ", cpu_set_t *" set ); -.PP +.P .BI "int CPU_COUNT_S(size_t " setsize ", cpu_set_t *" set ); -.PP +.P .BI "void CPU_AND_S(size_t " setsize ", cpu_set_t *" destset , .BI " cpu_set_t *" srcset1 ", cpu_set_t *" srcset2 ); .BI "void CPU_OR_S(size_t " setsize ", cpu_set_t *" destset , .BI " cpu_set_t *" srcset1 ", cpu_set_t *" srcset2 ); .BI "void CPU_XOR_S(size_t " setsize ", cpu_set_t *" destset , .BI " cpu_set_t *" srcset1 ", cpu_set_t *" srcset2 ); -.PP +.P .BI "int CPU_EQUAL_S(size_t " setsize ", cpu_set_t *" set1 \ ", cpu_set_t *" set2 ); .fi @@ -66,14 +66,14 @@ data structure represents a set of CPUs. CPU sets are used by .BR sched_setaffinity (2) and similar interfaces. -.PP +.P The .I cpu_set_t data type is implemented as a bit mask. However, the data structure should be treated as opaque: all manipulation of CPU sets should be done via the macros described in this page. -.PP +.P The following macros are provided to operate on the CPU set .IR set : .TP @@ -103,12 +103,12 @@ is a member of .BR CPU_COUNT () Return the number of CPUs in .IR set . -.PP +.P Where a .I cpu argument is specified, it should not produce side effects, since the above macros may evaluate the argument more than once. -.PP +.P The first CPU on the system corresponds to a .I cpu value of 0, the next CPU corresponds to a @@ -122,7 +122,7 @@ The constant (currently 1024) specifies a value one greater than the maximum CPU number that can be stored in .IR cpu_set_t . -.PP +.P The following macros perform logical operations on CPU sets: .TP .BR CPU_AND () @@ -165,7 +165,7 @@ size CPU sets (e.g., to allocate sets larger than that defined by the standard .I cpu_set_t data type), glibc nowadays provides a set of macros to support this. -.PP +.P The following macros are used to allocate and deallocate CPU sets: .TP .BR CPU_ALLOC () @@ -186,7 +186,7 @@ macros described below. .BR CPU_FREE () Free a CPU set previously allocated by .BR CPU_ALLOC (). -.PP +.P The macros whose names end with "_S" are the analogs of the similarly named macros without the suffix. These macros perform the same tasks as their analogs, @@ -202,27 +202,27 @@ return nonzero if is in .IR set ; otherwise, it returns 0. -.PP +.P .BR CPU_COUNT () and .BR CPU_COUNT_S () return the number of CPUs in .IR set . -.PP +.P .BR CPU_EQUAL () and .BR CPU_EQUAL_S () return nonzero if the two CPU sets are equal; otherwise they return 0. -.PP +.P .BR CPU_ALLOC () returns a pointer on success, or NULL on failure. (Errors are as for .BR malloc (3).) -.PP +.P .BR CPU_ALLOC_SIZE () returns the number of bytes required to store a CPU set of the specified cardinality. -.PP +.P The other functions do not return a value. .SH STANDARDS Linux. @@ -234,10 +234,10 @@ The and .BR CPU_ISSET () macros were added in glibc 2.3.3. -.PP +.P .BR CPU_COUNT () first appeared in glibc 2.6. -.PP +.P .BR CPU_AND (), .BR CPU_OR (), .BR CPU_XOR (), @@ -258,14 +258,14 @@ first appeared in glibc 2.7. .SH NOTES To duplicate a CPU set, use .BR memcpy (3). -.PP +.P Since CPU sets are bit masks allocated in units of long words, the actual number of CPUs in a dynamically allocated CPU set will be rounded up to the next multiple of .IR "sizeof(unsigned long)" . An application should consider the contents of these extra bits to be undefined. -.PP +.P Notwithstanding the similarity in the names, note that the constant .B CPU_SETSIZE @@ -277,7 +277,7 @@ while the argument of the .BR CPU_*_S () macros is a size in bytes. -.PP +.P The data types for arguments and return values shown in the SYNOPSIS are hints what about is expected in each case. However, since these interfaces are implemented as macros, @@ -298,7 +298,7 @@ These bugs are fixed in glibc 2.9. .SH EXAMPLES The following program demonstrates the use of some of the macros used for dynamically allocated CPU sets. -.PP +.P .\" SRC BEGIN (CPU_SET.c) .EX #define _GNU_SOURCE diff --git a/upstream/opensuse-tumbleweed/man3/INFINITY.3 b/upstream/opensuse-tumbleweed/man3/INFINITY.3 index aa7ea0cc..334c79d3 100644 --- a/upstream/opensuse-tumbleweed/man3/INFINITY.3 +++ b/upstream/opensuse-tumbleweed/man3/INFINITY.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH INFINITY 3 2023-03-30 "Linux man-pages 6.05.01" +.TH INFINITY 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME INFINITY, NAN, HUGE_VAL, HUGE_VALF, HUGE_VALL \- floating-point constants .SH LIBRARY @@ -12,11 +12,11 @@ Math library .nf .BR "#define _ISOC99_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .B INFINITY -.PP +.P .B NAN -.PP +.P .B HUGE_VAL .B HUGE_VALF .B HUGE_VALL @@ -27,7 +27,7 @@ The macro expands to a .I float constant representing positive infinity. -.PP +.P The macro .B NAN expands to a @@ -42,7 +42,7 @@ The opposite is a .I signaling NaN. See IEC 60559:1989. -.PP +.P The macros .BR HUGE_VAL , .BR HUGE_VALF , @@ -58,7 +58,7 @@ that represent a large positive value, possibly positive infinity. C11. .SH HISTORY C99. -.PP +.P On a glibc system, the macro .B HUGE_VAL is always available. diff --git a/upstream/opensuse-tumbleweed/man3/MAX.3 b/upstream/opensuse-tumbleweed/man3/MAX.3 index fddf2208..e2905549 100644 --- a/upstream/opensuse-tumbleweed/man3/MAX.3 +++ b/upstream/opensuse-tumbleweed/man3/MAX.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH MAX 3 2023-05-03 "Linux man-pages 6.05.01" +.TH MAX 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME MAX, MIN \- maximum or minimum of two values .SH LIBRARY @@ -11,7 +11,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI MAX( a ", " b ); .BI MIN( a ", " b ); .fi @@ -35,9 +35,9 @@ you might prefer to use or .BR fmin (3), which can handle NaN. -.PP +.P The arguments may be evaluated more than once, or not at all. -.PP +.P Some UNIX systems might provide these macros in a different header, or not at all. .SH BUGS diff --git a/upstream/opensuse-tumbleweed/man3/MB_CUR_MAX.3 b/upstream/opensuse-tumbleweed/man3/MB_CUR_MAX.3 index c74d5637..3c6e34e2 100644 --- a/upstream/opensuse-tumbleweed/man3/MB_CUR_MAX.3 +++ b/upstream/opensuse-tumbleweed/man3/MB_CUR_MAX.3 @@ -9,7 +9,7 @@ .\" .\" Modified, aeb, 990824 .\" -.TH MB_CUR_MAX 3 2023-03-30 "Linux man-pages 6.05.01" +.TH MB_CUR_MAX 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME MB_CUR_MAX \- maximum length of a multibyte character in the current locale .SH LIBRARY diff --git a/upstream/opensuse-tumbleweed/man3/MB_LEN_MAX.3 b/upstream/opensuse-tumbleweed/man3/MB_LEN_MAX.3 index b58bdd53..a38d675d 100644 --- a/upstream/opensuse-tumbleweed/man3/MB_LEN_MAX.3 +++ b/upstream/opensuse-tumbleweed/man3/MB_LEN_MAX.3 @@ -9,7 +9,7 @@ .\" .\" Modified, aeb, 990824 .\" -.TH MB_LEN_MAX 3 2023-03-30 "Linux man-pages 6.05.01" +.TH MB_LEN_MAX 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME MB_LEN_MAX \- maximum multibyte length of a character across all locales .SH LIBRARY diff --git a/upstream/opensuse-tumbleweed/man3/TIMEVAL_TO_TIMESPEC.3 b/upstream/opensuse-tumbleweed/man3/TIMEVAL_TO_TIMESPEC.3 new file mode 100644 index 00000000..30f3ed13 --- /dev/null +++ b/upstream/opensuse-tumbleweed/man3/TIMEVAL_TO_TIMESPEC.3 @@ -0,0 +1,32 @@ +.\" Copyright (C) 2024 Alejandro Colomar +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.TH TIMEVAL_TO_TIMESPEC 3 2024-05-02 "Linux man-pages (unreleased)" +.SH NAME +TIMEVAL_TO_TIMESPEC, +TIMESPEC_TO_TIMEVAL +\- +convert between time structures +.SH SYNOPSIS +.nf +.B #define _GNU_SOURCE +.B #include +.P +.BI "void TIMEVAL_TO_TIMESPEC(const struct timeval *" tv ", struct timespec *" ts ); +.BI "void TIMESPEC_TO_TIMEVAL(struct timeval *" tv ", const struct timespec *" ts ); +.fi +.SH DESCRIPTION +These macros convert from a +.BR timeval (3type) +to a +.BR timespec (3type) +structure, +and vice versa, +respectively. +.P +This is especially useful for writing interfaces that receive a type, +but are implemented with calls to functions that receive the other one. +.SH STANDARDS +GNU, +BSD. diff --git a/upstream/opensuse-tumbleweed/man3/_Generic.3 b/upstream/opensuse-tumbleweed/man3/_Generic.3 index ef1e2a6b..f8e8b1bc 100644 --- a/upstream/opensuse-tumbleweed/man3/_Generic.3 +++ b/upstream/opensuse-tumbleweed/man3/_Generic.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH _Generic 3 2023-05-03 "Linux man-pages 6.05.01" +.TH _Generic 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME _Generic \- type-generic selection .SH SYNOPSIS @@ -18,10 +18,10 @@ that is compatible with the type of the controlling or .B default: if no type is compatible. -.PP +.P .I expression is not evaluated. -.PP +.P This is especially useful for writing type-generic macros, that will behave differently depending on the type of the argument. .SH STANDARDS @@ -44,7 +44,7 @@ seamlessly upgrading to the widest available type. #define my_imaxabs _Generic(INTMAX_C(0), \e long: labs, \e long long: llabs \e - /* long long long: lllabs */ \e +/* long long long: lllabs */ \e ) \& int diff --git a/upstream/opensuse-tumbleweed/man3/__ppc_get_timebase.3 b/upstream/opensuse-tumbleweed/man3/__ppc_get_timebase.3 index 7ec1e5a1..7a8064d2 100644 --- a/upstream/opensuse-tumbleweed/man3/__ppc_get_timebase.3 +++ b/upstream/opensuse-tumbleweed/man3/__ppc_get_timebase.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH __ppc_get_timebase 3 2023-05-03 "Linux man-pages 6.05.01" +.TH __ppc_get_timebase 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME __ppc_get_timebase, __ppc_get_timebase_freq \- get the current value of the Time Base Register on Power architecture and its frequency. @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B uint64_t __ppc_get_timebase(void); .B uint64_t __ppc_get_timebase_freq(void); .fi @@ -22,7 +22,7 @@ reads the current value of the Time Base Register and returns its value, while .BR __ppc_get_timebase_freq () returns the frequency in which the Time Base Register is updated. -.PP +.P The Time Base Register is a 64-bit register provided by Power Architecture processors. It stores a monotonically incremented value that is updated at a @@ -32,7 +32,7 @@ frequency. .BR __ppc_get_timebase () returns a 64-bit unsigned integer that represents the current value of the Time Base Register. -.PP +.P .BR __ppc_get_timebase_freq () returns a 64-bit unsigned integer that represents the frequency at which the Time Base Register is updated. diff --git a/upstream/opensuse-tumbleweed/man3/__ppc_set_ppr_med.3 b/upstream/opensuse-tumbleweed/man3/__ppc_set_ppr_med.3 index b3effadd..dbfdcedd 100644 --- a/upstream/opensuse-tumbleweed/man3/__ppc_set_ppr_med.3 +++ b/upstream/opensuse-tumbleweed/man3/__ppc_set_ppr_med.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH __ppc_set_ppr_med 3 2023-07-20 "Linux man-pages 6.05.01" +.TH __ppc_set_ppr_med 3 2024-05-02 "Linux man-pages (unreleased)" Programmer's Manual" .SH NAME __ppc_set_ppr_med, __ppc_set_ppr_very_low, __ppc_set_ppr_low, @@ -15,7 +15,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B void __ppc_set_ppr_med(void); .B void __ppc_set_ppr_very_low(void); .B void __ppc_set_ppr_low(void); @@ -26,7 +26,7 @@ Standard C library These functions provide access to the .I Program Priority Register (PPR) on the Power architecture. -.PP +.P The PPR is a 64-bit register that controls the program's priority. By adjusting the PPR value the programmer may improve system throughput by causing system resources to be used more @@ -49,7 +49,7 @@ sets the Program Priority Register value to .BR __ppc_set_ppr_med_low () sets the Program Priority Register value to .IR "medium low" . -.PP +.P The privileged state .I medium high may also be set during certain time intervals by problem-state (unprivileged) @@ -58,7 +58,7 @@ programs, with the following function: .BR __ppc_set_ppr_med_high () sets the Program Priority to .IR "medium high" . -.PP +.P If the program priority is medium high when the time interval expires or if an attempt is made to set the priority to medium high when it is not allowed, the priority is set to medium. @@ -80,7 +80,6 @@ T{ .BR __ppc_set_ppr_med_high () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH HISTORY @@ -110,5 +109,5 @@ Availability of these functions can be tested using .BR "#ifdef _ARCH_PWR8" . .SH SEE ALSO .BR __ppc_yield (3) -.PP +.P .I Power ISA, Book\~II - Section\ 3.1 (Program Priority Registers) diff --git a/upstream/opensuse-tumbleweed/man3/__ppc_yield.3 b/upstream/opensuse-tumbleweed/man3/__ppc_yield.3 index 465dd29d..55f37010 100644 --- a/upstream/opensuse-tumbleweed/man3/__ppc_yield.3 +++ b/upstream/opensuse-tumbleweed/man3/__ppc_yield.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH __ppc_yield 3 2023-07-20 "Linux man-pages 6.05.01" +.TH __ppc_yield 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME __ppc_yield, __ppc_mdoio, __ppc_mdoom \- Hint the processor to release shared resources @@ -13,7 +13,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B void __ppc_yield(void); .B void __ppc_mdoio(void); .B void __ppc_mdoom(void); @@ -24,18 +24,18 @@ provide hints about the usage of resources that are shared with other processors on the Power architecture. They can be used, for example, if a program waiting on a lock intends to divert the shared resources to be used by other processors. -.PP +.P .BR __ppc_yield () provides a hint that performance will probably be improved if shared resources dedicated to the executing processor are released for use by other processors. -.PP +.P .BR __ppc_mdoio () provides a hint that performance will probably be improved if shared resources dedicated to the executing processor are released until all outstanding storage accesses to caching-inhibited storage have been completed. -.PP +.P .BR __ppc_mdoom () provides a hint that performance will probably be improved if shared resources dedicated to the executing processor are released until all @@ -57,12 +57,11 @@ T{ .BR __ppc_mdoom () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH HISTORY glibc 2.18. .SH SEE ALSO .BR __ppc_set_ppr_med (3) -.PP +.P .I Power ISA, Book\~II - Section\~3.2 ("or" architecture) diff --git a/upstream/opensuse-tumbleweed/man3/__setfpucw.3 b/upstream/opensuse-tumbleweed/man3/__setfpucw.3 index 161bbf9c..0b0dd263 100644 --- a/upstream/opensuse-tumbleweed/man3/__setfpucw.3 +++ b/upstream/opensuse-tumbleweed/man3/__setfpucw.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH __setfpucw 3 2023-03-30 "Linux man-pages 6.05.01" +.TH __setfpucw 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME __setfpucw \- set FPU control word on i386 architecture (obsolete) .SH LIBRARY @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] void __setfpucw(unsigned short " control_word ); .fi .SH DESCRIPTION @@ -44,7 +44,7 @@ and FPU exception handling, like .BR fesetexceptflag (3), and .BR fetestexcept (3). -.PP +.P If direct access to the FPU control word is still needed, the .B _FPU_GETCW and @@ -54,7 +54,7 @@ macros from can be used. .SH EXAMPLES .B __setfpucw(0x1372) -.PP +.P Set FPU control word on the i386 architecture to .RS .PD 0 @@ -68,5 +68,5 @@ exceptions on overflow, zero divide and NaN .RE .SH SEE ALSO .BR feclearexcept (3) -.PP +.P .I diff --git a/upstream/opensuse-tumbleweed/man3/a64l.3 b/upstream/opensuse-tumbleweed/man3/a64l.3 index eec0f70d..9fe156aa 100644 --- a/upstream/opensuse-tumbleweed/man3/a64l.3 +++ b/upstream/opensuse-tumbleweed/man3/a64l.3 @@ -6,7 +6,7 @@ .\" .\" Corrected, aeb, 2002-05-30 .\" -.TH a64l 3 2023-07-20 "Linux man-pages 6.05.01" +.TH a64l 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME a64l, l64a \- convert between long and base-64 .SH LIBRARY @@ -15,16 +15,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "long a64l(const char *" str64 ); .BI "char *l64a(long " value ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR a64l (), .BR l64a (): .nf @@ -48,9 +48,9 @@ uses only the low order 32 bits of and .BR a64l () sign-extends its 32-bit result. -.PP +.P The 64 digits in the base-64 system are: -.PP +.P .RS .nf \&\[aq].\[aq] represents a 0 @@ -60,7 +60,7 @@ A-Z represent 12-37 a-z represent 38-63 .fi .RE -.PP +.P So 123 = 59*64\[ha]0 + 1*64\[ha]1 = "v/". .SH ATTRIBUTES For an explanation of the terms used in this section, see @@ -81,7 +81,6 @@ T{ .BR a64l () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -91,7 +90,7 @@ The value returned by .BR l64a () may be a pointer to a static buffer, possibly overwritten by later calls. -.PP +.P The behavior of .BR l64a () is undefined when @@ -100,10 +99,10 @@ is negative. If .I value is zero, it returns an empty string. -.PP +.P These functions are broken before glibc 2.2.5 (puts most significant digit first). -.PP +.P This is not the encoding used by .BR uuencode (1). .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/abort.3 b/upstream/opensuse-tumbleweed/man3/abort.3 index 952fd131..874ce2bc 100644 --- a/upstream/opensuse-tumbleweed/man3/abort.3 +++ b/upstream/opensuse-tumbleweed/man3/abort.3 @@ -12,7 +12,7 @@ .\" Modified Fri Aug 4 10:51:53 2000 - patch from Joseph S. Myers .\" 2007-12-15, mtk, Mostly rewritten .\" -.TH abort 3 2023-07-28 "Linux man-pages 6.05.01" +.TH abort 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME abort \- cause abnormal process termination .SH LIBRARY @@ -21,7 +21,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B [[noreturn]] void abort(void); .fi .SH DESCRIPTION @@ -38,7 +38,7 @@ This results in the abnormal termination of the process unless the signal is caught and the signal handler does not return (see .BR longjmp (3)). -.PP +.P If the .B SIGABRT signal is ignored, or caught by a handler that returns, the @@ -47,7 +47,7 @@ function will still terminate the process. It does this by restoring the default disposition for .B SIGABRT and then raising the signal for a second time. -.PP +.P As with other cases of abnormal termination the functions registered with .BR atexit (3) and @@ -71,12 +71,11 @@ T{ .BR abort () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY SVr4, POSIX.1-2001, 4.3BSD, C89. -.PP +.P Up until glibc 2.26, if the .BR abort () diff --git a/upstream/opensuse-tumbleweed/man3/abs.3 b/upstream/opensuse-tumbleweed/man3/abs.3 index 1d70ba58..2b8f650c 100644 --- a/upstream/opensuse-tumbleweed/man3/abs.3 +++ b/upstream/opensuse-tumbleweed/man3/abs.3 @@ -12,7 +12,7 @@ .\" Modified Sat Jul 24 21:45:37 1993, Rik Faith (faith@cs.unc.edu) .\" Modified Sat Dec 16 15:02:59 2000, Joseph S. Myers .\" -.TH abs 3 2023-07-20 "Linux man-pages 6.05.01" +.TH abs 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME abs, labs, llabs, imaxabs \- compute the absolute value of an integer .SH LIBRARY @@ -21,21 +21,21 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int abs(int " j ); .BI "long labs(long " j ); .BI "long long llabs(long long " j ); -.PP +.P .B #include -.PP +.P .BI "intmax_t imaxabs(intmax_t " j ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR llabs (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -72,7 +72,6 @@ T{ .BR imaxabs () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -80,7 +79,7 @@ POSIX.1-2001, C99, SVr4, 4.3BSD. .\" POSIX.1 (1996 edition) requires only the .\" .BR abs () .\" function. -.PP +.P C89 only includes the .BR abs () @@ -94,20 +93,20 @@ were added in C99. .SH NOTES Trying to take the absolute value of the most negative integer is not defined. -.PP +.P The .BR llabs () function is included since glibc 2.0. The .BR imaxabs () function is included since glibc 2.1.1. -.PP +.P For .BR llabs () to be declared, it may be necessary to define \fB_ISOC99_SOURCE\fP or \fB_ISOC9X_SOURCE\fP (depending on the version of glibc) before including any standard headers. -.PP +.P By default, GCC handles .BR abs (), diff --git a/upstream/opensuse-tumbleweed/man3/acos.3 b/upstream/opensuse-tumbleweed/man3/acos.3 index a81b4efa..9ba9515f 100644 --- a/upstream/opensuse-tumbleweed/man3/acos.3 +++ b/upstream/opensuse-tumbleweed/man3/acos.3 @@ -13,7 +13,7 @@ .\" Modified 2002-07-25 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH acos 3 2023-07-20 "Linux man-pages 6.05.01" +.TH acos 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME acos, acosf, acosl \- arc cosine function .SH LIBRARY @@ -22,17 +22,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double acos(double " x ); .BI "float acosf(float " x ); .BI "long double acosl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR acosf (), .BR acosl (): .nf @@ -50,22 +50,22 @@ the value whose cosine is On success, these functions return the arc cosine of .I x in radians; the return value is in the range [0,\ pi]. -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is +1, +0 is returned. -.PP +.P If .I x is positive infinity or negative infinity, a domain error occurs, and a NaN is returned. -.PP +.P If .I x is outside the range [\-1,\ 1], @@ -76,7 +76,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP is outside the range [\-1,\ 1] @@ -102,12 +102,11 @@ T{ .BR acosl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/acosh.3 b/upstream/opensuse-tumbleweed/man3/acosh.3 index b8468075..1fb3ed1d 100644 --- a/upstream/opensuse-tumbleweed/man3/acosh.3 +++ b/upstream/opensuse-tumbleweed/man3/acosh.3 @@ -13,7 +13,7 @@ .\" Modified 2002-07-25 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH acosh 3 2023-07-20 "Linux man-pages 6.05.01" +.TH acosh 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME acosh, acoshf, acoshl \- inverse hyperbolic cosine function .SH LIBRARY @@ -22,17 +22,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double acosh(double " x ); .BI "float acoshf(float " x ); .BI "long double acoshl(long double " x ); -.PP +.P .fi .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR acosh (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -41,7 +41,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR acoshf (), .BR acoshl (): .nf @@ -57,19 +57,19 @@ that is the value whose hyperbolic cosine is .SH RETURN VALUE On success, these functions return the inverse hyperbolic cosine of .IR x . -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is +1, +0 is returned. -.PP +.P If .I x is positive infinity, positive infinity is returned. -.PP +.P If .I x is less than 1, @@ -80,7 +80,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP is less than 1 @@ -106,12 +106,11 @@ T{ .BR acoshl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/add_wch.3ncurses b/upstream/opensuse-tumbleweed/man3/add_wch.3ncurses index 53b01b37..144f29ce 100644 --- a/upstream/opensuse-tumbleweed/man3/add_wch.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/add_wch.3ncurses @@ -28,8 +28,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_add_wch.3x,v 1.53 2024/01/13 22:05:39 tom Exp $ -.TH add_wch 3NCURSES 2024-01-13 "ncurses 6.4" "Library calls" +.\" $Id: curs_add_wch.3x,v 1.62 2024/04/20 21:20:07 tom Exp $ +.TH add_wch 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -293,7 +293,7 @@ U+2550 BOX DRAWINGS DOUBLE HORIZONTAL .SH RETURN VALUE All routines return the integer \fBERR\fP upon failure and \fBOK\fP on success. .PP -X/Open does not define any error conditions. +X/Open Curses does not specify any error conditions. This implementation returns an error .bP if the window pointer is null or @@ -312,9 +312,11 @@ of bytes, or if it is not possible to add all of the resulting bytes in the window, an error is returned. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES Note that \fBadd_wch\fP, @@ -323,7 +325,7 @@ Note that \fBecho_wchar\fP may be macros. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. +These functions are described in X/Open Curses, Issue 4. The defaults specified for line-drawing characters apply in the POSIX locale. .SS "WACS Symbols" X/Open Curses makes it clear that the WACS_ symbols should be defined as @@ -338,7 +340,7 @@ wide characters. The misdefined symbols are the arrows and other symbols which are not used for line-drawing. .PP -X/Open Curses does not define symbols for thick- or double-lines. +X/Open Curses does not specify symbols for thick- or double-lines. SVr4 curses implementations defined their line-drawing symbols in terms of intermediate symbols. This implementation extends those symbols, providing new definitions @@ -423,12 +425,25 @@ may hold one non-spacing character. In the latter case, \fI\%ncurses\fP adds the non-spacing character to the active (base) spacing character. +.SS TABSIZE +The +.B TABSIZE +variable is implemented in SVr4 and other versions of +.IR curses , +but is not specified by X/Open Curses +(see \fB\%curses_variables\fP(3NCURSES)). .SH SEE ALSO +\fB\%addch\fP(3NCURSES) describes comparable functions of the +.I \%ncurses +library in its non-wide-character configuration. +.PP \fB\%ncurses\fP(3NCURSES), -\fB\%addch\fP(3NCURSES), +\fB\%addwstr\fP(3NCURSES), +\fB\%add_wchstr\fP(3NCURSES), \fB\%attr\fP(3NCURSES), \fB\%clear\fP(3NCURSES), \fB\%getcchar\fP(3NCURSES), \fB\%outopts\fP(3NCURSES), \fB\%refresh\fP(3NCURSES), +\fB\%curses_variables\fP(3NCURSES), \fB\%putwc\fP(3) diff --git a/upstream/opensuse-tumbleweed/man3/add_wchstr.3ncurses b/upstream/opensuse-tumbleweed/man3/add_wchstr.3ncurses index 62f725fa..30cbd520 100644 --- a/upstream/opensuse-tumbleweed/man3/add_wchstr.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/add_wchstr.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2019-2022,2023 Thomas E. Dickey * +.\" Copyright 2019-2023,2024 Thomas E. Dickey * .\" Copyright 2002-2012,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_add_wchstr.3x,v 1.32 2023/11/25 14:01:49 tom Exp $ -.TH add_wchstr 3NCURSES 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: curs_add_wchstr.3x,v 1.39 2024/04/20 21:20:07 tom Exp $ +.TH add_wchstr 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -59,13 +59,13 @@ add a \fIcurses\fR complex character string to a window \fB#include .PP \fBint add_wchstr(const cchar_t *\fIwchstr\fP); -\fBint add_wchnstr(const cchar_t *\fIwchstr\fP, int \fIn\fP); \fBint wadd_wchstr(WINDOW * \fIwin\fP, const cchar_t *\fIwchstr\fP); -\fBint wadd_wchnstr(WINDOW * \fIwin\fP, const cchar_t *\fIwchstr\fP, int \fIn\fP); -.PP \fBint mvadd_wchstr(int \fIy\fP, int \fIx\fP, const cchar_t *\fIwchstr\fP); -\fBint mvadd_wchnstr(int \fIy\fP, int \fIx\fP, const cchar_t *\fIwchstr\fP, int \fIn\fP); \fBint mvwadd_wchstr(WINDOW *\fIwin\fP, int \fIy\fP, int \fIx\fP, const cchar_t *\fIwchstr\fP); +.PP +\fBint add_wchnstr(const cchar_t *\fIwchstr\fP, int \fIn\fP); +\fBint wadd_wchnstr(WINDOW * \fIwin\fP, const cchar_t *\fIwchstr\fP, int \fIn\fP); +\fBint mvadd_wchnstr(int \fIy\fP, int \fIx\fP, const cchar_t *\fIwchstr\fP, int \fIn\fP); \fBint mvwadd_wchnstr(WINDOW *\fIwin\fP, int \fIy\fP, int \fIx\fP, const cchar_t *\fIwchstr\fP, int \fIn\fP); .fi .SH DESCRIPTION @@ -102,24 +102,27 @@ the remaining columns are filled with the background character and rendition. .SH RETURN VALUE All functions return the integer \fBERR\fP upon failure and \fBOK\fP on success. .PP -X/Open does not define any error conditions. +X/Open Curses does not specify any error conditions. This implementation returns an error .bP if the \fIwin\fP parameter is null or .bP if the \fIwchstr\fP parameter is null. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES All functions except \fBwadd_wchnstr\fP may be macros. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. +These functions are described in X/Open Curses, Issue 4. .SH SEE ALSO +\fB\%addchstr\fP(3NCURSES) describes comparable functions of the +.I \%ncurses +library in its non-wide-character configuration. +.PP \fB\%ncurses\fP(3NCURSES), -\fB\%addch\fP(3NCURSES), -\fB\%addchstr\fP(3NCURSES), -\fB\%addstr\fP(3NCURSES), \fB\%addwstr\fP(3NCURSES), \fB\%add_wch\fP(3NCURSES) diff --git a/upstream/opensuse-tumbleweed/man3/addch.3ncurses b/upstream/opensuse-tumbleweed/man3/addch.3ncurses index dcd0078d..3f6552b5 100644 --- a/upstream/opensuse-tumbleweed/man3/addch.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/addch.3ncurses @@ -1,6 +1,6 @@ '\" t .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2015,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -28,17 +28,23 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_addch.3x,v 1.76 2023/12/23 16:27:51 tom Exp $ -.TH addch 3NCURSES 2023-12-23 "ncurses 6.4" "Library calls" +.\" $Id: curs_addch.3x,v 1.85 2024/04/20 19:03:47 tom Exp $ +.TH addch 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq +.ds ' \(aq +.ds ^ \(ha +.ds ~ \(ti .\} .el \{\ .ie t .ds `` `` .el .ds `` "" .ie t .ds '' '' .el .ds '' "" +.ds ' ' +.ds ^ ^ +.ds ~ ~ .\} . .de bP @@ -52,7 +58,7 @@ \fB\%mvwaddch\fP, \fB\%echochar\fP, \fB\%wechochar\fP \- -add a \fIcurses\fR character to a window and advance the cursor +add a \fIcurses\fP character to a window and advance the cursor .SH SYNOPSIS .nf \fB#include @@ -67,94 +73,130 @@ add a \fIcurses\fR character to a window and advance the cursor .fi .SH DESCRIPTION .SS "Adding Characters" -The \fBaddch\fP, \fBwaddch\fP, \fBmvaddch\fP and \fBmvwaddch\fP routines put -the character \fIch\fP into the given window at its current window position, -which is then advanced. -They are analogous to the standard C library's \fI\%putchar\fP(3). -If the advance is at the right margin: -.bP -The cursor automatically wraps to the beginning of the next line. +.B \%waddch +puts the character +.I ch +at the cursor position of window +.IR win , +then advances the cursor position, +analogously to the standard C library's \fI\%putchar\fP(3). +\fB\%ncurses\fP(3NCURSES) describes the variants of this function. +.PP +If advancement occurs at the right margin, .bP -At the bottom of the current scrolling region, -and if \fB\%scrollok\fP(3NCURSES) is enabled, -the scrolling region is scrolled up one line. +the cursor automatically wraps to the beginning of the next line; +and .bP -If \fB\%scrollok\fP(3NCURSES) is not enabled, -writing a character at the lower right margin succeeds. -However, -an error is returned because it is not possible to wrap to a new line. +at the bottom of the current scrolling region, +and if \fB\%scrollok\fP(3NCURSES) is enabled for +.IR win , +the scrolling region scrolls up one line. .PP -If \fIch\fP is a tab, newline, carriage return or backspace, -the cursor is moved appropriately within the window: +If +.I ch +is a +backspace, +carriage return, +line feed, +or +tab, +the cursor moves appropriately within the window. .bP -Backspace moves the cursor one character left; at the left -edge of a window it does nothing. +Backspace moves the cursor one character left; +at the left margin of a window, +it does nothing. .bP -Carriage return moves the cursor to the window left margin on the current line. +Carriage return moves the cursor to the left margin on the current line +of the window. .bP -Newline does a \fBclrtoeol\fP, -then moves the cursor to the window left margin on the next line, -scrolling the window if on the last line. +Line feed does a \fB\%clrtoeol\fP(3NCURSES), +then moves the cursor to the left margin on the next line of the window, +and if \fB\%scrollok\fP(3NCURSES) is enabled for +.IR win , +scrolls the window if the cursor was already on the last line. .bP -Tabs are considered to be at every eighth column. -The tab interval may be altered by setting the \fBTABSIZE\fP variable. +Tab advances the cursor to the next tab stop +(possibly on the next line); +these are placed at every eighth column by default. +Alter the tab interval with the +.B \%TABSIZE +extension; +see \fB\%curses_variables\fP(3NCURSES). .PP -If \fIch\fP is any other nonprintable character, +If +.I ch +is any other nonprintable character, it is drawn in printable form, -using the same convention as \fB\%unctrl\fP(3NCURSES): -.bP -Control characters are displayed in the \fB^\fIX\fR notation. -.bP -Values above 128 are either meta characters -(if the screen has not been initialized, -or if \fB\%meta\fP(3NCURSES) has been called with a \fBTRUE\fP E parameter), -shown in the \fBM\-\fIX\fR notation, or are displayed as themselves. -In the latter case, the values may not be printable; -this follows the X/Open specification. +using the same convention as \fB\%unctrl\fP(3NCURSES). .PP -Calling \fBwinch\fP after adding a -nonprintable character does not return the character itself, -but instead returns the printable representation of the character. +Calling \fB\%winch\fP(3NCURSES) on the location of a nonprintable character +does not return the character itself, +but its \fB\%unctrl\fP(3NCURSES) representation. .PP -Video attributes can be combined with a character argument passed to -\fBaddch\fP or related functions by logical-ORing them into the character. -(Thus, text, including attributes, can be copied from one place to another -using \fB\%inch\fP(3NCURSES) and \fBaddch\fP.) -See the \fB\%attr\fP(3NCURSES) page for values of predefined video -attribute constants that can be usefully OR'ed into characters. +.I ch +may contain rendering and/or color attributes, +and others can be combined with the parameter +by logically \*(``or\*(''ing with it. +(A character with its attributes can be copied from place to place +using \fB\%winch\fP(3NCURSES) and +.BR \%waddch .) +See \fB\%attr\fP(3NCURSES) for values of predefined video attribute +constants that can be usefully \*(``or\*(''ed with characters. .SS "Echoing Characters" -The \fBechochar\fP and \fBwechochar\fP routines are equivalent to a call to -\fBaddch\fP followed by a call to \fB\%refresh\fP(3NCURSES), or a call to \fBwaddch\fP -followed by a call to \fBwrefresh\fP. -The knowledge that only a single -character is being output is used and, for non-control characters, a -considerable performance gain may be seen by using these routines instead of -their equivalents. -.SS "Line Graphics" -The following variables may be used to add line drawing characters to the -screen with routines of the \fBaddch\fP family. -The default character listed -below is used if the \fBacsc\fP capability does not define a terminal-specific -replacement for it, -or if the terminal and locale configuration requires Unicode but the -library is unable to use Unicode. -.PP -The names are taken from VT100 nomenclature. +.B \%echochar +and +.B \%wechochar +are equivalent to calling +.RB \%( w ) addch +followed by +.RB \%( w ) refresh . +.I curses +interprets these functions as a hint that only a single character is +being output; +for non-control characters, +a considerable performance gain may be enjoyed by employing them. +.\" TODO: Combine the following with the "Line Drawing" subsection of +.\" terminfo(5) and replace this with a cross reference there. +.SS "Forms-Drawing Characters" +.I curses +defines macros starting with +.B \%ACS_ +that can be used with +.B \%waddch +to write line-drawing and other special characters to the screen. +.I \%ncurses +terms these +.I "forms-drawing characters." +The ACS default listed below is used if the +.B \%acs_chars +.RB ( \%acsc ) +.I \%term\%info +capability does not define a terminal-specific replacement for it, +or if the terminal and locale configuration requires Unicode to access +these characters but the library is unable to use Unicode. +The \*(``acsc char\*('' column corresponds to how the characters are +specified in the +.B \%acs_chars +string capability, +and the characters in it may appear on the screen if the terminal's +database entry incorrectly advertises ACS support. +The name \*(``ACS\*('' originates in the Alternate Character Set feature +of the DEC VT100 terminal. .PP .TS -l l l l -l l l l -_ _ _ _ -l l l l. -\fBACS\fP \fBACS\fP \fBacsc\fP \fBGlyph\fP -\fBName\fP \fBDefault\fP \fBchar\fP \fBName\fP +Lb Lb Lb Lb +Lb Lb Lb Lb +Lb L L Lx. +\& ACS acsc \& +Symbol Default char Glyph Name +_ ACS_BLOCK # 0 solid square block ACS_BOARD # h board of squares ACS_BTEE + v bottom tee -ACS_BULLET o ~ bullet +ACS_BULLET o \*~ bullet ACS_CKBOARD : a checker board (stipple) ACS_DARROW v . arrow pointing down -ACS_DEGREE ' f degree symbol +ACS_DEGREE \*' f degree symbol ACS_DIAMOND + \(ga diamond ACS_GEQUAL > > greater-than-or-equal-to ACS_HLINE \- q horizontal line @@ -176,154 +218,260 @@ ACS_S7 \- r scan line 7 ACS_S9 \&_ s scan line 9 ACS_STERLING f } pound-sterling symbol ACS_TTEE + w top tee -ACS_UARROW ^ \- arrow pointing up +ACS_UARROW \*^ \- arrow pointing up ACS_ULCORNER + l upper left-hand corner ACS_URCORNER + k upper right-hand corner ACS_VLINE | x vertical line .TE .SH RETURN VALUE -All routines return the integer \fBERR\fP upon failure and \fBOK\fP on success -(the SVr4 manuals specify only -\*(``an integer value other than \fBERR\fP\*('') upon successful completion, -unless otherwise noted in the preceding routine descriptions. +These functions return +.B OK +on success and +.B ERR +on failure. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. +In +.IR \%ncurses , +.B \%waddch +returns +.B ERR +if it is not possible to add a complete character at the cursor +position, +as when conversion of a multibyte character to a byte sequence fails, +or at least one of the resulting bytes cannot be added to the window. +See section \*(``PORTABILITY\*('' below regarding the use of +.B \%waddch +with multibyte characters. .PP -If it is not possible to add a complete character, -an error is returned: -.bP -If \fB\%scrollok\fP(3NCURSES) is not enabled, -writing a character at the lower right margin succeeds. +.B \%waddch +can successfully write a character at the bottom right location of the +window. However, -an error is returned because it is not possible to wrap to a new line. -.bP -If an error is detected when converting a multibyte character to a sequence -of bytes, -or if it is not possible to add all of the resulting bytes in the window, -an error is returned. +.I \%ncurses +returns +.B ERR +if \fB\%scrollok\fP(3NCURSES) is not enabled in that event, +because it is not possible to wrap to a new line. +.PP +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES -Note that \fBaddch\fP, \fBmvaddch\fP, \fBmvwaddch\fP, and -\fBechochar\fP may be macros. +.BR \%addch , +.BR \%mvaddch , +.BR \%mvwaddch , +and +.B \%echochar +may be implemented as macros. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. -The defaults specified for forms-drawing characters apply in the POSIX locale. +X/Open Curses, +Issue 4 describes these functions. +It specifies no error conditions for them. +.PP +SVr4 +.I curses +describes a successful return value only as +\*(``an integer value other than +.BR ERR \*(''. +.PP +The defaults specified for forms-drawing characters apply in the POSIX +locale. .SS "ACS Symbols" -X/Open Curses states that the \fBACS_\fP definitions are \fBchar\fP constants. -For the wide-character implementation (see \fBcurs_add_wch\fP), -there are analogous \fBWACS_\fP definitions which are \fBcchar_t\fP constants. -Some implementations are problematic: +X/Open Curses states that the +.B \%ACS_ +definitions are +.I char +constants. +.PP +Some implementations are problematic. .bP -Some implementations define the ACS symbols to a constant -(such as Solaris), while others define those to entries in an array. +Solaris +.IR curses , +for example, +define the ACS symbols as constants; +others define them as elements of an array. .IP -This implementation uses an array \fBacs_map\fP, as done in SVr4 curses. -NetBSD also uses an array, actually named \fB_acs_char\fP, with a \fB#define\fP +This implementation uses an array, +.BR \%acs_map , +as did SVr4 +.IR curses . +NetBSD also uses an array, +actually named +.BR \%_acs_char , +with a +.B \%#define for compatibility. .bP -HP-UX curses equates some of the \fBACS_\fP symbols -to the analogous \fBWACS_\fP symbols as if the \fBACS_\fP symbols were -wide characters. -The misdefined symbols are the arrows -and other symbols which are not used for line-drawing. +HP-UX +.I curses +equates some of the +.B \%ACS_ +symbols to the analogous +.B \%WACS_ +symbols as if the +.B \%ACS_ +symbols were wide characters +(see \fB\%add_wch\fP(3NCURSES)). +The misdefined symbols are the arrows and others that are not used for +line drawing. .bP -X/Open Curses (issues 2 through 7) has a typographical error -for the ACS_LANTERN symbol, equating its \*(``VT100+ Character\*('' -to \fBI\fP (capital I), while the header files for SVr4 curses -and the various implementations use \fBi\fP (lowercase). +X/Open Curses +(Issues 2 through 7) +has a typographical error +for the +.B \%ACS_LANTERN +symbol, equating its \*(``VT100+ Character\*('' to \*(``I\*('' +(capital I), +while the header files for SVr4 +.I curses +and other implementations use \*(``i\*('' +(small i). .IP -None of the terminal descriptions on Unix platforms use uppercase-I, -except for Solaris (i.e., \fBscreen\fP's terminal description, +None of the terminal descriptions on Unix platforms use uppercase I, +except for Solaris +(in its +.I \%term\%info +entry for \fI\%screen\fP(1), apparently based on the X/Open documentation around 1995). -On the other hand, the terminal description \fIgs6300\fP -(AT&T PC6300 with EMOTS Terminal Emulator) uses lowercase-i. -.LP +On the other hand, +its +.B \%gs6300 +(AT&T PC6300 with EMOTS Terminal Emulator) +description uses lowercase i. +.PP Some ACS symbols -(ACS_S3, -ACS_S7, -ACS_LEQUAL, -ACS_GEQUAL, -ACS_PI, -ACS_NEQUAL, -ACS_STERLING) -were not documented in -any publicly released System V. -However, many publicly available terminfos -include \fBacsc\fP strings in which their key characters (pryz{|}) are -embedded, and a second-hand list of their character descriptions has come -to light. -The ACS-prefixed names for them were invented for \fB\%ncurses\fP(3NCURSES). -.LP -The \fIdisplayed\fP values for the \fBACS_\fP and \fBWACS_\fP constants -depend on +.RB ( \%ACS_S3 , +.BR \%ACS_S7 , +.BR \%ACS_LEQUAL , +.BR \%ACS_GEQUAL , +.BR \%ACS_PI , +.BR \%ACS_NEQUAL , +and +.BR \%ACS_STERLING ) +were not documented in any publicly released System\ V. +However, +many publicly available +.I \%term\%info +entries include +.B \%acsc +strings in which their key characters +.BR ( pryz{|} ) +are embedded, +and a second-hand list of their character descriptions has come to +light. +The +.I \%ncurses +developers invented ACS-prefixed names for them. +.PP +The +.I displayed +values of +.B \%ACS_ +constants depend on .bP -the library configuration, -i.e., -\fI\%ncurses\fP versus \fI\%ncursesw\fP, -where the latter is capable of displaying Unicode while the former is not, and +the +.I \%ncurses +ABI\(emfor example, +wide-character versus non-wide-character configurations +(the former is capable of displaying Unicode while the latter is not), +and .bP -whether the \fIlocale\fP uses UTF-8 encoding. -.LP -In certain cases, the terminal is unable to display line-drawing characters -except by using UTF-8 -(see the discussion of \fB\%NCURSES_NO_UTF8_ACS\fP in -\fB\%ncurses\fP(3NCURSES)). +whether the locale uses UTF-8 encoding. +.PP +In certain cases, +the terminal is unable to display forms-drawing characters +.I except +by using UTF-8; +see the discussion of the +.I \%NCURSES_NO_UTF8_ACS +environment variable in \fB\%ncurses\fP(3NCURSES)). .SS "Character Set" -X/Open Curses assumes that the parameter passed to \fBwaddch\fP contains -a single character. -As discussed in \fB\%attr\fP(3NCURSES), that character may have been -more than eight bits in an SVr3 or SVr4 implementation, -but in the X/Open Curses model, the details are not given. -The important distinction between SVr4 curses and X/Open Curses is -that the non-character information (attributes and color) was -separated from the character information which is packed in a \fBchtype\fP -to pass to \fBwaddch\fP. +X/Open Curses assumes that the parameter passed to +.B \%waddch +contains a single character. +As discussed in \fB\%attr\fP(3NCURSES), +that character may have been more than eight bits wide in an SVr3 or +SVr4 implementation, +but in the X/Open Curses model, +the details are not given. +The important distinction between SVr4 +.I curses +and X/Open Curses is that the latter separates non-character information +(attributes and color) +from the character code, +which SVr4 packs into a +.I \%chtype +for passage to +.BR \%waddch . .PP -In this implementation, \fBchtype\fP holds an eight-bit character. -But \fI\%ncurses\fP allows multibyte characters to be passed in a -succession of calls to \fBwaddch\fP. -The other implementations do not do this; -a call to \fBwaddch\fP passes exactly one character -which may be rendered as one or more cells on the screen -depending on whether it is printable. +In +.IR \%ncurses , +.I \%chtype +holds an eight-bit character. +But the library allows a multibyte character to be passed in a +succession of calls to +.BR \%waddch . +Other implementations do not; +a +.B \%waddch +call transmits exactly one character, +which may be rendered in one or more screen locations depending on +whether it is printable. .PP Depending on the locale settings, -\fI\%ncurses\fP will inspect the byte passed in each call to \fBwaddch\fP, -and check if the latest call will continue a multibyte sequence. -When a character is \fIcomplete\fP, -\fI\%ncurses\fP displays the character and moves to the next position in the screen. +.I \%ncurses +inspects the byte passed in each +.B \%waddch +call, +and checks whether the latest call continues a multibyte sequence. +When a character is +.IR complete , +.I \%ncurses +displays the character and advances the cursor. .PP If the calling application interrupts the succession of bytes in -a multibyte character by moving the current location (e.g., using \fBwmove\fP), -\fI\%ncurses\fP discards the partially built character, -starting over again. +a multibyte character sequence by changing the current location\(emfor +example, +with \fB\%wmove\fP(3NCURSES)\(em\c +.I \%ncurses +discards the incomplete character. .PP For portability to other implementations, -do not rely upon this behavior: +do not rely upon this behavior. +Check whether a character can be represented as a single byte in the +current locale. .bP -check if a character can be represented as a single byte in the current locale -before attempting call \fBwaddch\fP, and +If it can, +call either +.B \%waddch +or \fB\%wadd_wch\fP(3NCURSES). .bP -call \fBwadd_wch\fP for characters which cannot be handled by \fBwaddch\fP. +If it cannot, +use only +\fB\%wadd_wch\fP(3NCURSES). .SS TABSIZE -The \fBTABSIZE\fP variable is implemented in SVr4 and other versions of curses, -but is not part of X/Open curses -(see \fB\%curses_variables\fP(3NCURSES) for more details). -.LP -If \fIch\fP is a carriage return, -the cursor is moved to the beginning of the current row of the window. -This is true of other implementations, but is not documented. +SVr4 and other versions of +.I curses +implement the +.B \%TABSIZE +variable, +but X/Open Curses does not specify it +(see \fB\%curses_variables\fP(3NCURSES)). .SH SEE ALSO +\fB\%add_wch\fP(3NCURSES) describes comparable functions of the +.I \%ncurses +library in its wide-character configuration +.RI ( \%ncursesw ). +.PP \fB\%ncurses\fP(3NCURSES), +\fB\%addchstr\fP(3NCURSES), +\fB\%addstr\fP(3NCURSES), \fB\%attr\fP(3NCURSES), \fB\%clear\fP(3NCURSES), \fB\%inch\fP(3NCURSES), \fB\%outopts\fP(3NCURSES), \fB\%refresh\fP(3NCURSES), \fB\%curses_variables\fP(3NCURSES), -\fB\%putc\fP(3) -.PP -Comparable functions in the wide-character (ncursesw) library are -described in -\fB\%add_wch\fP(3NCURSES). +\fB\%putchar\fP(3) diff --git a/upstream/opensuse-tumbleweed/man3/addchstr.3ncurses b/upstream/opensuse-tumbleweed/man3/addchstr.3ncurses index d118bdab..48878990 100644 --- a/upstream/opensuse-tumbleweed/man3/addchstr.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/addchstr.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2019-2022,2023 Thomas E. Dickey * +.\" Copyright 2019-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2012,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_addchstr.3x,v 1.38 2023/11/25 14:01:49 tom Exp $ -.TH addchstr 3NCURSES 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: curs_addchstr.3x,v 1.45 2024/04/20 21:20:07 tom Exp $ +.TH addchstr 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -59,13 +59,13 @@ add a \fIcurses\fR character string to a window \fB#include .PP \fBint addchstr(const chtype *\fIchstr\fP); -\fBint addchnstr(const chtype *\fIchstr\fP, int \fIn\fP); \fBint waddchstr(WINDOW *\fIwin\fP, const chtype *\fIchstr\fP); -\fBint waddchnstr(WINDOW *\fIwin\fP, const chtype *\fIchstr\fP, int \fIn\fP); -.PP \fBint mvaddchstr(int \fIy\fP, int \fIx\fP, const chtype *\fIchstr\fP); -\fBint mvaddchnstr(int \fIy\fP, int \fIx\fP, const chtype *\fIchstr\fP, int \fIn\fP); \fBint mvwaddchstr(WINDOW *\fIwin\fP, int \fIy\fP, int \fIx\fP, const chtype *\fIchstr\fP); +.PP +\fBint addchnstr(const chtype *\fIchstr\fP, int \fIn\fP); +\fBint waddchnstr(WINDOW *\fIwin\fP, const chtype *\fIchstr\fP, int \fIn\fP); +\fBint mvaddchnstr(int \fIy\fP, int \fIx\fP, const chtype *\fIchstr\fP, int \fIn\fP); \fBint mvwaddchnstr(WINDOW *\fIwin\fP, int \fIy\fP, int \fIx\fP, const chtype *\fIchstr\fP, int \fIn\fP); .fi .SH DESCRIPTION @@ -96,23 +96,28 @@ rather than wrapping it around to the new line. .SH RETURN VALUE All functions return the integer \fBERR\fP upon failure and \fBOK\fP on success. .PP -X/Open does not define any error conditions. +X/Open Curses does not specify any error conditions. This implementation returns an error .bP if the \fIwin\fP parameter is null or .bP if the \fIwchstr\fP parameter is null. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES All functions except \fBwaddchnstr\fP may be macros. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. +These functions are described in X/Open Curses, Issue 4. .SH SEE ALSO +\fB\%add_wchstr\fP(3NCURSES) describes comparable functions of the +.I \%ncurses +library in its wide-character configuration +.RI ( \%ncursesw ). +.PP \fB\%ncurses\fP(3NCURSES), \fB\%addch\fP(3NCURSES), -\fB\%addstr\fP(3NCURSES), -\fB\%addwstr\fP(3NCURSES), -\fB\%add_wchstr\fP(3NCURSES) +\fB\%addstr\fP(3NCURSES) diff --git a/upstream/opensuse-tumbleweed/man3/addseverity.3 b/upstream/opensuse-tumbleweed/man3/addseverity.3 index 447725ce..68335ccb 100644 --- a/upstream/opensuse-tumbleweed/man3/addseverity.3 +++ b/upstream/opensuse-tumbleweed/man3/addseverity.3 @@ -5,7 +5,7 @@ .\" adapted glibc info page .\" .\" polished a little, aeb -.TH addseverity 3 2023-07-20 "Linux man-pages 6.05.01" +.TH addseverity 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME addseverity \- introduce new severity classes .SH LIBRARY @@ -13,17 +13,17 @@ Standard C library .RI ( libc ", " \-lc ) .SH SYNOPSIS .nf -.PP +.P .B #include -.PP +.P .BI "int addseverity(int " severity ", const char *" s ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR addseverity (): .nf Since glibc 2.19: @@ -75,7 +75,6 @@ T{ .BR addseverity () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/addstr.3ncurses b/upstream/opensuse-tumbleweed/man3/addstr.3ncurses index 0a3f588c..d1ac45fa 100644 --- a/upstream/opensuse-tumbleweed/man3/addstr.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/addstr.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2019-2022,2023 Thomas E. Dickey * +.\" Copyright 2019-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2012,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_addstr.3x,v 1.37 2023/11/18 21:18:55 tom Exp $ -.TH addstr 3NCURSES 2023-11-18 "ncurses 6.4" "Library calls" +.\" $Id: curs_addstr.3x,v 1.45 2024/04/20 19:18:18 tom Exp $ +.TH addstr 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -59,50 +59,77 @@ add a string to a \fIcurses\fR window and advance the cursor \fB#include .PP \fBint addstr(const char *\fIstr\fP); -\fBint addnstr(const char *\fIstr\fP, int \fIn\fP); +\fBint mvaddstr(int \fIy\fP, int \fIx\fP, const char *\fIstr\fP); +\fBint mvwaddstr(WINDOW *\fIwin\fP, int \fIy\fP, int \fIx\fP, const char *\fIstr\fP); \fBint waddstr(WINDOW *\fIwin\fP, const char *\fIstr\fP); -\fBint waddnstr(WINDOW *\fIwin\fP, const char *\fIstr\fP, int \fIn\fP); .PP -\fBint mvaddstr(int \fIy\fP, int \fIx\fP, const char *\fIstr\fP); +\fBint addnstr(const char *\fIstr\fP, int \fIn\fP); \fBint mvaddnstr(int \fIy\fP, int \fIx\fP, const char *\fIstr\fP, int \fIn\fP); -\fBint mvwaddstr(WINDOW *\fIwin\fP, int \fIy\fP, int \fIx\fP, const char *\fIstr\fP); \fBint mvwaddnstr(WINDOW *\fIwin\fP, int \fIy\fP, int \fIx\fP, const char *\fIstr\fP, int \fIn\fP); +\fBint waddnstr(WINDOW *\fIwin\fP, const char *\fIstr\fP, int \fIn\fP); .fi .SH DESCRIPTION -These functions write the (null-terminated) character string -\fIstr\fP on the given window. -It is similar to calling \fBwaddch\fP once for each byte in the string. +.B waddstr +writes the characters of the (null-terminated) string +.I str +to the window +.IR win . +Its process is similar to calling \fB\%waddch\fP(3NCURSES) for each +.I char +in +.IR str . +Control characters are processed as in \fB\%waddch\fP(3NCURSES). .PP -The \fImv\fP functions perform cursor movement once, before writing any -characters. -Thereafter, the cursor is advanced as a side-effect of writing to the window. +.B waddnstr +writes at most +.I n +characters, +or until a terminating null character occurs in +.IR str . +If +.I n +is \-1, +.B +.B waddnstr +writes the entire string. .PP -The four functions with \fIn\fP as the last argument -write at most \fIn\fP bytes, -or until a terminating null is reached. -If \fIn\fP is \-1, then the entire string will be added. +\fB\%ncurses\fP(3NCURSES) describes the variants of these functions. .SH RETURN VALUE -All functions return the integer \fBERR\fP upon failure and \fBOK\fP on success. +These functions return +.B OK +on success and +.B ERR +on failure. .PP -X/Open does not define any error conditions. -This implementation returns an error +X/Open Curses does not specify any error conditions. +.I \%ncurses +returns an error .bP -if the window pointer is null or +if the window pointer is +.BR NULL , .bP -if the string pointer is null or +if the string pointer is +.BR NULL , +or .bP -if the corresponding calls to \fBwaddch\fP return an error. +if an internal \fB\%waddch\fP(3NCURSES) call returns an error. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES All of these functions except \fBwaddnstr\fP may be macros. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. +X/Open Curses, +Issue 4 describes these functions. .SH SEE ALSO +\fB\%addwstr\fP(3NCURSES) describes comparable functions of the +.I \%ncurses +library in its wide-character configuration +.RI ( \%ncursesw ). +.PP \fB\%ncurses\fP(3NCURSES), \fB\%addch\fP(3NCURSES), -\fB\%addchstr\fP(3NCURSES), -\fB\%addwstr\fP(3NCURSES), -\fB\%add_wchstr\fP(3NCURSES) +\fB\%addchstr\fP(3NCURSES) diff --git a/upstream/opensuse-tumbleweed/man3/addwstr.3ncurses b/upstream/opensuse-tumbleweed/man3/addwstr.3ncurses index 47c01f2d..f04261dd 100644 --- a/upstream/opensuse-tumbleweed/man3/addwstr.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/addwstr.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2019-2022,2023 Thomas E. Dickey * +.\" Copyright 2019-2023,2024 Thomas E. Dickey * .\" Copyright 2002-2012,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_addwstr.3x,v 1.29 2023/11/18 21:18:55 tom Exp $ -.TH addwstr 3NCURSES 2023-11-18 "ncurses 6.4" "Library calls" +.\" $Id: curs_addwstr.3x,v 1.37 2024/04/20 19:18:18 tom Exp $ +.TH addwstr 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -59,59 +59,88 @@ add a wide-character string to a \fIcurses\fR window and advance the cursor \fB#include .PP \fBint addwstr(const wchar_t *\fIwstr\fP); -\fBint addnwstr(const wchar_t *\fIwstr\fP, int \fIn\fP); +\fBint mvaddwstr(int \fIy\fP, int \fIx\fP, const wchar_t *\fIwstr\fP); +\fBint mvwaddwstr(WINDOW *\fIwin\fP, int \fIy\fP, int \fIx\fP, const wchar_t *\fIwstr\fP); \fBint waddwstr(WINDOW *\fIwin\fP, const wchar_t *\fIwstr\fP); -\fBint waddnwstr(WINDOW *\fIwin\fP, const wchar_t *\fIwstr\fP, int \fIn\fP); .PP -\fBint mvaddwstr(int \fIy\fP, int \fIx\fP, const wchar_t *\fIwstr\fP); +\fBint addnwstr(const wchar_t *\fIwstr\fP, int \fIn\fP); \fBint mvaddnwstr(int \fIy\fP, int \fIx\fP, const wchar_t *\fIwstr\fP, int \fIn\fP); -\fBint mvwaddwstr(WINDOW *\fIwin\fP, int \fIy\fP, int \fIx\fP, const wchar_t *\fIwstr\fP); \fBint mvwaddnwstr(WINDOW *\fIwin\fP, int \fIy\fP, int \fIx\fP, const wchar_t *\fIwstr\fP, int \fIn\fP); +\fBint waddnwstr(WINDOW *\fIwin\fP, const wchar_t *\fIwstr\fP, int \fIn\fP); .fi .SH DESCRIPTION -These functions write the characters of the -(null-terminated) \fBwchar_t\fP character string -\fIwstr\fP on the given window. -It is similar to constructing a \fBcchar_t\fP for -each \fBwchar_t\fR in the string, -then calling \fB\%wadd_wch\fP(3NCURSES) for the resulting \fBcchar_t\fP: +.B waddwstr +writes the characters of the (wide-null-terminated) wide-character +string +.I wstr +to the window +.IR win . +Its process is similar to constructing a +.I cchar_t +for each +.I wchar_t +in +.IR wstr , +then calling \fB\%wadd_wch\fP(3NCURSES) with the resulting +.IR cchar_t . .bP -spacing and non-spacing characters in the string -are processed one at a time, and +Spacing and non-spacing characters in the string +are processed one at a time, +and .bP -control characters are processed as in \fB\%waddch\fP(3NCURSES). +control characters are processed as in \fB\%wadd_wch\fP(3NCURSES). .PP -The \fImv\fP functions perform cursor movement once, before writing any -characters. -Thereafter, the cursor is advanced as a side-effect of writing to the window. +.B waddnwstr +writes at most +.I n +wide characters, +or until a terminating wide null character occurs in +.IR wstr . +If +.I n +is \-1, +.B +.B waddnwstr +writes the entire wide string. .PP -The four functions with \fIn\fP as the last argument -write at most \fIn\fP \fBwchar_t\fP characters, -or until a terminating null is reached. -If \fIn\fP is \-1, then the entire string will be added. +\fB\%ncurses\fP(3NCURSES) describes the variants of these functions. .SH RETURN VALUE -All functions return the integer \fBERR\fP upon failure and \fBOK\fP on success. +These functions return +.B OK +on success and +.B ERR +on failure. .PP -X/Open does not define any error conditions. -This implementation returns an error +X/Open Curses does not specify any error conditions. +.I \%ncurses +returns an error .bP -if the window pointer is null or +if the window pointer is +.BR NULL , .bP -if the string pointer is null or +if the string pointer is +.BR NULL , +or .bP -if the corresponding calls to \fBwadd_wch\fP return an error. +if an internal \fB\%wadd_wch\fP(3NCURSES) call returns an error. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES -All of these functions except \fBwaddnwstr\fP may be macros. +All of these functions except +.B waddnwstr +may be implemented as macros. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. +X/Open Curses, +Issue 4 describes these functions. .SH SEE ALSO +\fB\%addstr\fP(3NCURSES) describes comparable functions of the +.I \%ncurses +library in its non-wide-character configuration. +.PP \fB\%ncurses\fP(3NCURSES), -\fB\%addch\fP(3NCURSES), -\fB\%addchstr\fP(3NCURSES), -\fB\%addstr\fP(3NCURSES), \fB\%add_wch\fP(3NCURSES), \fB\%add_wchstr\fP(3NCURSES) diff --git a/upstream/opensuse-tumbleweed/man3/adjtime.3 b/upstream/opensuse-tumbleweed/man3/adjtime.3 index 1d9da6e4..80f14857 100644 --- a/upstream/opensuse-tumbleweed/man3/adjtime.3 +++ b/upstream/opensuse-tumbleweed/man3/adjtime.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH adjtime 3 2023-07-20 "Linux man-pages 6.05.01" +.TH adjtime 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME adjtime \- correct the time to synchronize the system clock .SH LIBRARY @@ -12,15 +12,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int adjtime(const struct timeval *" delta ", struct timeval *" olddelta ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR adjtime (): .nf Since glibc 2.19: @@ -37,7 +37,7 @@ The amount of time by which the clock is to be adjusted is specified in the structure pointed to by .IR delta . This structure has the following form: -.PP +.P .in +4n .EX struct timeval { @@ -46,7 +46,7 @@ struct timeval { }; .EE .in -.PP +.P If the adjustment in .I delta is positive, then the system clock is speeded up by some @@ -56,7 +56,7 @@ has been completed. If the adjustment in .I delta is negative, then the clock is slowed down in a similar fashion. -.PP +.P If a clock adjustment from an earlier .BR adjtime () call is already in progress @@ -66,7 +66,7 @@ call, and .I delta is not NULL for the later call, then the earlier adjustment is stopped, but any already completed part of that adjustment is not undone. -.PP +.P If .I olddelta is not NULL, then the buffer that it points to is used to return @@ -105,7 +105,6 @@ T{ .BR adjtime () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY @@ -117,11 +116,11 @@ makes to the clock is carried out in such a manner that the clock is always monotonically increasing. Using .BR adjtime () -to adjust the time prevents the problems that can be caused for certain +to adjust the time prevents the problems that could be caused for certain applications (e.g., .BR make (1)) by abrupt positive or negative jumps in the system time. -.PP +.P .BR adjtime () is intended to be used to make small adjustments to the system time. Most systems impose a limit on the adjustment that can be specified in diff --git a/upstream/opensuse-tumbleweed/man3/aio_cancel.3 b/upstream/opensuse-tumbleweed/man3/aio_cancel.3 index e8ef7d5a..6ddb3019 100644 --- a/upstream/opensuse-tumbleweed/man3/aio_cancel.3 +++ b/upstream/opensuse-tumbleweed/man3/aio_cancel.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH aio_cancel 3 2023-07-20 "Linux man-pages 6.05.01" +.TH aio_cancel 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME aio_cancel \- cancel an outstanding asynchronous I/O request .SH LIBRARY @@ -12,7 +12,7 @@ Real-time library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "int aio_cancel(int " fd ", struct aiocb *" aiocbp ); .fi .SH DESCRIPTION @@ -33,11 +33,11 @@ is canceled. for a description of the .I aiocb structure.) -.PP +.P Normal asynchronous notification occurs for canceled requests (see .BR aio (7) and -.BR sigevent (7)). +.BR sigevent (3type)). The request return status .RB ( aio_return (3)) is set to \-1, and the request error status @@ -45,21 +45,21 @@ is set to \-1, and the request error status is set to .BR ECANCELED . The control block of requests that cannot be canceled is not changed. -.PP +.P If the request could not be canceled, then it will terminate in the usual way after performing the I/O operation. (In this case, .BR aio_error (3) will return the status .BR EINPROGRESSS .) -.PP +.P If .I aiocbp is not NULL, and .I fd differs from the file descriptor with which the asynchronous operation was initiated, unspecified results occur. -.PP +.P Which operations are cancelable is implementation-defined. .\" FreeBSD: not those on raw disk devices. .SH RETURN VALUE @@ -106,7 +106,6 @@ T{ .BR aio_cancel () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/aio_error.3 b/upstream/opensuse-tumbleweed/man3/aio_error.3 index 77d33e0f..f00e35c2 100644 --- a/upstream/opensuse-tumbleweed/man3/aio_error.3 +++ b/upstream/opensuse-tumbleweed/man3/aio_error.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH aio_error 3 2023-07-20 "Linux man-pages 6.05.01" +.TH aio_error 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME aio_error \- get error status of asynchronous I/O operation .SH LIBRARY @@ -12,7 +12,7 @@ Real-time library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "int aio_error(const struct aiocb *" aiocbp ); .fi .SH DESCRIPTION @@ -76,7 +76,6 @@ T{ .BR aio_error () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/aio_fsync.3 b/upstream/opensuse-tumbleweed/man3/aio_fsync.3 index 1dea3d8c..f9f22c63 100644 --- a/upstream/opensuse-tumbleweed/man3/aio_fsync.3 +++ b/upstream/opensuse-tumbleweed/man3/aio_fsync.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH aio_fsync 3 2023-07-20 "Linux man-pages 6.05.01" +.TH aio_fsync 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME aio_fsync \- asynchronous file synchronization .SH LIBRARY @@ -12,7 +12,7 @@ Real-time library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "int aio_fsync(int " op ", struct aiocb *" aiocbp ); .fi .SH DESCRIPTION @@ -26,7 +26,7 @@ associated with for a description of the .I aiocb structure.) -.PP +.P More precisely, if .I op is @@ -40,9 +40,9 @@ is .BR O_DSYNC , this call is the asynchronous analog of .BR fdatasync (2). -.PP +.P Note that this is a request only; it does not wait for I/O completion. -.PP +.P Apart from .IR aio_fildes , the only field in the structure pointed to by @@ -52,7 +52,7 @@ that is used by this call is the field (a .I sigevent structure, described in -.BR sigevent (7)), +.BR sigevent (3type)), which indicates the desired type of asynchronous notification at completion. All other fields are ignored. .SH RETURN VALUE @@ -95,7 +95,6 @@ T{ .BR aio_fsync () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -110,4 +109,4 @@ POSIX.1-2001. .BR aio_write (3), .BR lio_listio (3), .BR aio (7), -.BR sigevent (7) +.BR sigevent (3type) diff --git a/upstream/opensuse-tumbleweed/man3/aio_init.3 b/upstream/opensuse-tumbleweed/man3/aio_init.3 index 4b97839d..67a58cf8 100644 --- a/upstream/opensuse-tumbleweed/man3/aio_init.3 +++ b/upstream/opensuse-tumbleweed/man3/aio_init.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH aio_init 3 2023-03-30 "Linux man-pages 6.05.01" +.TH aio_init 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME aio_init \- asynchronous I/O initialization .SH LIBRARY @@ -12,7 +12,7 @@ Real-time library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B "#include " -.PP +.P .BI "void aio_init(const struct aioinit *" init ); .fi .SH DESCRIPTION @@ -22,11 +22,11 @@ function allows the caller to provide tuning hints to the glibc POSIX AIO implementation. Use of this function is optional, but to be effective, it must be called before employing any other functions in the POSIX AIO API. -.PP +.P The tuning information is provided in the buffer pointed to by the argument .IR init . This buffer is a structure of the following form: -.PP +.P .in +4n .EX struct aioinit { @@ -43,7 +43,7 @@ struct aioinit { }; .EE .in -.PP +.P The following fields are used in the .I aioinit structure: diff --git a/upstream/opensuse-tumbleweed/man3/aio_read.3 b/upstream/opensuse-tumbleweed/man3/aio_read.3 index 909d4444..66d1b66d 100644 --- a/upstream/opensuse-tumbleweed/man3/aio_read.3 +++ b/upstream/opensuse-tumbleweed/man3/aio_read.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH aio_read 3 2023-07-20 "Linux man-pages 6.05.01" +.TH aio_read 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME aio_read \- asynchronous read .SH LIBRARY @@ -12,7 +12,7 @@ Real-time library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "int aio_read(struct aiocb *" aiocbp ); .fi .SH DESCRIPTION @@ -23,13 +23,13 @@ function queues the I/O request described by the buffer pointed to by This function is the asynchronous analog of .BR read (2). The arguments of the call -.PP +.P .in +4n .EX read(fd, buf, count) .EE .in -.PP +.P correspond (in order) to the fields .IR aio_fildes , .IR aio_buf , @@ -42,13 +42,13 @@ of the structure pointed to by for a description of the .I aiocb structure.) -.PP +.P The data is read starting at the absolute position .IR aiocbp\->aio_offset , regardless of the file offset. After the call, the value of the file offset is unspecified. -.PP +.P The "asynchronous" means that this call returns as soon as the request has been enqueued; the read may or may not have completed when the call returns. @@ -59,20 +59,20 @@ The return status of a completed I/O operation can be obtained by Asynchronous notification of I/O completion can be obtained by setting .I aiocbp\->aio_sigevent appropriately; see -.BR sigevent (7) +.BR sigevent (3type) for details. -.PP +.P If .B _POSIX_PRIORITIZED_IO is defined, and this file supports it, then the asynchronous operation is submitted at a priority equal to that of the calling process minus .IR aiocbp\->aio_reqprio . -.PP +.P The field .I aiocbp\->aio_lio_opcode is ignored. -.PP +.P No data is read from a regular file beyond its maximum offset. .SH RETURN VALUE On success, 0 is returned. @@ -128,7 +128,6 @@ T{ .BR aio_read () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -142,7 +141,7 @@ The buffer area being read into .\" or the control block of the operation must not be accessed during the operation or undefined results may occur. The memory areas involved must remain valid. -.PP +.P Simultaneous I/O operations specifying the same .I aiocb structure produce undefined results. diff --git a/upstream/opensuse-tumbleweed/man3/aio_return.3 b/upstream/opensuse-tumbleweed/man3/aio_return.3 index c0d14a6a..c3bd55f4 100644 --- a/upstream/opensuse-tumbleweed/man3/aio_return.3 +++ b/upstream/opensuse-tumbleweed/man3/aio_return.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH aio_return 3 2023-07-20 "Linux man-pages 6.05.01" +.TH aio_return 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME aio_return \- get return status of asynchronous I/O operation .SH LIBRARY @@ -12,7 +12,7 @@ Real-time library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "ssize_t aio_return(struct aiocb *" aiocbp ); .fi .SH DESCRIPTION @@ -26,7 +26,7 @@ with control block pointed to by for a description of the .I aiocb structure.) -.PP +.P This function should be called only once for any given request, after .BR aio_error (3) returns something other than @@ -41,7 +41,7 @@ or .BR fdatasync (2), call. On error, \-1 is returned, and \fIerrno\fP is set to indicate the error. -.PP +.P If the asynchronous I/O operation has not yet completed, the return value and effect of .BR aio_return () @@ -70,7 +70,6 @@ T{ .BR aio_return () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/aio_suspend.3 b/upstream/opensuse-tumbleweed/man3/aio_suspend.3 index b532568a..a011534c 100644 --- a/upstream/opensuse-tumbleweed/man3/aio_suspend.3 +++ b/upstream/opensuse-tumbleweed/man3/aio_suspend.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH aio_suspend 3 2023-07-20 "Linux man-pages 6.05.01" +.TH aio_suspend 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME aio_suspend \- wait for asynchronous I/O operation or timeout .SH LIBRARY @@ -12,9 +12,9 @@ Real-time library .RI ( librt ", " \-lrt ) .SH SYNOPSIS .nf -.PP +.P .B "#include " -.PP +.P .BI "int aio_suspend(const struct aiocb *const " aiocb_list "[], int " nitems , .BI " const struct timespec *restrict " timeout ); .fi @@ -35,7 +35,7 @@ is not NULL and the specified time interval has passed. .I timespec structure, see .BR nanosleep (2).) -.PP +.P The .I nitems argument specifies the number of items in @@ -53,7 +53,7 @@ or for a description of the .I aiocb structure.) -.PP +.P If .B CLOCK_MONOTONIC is supported, this clock is used to measure @@ -96,13 +96,12 @@ T{ .BR aio_suspend () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY glibc 2.1. POSIX.1-2001. -.PP +.P POSIX doesn't specify the parameters to be .IR restrict ; that is specific to glibc. @@ -110,13 +109,13 @@ that is specific to glibc. One can achieve polling by using a non-NULL .I timeout that specifies a zero time interval. -.PP +.P If one or more of the asynchronous I/O operations specified in .I aiocb_list has already completed at the time of the call to .BR aio_suspend (), then the call returns immediately. -.PP +.P To determine which I/O operations have completed after a successful return from .BR aio_suspend (), diff --git a/upstream/opensuse-tumbleweed/man3/aio_write.3 b/upstream/opensuse-tumbleweed/man3/aio_write.3 index 20b03493..800ff3b9 100644 --- a/upstream/opensuse-tumbleweed/man3/aio_write.3 +++ b/upstream/opensuse-tumbleweed/man3/aio_write.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH aio_write 3 2023-07-20 "Linux man-pages 6.05.01" +.TH aio_write 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME aio_write \- asynchronous write .SH LIBRARY @@ -12,7 +12,7 @@ Real-time library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "int aio_write(struct aiocb *" aiocbp ); .fi .SH DESCRIPTION @@ -23,13 +23,13 @@ function queues the I/O request described by the buffer pointed to by This function is the asynchronous analog of .BR write (2). The arguments of the call -.PP +.P .in +4n .EX write(fd, buf, count) .EE .in -.PP +.P correspond (in order) to the fields .IR aio_fildes , .IR aio_buf , @@ -42,7 +42,7 @@ of the structure pointed to by for a description of the .I aiocb structure.) -.PP +.P If .B O_APPEND is not set, the data is written starting at the @@ -55,7 +55,7 @@ is set, data is written at the end of the file in the same order as .BR aio_write () calls are made. After the call, the value of the file offset is unspecified. -.PP +.P The "asynchronous" means that this call returns as soon as the request has been enqueued; the write may or may not have completed when the call returns. @@ -66,20 +66,20 @@ The return status of a completed I/O operation can be obtained Asynchronous notification of I/O completion can be obtained by setting .I aiocbp\->aio_sigevent appropriately; see -.BR sigevent (7) +.BR sigevent (3type) for details. -.PP +.P If .B _POSIX_PRIORITIZED_IO is defined, and this file supports it, then the asynchronous operation is submitted at a priority equal to that of the calling process minus .IR aiocbp\->aio_reqprio . -.PP +.P The field .I aiocbp\->aio_lio_opcode is ignored. -.PP +.P No data is written to a regular file beyond its maximum offset. .SH RETURN VALUE On success, 0 is returned. @@ -133,7 +133,6 @@ T{ .BR aio_write () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -147,7 +146,7 @@ The buffer area being written out .\" or the control block of the operation must not be accessed during the operation or undefined results may occur. The memory areas involved must remain valid. -.PP +.P Simultaneous I/O operations specifying the same .I aiocb structure produce undefined results. diff --git a/upstream/opensuse-tumbleweed/man3/alloca.3 b/upstream/opensuse-tumbleweed/man3/alloca.3 index 6bf17915..934825f7 100644 --- a/upstream/opensuse-tumbleweed/man3/alloca.3 +++ b/upstream/opensuse-tumbleweed/man3/alloca.3 @@ -13,7 +13,7 @@ .\" Various rewrites and additions (notes on longjmp() and SIGSEGV). .\" Weaken warning against use of alloca() (as per Debian bug 461100). .\" -.TH alloca 3 2023-07-20 "Linux man-pages 6.05.01" +.TH alloca 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME alloca \- allocate memory that is automatically freed .SH LIBRARY @@ -22,7 +22,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void *alloca(size_t " size ); .fi .SH DESCRIPTION @@ -54,7 +54,6 @@ T{ .BR alloca () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY @@ -73,7 +72,7 @@ it can also simplify memory deallocation in applications that use or .BR siglongjmp (3). Otherwise, its use is discouraged. -.PP +.P Because the space allocated by .BR alloca () is allocated within the stack frame, @@ -82,19 +81,19 @@ is jumped over by a call to .BR longjmp (3) or .BR siglongjmp (3). -.PP +.P The space allocated by .BR alloca () is .I not automatically deallocated if the pointer that refers to it simply goes out of scope. -.PP +.P Do not attempt to .BR free (3) space allocated by .BR alloca ()! -.PP +.P By necessity, .BR alloca () is a compiler built-in, also known as @@ -107,12 +106,12 @@ into the built-in, but this is forbidden if standards conformance is requested in which case .I is required, lest a symbol dependency be emitted. -.PP +.P The fact that .BR alloca () is a built-in means it is impossible to take its address or to change its behavior by linking with a different library. -.PP +.P Variable length arrays (VLAs) are part of the C99 standard, optional since C11, and can be used for a similar purpose. However, they do not port to standard C++, and, being variables, @@ -125,7 +124,7 @@ would overflow the space available, and, hence, neither is indicating an error. (However, the program is likely to receive a .B SIGSEGV signal if it attempts to access unavailable space.) -.PP +.P On many systems .BR alloca () cannot be used inside the list of arguments of a function call, because diff --git a/upstream/opensuse-tumbleweed/man3/arc4random.3 b/upstream/opensuse-tumbleweed/man3/arc4random.3 index b7e1f4da..44e66747 100644 --- a/upstream/opensuse-tumbleweed/man3/arc4random.3 +++ b/upstream/opensuse-tumbleweed/man3/arc4random.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH arc4random 3 2023-07-20 "Linux man-pages 6.05.01" +.TH arc4random 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME arc4random, arc4random_uniform, arc4random_buf \- cryptographically-secure pseudorandom number generator @@ -13,29 +13,29 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B uint32_t arc4random(void); .BI "uint32_t arc4random_uniform(uint32_t " upper_bound ); .BI "void arc4random_buf(void " buf [. n "], size_t " n ); .fi .SH DESCRIPTION These functions give cryptographically-secure pseudorandom numbers. -.PP +.P .BR arc4random () returns a uniformly-distributed value. -.PP +.P .BR arc4random_uniform () returns a uniformly-distributed value less than .I upper_bound (see BUGS). -.PP +.P .BR arc4random_buf () fills the memory pointed to by .IR buf , with .I n bytes of pseudorandom data. -.PP +.P The .BR rand (3) and @@ -51,7 +51,7 @@ functions. .SH RETURN VALUE .BR arc4random () returns a pseudorandom number. -.PP +.P .BR arc4random_uniform () returns a pseudorandom number less than .I upper_bound @@ -76,7 +76,6 @@ T{ .BR arc4random_buf () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS BSD. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/argz_add.3 b/upstream/opensuse-tumbleweed/man3/argz_add.3 index 3654e7be..0e8f468d 100644 --- a/upstream/opensuse-tumbleweed/man3/argz_add.3 +++ b/upstream/opensuse-tumbleweed/man3/argz_add.3 @@ -6,7 +6,7 @@ .\" based on the description in glibc source and infopages .\" .\" Corrections and additions, aeb -.TH argz_add 3 2023-07-20 "Linux man-pages 6.05.01" +.TH argz_add 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME argz_add, argz_add_sep, argz_append, argz_count, argz_create, argz_create_sep, argz_delete, argz_extract, argz_insert, @@ -17,52 +17,52 @@ Standard C library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "error_t argz_add(char **restrict " argz ", size_t *restrict " argz_len , .BI " const char *restrict " str ); -.PP +.P .BI "error_t argz_add_sep(char **restrict " argz \ ", size_t *restrict " argz_len , .BI " const char *restrict " str ", int " delim ); -.PP +.P .BI "error_t argz_append(char **restrict " argz ", size_t *restrict " argz_len , .BI " const char *restrict " buf ", size_t " buf_len ); -.PP +.P .BI "size_t argz_count(const char *" argz ", size_t " argz_len ); -.PP +.P .BI "error_t argz_create(char *const " argv "[], char **restrict " argz , .BI " size_t *restrict " argz_len ); -.PP +.P .BI "error_t argz_create_sep(const char *restrict " str ", int " sep , .BI " char **restrict " argz ", size_t *restrict " argz_len ); -.PP +.P .BI "void argz_delete(char **restrict " argz ", size_t *restrict " argz_len , .BI " char *restrict " entry ); -.PP +.P .BI "void argz_extract(const char *restrict " argz ", size_t " argz_len , .BI " char **restrict " argv ); -.PP +.P .BI "error_t argz_insert(char **restrict " argz ", size_t *restrict " argz_len , .BI " char *restrict " before ", const char *restrict " entry ); -.PP +.P .BI "char *argz_next(const char *restrict " argz ", size_t " argz_len , .BI " const char *restrict " entry ); -.PP +.P .BI "error_t argz_replace(char **restrict " argz \ ", size_t *restrict " argz_len , .BI " const char *restrict " str ", const char *restrict " with , .BI " unsigned int *restrict " replace_count ); -.PP +.P .BI "void argz_stringify(char *" argz ", size_t " len ", int " sep ); .fi .SH DESCRIPTION These functions are glibc-specific. -.PP +.P An argz vector is a pointer to a character buffer together with a length. The intended interpretation of the character buffer is an array of strings, where the strings are separated by null bytes (\[aq]\e0\[aq]). If the length is nonzero, the last byte of the buffer must be a null byte. -.PP +.P These functions are for handling argz vectors. The pair (NULL,0) is an argz vector, and, conversely, argz vectors of length 0 must have null pointer. @@ -71,7 +71,7 @@ Allocation of nonempty argz vectors is done using so that .BR free (3) can be used to dispose of them again. -.PP +.P .BR argz_add () adds the string .I str @@ -81,7 +81,7 @@ and updates .I *argz and .IR *argz_len . -.PP +.P .BR argz_add_sep () is similar, but splits the string .I str @@ -89,7 +89,7 @@ into substrings separated by the delimiter .IR delim . For example, one might use this on a UNIX search path with delimiter \[aq]:\[aq]. -.PP +.P .BR argz_append () appends the argz vector .RI ( buf ,\ buf_len ) @@ -103,12 +103,12 @@ and .I *argz_len will be increased by .IR buf_len .) -.PP +.P .BR argz_count () counts the number of strings, that is, the number of null bytes (\[aq]\e0\[aq]), in .RI ( argz ,\ argz_len ). -.PP +.P .BR argz_create () converts a UNIX-style argument vector .IR argv , @@ -116,7 +116,7 @@ terminated by .IR "(char\ *)\ 0" , into an argz vector .RI ( *argz ,\ *argz_len ). -.PP +.P .BR argz_create_sep () converts the null-terminated string .I str @@ -124,7 +124,7 @@ into an argz vector .RI ( *argz ,\ *argz_len ) by breaking it up at every occurrence of the separator .IR sep . -.PP +.P .BR argz_delete () removes the substring pointed to by .I entry @@ -134,7 +134,7 @@ and updates .I *argz and .IR *argz_len . -.PP +.P .BR argz_extract () is the opposite of .BR argz_create (). @@ -149,7 +149,7 @@ The array must have room for .IR argz_count ( argz ", " argz_len ") + 1" pointers. -.PP +.P .BR argz_insert () is the opposite of .BR argz_delete (). @@ -168,7 +168,7 @@ If is NULL, then .I entry will inserted at the end. -.PP +.P .BR argz_next () is a function to step through the argz vector. If @@ -177,7 +177,7 @@ is NULL, the first entry is returned. Otherwise, the entry following is returned. It returns NULL if there is no following entry. -.PP +.P .BR argz_replace () replaces each occurrence of .I str @@ -189,7 +189,7 @@ If is non-NULL, .I *replace_count will be incremented by the number of replacements. -.PP +.P .BR argz_stringify () is the opposite of .BR argz_create_sep (). @@ -228,7 +228,6 @@ T{ .BR argz_stringify () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH BUGS diff --git a/upstream/opensuse-tumbleweed/man3/asin.3 b/upstream/opensuse-tumbleweed/man3/asin.3 index 74ac283f..132d7975 100644 --- a/upstream/opensuse-tumbleweed/man3/asin.3 +++ b/upstream/opensuse-tumbleweed/man3/asin.3 @@ -13,7 +13,7 @@ .\" Modified 2002-07-25 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH asin 3 2023-07-20 "Linux man-pages 6.05.01" +.TH asin 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME asin, asinf, asinl \- arc sine function .SH LIBRARY @@ -22,17 +22,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double asin(double " x ); .BI "float asinf(float " x ); .BI "long double asinl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR asinf (), .BR asinl (): .nf @@ -49,16 +49,16 @@ that is the value whose sine is On success, these functions return the principal value of the arc sine of .I x in radians; the return value is in the range [\-pi/2,\ pi/2]. -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is +0 (\-0), +0 (\-0) is returned. -.PP +.P If .I x is outside the range [\-1,\ 1], @@ -72,7 +72,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP is outside the range [\-1,\ 1] @@ -98,12 +98,11 @@ T{ .BR asinl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/asinh.3 b/upstream/opensuse-tumbleweed/man3/asinh.3 index 31973901..36e1930d 100644 --- a/upstream/opensuse-tumbleweed/man3/asinh.3 +++ b/upstream/opensuse-tumbleweed/man3/asinh.3 @@ -13,7 +13,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH asinh 3 2023-07-20 "Linux man-pages 6.05.01" +.TH asinh 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME asinh, asinhf, asinhl \- inverse hyperbolic sine function .SH LIBRARY @@ -22,17 +22,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double asinh(double " x ); .BI "float asinhf(float " x ); .BI "long double asinhl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR asinh (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -41,7 +41,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR asinhf (), .BR asinhl (): .nf @@ -57,15 +57,15 @@ that is the value whose hyperbolic sine is .SH RETURN VALUE On success, these functions return the inverse hyperbolic sine of .IR x . -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is +0 (\-0), +0 (\-0) is returned. -.PP +.P If .I x is positive infinity (negative infinity), @@ -91,12 +91,11 @@ T{ .BR asinhl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/asprintf.3 b/upstream/opensuse-tumbleweed/man3/asprintf.3 index adc3e5b5..79d92d59 100644 --- a/upstream/opensuse-tumbleweed/man3/asprintf.3 +++ b/upstream/opensuse-tumbleweed/man3/asprintf.3 @@ -5,7 +5,7 @@ .\" .\" Text fragments inspired by Martin Schulze . .\" -.TH asprintf 3 2023-07-20 "Linux man-pages 6.05.01" +.TH asprintf 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME asprintf, vasprintf \- print to allocated string .SH LIBRARY @@ -15,7 +15,7 @@ Standard C library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "int asprintf(char **restrict " strp ", const char *restrict " fmt ", ...);" .BI "int vasprintf(char **restrict " strp ", const char *restrict " fmt , .BI " va_list " ap ); @@ -58,7 +58,6 @@ T{ .BR vasprintf () T} Thread safety MT-Safe locale .TE -.sp 1 .SH VERSIONS The FreeBSD implementation sets .I strp diff --git a/upstream/opensuse-tumbleweed/man3/assert.3 b/upstream/opensuse-tumbleweed/man3/assert.3 index b1e8a9dc..f6cc4b64 100644 --- a/upstream/opensuse-tumbleweed/man3/assert.3 +++ b/upstream/opensuse-tumbleweed/man3/assert.3 @@ -6,7 +6,7 @@ .\" Modified Sat Jul 24 21:42:42 1993 by Rik Faith .\" Modified Tue Oct 22 23:44:11 1996 by Eric S. Raymond .\" Modified Thu Jun 2 23:44:11 2016 by Nikos Mavrogiannopoulos -.TH assert 3 2023-07-20 "Linux man-pages 6.05.01" +.TH assert 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME assert \- abort the program if assertion is false .SH LIBRARY @@ -15,14 +15,14 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void assert(scalar " expression ); .fi .SH DESCRIPTION This macro can help programmers find bugs in their programs, or handle exceptional cases via a crash that will produce limited debugging output. -.PP +.P If .I expression is false (i.e., compares equal to zero), @@ -34,13 +34,13 @@ The error message includes the name of the file and function containing the .BR assert () call, the source code line number of the call, and the text of the argument; something like: -.PP +.P .in +4n .EX prog: some_file.c:16: some_func: Assertion \`val == 0\[aq] failed. .EE .in -.PP +.P If the macro .B NDEBUG is defined at the moment @@ -70,12 +70,11 @@ T{ .BR assert () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C89, C99, POSIX.1-2001. -.PP +.P In C89, .I expression is required to be of type diff --git a/upstream/opensuse-tumbleweed/man3/assert_perror.3 b/upstream/opensuse-tumbleweed/man3/assert_perror.3 index 77d70f1d..c2fcb594 100644 --- a/upstream/opensuse-tumbleweed/man3/assert_perror.3 +++ b/upstream/opensuse-tumbleweed/man3/assert_perror.3 @@ -6,7 +6,7 @@ .\" This replaces an earlier man page written by Walter Harms .\" . .\" -.TH assert_perror 3 2023-07-20 "Linux man-pages 6.05.01" +.TH assert_perror 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME assert_perror \- test errnum and abort .SH LIBRARY @@ -16,7 +16,7 @@ Standard C library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "void assert_perror(int " errnum ); .fi .SH DESCRIPTION @@ -54,7 +54,6 @@ T{ .BR assert_perror () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH BUGS diff --git a/upstream/opensuse-tumbleweed/man3/atan.3 b/upstream/opensuse-tumbleweed/man3/atan.3 index 5c89c62e..b5b101e0 100644 --- a/upstream/opensuse-tumbleweed/man3/atan.3 +++ b/upstream/opensuse-tumbleweed/man3/atan.3 @@ -13,7 +13,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH atan 3 2023-07-20 "Linux man-pages 6.05.01" +.TH atan 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME atan, atanf, atanl \- arc tangent function .SH LIBRARY @@ -22,17 +22,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double atan(double " x ); .BI "float atanf(float " x ); .BI "long double atanl(long double " x ); -.PP +.P .fi .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR atanf (), .BR atanl (): .nf @@ -49,16 +49,16 @@ that is the value whose tangent is On success, these functions return the principal value of the arc tangent of .I x in radians; the return value is in the range [\-pi/2,\ pi/2]. -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is +0 (\-0), +0 (\-0) is returned. -.PP +.P If .I x is positive infinity (negative infinity), +pi/2 (\-pi/2) is returned. @@ -83,12 +83,11 @@ T{ .BR atanl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/atan2.3 b/upstream/opensuse-tumbleweed/man3/atan2.3 index 0532b47d..d51c4dbe 100644 --- a/upstream/opensuse-tumbleweed/man3/atan2.3 +++ b/upstream/opensuse-tumbleweed/man3/atan2.3 @@ -13,7 +13,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH atan2 3 2023-07-20 "Linux man-pages 6.05.01" +.TH atan2 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME atan2, atan2f, atan2l \- arc tangent function of two variables .SH LIBRARY @@ -22,17 +22,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double atan2(double " y ", double " x ); .BI "float atan2f(float " y ", float " x ); .BI "long double atan2l(long double " y ", long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR atan2f (), .BR atan2l (): .nf @@ -49,31 +49,31 @@ the quadrant of the result. On success, these functions return the principal value of the arc tangent of .I y/x in radians; the return value is in the range [\-pi,\ pi]. -.PP +.P If .I y is +0 (\-0) and .I x is less than 0, +pi (\-pi) is returned. -.PP +.P If .I y is +0 (\-0) and .I x is greater than 0, +0 (\-0) is returned. -.PP +.P If .I y is less than 0 and .I x is +0 or \-0, \-pi/2 is returned. -.PP +.P If .I y is greater than 0 and .I x is +0 or \-0, pi/2 is returned. -.PP +.P .\" POSIX.1 says: .\" If .\" .I x @@ -84,7 +84,7 @@ If either or .I y is NaN, a NaN is returned. -.PP +.P .\" POSIX.1 says: .\" If the result underflows, a range error may occur and .\" .I y/x @@ -95,38 +95,38 @@ If is +0 (\-0) and .I x is \-0, +pi (\-pi) is returned. -.PP +.P If .I y is +0 (\-0) and .I x is +0, +0 (\-0) is returned. -.PP +.P If .I y is a finite value greater (less) than 0, and .I x is negative infinity, +pi (\-pi) is returned. -.PP +.P If .I y is a finite value greater (less) than 0, and .I x is positive infinity, +0 (\-0) is returned. -.PP +.P If .I y is positive infinity (negative infinity), and .I x is finite, pi/2 (\-pi/2) is returned. -.PP +.P If .I y is positive infinity (negative infinity) and .I x is negative infinity, +3*pi/4 (\-3*pi/4) is returned. -.PP +.P If .I y is positive infinity (negative infinity) and @@ -155,12 +155,11 @@ T{ .BR atan2l () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/atanh.3 b/upstream/opensuse-tumbleweed/man3/atanh.3 index f3a9b2e5..bf36b7f9 100644 --- a/upstream/opensuse-tumbleweed/man3/atanh.3 +++ b/upstream/opensuse-tumbleweed/man3/atanh.3 @@ -13,7 +13,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH atanh 3 2023-07-20 "Linux man-pages 6.05.01" +.TH atanh 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME atanh, atanhf, atanhl \- inverse hyperbolic tangent function .SH LIBRARY @@ -22,17 +22,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double atanh(double " x ); .BI "float atanhf(float " x ); .BI "long double atanhl(long double " x ); -.PP +.P .fi .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR atanh (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -41,7 +41,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR atanhf (), .BR atanhl (): .nf @@ -57,15 +57,15 @@ that is the value whose hyperbolic tangent is .SH RETURN VALUE On success, these functions return the inverse hyperbolic tangent of .IR x . -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is +0 (\-0), +0 (\-0) is returned. -.PP +.P If .I x is +1 or \-1, @@ -76,7 +76,7 @@ and the functions return or .BR HUGE_VALL , respectively, with the mathematically correct sign. -.PP +.P If the absolute value of .I x is greater than 1, @@ -90,7 +90,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP less than \-1 or greater than +1 @@ -125,12 +125,11 @@ T{ .BR atanhl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/atexit.3 b/upstream/opensuse-tumbleweed/man3/atexit.3 index 4a57ac55..15ada041 100644 --- a/upstream/opensuse-tumbleweed/man3/atexit.3 +++ b/upstream/opensuse-tumbleweed/man3/atexit.3 @@ -11,7 +11,7 @@ .\" Modified 1993-07-24, Rik Faith (faith@cs.unc.edu) .\" Modified 2003-10-25, Walter Harms .\" -.TH atexit 3 2023-07-20 "Linux man-pages 6.05.01" +.TH atexit 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME atexit \- register a function to be called at normal process termination .SH LIBRARY @@ -20,7 +20,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int atexit(void (*" function )(void)); .fi .SH DESCRIPTION @@ -35,17 +35,17 @@ or via return from the program's .IR main (). Functions so registered are called in the reverse order of their registration; no arguments are passed. -.PP +.P The same function may be registered multiple times: it is called once for each registration. -.PP +.P POSIX.1 requires that an implementation allow at least .\" POSIX.1-2001, POSIX.1-2008 .B ATEXIT_MAX (32) such functions to be registered. The actual limit supported by an implementation can be obtained using .BR sysconf (3). -.PP +.P When a child process is created via .BR fork (2), it inherits copies of its parent's registrations. @@ -72,7 +72,6 @@ T{ .BR atexit () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS POSIX.1 says that the result of calling .\" POSIX.1-2001, POSIX.1-2008 @@ -102,14 +101,14 @@ Functions registered using .BR on_exit (3)) are not called if a process terminates abnormally because of the delivery of a signal. -.PP +.P If one of the registered functions calls .BR _exit (2), then any remaining functions are not invoked, and the other process termination steps performed by .BR exit (3) are not performed. -.PP +.P The .BR atexit () and @@ -118,7 +117,7 @@ functions register functions on the same list: at normal process termination, the registered functions are invoked in reverse order of their registration by these two functions. -.PP +.P According to POSIX.1, the result is undefined if .BR longjmp (3) is used to terminate execution of one of the functions registered using diff --git a/upstream/opensuse-tumbleweed/man3/atof.3 b/upstream/opensuse-tumbleweed/man3/atof.3 index bb1398a4..a626b632 100644 --- a/upstream/opensuse-tumbleweed/man3/atof.3 +++ b/upstream/opensuse-tumbleweed/man3/atof.3 @@ -9,7 +9,7 @@ .\" 386BSD man pages .\" Modified Mon Mar 29 22:39:24 1993, David Metcalfe .\" Modified Sat Jul 24 21:39:22 1993, Rik Faith (faith@cs.unc.edu) -.TH atof 3 2023-07-20 "Linux man-pages 6.05.01" +.TH atof 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME atof \- convert a string to a double .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double atof(const char *" nptr ); .fi .SH DESCRIPTION @@ -28,13 +28,13 @@ function converts the initial portion of the string pointed to by \fInptr\fP to .IR double . The behavior is the same as -.PP +.P .in +4n .EX strtod(nptr, NULL); .EE .in -.PP +.P except that .BR atof () does not detect errors. @@ -54,7 +54,6 @@ T{ .BR atof () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/atoi.3 b/upstream/opensuse-tumbleweed/man3/atoi.3 index d1d32f52..3df2e6bf 100644 --- a/upstream/opensuse-tumbleweed/man3/atoi.3 +++ b/upstream/opensuse-tumbleweed/man3/atoi.3 @@ -11,7 +11,7 @@ .\" Modified Sat Jul 24 21:38:42 1993, Rik Faith (faith@cs.unc.edu) .\" Modified Sun Dec 17 18:35:06 2000, Joseph S. Myers .\" -.TH atoi 3 2023-07-20 "Linux man-pages 6.05.01" +.TH atoi 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME atoi, atol, atoll \- convert a string to an integer .SH LIBRARY @@ -20,17 +20,17 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int atoi(const char *" nptr ); .BI "long atol(const char *" nptr ); .BI "long long atoll(const char *" nptr ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR atoll (): .nf _ISOC99_SOURCE @@ -43,17 +43,17 @@ function converts the initial portion of the string pointed to by \fInptr\fP to .IR int . The behavior is the same as -.PP +.P .in +4n .EX strtol(nptr, NULL, 10); .EE .in -.PP +.P except that .BR atoi () does not detect errors. -.PP +.P The .BR atol () and @@ -80,7 +80,6 @@ T{ .BR atoll () T} Thread safety MT-Safe locale .TE -.sp 1 .SH VERSIONS POSIX.1 leaves the return value of .BR atoi () @@ -90,7 +89,7 @@ On glibc, musl libc, and uClibc, 0 is returned on error. C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001, SVr4, 4.3BSD. -.PP +.P C89 and POSIX.1-1996 include the functions .BR atoi () diff --git a/upstream/opensuse-tumbleweed/man3/attr.3ncurses b/upstream/opensuse-tumbleweed/man3/attr.3ncurses index ced65d37..c354a5c2 100644 --- a/upstream/opensuse-tumbleweed/man3/attr.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/attr.3ncurses @@ -28,8 +28,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_attr.3x,v 1.96 2024/01/13 22:05:39 tom Exp $ -.TH attr 3NCURSES 2024-01-13 "ncurses 6.4" "Library calls" +.\" $Id: curs_attr.3x,v 1.105 2024/04/27 17:54:42 tom Exp $ +.TH attr 3NCURSES 2024-04-27 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -232,7 +232,7 @@ The routine \fBstandend\fP is the same as \fBattrset(A_NORMAL)\fP or \fBattrset(0)\fP, that is, it turns off all attributes. .PP -X/Open does not mark these \*(``restricted\*('', because +X/Open Curses does not mark these \*(``restricted\*('', because .bP they have well established legacy use, and .bP @@ -296,7 +296,7 @@ The SVr4 manual page claims (falsely) that these routines always return \fB1\fP. .SH RETURN VALUE All routines return the integer \fBOK\fP on success, or \fBERR\fP on failure. .PP -X/Open does not define any error conditions. +X/Open Curses does not specify any error conditions. .PP This implementation .bP @@ -308,9 +308,11 @@ for \fBwcolor_set\fP is outside the range 0..COLOR_PAIRS\-1. does not return an error if either of the parameters of \fBwattr_get\fP used for retrieving attribute or color pair values is \fBNULL\fP. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .\" --------------------------------------------------------------------------- .SH NOTES These functions may be macros: @@ -362,7 +364,7 @@ the \fIopts\fP parameter is ignored except except to check that it is \fBNULL\fP. .\" --------------------------------------------------------------------------- .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. +These functions are described in X/Open Curses, Issue 4. The standard defined the dedicated type for highlights, \fBattr_t\fP, which was not defined in SVr4 curses. The functions taking \fBattr_t\fP arguments were not supported under SVr4. @@ -371,7 +373,7 @@ Very old versions of this library did not force an update of the screen when changing the attributes. Use \fBtouchwin\fP to force the screen to match the updated attributes. .PP -The XSI Curses standard states that whether the traditional functions +X/Open Curses states that whether the traditional functions \fBattron\fP/\fBattroff\fP/\fBattrset\fP can manipulate attributes other than \fBA_BLINK\fP, \fBA_BOLD\fP, \fBA_DIM\fP, \fBA_REVERSE\fP, \fBA_STANDOUT\fP, or \fBA_UNDERLINE\fP is \*(``unspecified\*(''. @@ -379,7 +381,7 @@ Under this implementation as well as SVr4 curses, these functions correctly manipulate all other highlights (specifically, \fBA_ALTCHARSET\fP, \fBA_PROTECT\fP, and \fBA_INVIS\fP). .PP -XSI Curses added these entry points: +X/Open Curses added these entry points: .sp .RS \fBattr_get\fP, \fBattr_on\fP, @@ -411,11 +413,11 @@ WA_ALTCHARSET Alternate character set .TE .RE .PP -XSI curses does not assign values to these symbols, +X/Open Curses does not assign values to these symbols, nor does it state whether or not they are related to the similarly-named A_NORMAL, etc.: .bP -The XSI curses standard specifies that each pair of corresponding \fBA_\fP +X/Open Curses specifies that each pair of corresponding \fBA_\fP and \fBWA_\fP-using functions operates on the same current-highlight information. .bP @@ -445,7 +447,7 @@ no change is made to the window's color. This is consistent with SVr4 curses; X/Open Curses does not specify this. .PP -The XSI standard extended conformance level adds new highlights +The X/Open Curses extended conformance level adds new highlights \fBA_HORIZONTAL\fP, \fBA_LEFT\fP, \fBA_LOW\fP, \fBA_RIGHT\fP, \fBA_TOP\fP, \fBA_VERTICAL\fP (and corresponding \fBWA_\fP macros for each). As of August 2013, @@ -512,7 +514,7 @@ but not necessarily the reverse. .PP .TS Lb Lb Lb Cb S Lb -Lb2 Lb Lb2 Lbz Lb2 Lb +Lb2 Lb Lb2 Lb2 Lb2 Lb L L L L L Lx. \& \& \& Bits \& Year System Arch Color Char Notes diff --git a/upstream/opensuse-tumbleweed/man3/attributes.3menu b/upstream/opensuse-tumbleweed/man3/attributes.3menu index bd2b1a91..16f90004 100644 --- a/upstream/opensuse-tumbleweed/man3/attributes.3menu +++ b/upstream/opensuse-tumbleweed/man3/attributes.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: menu_attributes.3x,v 1.34 2023/11/25 13:58:47 tom Exp $ -.TH attributes 3MENU 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: menu_attributes.3x,v 1.36 2024/03/16 15:35:01 tom Exp $ +.TH attributes 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq diff --git a/upstream/opensuse-tumbleweed/man3/backtrace.3 b/upstream/opensuse-tumbleweed/man3/backtrace.3 index ae970ff4..04762c5f 100644 --- a/upstream/opensuse-tumbleweed/man3/backtrace.3 +++ b/upstream/opensuse-tumbleweed/man3/backtrace.3 @@ -25,7 +25,7 @@ .\" .\" References: .\" glibc manual and source -.TH backtrace 3 2023-07-20 "Linux man-pages 6.05.01" +.TH backtrace 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME backtrace, backtrace_symbols, backtrace_symbols_fd \- support for application self-debugging @@ -35,9 +35,9 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int backtrace(void *" buffer [. size "], int " size ); -.PP +.P .BI "char **backtrace_symbols(void *const " buffer [. size "], int " size ); .BI "void backtrace_symbols_fd(void *const " buffer [. size "], int " size ", \ int " fd ); @@ -70,7 +70,7 @@ to obtain the complete backtrace, make sure that and .I size are large enough. -.PP +.P Given the set of addresses returned by .BR backtrace () in @@ -95,7 +95,7 @@ by and must be freed by the caller. (The strings pointed to by the array of pointers need not and should not be freed.) -.PP +.P .BR backtrace_symbols_fd () takes the same .I buffer @@ -123,7 +123,7 @@ then the full backtrace was stored; if it is equal to .IR size , then it may have been truncated, in which case the addresses of the oldest stack frames are not returned. -.PP +.P On success, .BR backtrace_symbols () returns a pointer to the array @@ -146,7 +146,6 @@ T{ .BR backtrace_symbols_fd () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH HISTORY @@ -180,7 +179,7 @@ If you need certain calls to these two functions to not allocate memory (in signal handlers, for example), you need to make sure .I libgcc is loaded beforehand. -.PP +.P The symbol names may be unavailable without the use of special linker options. For systems using the GNU linker, it is necessary to use the @@ -195,7 +194,7 @@ and .BR backtrace_symbols (). The following shell session shows what we might see when running the program: -.PP +.P .in +4n .EX .RB "$" " cc \-rdynamic prog.c \-o prog" diff --git a/upstream/opensuse-tumbleweed/man3/basename.3 b/upstream/opensuse-tumbleweed/man3/basename.3 index 266c49ae..5d1e7fc9 100644 --- a/upstream/opensuse-tumbleweed/man3/basename.3 +++ b/upstream/opensuse-tumbleweed/man3/basename.3 @@ -5,7 +5,7 @@ .\" .\" Created, 14 Dec 2000 by Michael Kerrisk .\" -.TH basename 3 2023-07-20 "Linux man-pages 6.05.01" +.TH basename 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME basename, dirname \- parse pathname components .SH LIBRARY @@ -14,7 +14,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *dirname(char *" path ); .BI "char *basename(char *" path ); .fi @@ -22,7 +22,7 @@ Standard C library Warning: there are two different functions .BR basename (); see below. -.PP +.P The functions .BR dirname () and @@ -35,7 +35,7 @@ returns the string up to, but not including, the final \[aq]/\[aq], and .BR basename () returns the component following the final \[aq]/\[aq]. Trailing \[aq]/\[aq] characters are not counted as part of the pathname. -.PP +.P If .I path does not contain a slash, @@ -58,13 +58,13 @@ is a null pointer or points to an empty string, then both and .BR basename () return the string ".". -.PP +.P Concatenating the string returned by .BR dirname (), a "/", and the string returned by .BR basename () yields a complete pathname. -.PP +.P Both .BR dirname () and @@ -73,7 +73,7 @@ may modify the contents of .IR path , so it may be desirable to pass a copy when calling one of these functions. -.PP +.P These functions may return pointers to statically allocated memory which may be overwritten by subsequent calls. Alternatively, they may return a pointer to some part of @@ -82,7 +82,7 @@ so that the string referred to by .I path should not be modified or freed until the pointer returned by the function is no longer required. -.PP +.P The following list of examples (taken from SUSv2) shows the strings returned by .BR dirname () @@ -125,27 +125,26 @@ T{ .BR dirname () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS There are two different versions of .BR basename () - the POSIX version described above, and the GNU version, which one gets after -.PP +.P .in +4n .EX .BR " #define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B " #include " .EE .in -.PP +.P The GNU version never modifies its argument, and returns the empty string when .I path has a trailing slash, and in particular also when it is "/". There is no GNU version of .BR dirname (). -.PP +.P With glibc, one gets the POSIX version of .BR basename () when @@ -161,7 +160,7 @@ the POSIX versions of these functions modify the .I path argument, and segfault when called with a static string such as "/usr/". -.PP +.P Before glibc 2.2.1, the glibc version of .BR dirname () did not correctly handle pathnames with trailing \[aq]/\[aq] characters, diff --git a/upstream/opensuse-tumbleweed/man3/bcmp.3 b/upstream/opensuse-tumbleweed/man3/bcmp.3 index d3cc49d4..4c509def 100644 --- a/upstream/opensuse-tumbleweed/man3/bcmp.3 +++ b/upstream/opensuse-tumbleweed/man3/bcmp.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH bcmp 3 2023-03-30 "Linux man-pages 6.05.01" +.TH bcmp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME bcmp \- compare byte sequences .SH LIBRARY @@ -11,7 +11,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] int bcmp(const void " s1 [. n "], const void " s2 [. n "], \ size_t " n ); .fi @@ -19,7 +19,7 @@ size_t " n ); .BR bcmp () is identical to .BR memcmp (3); -use it instead. +use the latter instead. .SH STANDARDS None. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/bcopy.3 b/upstream/opensuse-tumbleweed/man3/bcopy.3 index b8892e90..5688b6f8 100644 --- a/upstream/opensuse-tumbleweed/man3/bcopy.3 +++ b/upstream/opensuse-tumbleweed/man3/bcopy.3 @@ -11,7 +11,7 @@ .\" Modified Sun Feb 26 14:52:00 1995 by Rik Faith .\" Modified Tue Oct 22 23:48:10 1996 by Eric S. Raymond .\" " -.TH bcopy 3 2023-07-20 "Linux man-pages 6.05.01" +.TH bcopy 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME bcopy \- copy byte sequence .SH LIBRARY @@ -20,7 +20,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] void bcopy(const void " src [. n "], void " dest [. n "], \ size_t " n ); .fi @@ -50,12 +50,11 @@ T{ .BR bcopy () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY 4.3BSD. -.PP +.P Marked as LEGACY in POSIX.1-2001: use .BR memcpy (3) or diff --git a/upstream/opensuse-tumbleweed/man3/beep.3ncurses b/upstream/opensuse-tumbleweed/man3/beep.3ncurses index c35f34f2..d533e1b6 100644 --- a/upstream/opensuse-tumbleweed/man3/beep.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/beep.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2021,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2005,2010 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_beep.3x,v 1.25 2023/10/07 21:19:07 tom Exp $ -.TH beep 3NCURSES 2023-10-07 "ncurses 6.4" "Library calls" +.\" $Id: curs_beep.3x,v 1.29 2024/04/20 21:20:07 tom Exp $ +.TH beep 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .SH NAME \fB\%beep\fP, \fB\%flash\fP \- @@ -57,7 +57,7 @@ These routines return \fBOK\fP if they succeed in beeping or flashing, SVr4's beep and flash routines always returned \fBOK\fP, so it was not possible to tell when the beep or flash failed. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. +These functions are described in X/Open Curses, Issue 4. Like SVr4, it specifies that they always return \fBOK\fP. .SH SEE ALSO \fB\%ncurses\fP(3NCURSES) diff --git a/upstream/opensuse-tumbleweed/man3/bind_textdomain_codeset.3 b/upstream/opensuse-tumbleweed/man3/bind_textdomain_codeset.3 index b1109fae..80810932 100644 --- a/upstream/opensuse-tumbleweed/man3/bind_textdomain_codeset.3 +++ b/upstream/opensuse-tumbleweed/man3/bind_textdomain_codeset.3 @@ -10,7 +10,7 @@ .\" GNU gettext source code and manual .\" LI18NUX 2000 Globalization Specification .\" -.TH BIND_TEXTDOMAIN_CODESET 3 "May 2001" "GNU gettext 20220912" +.TH BIND_TEXTDOMAIN_CODESET 3 "May 2001" "GNU gettext 0.22.5" .SH NAME bind_textdomain_codeset \- set encoding of message translations .SH SYNOPSIS diff --git a/upstream/opensuse-tumbleweed/man3/bindresvport.3 b/upstream/opensuse-tumbleweed/man3/bindresvport.3 index d14e5805..1eef397f 100644 --- a/upstream/opensuse-tumbleweed/man3/bindresvport.3 +++ b/upstream/opensuse-tumbleweed/man3/bindresvport.3 @@ -8,7 +8,7 @@ .\" 2007-05-31, mtk: Rewrite and substantial additional text. .\" 2008-12-03, mtk: Rewrote some pieces and fixed some errors .\" -.TH bindresvport 3 2023-07-20 "Linux man-pages 6.05.01" +.TH bindresvport 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME bindresvport \- bind a socket to a privileged IP port .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "int bindresvport(int " sockfd ", struct sockaddr_in *" sin ); .fi .SH DESCRIPTION @@ -29,7 +29,7 @@ file descriptor to a privileged anonymous IP port, that is, a port number arbitrarily selected from the range 512 to 1023. .\" glibc actually starts searching with a port # in the range 600 to 1023 -.PP +.P If the .BR bind (2) performed by @@ -39,7 +39,7 @@ is successful, and is not NULL, then .I sin\->sin_port returns the port number actually allocated. -.PP +.P .I sin can be NULL, in which case .I sin\->sin_family @@ -96,8 +96,7 @@ glibc\ >=\ 2.17: MT-Safe; glibc\ <\ 2.17: MT-Unsafe T} .TE -.sp 1 -.PP +.P The .BR bindresvport () function uses a static variable that was not protected by a lock diff --git a/upstream/opensuse-tumbleweed/man3/bindtextdomain.3 b/upstream/opensuse-tumbleweed/man3/bindtextdomain.3 index e7623205..b6fe8701 100644 --- a/upstream/opensuse-tumbleweed/man3/bindtextdomain.3 +++ b/upstream/opensuse-tumbleweed/man3/bindtextdomain.3 @@ -10,7 +10,7 @@ .\" GNU gettext source code and manual .\" LI18NUX 2000 Globalization Specification .\" -.TH BINDTEXTDOMAIN 3 "May 2001" "GNU gettext 20220912" +.TH BINDTEXTDOMAIN 3 "May 2001" "GNU gettext 0.22.5" .SH NAME bindtextdomain \- set directory containing message catalogs .SH SYNOPSIS diff --git a/upstream/opensuse-tumbleweed/man3/bkgd.3ncurses b/upstream/opensuse-tumbleweed/man3/bkgd.3ncurses index 60c7d327..67e3adf0 100644 --- a/upstream/opensuse-tumbleweed/man3/bkgd.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/bkgd.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2015,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_bkgd.3x,v 1.55 2023/12/23 16:35:10 tom Exp $ -.TH bkgd 3NCURSES 2023-12-23 "ncurses 6.4" "Library calls" +.\" $Id: curs_bkgd.3x,v 1.61 2024/04/20 18:54:36 tom Exp $ +.TH bkgd 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -184,7 +184,8 @@ like SVr4 \fIcurses\fP, checks to ensure that, and will reuse the old background character if the check fails. .SH PORTABILITY -X/Open Curses, Issue 4, describes these functions. +X/Open Curses, +Issue 4 describes these functions. It specifies that \fB\%bkgd\fP, \fB\%wbkgd\fP, @@ -208,9 +209,9 @@ written to the screen during the refresh. Neither X/Open Curses nor the SVr4 manual pages detail how the rendition of characters on the screen updates when \fB\%bkgd\fP or \fB\%wbkgd\fP changes the background character. -.I \%ncurses, +.IR \%ncurses , like SVr4 -.I curses, +.IR curses , does not (in its non-\*(``wide\*('' configuration) store the background and window attribute contributions to each @@ -218,7 +219,7 @@ character cell separately. .SH SEE ALSO \fB\%bkgrnd\fP(3NCURSES) describes the corresponding functions in the \*(``wide\*('' configuration of -.I \%ncurses. +.IR \%ncurses . .PP \fB\%ncurses\fP(3NCURSES), \fB\%addch\fP(3NCURSES), diff --git a/upstream/opensuse-tumbleweed/man3/bkgrnd.3ncurses b/upstream/opensuse-tumbleweed/man3/bkgrnd.3ncurses index f344d51c..dd44baa3 100644 --- a/upstream/opensuse-tumbleweed/man3/bkgrnd.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/bkgrnd.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 2002-2015,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_bkgrnd.3x,v 1.36 2023/12/23 16:35:10 tom Exp $ -.TH bkgrnd 3NCURSES 2023-12-23 "ncurses 6.4" "Library calls" +.\" $Id: curs_bkgrnd.3x,v 1.42 2024/04/20 18:54:36 tom Exp $ +.TH bkgrnd 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -171,7 +171,7 @@ upon failure and .B OK upon success. In -.I \%ncurses, +.IR \%ncurses , failure occurs if .bP a @@ -192,23 +192,24 @@ is null. may be implemented as macros. .PP Unlike their counterparts in the non-\*(``wide\*('' configuration of -.I \%ncurses, +.IR \%ncurses , \fB\%getbkgrnd\fP and \fB\%wgetbkgrnd\fP supply the background character and attribute in a modifiable .I \%cchar_t parameter, not as the return value. .SH PORTABILITY -X/Open Curses, Issue 4, describes these functions. +X/Open Curses, +Issue 4 describes these functions. It specifies no error conditions for them. .PP X/Open Curses does not provide details of how the rendition is updated. This implementation follows the approach used in SVr4 -.I curses. +.IR curses . .SH SEE ALSO \fB\%bkgd\fP(3NCURSES) describes the corresponding functions in the non-\*(``wide\*('' configuration of -.I \%ncurses. +.IR \%ncurses . .PP \fB\%ncurses\fP(3NCURSES), \fB\%add_wch\fP(3NCURSES), diff --git a/upstream/opensuse-tumbleweed/man3/border.3ncurses b/upstream/opensuse-tumbleweed/man3/border.3ncurses index 6182f898..3663794a 100644 --- a/upstream/opensuse-tumbleweed/man3/border.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/border.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2007,2010 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_border.3x,v 1.44 2023/12/16 21:09:11 tom Exp $ -.TH border 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: curs_border.3x,v 1.49 2024/04/20 21:20:07 tom Exp $ +.TH border 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -141,20 +141,22 @@ The SVr4.0 manual says \*(``or a non-negative integer if \fB\%immedok\fP is set\*('', but this appears to be an error. .PP -X/Open does not define any error conditions. +X/Open Curses does not specify any error conditions. This implementation returns an error if the window pointer is null. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES The borders generated by these functions are \fIinside\fP borders (this is also true of SVr4 curses, though the fact is not documented). .PP Note that \fBborder\fP and \fBbox\fP may be macros. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. +These functions are described in X/Open Curses, Issue 4. .SH SEE ALSO \fB\%ncurses\fP(3NCURSES), \fB\%outopts\fP(3NCURSES) diff --git a/upstream/opensuse-tumbleweed/man3/border_set.3ncurses b/upstream/opensuse-tumbleweed/man3/border_set.3ncurses index 16986567..20c3f15f 100644 --- a/upstream/opensuse-tumbleweed/man3/border_set.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/border_set.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2019-2022,2023 Thomas E. Dickey * +.\" Copyright 2019-2023,2024 Thomas E. Dickey * .\" Copyright 2002-2011,2012 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_border_set.3x,v 1.31 2023/11/25 15:39:56 tom Exp $ -.TH border_set 3NCURSES 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: curs_border_set.3x,v 1.36 2024/04/20 21:20:07 tom Exp $ +.TH border_set 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -179,9 +179,11 @@ Otherwise, they return .PP Functions using a window parameter return an error if it is null. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES Note that \fBborder_set\fP, @@ -193,7 +195,7 @@ Note that \fBvline_set\fP may be macros. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. +These functions are described in X/Open Curses, Issue 4. .SH SEE ALSO \fB\%ncurses\fP(3NCURSES), \fB\%add_wch\fP(3NCURSES), diff --git a/upstream/opensuse-tumbleweed/man3/bsd_signal.3 b/upstream/opensuse-tumbleweed/man3/bsd_signal.3 index 3294c5cc..183ab2eb 100644 --- a/upstream/opensuse-tumbleweed/man3/bsd_signal.3 +++ b/upstream/opensuse-tumbleweed/man3/bsd_signal.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH bsd_signal 3 2023-07-20 "Linux man-pages 6.05.01" +.TH bsd_signal 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME bsd_signal \- signal handling with BSD semantics .SH LIBRARY @@ -12,17 +12,17 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B typedef void (*sighandler_t)(int); -.PP +.P .BI "sighandler_t bsd_signal(int " signum ", sighandler_t " handler ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR bsd_signal (): .nf Since glibc 2.26: @@ -37,7 +37,7 @@ The .BR bsd_signal () function takes the same arguments, and performs the same task, as .BR signal (2). -.PP +.P The difference between the two is that .BR bsd_signal () is guaranteed to provide reliable signal semantics, that is: @@ -73,14 +73,13 @@ T{ .BR bsd_signal () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS Use of .BR bsd_signal () should be avoided; use .BR sigaction (2) instead. -.PP +.P On modern Linux systems, .BR bsd_signal () and @@ -91,7 +90,7 @@ But on older systems, provided unreliable signal semantics; see .BR signal (2) for details. -.PP +.P The use of .I sighandler_t is a GNU extension; diff --git a/upstream/opensuse-tumbleweed/man3/bsearch.3 b/upstream/opensuse-tumbleweed/man3/bsearch.3 index f73b9392..3e6bff43 100644 --- a/upstream/opensuse-tumbleweed/man3/bsearch.3 +++ b/upstream/opensuse-tumbleweed/man3/bsearch.3 @@ -9,7 +9,7 @@ .\" 386BSD man pages .\" Modified Mon Mar 29 22:41:16 1993, David Metcalfe .\" Modified Sat Jul 24 21:35:16 1993, Rik Faith (faith@cs.unc.edu) -.TH bsearch 3 2023-07-20 "Linux man-pages 6.05.01" +.TH bsearch 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME bsearch \- binary search of a sorted array .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void *bsearch(const void " key [. size "], \ const void " base [. size " * ." nmemb ], .BI " size_t " nmemb ", size_t " size , @@ -39,7 +39,7 @@ that matches the object pointed to by The size of each member of the array is specified by .IR size . -.PP +.P The contents of the array should be in ascending sorted order according to the comparison function referenced by .IR compar . @@ -74,7 +74,6 @@ T{ .BR bsearch () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -84,7 +83,7 @@ The example below first sorts an array of structures using .BR qsort (3), then retrieves desired elements using .BR bsearch (). -.PP +.P .\" SRC BEGIN (bsearch.c) .EX #include diff --git a/upstream/opensuse-tumbleweed/man3/bstring.3 b/upstream/opensuse-tumbleweed/man3/bstring.3 index 87b133ad..3f057571 100644 --- a/upstream/opensuse-tumbleweed/man3/bstring.3 +++ b/upstream/opensuse-tumbleweed/man3/bstring.3 @@ -9,7 +9,7 @@ .\" Modified 1993-04-12, David Metcalfe .\" Modified 1993-07-24, Rik Faith (faith@cs.unc.edu) .\" Modified 2002-01-20, Walter Harms -.TH bstring 3 2023-01-07 "Linux man-pages 6.05.01" +.TH bstring 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME bcmp, bcopy, bzero, memccpy, memchr, memcmp, memcpy, memfrob, memmem, memmove, memset \- byte string operations @@ -19,29 +19,29 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int bcmp(const void " s1 [. n "], const void " s2 [. n "], size_t " n ); -.PP +.P .BI "void bcopy(const void " src [. n "], void " dest [. n "], size_t " n ); -.PP +.P .BI "void bzero(void " s [. n "], size_t " n ); -.PP +.P .BI "void *memccpy(void " dest [. n "], const void " src [. n "], int " c ", \ size_t " n ); -.PP +.P .BI "void *memchr(const void " s [. n "], int " c ", size_t " n ); -.PP +.P .BI "int memcmp(const void " s1 [. n "], const void " s2 [. n "], size_t " n ); -.PP +.P .BI "void *memcpy(void " dest [. n "], const void " src [. n "], size_t " n ); -.PP +.P .BI "void *memfrob(void " s [. n "], size_t " n ); -.PP +.P .BI "void *memmem(const void " haystack [. haystacklen "], size_t " haystacklen , .BI " const void " needle [. needlelen "], size_t " needlelen ); -.PP +.P .BI "void *memmove(void " dest [. n "], const void " src [. n "], size_t " n ); -.PP +.P .BI "void *memset(void " s [. n "], int " c ", size_t " n ); .fi .SH DESCRIPTION diff --git a/upstream/opensuse-tumbleweed/man3/bswap.3 b/upstream/opensuse-tumbleweed/man3/bswap.3 index 1810e9fd..0e4808fc 100644 --- a/upstream/opensuse-tumbleweed/man3/bswap.3 +++ b/upstream/opensuse-tumbleweed/man3/bswap.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH bswap 3 2023-05-03 "Linux man-pages 6.05.01" +.TH bswap 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME bswap_16, bswap_32, bswap_64 \- reverse order of bytes .SH LIBRARY @@ -11,7 +11,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "uint16_t bswap_16(uint16_t " x ); .BI "uint32_t bswap_32(uint32_t " x ); .BI "uint64_t bswap_64(uint64_t " x ); @@ -29,7 +29,7 @@ GNU. The program below swaps the bytes of the 8-byte integer supplied as its command-line argument. The following shell session demonstrates the use of the program: -.PP +.P .in +4n .EX $ \fB./a.out 0x0123456789abcdef\fP diff --git a/upstream/opensuse-tumbleweed/man3/btowc.3 b/upstream/opensuse-tumbleweed/man3/btowc.3 index 67e0d254..518211a2 100644 --- a/upstream/opensuse-tumbleweed/man3/btowc.3 +++ b/upstream/opensuse-tumbleweed/man3/btowc.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH btowc 3 2023-07-20 "Linux man-pages 6.05.01" +.TH btowc 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME btowc \- convert single byte to wide character .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wint_t btowc(int " c ); .fi .SH DESCRIPTION @@ -59,7 +59,6 @@ T{ .BR btowc () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -71,7 +70,7 @@ depends on the .B LC_CTYPE category of the current locale. -.PP +.P This function should never be used. It does not work for encodings which have state, and unnecessarily treats single bytes differently from multibyte diff --git a/upstream/opensuse-tumbleweed/man3/btree.3 b/upstream/opensuse-tumbleweed/man3/btree.3 index dfa8f4e0..49190080 100644 --- a/upstream/opensuse-tumbleweed/man3/btree.3 +++ b/upstream/opensuse-tumbleweed/man3/btree.3 @@ -5,7 +5,7 @@ .\" .\" @(#)btree.3 8.4 (Berkeley) 8/18/94 .\" -.TH btree 3 2022-12-04 "Linux man-pages 6.05.01" +.TH btree 3 2024-05-02 "Linux man-pages (unreleased)" .\".UC 7 .SH NAME btree \- btree database access method @@ -26,7 +26,7 @@ Since glibc 2.2, glibc no longer provides these interfaces. Probably, you are looking for the APIs provided by the .I libdb library instead. -.PP +.P The routine .BR dbopen (3) is the library interface to database files. @@ -34,16 +34,16 @@ One of the supported file formats is btree files. The general description of the database access methods is in .BR dbopen (3), this manual page describes only the btree-specific information. -.PP +.P The btree data structure is a sorted, balanced tree structure storing associated key/data pairs. -.PP +.P The btree access-method-specific data structure provided to .BR dbopen (3) is defined in the .I include file as follows: -.PP +.P .in +4n .EX typedef struct { @@ -58,7 +58,7 @@ typedef struct { } BTREEINFO; .EE .in -.PP +.P The elements of this structure are as follows: .TP .I flags @@ -178,7 +178,7 @@ big endian order would be the number 4,321. If .I lorder is 0 (no order is specified), the current host order is used. -.PP +.P If the file already exists (and the .B O_TRUNC flag is not specified), the @@ -189,15 +189,15 @@ and .I psize are ignored in favor of the values used when the tree was created. -.PP +.P Forward sequential scans of a tree are from the least key to the greatest. -.PP +.P Space freed up by deleting key/data pairs from the tree is never reclaimed, although it is normally made available for reuse. This means that the btree storage structure is grow-only. The only solutions are to avoid excessive deletions, or to create a fresh tree periodically from a scan of an existing one. -.PP +.P Searches, insertions, and deletions in a btree will all complete in O lg base N where base is the average fill factor. Often, inserting ordered data into btrees results in a low fill factor. @@ -217,13 +217,13 @@ Only big and little endian byte order is supported. .BR hash (3), .BR mpool (3), .BR recno (3) -.PP +.P .IR "The Ubiquitous B-tree" , Douglas Comer, ACM Comput. Surv. 11, 2 (June 1979), 121-138. -.PP +.P .IR "Prefix B-trees" , Bayer and Unterauer, ACM Transactions on Database Systems, Vol. 2, 1 (March 1977), 11-26. -.PP +.P .IR "The Art of Computer Programming Vol. 3: Sorting and Searching" , D.E. Knuth, 1968, pp 471-480. diff --git a/upstream/opensuse-tumbleweed/man3/byteorder.3 b/upstream/opensuse-tumbleweed/man3/byteorder.3 index 7040f635..2e82db29 100644 --- a/upstream/opensuse-tumbleweed/man3/byteorder.3 +++ b/upstream/opensuse-tumbleweed/man3/byteorder.3 @@ -10,7 +10,7 @@ .\" Modified Sat Jul 24 21:29:05 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified Thu Jul 26 14:06:20 2001 by Andries Brouwer (aeb@cwi.nl) .\" -.TH BYTEORDER 3 2023-07-20 "Linux man-pages 6.05.01" +.TH BYTEORDER 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME htonl, htons, ntohl, ntohs \- convert values between host and network byte order @@ -20,10 +20,10 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "uint32_t htonl(uint32_t " hostlong ); .BI "uint16_t htons(uint16_t " hostshort ); -.PP +.P .BI "uint32_t ntohl(uint32_t " netlong ); .BI "uint16_t ntohs(uint16_t " netshort ); .fi @@ -33,25 +33,25 @@ The function converts the unsigned integer .I hostlong from host byte order to network byte order. -.PP +.P The .BR htons () function converts the unsigned short integer .I hostshort from host byte order to network byte order. -.PP +.P The .BR ntohl () function converts the unsigned integer .I netlong from network byte order to host byte order. -.PP +.P The .BR ntohs () function converts the unsigned short integer .I netshort from network byte order to host byte order. -.PP +.P On the i386 the host byte order is Least Significant Byte first, whereas the network byte order, as used on the Internet, is Most Significant Byte first. @@ -72,7 +72,6 @@ T{ .BR ntohs () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/bzero.3 b/upstream/opensuse-tumbleweed/man3/bzero.3 index 35abb183..a50746f8 100644 --- a/upstream/opensuse-tumbleweed/man3/bzero.3 +++ b/upstream/opensuse-tumbleweed/man3/bzero.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH bzero 3 2023-07-20 "Linux man-pages 6.05.01" +.TH bzero 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME bzero, explicit_bzero \- zero a byte string .SH LIBRARY @@ -12,11 +12,11 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void bzero(void " s [. n "], size_t " n ); -.PP +.P .B #include -.PP +.P .BI "void explicit_bzero(void " s [. n "], size_t " n ); .fi .SH DESCRIPTION @@ -27,7 +27,7 @@ function erases the data in the bytes of the memory starting at the location pointed to by .IR s , by writing zeros (bytes containing \[aq]\e0\[aq]) to that area. -.PP +.P The .BR explicit_bzero () function performs the same task as @@ -53,7 +53,6 @@ T{ .BR explicit_bzero () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY @@ -94,7 +93,7 @@ by an incorrect or compromised program. Calls to .BR explicit_bzero () are never optimized away by the compiler. -.PP +.P The .BR explicit_bzero () function does not solve all problems associated with erasing sensitive data: @@ -133,7 +132,7 @@ by a bug than data in a register, and thus the call creates a brief time window where the sensitive data is more vulnerable than it would otherwise have been if no attempt had been made to erase the data. -.PP +.P Note that declaring the sensitive variable with the .B volatile qualifier does @@ -143,7 +142,7 @@ Indeed, it will make them worse, since, for example, it may force a variable that would otherwise have been optimized into a register to instead be maintained in (more vulnerable) RAM for its entire lifetime. -.PP +.P Notwithstanding the above details, for security-conscious applications, using .BR explicit_bzero () is generally preferable to not using it. diff --git a/upstream/opensuse-tumbleweed/man3/cabs.3 b/upstream/opensuse-tumbleweed/man3/cabs.3 index f0c75697..2a7a7c65 100644 --- a/upstream/opensuse-tumbleweed/man3/cabs.3 +++ b/upstream/opensuse-tumbleweed/man3/cabs.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH cabs 3 2023-07-20 "Linux man-pages 6.05.01" +.TH cabs 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME cabs, cabsf, cabsl \- absolute value of a complex number .SH LIBRARY @@ -12,7 +12,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double cabs(double complex " z ); .BI "float cabsf(float complex " z ); .BI "long double cabsl(long double complex " z ); @@ -37,7 +37,6 @@ T{ .BR cabsl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/cacos.3 b/upstream/opensuse-tumbleweed/man3/cacos.3 index aebff0fe..53190749 100644 --- a/upstream/opensuse-tumbleweed/man3/cacos.3 +++ b/upstream/opensuse-tumbleweed/man3/cacos.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH cacos 3 2023-07-20 "Linux man-pages 6.05.01" +.TH cacos 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME cacos, cacosf, cacosl \- complex arc cosine .SH LIBRARY @@ -13,7 +13,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex cacos(double complex " z ); .BI "float complex cacosf(float complex " z ); .BI "long double complex cacosl(long double complex " z ); @@ -25,9 +25,9 @@ If \fIy\ =\ cacos(z)\fP, then \fIz\ =\ ccos(y)\fP. The real part of .I y is chosen in the interval [0,pi]. -.PP +.P One has: -.PP +.P .nf cacos(z) = \-i * clog(z + i * csqrt(1 \- z * z)) .fi @@ -47,7 +47,6 @@ T{ .BR cacosl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/cacosh.3 b/upstream/opensuse-tumbleweed/man3/cacosh.3 index 55d1d476..c36f08f0 100644 --- a/upstream/opensuse-tumbleweed/man3/cacosh.3 +++ b/upstream/opensuse-tumbleweed/man3/cacosh.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH cacosh 3 2023-07-20 "Linux man-pages 6.05.01" +.TH cacosh 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME cacosh, cacoshf, cacoshl \- complex arc hyperbolic cosine .SH LIBRARY @@ -13,7 +13,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex cacosh(double complex " z ); .BI "float complex cacoshf(float complex " z ); .BI "long double complex cacoshl(long double complex " z ); @@ -28,9 +28,9 @@ is chosen in the interval [\-pi,pi]. The real part of .I y is chosen nonnegative. -.PP +.P One has: -.PP +.P .nf cacosh(z) = 2 * clog(csqrt((z + 1) / 2) + csqrt((z \- 1) / 2)) .fi @@ -50,7 +50,6 @@ T{ .BR cacoshl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/canonicalize_file_name.3 b/upstream/opensuse-tumbleweed/man3/canonicalize_file_name.3 index 5d9e466d..a4210570 100644 --- a/upstream/opensuse-tumbleweed/man3/canonicalize_file_name.3 +++ b/upstream/opensuse-tumbleweed/man3/canonicalize_file_name.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH canonicalize_file_name 3 2023-07-20 "Linux man-pages 6.05.01" +.TH canonicalize_file_name 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME canonicalize_file_name \- return the canonicalized absolute pathname .SH LIBRARY @@ -14,7 +14,7 @@ Standard C library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "char *canonicalize_file_name(const char *" path ");" .fi .SH DESCRIPTION @@ -31,17 +31,17 @@ pathname components. Consecutive slash .RI ( / ) characters are replaced by a single slash. -.PP +.P The returned string is dynamically allocated by .BR canonicalize_file_name () and the caller should deallocate it with .BR free (3) when it is no longer required. -.PP +.P The call .I canonicalize_file_name(path) is equivalent to the call: -.PP +.P .in +4n .EX realpath(path, NULL); @@ -73,7 +73,6 @@ T{ .BR canonicalize_file_name () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/carg.3 b/upstream/opensuse-tumbleweed/man3/carg.3 index a7e3daa1..87732472 100644 --- a/upstream/opensuse-tumbleweed/man3/carg.3 +++ b/upstream/opensuse-tumbleweed/man3/carg.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH carg 3 2023-07-20 "Linux man-pages 6.05.01" +.TH carg 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME carg, cargf, cargl \- calculate the complex argument .SH LIBRARY @@ -12,7 +12,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double carg(double complex " z ");" .BI "float cargf(float complex " z ");" .BI "long double cargl(long double complex " z ");" @@ -21,29 +21,29 @@ Math library These functions calculate the complex argument (also called phase angle) of .IR z , with a branch cut along the negative real axis. -.PP +.P A complex number can be described by two real coordinates. One may use rectangular coordinates and gets -.PP +.P .in +4n .EX z = x + I * y .EE .in -.PP +.P where .I x\~=\~creal(z) and .IR y\~=\~cimag(z) . -.PP +.P Or one may use polar coordinates and gets -.PP +.P .in +4n .EX z = r * cexp(I * a) .EE .in -.PP +.P where .I r\~=\~cabs(z) is the "radius", the "modulus", the absolute value of @@ -52,9 +52,9 @@ and .I a\~=\~carg(z) is the "phase angle", the argument of .IR z . -.PP +.P One has: -.PP +.P .in +4n .EX tan(carg(z)) = cimag(z) / creal(z) @@ -78,7 +78,6 @@ T{ .BR cargl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/casin.3 b/upstream/opensuse-tumbleweed/man3/casin.3 index 5cce6a46..95b308c8 100644 --- a/upstream/opensuse-tumbleweed/man3/casin.3 +++ b/upstream/opensuse-tumbleweed/man3/casin.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH casin 3 2023-07-20 "Linux man-pages 6.05.01" +.TH casin 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME casin, casinf, casinl \- complex arc sine .SH LIBRARY @@ -12,7 +12,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex casin(double complex " z ); .BI "float complex casinf(float complex " z ); .BI "long double complex casinl(long double complex " z ); @@ -24,9 +24,9 @@ If \fIy\ =\ casin(z)\fP, then \fIz\ =\ csin(y)\fP. The real part of .I y is chosen in the interval [\-pi/2,pi/2]. -.PP +.P One has: -.PP +.P .nf casin(z) = \-i clog(iz + csqrt(1 \- z * z)) .fi @@ -46,7 +46,6 @@ T{ .BR casinl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/casinh.3 b/upstream/opensuse-tumbleweed/man3/casinh.3 index 64cc89e6..950f0111 100644 --- a/upstream/opensuse-tumbleweed/man3/casinh.3 +++ b/upstream/opensuse-tumbleweed/man3/casinh.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH casinh 3 2023-07-20 "Linux man-pages 6.05.01" +.TH casinh 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME casinh, casinhf, casinhl \- complex arc sine hyperbolic .SH LIBRARY @@ -12,7 +12,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex casinh(double complex " z ); .BI "float complex casinhf(float complex " z ); .BI "long double complex casinhl(long double complex " z ); @@ -24,9 +24,9 @@ If \fIy\~=\~casinh(z)\fP, then \fIz\~=\~csinh(y)\fP. The imaginary part of .I y is chosen in the interval [\-pi/2,pi/2]. -.PP +.P One has: -.PP +.P .in +4n .EX casinh(z) = clog(z + csqrt(z * z + 1)) @@ -48,7 +48,6 @@ T{ .BR casinhl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/catan.3 b/upstream/opensuse-tumbleweed/man3/catan.3 index ea79b40d..67be9c2c 100644 --- a/upstream/opensuse-tumbleweed/man3/catan.3 +++ b/upstream/opensuse-tumbleweed/man3/catan.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH catan 3 2023-07-20 "Linux man-pages 6.05.01" +.TH catan 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME catan, catanf, catanl \- complex arc tangents .SH LIBRARY @@ -13,7 +13,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex catan(double complex " z ); .BI "float complex catanf(float complex " z ); .BI "long double complex catanl(long double complex " z ); @@ -22,10 +22,12 @@ Math library These functions calculate the complex arc tangent of .IR z . If \fIy\~=\~catan(z)\fP, then \fIz\~=\~ctan(y)\fP. -The real part of y is chosen in the interval [\-pi/2,pi/2]. -.PP +The real part of +.I y +is chosen in the interval [\-pi/2, pi/2]. +.P One has: -.PP +.P .in +4n .EX catan(z) = (clog(1 + i * z) \- clog(1 \- i * z)) / (2 * i) @@ -47,7 +49,6 @@ T{ .BR catanl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/catanh.3 b/upstream/opensuse-tumbleweed/man3/catanh.3 index 0cd8c2b2..45674953 100644 --- a/upstream/opensuse-tumbleweed/man3/catanh.3 +++ b/upstream/opensuse-tumbleweed/man3/catanh.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH catanh 3 2023-07-20 "Linux man-pages 6.05.01" +.TH catanh 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME catanh, catanhf, catanhl \- complex arc tangents hyperbolic .SH LIBRARY @@ -13,7 +13,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex catanh(double complex " z ); .BI "float complex catanhf(float complex " z ); .BI "long double complex catanhl(long double complex " z ); @@ -25,9 +25,9 @@ If \fIy\~=\~catanh(z)\fP, then \fIz\~=\~ctanh(y)\fP. The imaginary part of .I y is chosen in the interval [\-pi/2,pi/2]. -.PP +.P One has: -.PP +.P .in +4n .EX catanh(z) = 0.5 * (clog(1 + z) \- clog(1 \- z)) @@ -49,7 +49,6 @@ T{ .BR catanhl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/catgets.3 b/upstream/opensuse-tumbleweed/man3/catgets.3 index 2083bb33..02dc5bc4 100644 --- a/upstream/opensuse-tumbleweed/man3/catgets.3 +++ b/upstream/opensuse-tumbleweed/man3/catgets.3 @@ -4,7 +4,7 @@ .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" Updated, aeb, 980809 -.TH catgets 3 2023-07-20 "Linux man-pages 6.05.01" +.TH catgets 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME catgets \- get message from a message catalog .SH LIBRARY @@ -13,7 +13,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *catgets(nl_catd " catalog ", int " set_number \ ", int " message_number , .BI " const char *" message ); @@ -63,16 +63,15 @@ T{ .BR catgets () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY POSIX.1-2001. -.PP +.P The .BR catgets () function is available only in libc.so.4.4.4c and above. -.PP +.P The Jan 1987 X/Open Portability Guide specifies a more subtle error return: .I message diff --git a/upstream/opensuse-tumbleweed/man3/catopen.3 b/upstream/opensuse-tumbleweed/man3/catopen.3 index b65b1f36..278213f1 100644 --- a/upstream/opensuse-tumbleweed/man3/catopen.3 +++ b/upstream/opensuse-tumbleweed/man3/catopen.3 @@ -6,7 +6,7 @@ .\" Modified Thu Dec 13 22:51:19 2001 by Martin Schulze .\" Modified 2001-12-14 aeb .\" -.TH catopen 3 2023-07-20 "Linux man-pages 6.05.01" +.TH catopen 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME catopen, catclose \- open/close a message catalog .SH LIBRARY @@ -15,7 +15,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "nl_catd catopen(const char *" name ", int " flag ); .BI "int catclose(nl_catd " catalog ); .fi @@ -31,7 +31,7 @@ If a file descriptor is used to implement catalog descriptors, then the .B FD_CLOEXEC flag will be set. -.PP +.P The argument .I name specifies the name of the message catalog to be opened. @@ -73,7 +73,7 @@ Changing the .B LC_MESSAGES part of the locale may invalidate open catalog descriptors. -.PP +.P The .I flag argument to @@ -86,7 +86,7 @@ then it will use the current locale setting for Otherwise, it will use the .B LANG environment variable. -.PP +.P The function .BR catclose () closes the message catalog identified by @@ -109,7 +109,7 @@ The possible error values include all possible values for the .BR open (2) call. -.PP +.P The function .BR catclose () returns 0 on success, or \-1 on failure. @@ -147,7 +147,6 @@ T{ .BR catclose () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS The above is the POSIX.1 description. The glibc value for diff --git a/upstream/opensuse-tumbleweed/man3/cbrt.3 b/upstream/opensuse-tumbleweed/man3/cbrt.3 index 106e9512..bf5a62b8 100644 --- a/upstream/opensuse-tumbleweed/man3/cbrt.3 +++ b/upstream/opensuse-tumbleweed/man3/cbrt.3 @@ -8,7 +8,7 @@ .\" Modified 2002-07-27 Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH cbrt 3 2023-07-20 "Linux man-pages 6.05.01" +.TH cbrt 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME cbrt, cbrtf, cbrtl \- cube root function .SH LIBRARY @@ -17,17 +17,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double cbrt(double " x ); .BI "float cbrtf(float " x ); .BI "long double cbrtl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR cbrt (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -36,7 +36,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR cbrtf (), .BR cbrtl (): .nf @@ -47,12 +47,15 @@ Feature Test Macro Requirements for glibc (see .SH DESCRIPTION These functions return the (real) cube root of .IR x . -This function cannot fail; every representable real value has a -representable real cube root. +This function cannot fail; +every representable real value +has a real cube root, +and rounding it to a representable value +never causes overflow nor underflow. .SH RETURN VALUE These functions return the cube root of .IR x . -.PP +.P If .I x is +0, \-0, positive infinity, negative infinity, or NaN, @@ -76,7 +79,6 @@ T{ .BR cbrtl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/ccos.3 b/upstream/opensuse-tumbleweed/man3/ccos.3 index 2e6ceaba..b0c73032 100644 --- a/upstream/opensuse-tumbleweed/man3/ccos.3 +++ b/upstream/opensuse-tumbleweed/man3/ccos.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH ccos 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ccos 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ccos, ccosf, ccosl \- complex cosine function .SH LIBRARY @@ -12,7 +12,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex ccos(double complex " z ); .BI "float complex ccosf(float complex " z ); .BI "long double complex ccosl(long double complex " z ); @@ -20,9 +20,9 @@ Math library .SH DESCRIPTION These functions calculate the complex cosine of .IR z . -.PP +.P The complex cosine function is defined as: -.PP +.P .in +4n .EX ccos(z) = (exp(i * z) + exp(\-i * z)) / 2 @@ -44,7 +44,6 @@ T{ .BR ccosl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/ccosh.3 b/upstream/opensuse-tumbleweed/man3/ccosh.3 index ee0c3844..2261873e 100644 --- a/upstream/opensuse-tumbleweed/man3/ccosh.3 +++ b/upstream/opensuse-tumbleweed/man3/ccosh.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH ccosh 3 2023-03-30 "Linux man-pages 6.05.01" +.TH ccosh 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ccosh, ccoshf, ccoshl \- complex hyperbolic cosine .SH LIBRARY @@ -11,7 +11,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex ccosh(double complex " z ); .BI "float complex ccoshf(float complex " z ); .BI "long double complex ccoshl(long double complex " z ); @@ -19,9 +19,9 @@ Math library .SH DESCRIPTION These functions calculate the complex hyperbolic cosine of .IR z . -.PP +.P The complex hyperbolic cosine function is defined as: -.PP +.P .in +4n .EX ccosh(z) = (exp(z)+exp(\-z))/2 diff --git a/upstream/opensuse-tumbleweed/man3/ceil.3 b/upstream/opensuse-tumbleweed/man3/ceil.3 index d72711f0..b0f26c69 100644 --- a/upstream/opensuse-tumbleweed/man3/ceil.3 +++ b/upstream/opensuse-tumbleweed/man3/ceil.3 @@ -5,7 +5,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH ceil 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ceil 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ceil, ceilf, ceill \- ceiling function: smallest integral value not less than argument @@ -15,17 +15,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double ceil(double " x ); .BI "float ceilf(float " x ); .BI "long double ceill(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR ceilf (), .BR ceill (): .nf @@ -36,7 +36,7 @@ Feature Test Macro Requirements for glibc (see .SH DESCRIPTION These functions return the smallest integral value that is not less than .IR x . -.PP +.P For example, .I ceil(0.5) is 1.0, and @@ -45,7 +45,7 @@ is 0.0. .SH RETURN VALUE These functions return the ceiling of .IR x . -.PP +.P If .I x is integral, +0, \-0, NaN, or infinite, @@ -70,12 +70,11 @@ T{ .BR ceill () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to @@ -98,7 +97,7 @@ the maximum value of the exponent is 127 (respectively, 1023), and the number of mantissa bits including the implicit bit is 24 (respectively, 53).) -.PP +.P The integral value returned by these functions may be too large to store in an integer type .RI ( int , diff --git a/upstream/opensuse-tumbleweed/man3/cexp.3 b/upstream/opensuse-tumbleweed/man3/cexp.3 index 30ba13f7..6894c0d2 100644 --- a/upstream/opensuse-tumbleweed/man3/cexp.3 +++ b/upstream/opensuse-tumbleweed/man3/cexp.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH cexp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH cexp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME cexp, cexpf, cexpl \- complex exponential function .SH LIBRARY @@ -12,7 +12,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex cexp(double complex " z ); .BI "float complex cexpf(float complex " z ); .BI "long double complex cexpl(long double complex " z ); @@ -21,9 +21,9 @@ Math library These functions calculate e (2.71828..., the base of natural logarithms) raised to the power of .IR z . -.PP +.P One has: -.PP +.P .in +4n .EX cexp(I * z) = ccos(z) + I * csin(z) @@ -45,7 +45,6 @@ T{ .BR cexpl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/cexp2.3 b/upstream/opensuse-tumbleweed/man3/cexp2.3 index e19f1f6e..dcc48397 100644 --- a/upstream/opensuse-tumbleweed/man3/cexp2.3 +++ b/upstream/opensuse-tumbleweed/man3/cexp2.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH cexp2 3 2022-12-04 "Linux man-pages 6.05.01" +.TH cexp2 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME cexp2, cexp2f, cexp2l \- base-2 exponent of a complex number .SH LIBRARY @@ -11,7 +11,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex cexp2(double complex " z ); .BI "float complex cexp2f(float complex " z ); .BI "long double complex cexp2l(long double complex " z ); @@ -21,7 +21,7 @@ The function returns 2 raised to the power of .IR z . .SH STANDARDS These function names are reserved for future use in C99. -.PP +.P As at glibc 2.31, these functions are not provided in glibc. .\" But reserved in NAMESPACE. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/cfree.3 b/upstream/opensuse-tumbleweed/man3/cfree.3 index ef977177..7862e9ad 100644 --- a/upstream/opensuse-tumbleweed/man3/cfree.3 +++ b/upstream/opensuse-tumbleweed/man3/cfree.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH cfree 3 2023-07-20 "Linux man-pages 6.05.01" +.TH cfree 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME cfree \- free allocated memory .SH LIBRARY @@ -11,29 +11,29 @@ Standard C library .RI ( libc ", " \-lc ) .SH SYNOPSIS .nf -.PP +.P .B "#include " -.PP +.P /* In SunOS 4 */ .BI "int cfree(void *" ptr ); -.PP +.P /* In glibc or FreeBSD libcompat */ .BI "void cfree(void *" ptr ); -.PP +.P /* In SCO OpenServer */ .BI "void cfree(char " ptr [. size " * ." num "], unsigned int " num ", \ unsigned int " size ); -.PP +.P /* In Solaris watchmalloc.so.1 */ .BI "void cfree(void " ptr [. elsize " * ." nelem "], size_t " nelem ", \ size_t " elsize ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR cfree (): .nf Since glibc 2.19: @@ -53,7 +53,7 @@ In glibc, the function is a synonym for .BR free (3), "added for compatibility with SunOS". -.PP +.P Other systems have other functions with this name. The declaration is sometimes in .I @@ -64,17 +64,17 @@ Some SCO and Solaris versions have malloc libraries with a 3-argument .BR cfree (), apparently as an analog to .BR calloc (3). -.PP +.P If you need it while porting something, add -.PP +.P .in +4n .EX #define cfree(p, n, s) free((p)) .EE .in -.PP +.P to your file. -.PP +.P A frequently asked question is "Can I use .BR free (3) to free memory allocated with @@ -83,7 +83,7 @@ or do I need .BR cfree ()?" Answer: use .BR free (3). -.PP +.P An SCO manual writes: "The cfree routine is provided for compliance to the iBCSe2 standard and simply calls free. The num and size @@ -118,7 +118,6 @@ T{ .BR cfree () T} Thread safety MT-Safe /* In glibc */ .TE -.sp 1 .SH VERSIONS The 3-argument version of .BR cfree () diff --git a/upstream/opensuse-tumbleweed/man3/cimag.3 b/upstream/opensuse-tumbleweed/man3/cimag.3 index 4a9293e6..bc231fd4 100644 --- a/upstream/opensuse-tumbleweed/man3/cimag.3 +++ b/upstream/opensuse-tumbleweed/man3/cimag.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH cimag 3 2023-07-20 "Linux man-pages 6.05.01" +.TH cimag 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME cimag, cimagf, cimagl \- get imaginary part of a complex number .SH LIBRARY @@ -12,7 +12,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double cimag(double complex " z ); .BI "float cimagf(float complex " z ); .BI "long double cimagl(long double complex " z ); @@ -20,9 +20,9 @@ Math library .SH DESCRIPTION These functions return the imaginary part of the complex number .IR z . -.PP +.P One has: -.PP +.P .in +4n .EX z = creal(z) + I * cimag(z) @@ -44,7 +44,6 @@ T{ .BR cimagl () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS GCC also supports __imag__. That is a GNU extension. diff --git a/upstream/opensuse-tumbleweed/man3/circleq.3 b/upstream/opensuse-tumbleweed/man3/circleq.3 index c03ab160..5fd74f23 100644 --- a/upstream/opensuse-tumbleweed/man3/circleq.3 +++ b/upstream/opensuse-tumbleweed/man3/circleq.3 @@ -5,7 +5,7 @@ .\" SPDX-License-Identifier: BSD-3-Clause .\" .\" -.TH CIRCLEQ 3 2023-05-03 "Linux man-pages 6.05.01" +.TH CIRCLEQ 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME CIRCLEQ_EMPTY, CIRCLEQ_ENTRY, @@ -32,15 +32,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B CIRCLEQ_ENTRY(TYPE); -.PP +.P .B CIRCLEQ_HEAD(HEADNAME, TYPE); .BI "CIRCLEQ_HEAD CIRCLEQ_HEAD_INITIALIZER(CIRCLEQ_HEAD " head ); .BI "void CIRCLEQ_INIT(CIRCLEQ_HEAD *" head ); -.PP +.P .BI "int CIRCLEQ_EMPTY(CIRCLEQ_HEAD *" head ); -.PP +.P .BI "void CIRCLEQ_INSERT_HEAD(CIRCLEQ_HEAD *" head , .BI " struct TYPE *" elm ", CIRCLEQ_ENTRY " NAME ); .BI "void CIRCLEQ_INSERT_TAIL(CIRCLEQ_HEAD *" head , @@ -49,7 +49,7 @@ Standard C library .BI " struct TYPE *" elm ", CIRCLEQ_ENTRY " NAME ); .BI "void CIRCLEQ_INSERT_AFTER(CIRCLEQ_HEAD *" head ", struct TYPE *" listelm , .BI " struct TYPE *" elm ", CIRCLEQ_ENTRY " NAME ); -.PP +.P .BI "struct TYPE *CIRCLEQ_FIRST(CIRCLEQ_HEAD *" head ); .BI "struct TYPE *CIRCLEQ_LAST(CIRCLEQ_HEAD *" head ); .BI "struct TYPE *CIRCLEQ_PREV(struct TYPE *" elm ", CIRCLEQ_ENTRY " NAME ); @@ -58,18 +58,18 @@ Standard C library .BI " struct TYPE *" elm ", CIRCLEQ_ENTRY " NAME ); .BI "struct TYPE *CIRCLEQ_LOOP_NEXT(CIRCLEQ_HEAD *" head , .BI " struct TYPE *" elm ", CIRCLEQ_ENTRY " NAME ); -.PP +.P .BI "CIRCLEQ_FOREACH(struct TYPE *" var ", CIRCLEQ_HEAD *" head , .BI " CIRCLEQ_ENTRY " NAME ); .BI "CIRCLEQ_FOREACH_REVERSE(struct TYPE *" var ", CIRCLEQ_HEAD *" head , .BI " CIRCLEQ_ENTRY " NAME ); -.PP +.P .BI "void CIRCLEQ_REMOVE(CIRCLEQ_HEAD *" head ", struct TYPE *" elm , .BI " CIRCLEQ_ENTRY " NAME ); .fi .SH DESCRIPTION These macros define and operate on doubly linked circular queues. -.PP +.P In the macro definitions, .I TYPE is the name of a user-defined structure, @@ -99,43 +99,43 @@ or at the end of the queue. A .I CIRCLEQ_HEAD structure is declared as follows: -.PP +.P .in +4 .EX CIRCLEQ_HEAD(HEADNAME, TYPE) head; .EE .in -.PP +.P where .I struct HEADNAME is the structure to be defined, and .I struct TYPE is the type of the elements to be linked into the queue. A pointer to the head of the queue can later be declared as: -.PP +.P .in +4 .EX struct HEADNAME *headp; .EE .in -.PP +.P (The names .I head and .I headp are user selectable.) -.PP +.P .BR CIRCLEQ_ENTRY () declares a structure that connects the elements in the queue. -.PP +.P .BR CIRCLEQ_HEAD_INITIALIZER () evaluates to an initializer for the queue .IR head . -.PP +.P .BR CIRCLEQ_INIT () initializes the queue referenced by .IR head . -.PP +.P .BR CIRCLEQ_EMPTY () evaluates to true if there are no items on the queue. .SS Insertion @@ -143,18 +143,18 @@ evaluates to true if there are no items on the queue. inserts the new element .I elm at the head of the queue. -.PP +.P .BR CIRCLEQ_INSERT_TAIL () inserts the new element .I elm at the end of the queue. -.PP +.P .BR CIRCLEQ_INSERT_BEFORE () inserts the new element .I elm before the element .IR listelm . -.PP +.P .BR CIRCLEQ_INSERT_AFTER () inserts the new element .I elm @@ -163,32 +163,32 @@ after the element .SS Traversal .BR CIRCLEQ_FIRST () returns the first item on the queue. -.PP +.P .BR CIRCLEQ_LAST () returns the last item on the queue. -.PP +.P .BR CIRCLEQ_PREV () returns the previous item on the queue, or .I &head if this item is the first one. -.PP +.P .BR CIRCLEQ_NEXT () returns the next item on the queue, or .I &head if this item is the last one. -.PP +.P .BR CIRCLEQ_LOOP_PREV () returns the previous item on the queue. If .I elm is the first element on the queue, the last element is returned. -.PP +.P .BR CIRCLEQ_LOOP_NEXT () returns the next item on the queue. If .I elm is the last element on the queue, the first element is returned. -.PP +.P .BR CIRCLEQ_FOREACH () traverses the queue referenced by .I head @@ -198,7 +198,7 @@ in the forward direction, assigning each element in turn to is set to .I &head if the loop completes normally, or if there were no elements. -.PP +.P .BR CIRCLEQ_FOREACH_REVERSE () traverses the queue referenced by .I head @@ -214,7 +214,7 @@ from the queue. .BR CIRCLEQ_EMPTY () returns nonzero if the queue is empty, and zero if the queue contains at least one entry. -.PP +.P .BR CIRCLEQ_FIRST (), .BR CIRCLEQ_LAST (), .BR CIRCLEQ_LOOP_PREV (), @@ -223,7 +223,7 @@ and return a pointer to the first, last, previous, or next .I TYPE structure, respectively. -.PP +.P .BR CIRCLEQ_PREV (), and .BR CIRCLEQ_NEXT () @@ -233,7 +233,7 @@ counterparts, except that if the argument is the first or last element, respectively, they return .IR &head . -.PP +.P .BR CIRCLEQ_HEAD_INITIALIZER () returns an initializer that can be assigned to the queue .IR head . diff --git a/upstream/opensuse-tumbleweed/man3/clear.3ncurses b/upstream/opensuse-tumbleweed/man3/clear.3ncurses index 17b1a97b..89e6b920 100644 --- a/upstream/opensuse-tumbleweed/man3/clear.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/clear.3ncurses @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_clear.3x,v 1.44 2024/01/05 21:46:58 tom Exp $ -.TH clear 3NCURSES 2024-01-05 "ncurses 6.4" "Library calls" +.\" $Id: curs_clear.3x,v 1.48 2024/04/20 21:20:07 tom Exp $ +.TH clear 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -104,7 +104,7 @@ if the cursor position is about to wrap. Note that \fBerase\fP, \fBwerase\fP, \fBclear\fP, \fBwclear\fP, \fBclrtobot\fP, and \fBclrtoeol\fP may be macros. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. +These functions are described in X/Open Curses, Issue 4. .PP The SVr4.0 manual says that these functions could return \*(``or a non-negative integer if \fB\%immedok\fP is set\*('', diff --git a/upstream/opensuse-tumbleweed/man3/clearenv.3 b/upstream/opensuse-tumbleweed/man3/clearenv.3 index 1c914022..5a6a7385 100644 --- a/upstream/opensuse-tumbleweed/man3/clearenv.3 +++ b/upstream/opensuse-tumbleweed/man3/clearenv.3 @@ -4,7 +4,7 @@ .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" Additions, aeb, 2001-10-17. -.TH clearenv 3 2023-07-20 "Linux man-pages 6.05.01" +.TH clearenv 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME clearenv \- clear the environment .SH LIBRARY @@ -13,15 +13,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B "int clearenv(void);" .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR clearenv (): .nf /* glibc >= 2.19: */ _DEFAULT_SOURCE @@ -59,7 +59,6 @@ T{ .BR clearenv () T} Thread safety MT-Unsafe const:env .TE -.sp 1 .SH STANDARDS .TP .BR putenv () @@ -75,7 +74,7 @@ POSIX.1-2001. .TP .BR clearenv () glibc 2.0. -.PP +.P Various UNIX variants (DG/UX, HP-UX, QNX, ...). POSIX.9 (bindings for FORTRAN77). POSIX.1-1996 did not accept @@ -93,15 +92,15 @@ and rejected On systems where .BR clearenv () is unavailable, the assignment -.PP +.P .in +4n .EX environ = NULL; .EE .in -.PP +.P will probably do. -.PP +.P The .BR clearenv () function may be useful in security-conscious applications that want to @@ -110,14 +109,14 @@ executed using .BR exec (3). The application would do this by first clearing the environment and then adding select environment variables. -.PP +.P Note that the main effect of .BR clearenv () is to adjust the value of the pointer .BR environ (7); this function does not erase the contents of the buffers containing the environment definitions. -.PP +.P The DG/UX and Tru64 man pages write: If .I environ has been modified by anything other than the @@ -128,7 +127,7 @@ or functions, then .BR clearenv () will return an error and the process environment will remain unchanged. -.\" .LP +.\" .P .\" HP-UX has a ENOMEM error return. .SH SEE ALSO .BR getenv (3), diff --git a/upstream/opensuse-tumbleweed/man3/clock.3 b/upstream/opensuse-tumbleweed/man3/clock.3 index 588209bd..00195526 100644 --- a/upstream/opensuse-tumbleweed/man3/clock.3 +++ b/upstream/opensuse-tumbleweed/man3/clock.3 @@ -7,7 +7,7 @@ .\" Modified 14 Jun 2002, Michael Kerrisk .\" Added notes on differences from other UNIX systems with respect to .\" waited-for children. -.TH clock 3 2023-07-20 "Linux man-pages 6.05.01" +.TH clock 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME clock \- determine processor time .SH LIBRARY @@ -16,7 +16,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B clock_t clock(void); .fi .SH DESCRIPTION @@ -45,13 +45,12 @@ T{ .BR clock () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS XSI requires that .B CLOCKS_PER_SEC equals 1000000 independent of the actual resolution. -.PP +.P On several other implementations, the value returned by .BR clock () @@ -74,7 +73,7 @@ caller and its children, may be preferable. C11, POSIX.1-2008. .SH HISTORY POSIX.1-2001, C89. -.PP +.P In glibc 2.17 and earlier, .BR clock () was implemented on top of @@ -90,7 +89,7 @@ The C standard allows for arbitrary values at the start of the program; subtract the value returned from a call to .BR clock () at the start of the program to get maximum portability. -.PP +.P Note that the time can wrap around. On a 32-bit system where .B CLOCKS_PER_SEC diff --git a/upstream/opensuse-tumbleweed/man3/clock_getcpuclockid.3 b/upstream/opensuse-tumbleweed/man3/clock_getcpuclockid.3 index 749fdbe0..24884d06 100644 --- a/upstream/opensuse-tumbleweed/man3/clock_getcpuclockid.3 +++ b/upstream/opensuse-tumbleweed/man3/clock_getcpuclockid.3 @@ -4,30 +4,30 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH clock_getcpuclockid 3 2023-07-20 "Linux man-pages 6.05.01" +.TH clock_getcpuclockid 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME clock_getcpuclockid \- obtain ID of a process CPU-time clock .SH LIBRARY Standard C library .RI ( libc ", " \-lc ), since glibc 2.17 -.PP +.P Before glibc 2.17, Real-time library .RI ( librt ", " \-lrt ) .SH SYNOPSIS .B #include .nf -.PP +.P .BI "int clock_getcpuclockid(pid_t " pid ", clockid_t *" clockid ); .fi -.PP +.P .ad l .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR clock_getcpuclockid (): .nf _POSIX_C_SOURCE >= 200112L @@ -81,7 +81,6 @@ T{ .BR clock_getcpuclockid () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -104,7 +103,7 @@ and then uses .BR clock_gettime (2) to obtain the time on that clock. An example run is the following: -.PP +.P .in +4n .EX .RB "$" " ./a.out 1" " # Show CPU clock of init process" diff --git a/upstream/opensuse-tumbleweed/man3/clog.3 b/upstream/opensuse-tumbleweed/man3/clog.3 index 5a75d36c..6f363dcd 100644 --- a/upstream/opensuse-tumbleweed/man3/clog.3 +++ b/upstream/opensuse-tumbleweed/man3/clog.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH clog 3 2023-07-20 "Linux man-pages 6.05.01" +.TH clog 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME clog, clogf, clogl \- natural logarithm of a complex number .SH LIBRARY @@ -12,7 +12,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex clog(double complex " z ); .BI "float complex clogf(float complex " z ); .BI "long double complex clogl(long double complex " z ); @@ -21,7 +21,7 @@ Math library These functions calculate the complex natural logarithm of .IR z , with a branch cut along the negative real axis. -.PP +.P The logarithm .BR clog () is the inverse function of the exponential @@ -30,15 +30,15 @@ Thus, if \fIy\ =\ clog(z)\fP, then \fIz\ =\ cexp(y)\fP. The imaginary part of .I y is chosen in the interval [\-pi,pi]. -.PP +.P One has: -.PP +.P .in +4n .EX clog(z) = log(cabs(z)) + I * carg(z) .EE .in -.PP +.P Note that .I z close to zero will cause an overflow. @@ -58,7 +58,6 @@ T{ .BR clogl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/clog10.3 b/upstream/opensuse-tumbleweed/man3/clog10.3 index 716d6e7a..0ad3cdce 100644 --- a/upstream/opensuse-tumbleweed/man3/clog10.3 +++ b/upstream/opensuse-tumbleweed/man3/clog10.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH clog10 3 2023-07-20 "Linux man-pages 6.05.01" +.TH clog10 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME clog10, clog10f, clog10l \- base-10 logarithm of a complex number .SH LIBRARY @@ -13,7 +13,7 @@ Math library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "double complex clog10(double complex " z ); .BI "float complex clog10f(float complex " z ); .BI "long double complex clog10l(long double complex " z ); @@ -22,26 +22,26 @@ Math library The call .I clog10(z) is equivalent to: -.PP +.P .in +4n .EX clog(z)/log(10) .EE .in -.PP +.P or equally: -.PP +.P .in +4n .EX log10(cabs(c)) + I * carg(c) / log(10) .EE .in -.PP +.P The other functions perform the same task for .I float and .IR "long double" . -.PP +.P Note that .I z close to zero will cause an overflow. @@ -61,12 +61,11 @@ T{ .BR clog10l () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH HISTORY glibc 2.1. -.PP +.P The identifiers are reserved for future use in C99 and C11. .SH SEE ALSO .BR cabs (3), diff --git a/upstream/opensuse-tumbleweed/man3/clog2.3 b/upstream/opensuse-tumbleweed/man3/clog2.3 index 06a04a90..155f8b49 100644 --- a/upstream/opensuse-tumbleweed/man3/clog2.3 +++ b/upstream/opensuse-tumbleweed/man3/clog2.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH clog2 3 2023-03-30 "Linux man-pages 6.05.01" +.TH clog2 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME clog2, clog2f, clog2l \- base-2 logarithm of a complex number .SH LIBRARY @@ -11,7 +11,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex clog2(double complex " z ); .BI "float complex clog2f(float complex " z ); .BI "long double complex clog2l(long double complex " z ); @@ -21,12 +21,12 @@ The call .I clog2(z) is equivalent to .IR clog(z)/log(2) . -.PP +.P The other functions perform the same task for .I float and .IR "long double" . -.PP +.P Note that .I z close to zero will cause an overflow. @@ -34,7 +34,7 @@ close to zero will cause an overflow. None. .SH HISTORY These function names are reserved for future use in C99. -.PP +.P Not yet in glibc, as at glibc 2.19. .\" But reserved in NAMESPACE. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/closedir.3 b/upstream/opensuse-tumbleweed/man3/closedir.3 index e10ae9eb..f2142d9e 100644 --- a/upstream/opensuse-tumbleweed/man3/closedir.3 +++ b/upstream/opensuse-tumbleweed/man3/closedir.3 @@ -9,7 +9,7 @@ .\" 386BSD man pages .\" Modified Sat Jul 24 21:25:52 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified 11 June 1995 by Andries Brouwer (aeb@cwi.nl) -.TH closedir 3 2023-07-20 "Linux man-pages 6.05.01" +.TH closedir 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME closedir \- close a directory .SH LIBRARY @@ -19,7 +19,7 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "int closedir(DIR *" dirp ); .fi .SH DESCRIPTION @@ -61,7 +61,6 @@ T{ .BR closedir () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/cmsg.3 b/upstream/opensuse-tumbleweed/man3/cmsg.3 index 3ca7d1d4..6a4eee4e 100644 --- a/upstream/opensuse-tumbleweed/man3/cmsg.3 +++ b/upstream/opensuse-tumbleweed/man3/cmsg.3 @@ -3,7 +3,7 @@ .\" This man page is Copyright (C) 1999 Andi Kleen . .\" .\" $Id: cmsg.3,v 1.8 2000/12/20 18:10:31 ak Exp $ -.TH CMSG 3 2023-07-15 "Linux man-pages 6.05.01" +.TH CMSG 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME CMSG_ALIGN, CMSG_SPACE, CMSG_NXTHDR, CMSG_FIRSTHDR \- access ancillary data .SH LIBRARY @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "struct cmsghdr *CMSG_FIRSTHDR(struct msghdr *" msgh ); .BI "struct cmsghdr *CMSG_NXTHDR(struct msghdr *" msgh , .BR " struct cmsghdr *" cmsg ); @@ -35,7 +35,7 @@ Ancillary data is sent by calling and received by calling .BR recvmsg (2). See their manual pages for more information. -.PP +.P Ancillary data is a sequence of .I cmsghdr structures with appended data. @@ -44,11 +44,11 @@ The maximum ancillary buffer size allowed per socket can be set using .IR /proc/sys/net/core/optmem_max ; see .BR socket (7). -.PP +.P The .I cmsghdr structure is defined as follows: -.PP +.P .in +4n .EX struct cmsghdr { @@ -61,7 +61,7 @@ struct cmsghdr { }; .EE .in -.PP +.P The sequence of .I cmsghdr structures should never be accessed directly. @@ -122,7 +122,7 @@ alignment. It takes the data length as an argument. This is a constant expression. -.PP +.P To create ancillary data, first initialize the .I msg_controllen member of the @@ -158,7 +158,7 @@ see .SH VERSIONS For portability, ancillary data should be accessed using only the macros described here. -.PP +.P In Linux, .BR CMSG_LEN (), .BR CMSG_DATA (), @@ -185,7 +185,7 @@ Linux. .SH HISTORY This ancillary data model conforms to the POSIX.1g draft, 4.4BSD-Lite, the IPv6 advanced API described in RFC\ 2292 and SUSv2. -.PP +.P .BR CMSG_SPACE () and .BR CMSG_LEN () @@ -195,7 +195,7 @@ will be included in the next POSIX release (Issue 8). This code looks for the .B IP_TTL option in a received ancillary buffer: -.PP +.P .in +4n .EX struct msghdr msgh; @@ -218,11 +218,11 @@ if (cmsg == NULL) { } .EE .in -.PP +.P The code below passes an array of file descriptors over a UNIX domain socket using .BR SCM_RIGHTS : -.PP +.P .in +4n .EX struct msghdr msg = { 0 }; @@ -250,12 +250,12 @@ cmsg\->cmsg_len = CMSG_LEN(sizeof(myfds)); memcpy(CMSG_DATA(cmsg), myfds, sizeof(myfds)); .EE .in -.PP +.P For a complete code example that shows passing of file descriptors over a UNIX domain socket, see .BR seccomp_unotify (2). .SH SEE ALSO .BR recvmsg (2), .BR sendmsg (2) -.PP +.P RFC\ 2292 diff --git a/upstream/opensuse-tumbleweed/man3/color.3ncurses b/upstream/opensuse-tumbleweed/man3/color.3ncurses index 3eb89c7b..4e35a1a7 100644 --- a/upstream/opensuse-tumbleweed/man3/color.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/color.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2016,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_color.3x,v 1.96 2023/12/30 21:20:01 tom Exp $ -.TH color 3NCURSES 2023-12-30 "ncurses 6.4" "Library calls" +.\" $Id: curs_color.3x,v 1.100 2024/04/20 21:24:19 tom Exp $ +.TH color 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -506,7 +506,7 @@ extensions should condition their use on the visibility of the .B \%NCURSES_VERSION preprocessor macro. .PP -This implementation satisfies XSI Curses's minimum maximums +This implementation satisfies X/Open Curses's minimum maximums for \fB\%COLORS\fP and \fB\%COLOR_PAIRS\fP. .PP The \fB\%init_pair\fP routine accepts negative values of foreground diff --git a/upstream/opensuse-tumbleweed/man3/confstr.3 b/upstream/opensuse-tumbleweed/man3/confstr.3 index 5efd862e..bdc0c1a1 100644 --- a/upstream/opensuse-tumbleweed/man3/confstr.3 +++ b/upstream/opensuse-tumbleweed/man3/confstr.3 @@ -11,7 +11,7 @@ .\" These should all be added to this page. .\" See also the POSIX.1-2001 specification of confstr() .\" -.TH confstr 3 2023-07-20 "Linux man-pages 6.05.01" +.TH confstr 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME confstr \- get configuration dependent string variables .SH LIBRARY @@ -20,15 +20,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t confstr(int " "name" ", char " buf [. size "], size_t " size ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR confstr (): .nf _POSIX_C_SOURCE >= 2 || _XOPEN_SOURCE @@ -36,7 +36,7 @@ Feature Test Macro Requirements for glibc (see .SH DESCRIPTION .BR confstr () gets the value of configuration-dependent string variables. -.PP +.P The .I name argument is the system variable to be queried. @@ -55,7 +55,7 @@ A value for the .B PATH variable which indicates where all the POSIX.2 standard utilities can be found. -.PP +.P If .I buf is not NULL and @@ -71,7 +71,7 @@ This can be detected by comparing the return value of .BR confstr () against .IR size . -.PP +.P If .I size is zero and @@ -91,7 +91,7 @@ This value may be greater than which means that the value in .I buf is truncated. -.PP +.P If .I name is a valid configuration variable, @@ -126,7 +126,6 @@ T{ .BR confstr () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -134,7 +133,7 @@ POSIX.1-2001. .SH EXAMPLES The following code fragment determines the path where to find the POSIX.2 system utilities: -.PP +.P .in +4n .EX char *pathbuf; diff --git a/upstream/opensuse-tumbleweed/man3/conj.3 b/upstream/opensuse-tumbleweed/man3/conj.3 index 760f0792..0924417d 100644 --- a/upstream/opensuse-tumbleweed/man3/conj.3 +++ b/upstream/opensuse-tumbleweed/man3/conj.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH conj 3 2023-07-20 "Linux man-pages 6.05.01" +.TH conj 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME conj, conjf, conjl \- calculate the complex conjugate .SH LIBRARY @@ -12,7 +12,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex conj(double complex " z ); .BI "float complex conjf(float complex " z ); .BI "long double complex conjl(long double complex " z ); @@ -21,9 +21,9 @@ Math library These functions return the complex conjugate value of .IR z . That is the value obtained by changing the sign of the imaginary part. -.PP +.P One has: -.PP +.P .in +4n .EX cabs(z) = csqrt(z * conj(z)) @@ -45,7 +45,6 @@ T{ .BR conjl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/copysign.3 b/upstream/opensuse-tumbleweed/man3/copysign.3 index 9bd7932e..2a993678 100644 --- a/upstream/opensuse-tumbleweed/man3/copysign.3 +++ b/upstream/opensuse-tumbleweed/man3/copysign.3 @@ -9,7 +9,7 @@ .\" 386BSD man pages .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu) .\" Modified 2002-08-10 by Walter Harms (walter.harms@informatik.uni-oldenburg.de) -.TH copysign 3 2023-07-20 "Linux man-pages 6.05.01" +.TH copysign 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME copysign, copysignf, copysignl \- copy sign of a number .SH LIBRARY @@ -18,17 +18,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double copysign(double " x ", double " y ); .BI "float copysignf(float " x ", float " y ); .BI "long double copysignl(long double " x ", long double " y ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR copysign (), .BR copysignf (), .BR copysignl (): @@ -42,7 +42,7 @@ These functions return a value whose absolute value matches that of .IR x , but whose sign bit matches that of .IR y . -.PP +.P For example, .I "copysign(42.0,\ \-1.0)" and @@ -53,7 +53,7 @@ On success, these functions return a value whose magnitude is taken from .I x and whose sign is taken from .IR y . -.PP +.P If .I x is a NaN, @@ -78,13 +78,12 @@ T{ .BR copysignl () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS On architectures where the floating-point formats are not IEEE 754 compliant, these functions may treat a negative zero as positive. .SH STANDARDS C11, POSIX.1-2008. -.PP +.P This function is defined in IEC 559 (and the appendix with recommended functions in IEEE 754/IEEE 854). .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/cos.3 b/upstream/opensuse-tumbleweed/man3/cos.3 index 44e34447..65f44542 100644 --- a/upstream/opensuse-tumbleweed/man3/cos.3 +++ b/upstream/opensuse-tumbleweed/man3/cos.3 @@ -12,7 +12,7 @@ .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu) .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) -.TH cos 3 2023-07-20 "Linux man-pages 6.05.01" +.TH cos 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME cos, cosf, cosl \- cosine function .SH LIBRARY @@ -21,17 +21,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double cos(double " x ); .BI "float cosf(float " x ); .BI "long double cosl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR cosf (), .BR cosl (): .nf @@ -49,11 +49,11 @@ given in radians. .SH RETURN VALUE On success, these functions return the cosine of .IR x . -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is positive infinity or negative infinity, @@ -64,7 +64,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP is an infinity @@ -91,12 +91,11 @@ T{ .BR cosl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C89, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/cosh.3 b/upstream/opensuse-tumbleweed/man3/cosh.3 index 358cb1f4..aea372ee 100644 --- a/upstream/opensuse-tumbleweed/man3/cosh.3 +++ b/upstream/opensuse-tumbleweed/man3/cosh.3 @@ -14,7 +14,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH cosh 3 2023-07-20 "Linux man-pages 6.05.01" +.TH cosh 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME cosh, coshf, coshl \- hyperbolic cosine function .SH LIBRARY @@ -23,17 +23,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double cosh(double " x ); .BI "float coshf(float " x ); .BI "long double coshl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR coshf (), .BR coshl (): .nf @@ -45,7 +45,7 @@ Feature Test Macro Requirements for glibc (see These functions return the hyperbolic cosine of .IR x , which is defined mathematically as: -.PP +.P .in +4n .EX cosh(x) = (exp(x) + exp(\-x)) / 2 @@ -54,20 +54,20 @@ cosh(x) = (exp(x) + exp(\-x)) / 2 .SH RETURN VALUE On success, these functions return the hyperbolic cosine of .IR x . -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is +0 or \-0, 1 is returned. -.PP +.P If .I x is positive infinity or negative infinity, positive infinity is returned. -.PP +.P If the result overflows, a range error occurs, and the functions return @@ -81,7 +81,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Range error: result overflow @@ -107,12 +107,11 @@ T{ .BR coshl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/cpow.3 b/upstream/opensuse-tumbleweed/man3/cpow.3 index 92dd9711..47666b56 100644 --- a/upstream/opensuse-tumbleweed/man3/cpow.3 +++ b/upstream/opensuse-tumbleweed/man3/cpow.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH cpow 3 2023-07-20 "Linux man-pages 6.05.01" +.TH cpow 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME cpow, cpowf, cpowl \- complex power function .SH LIBRARY @@ -12,7 +12,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex cpow(double complex " x ", double complex " z ); .BI "float complex cpowf(float complex " x ", float complex " z ); .BI "long double complex cpowl(long double complex " x , @@ -42,7 +42,6 @@ T{ .BR cpowl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/cproj.3 b/upstream/opensuse-tumbleweed/man3/cproj.3 index 159998a5..07b1de35 100644 --- a/upstream/opensuse-tumbleweed/man3/cproj.3 +++ b/upstream/opensuse-tumbleweed/man3/cproj.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH cproj 3 2023-07-20 "Linux man-pages 6.05.01" +.TH cproj 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME cproj, cprojf, cprojl \- project into Riemann Sphere .SH LIBRARY @@ -12,7 +12,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex cproj(double complex " z ");" .BI "float complex cprojf(float complex " z ");" .BI "long double complex cprojl(long double complex " z ");" @@ -43,13 +43,12 @@ T{ .BR cprojl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY glibc 2.1. C99, POSIX.1-2001. -.PP +.P In glibc 2.11 and earlier, the implementation does something different (a .I stereographic diff --git a/upstream/opensuse-tumbleweed/man3/creal.3 b/upstream/opensuse-tumbleweed/man3/creal.3 index 718dc5bb..c4e52930 100644 --- a/upstream/opensuse-tumbleweed/man3/creal.3 +++ b/upstream/opensuse-tumbleweed/man3/creal.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH creal 3 2023-07-20 "Linux man-pages 6.05.01" +.TH creal 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME creal, crealf, creall \- get real part of a complex number .SH LIBRARY @@ -12,7 +12,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double creal(double complex " z ); .BI "float crealf(float complex " z ); .BI "long double creall(long double complex " z ); @@ -20,9 +20,9 @@ Math library .SH DESCRIPTION These functions return the real part of the complex number .IR z . -.PP +.P One has: -.PP +.P .nf z = creal(z) + I * cimag(z) .fi @@ -42,7 +42,6 @@ T{ .BR creall () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS GCC supports also __real__. That is a GNU extension. diff --git a/upstream/opensuse-tumbleweed/man3/csin.3 b/upstream/opensuse-tumbleweed/man3/csin.3 index bc109514..350205a6 100644 --- a/upstream/opensuse-tumbleweed/man3/csin.3 +++ b/upstream/opensuse-tumbleweed/man3/csin.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH csin 3 2023-07-20 "Linux man-pages 6.05.01" +.TH csin 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME csin, csinf, csinl \- complex sine function .SH LIBRARY @@ -12,7 +12,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex csin(double complex " z ); .BI "float complex csinf(float complex " z ); .BI "long double complex csinl(long double complex " z ); @@ -20,9 +20,9 @@ Math library .SH DESCRIPTION These functions calculate the complex sine of .IR z . -.PP +.P The complex sine function is defined as: -.PP +.P .in +4n .EX csin(z) = (exp(i * z) \- exp(\-i * z)) / (2 * i) @@ -44,7 +44,6 @@ T{ .BR csinl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/csinh.3 b/upstream/opensuse-tumbleweed/man3/csinh.3 index b7a73505..e6e4378f 100644 --- a/upstream/opensuse-tumbleweed/man3/csinh.3 +++ b/upstream/opensuse-tumbleweed/man3/csinh.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH csinh 3 2023-07-20 "Linux man-pages 6.05.01" +.TH csinh 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME csinh, csinhf, csinhl \- complex hyperbolic sine .SH LIBRARY @@ -12,7 +12,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex csinh(double complex " z ); .BI "float complex csinhf(float complex " z ); .BI "long double complex csinhl(long double complex " z ); @@ -20,9 +20,9 @@ Math library .SH DESCRIPTION These functions calculate the complex hyperbolic sine of .IR z . -.PP +.P The complex hyperbolic sine function is defined as: -.PP +.P .in +4n .EX csinh(z) = (exp(z)\-exp(\-z))/2 @@ -44,7 +44,6 @@ T{ .BR csinhl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/csqrt.3 b/upstream/opensuse-tumbleweed/man3/csqrt.3 index 319bbd13..b047a6dc 100644 --- a/upstream/opensuse-tumbleweed/man3/csqrt.3 +++ b/upstream/opensuse-tumbleweed/man3/csqrt.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH csqrt 3 2023-07-20 "Linux man-pages 6.05.01" +.TH csqrt 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME csqrt, csqrtf, csqrtl \- complex square root .SH LIBRARY @@ -12,7 +12,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex csqrt(double complex " z ); .BI "float complex csqrtf(float complex " z ); .BI "long double complex csqrtl(long double complex " z ); @@ -40,7 +40,6 @@ T{ .BR csqrtl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/ctan.3 b/upstream/opensuse-tumbleweed/man3/ctan.3 index e47f11d3..4bde5fa7 100644 --- a/upstream/opensuse-tumbleweed/man3/ctan.3 +++ b/upstream/opensuse-tumbleweed/man3/ctan.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH ctan 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ctan 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ctan, ctanf, ctanl \- complex tangent function .SH LIBRARY @@ -12,7 +12,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex ctan(double complex " z ); .BI "float complex ctanf(float complex " z ); .BI "long double complex ctanl(long double complex " z ); @@ -20,9 +20,9 @@ Math library .SH DESCRIPTION These functions calculate the complex tangent of .IR z . -.PP +.P The complex tangent function is defined as: -.PP +.P .in +4n .EX ctan(z) = csin(z) / ccos(z) @@ -44,7 +44,6 @@ T{ .BR ctanl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/ctanh.3 b/upstream/opensuse-tumbleweed/man3/ctanh.3 index a9b7b34e..cd1d1613 100644 --- a/upstream/opensuse-tumbleweed/man3/ctanh.3 +++ b/upstream/opensuse-tumbleweed/man3/ctanh.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH ctanh 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ctanh 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ctanh, ctanhf, ctanhl \- complex hyperbolic tangent .SH LIBRARY @@ -12,7 +12,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double complex ctanh(double complex " z ); .BI "float complex ctanhf(float complex " z ); .BI "long double complex ctanhl(long double complex " z ); @@ -20,10 +20,10 @@ Math library .SH DESCRIPTION These functions calculate the complex hyperbolic tangent of .IR z . -.PP +.P The complex hyperbolic tangent function is defined mathematically as: -.PP +.P .in +4n .EX ctanh(z) = csinh(z) / ccosh(z) @@ -45,7 +45,6 @@ T{ .BR ctanhl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/ctermid.3 b/upstream/opensuse-tumbleweed/man3/ctermid.3 index 0a2ab664..b3983a2b 100644 --- a/upstream/opensuse-tumbleweed/man3/ctermid.3 +++ b/upstream/opensuse-tumbleweed/man3/ctermid.3 @@ -4,7 +4,7 @@ .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" Modified Sat Jul 24 19:51:06 1993 by Rik Faith (faith@cs.unc.edu) -.TH ctermid 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ctermid 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ctermid \- get controlling terminal name .SH LIBRARY @@ -15,15 +15,15 @@ Standard C library .B #include .\" POSIX also requires this function to be declared in , .\" and glibc does so if suitable feature test macros are defined. -.PP +.P .BI "char *ctermid(char *" "s" ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR ctermid (): .nf _POSIX_C_SOURCE @@ -57,7 +57,6 @@ T{ .BR ctermid () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -66,7 +65,7 @@ POSIX.1-2001, Svr4. The returned pathname may not uniquely identify the controlling terminal; it may, for example, be .IR /dev/tty . -.PP +.P It is not assured that the program can open the terminal. .\" in glibc 2.3.x, x >= 4, the glibc headers threw an error .\" if ctermid() was given an argument; fixed in glibc 2.4. diff --git a/upstream/opensuse-tumbleweed/man3/ctime.3 b/upstream/opensuse-tumbleweed/man3/ctime.3 index 4dc72f27..cb334215 100644 --- a/upstream/opensuse-tumbleweed/man3/ctime.3 +++ b/upstream/opensuse-tumbleweed/man3/ctime.3 @@ -13,7 +13,7 @@ .\" Modified 2001-12-13, joey, aeb .\" Modified 2004-11-16, mtk .\" -.TH ctime 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ctime 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME asctime, ctime, gmtime, localtime, mktime, asctime_r, ctime_r, gmtime_r, localtime_r \- transform date and time to broken-down time or ASCII @@ -23,31 +23,31 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *asctime(const struct tm *" tm ); .BI "char *asctime_r(const struct tm *restrict " tm , .BI " char " buf "[restrict 26]);" -.PP +.P .BI "char *ctime(const time_t *" timep ); .BI "char *ctime_r(const time_t *restrict " timep , .BI " char " buf "[restrict 26]);" -.PP +.P .BI "struct tm *gmtime(const time_t *" timep ); .BI "struct tm *gmtime_r(const time_t *restrict " timep , .BI " struct tm *restrict " result ); -.PP +.P .BI "struct tm *localtime(const time_t *" timep ); .BI "struct tm *localtime_r(const time_t *restrict " timep , .BI " struct tm *restrict " result ); -.PP +.P .BI "time_t mktime(struct tm *" tm ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR asctime_r (), .BR ctime_r (), .BR gmtime_r (), @@ -66,7 +66,7 @@ functions all take an argument of data type \fItime_t\fP, which represents calendar time. When interpreted as an absolute time value, it represents the number of seconds elapsed since the Epoch, 1970-01-01 00:00:00 +0000 (UTC). -.PP +.P The .BR asctime () and @@ -74,25 +74,25 @@ and functions both take an argument representing broken-down time, which is a representation separated into year, month, day, and so on. -.PP +.P Broken-down time is stored in the structure .IR tm , described in .BR tm (3type). -.PP +.P The call .BI ctime( t ) is equivalent to .BI asctime(localtime( t )) \fR. It converts the calendar time \fIt\fP into a null-terminated string of the form -.PP +.P .in +4n .EX "Wed Jun 30 21:49:08 1993\en" .EE .in -.PP +.P The abbreviations for the days of the week are "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", and "Sat". The abbreviations for the months are "Jan", @@ -112,7 +112,7 @@ string in a user-supplied buffer which should have room for at least 26 bytes. It need not set \fItzname\fP, \fItimezone\fP, and \fIdaylight\fP. -.PP +.P The .BR gmtime () function converts the calendar time \fItimep\fP to @@ -125,7 +125,7 @@ The .BR gmtime_r () function does the same, but stores the data in a user-supplied struct. -.PP +.P The .BR localtime () function converts the calendar time \fItimep\fP to @@ -145,7 +145,7 @@ The function does the same, but stores the data in a user-supplied struct. It need not set \fItzname\fP, \fItimezone\fP, and \fIdaylight\fP. -.PP +.P The .BR asctime () function converts the broken-down time value @@ -157,7 +157,7 @@ The .BR asctime_r () function does the same, but stores the string in a user-supplied buffer which should have room for at least 26 bytes. -.PP +.P The .BR mktime () function converts a broken-down time structure, expressed @@ -182,7 +182,7 @@ and a negative value means that .BR mktime () should (use timezone information and system databases to) attempt to determine whether DST is in effect at the specified time. -.PP +.P The .BR mktime () function modifies the fields of the @@ -202,7 +202,7 @@ Calling .BR mktime () also sets the external variable \fItzname\fP with information about the current timezone. -.PP +.P If the specified broken-down time cannot be represented as calendar time (seconds since the Epoch), .BR mktime () @@ -217,33 +217,33 @@ and .BR localtime () return a pointer to a .IR "struct\ tm" . -.PP +.P On success, .BR gmtime_r () and .BR localtime_r () return the address of the structure pointed to by .IR result . -.PP +.P On success, .BR asctime () and .BR ctime () return a pointer to a string. -.PP +.P On success, .BR asctime_r () and .BR ctime_r () return a pointer to the string pointed to by .IR buf . -.PP +.P On success, .BR mktime () returns the calendar time (seconds since the Epoch), expressed as a value of type .IR time_t . -.PP +.P On error, .BR mktime () returns the value @@ -315,18 +315,17 @@ T} Thread safety T{ MT-Unsafe race:tmbuf env locale T} .TE -.sp 1 .SH VERSIONS POSIX doesn't specify the parameters of .BR ctime_r () to be .IR restrict ; that is specific to glibc. -.PP +.P In many implementations, including glibc, a 0 in .I tm_mday is interpreted as meaning the last day of the preceding month. -.PP +.P According to POSIX.1-2001, .BR localtime () is required to behave as though @@ -402,7 +401,7 @@ The thread-safe versions, and .BR localtime_r (), are specified by SUSv2. -.PP +.P POSIX.1-2001 says: "The .BR asctime (), diff --git a/upstream/opensuse-tumbleweed/man3/curses_variables.3ncurses b/upstream/opensuse-tumbleweed/man3/curses_variables.3ncurses index f019b1cf..102feecd 100644 --- a/upstream/opensuse-tumbleweed/man3/curses_variables.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/curses_variables.3ncurses @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_variables.3x,v 1.43 2024/01/05 21:46:58 tom Exp $ -.TH curses_variables 3NCURSES 2024-01-05 "ncurses 6.4" "Library calls" +.\" $Id: curs_variables.3x,v 1.47 2024/04/13 22:37:35 tom Exp $ +.TH curses_variables 3NCURSES 2024-04-13 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -216,14 +216,21 @@ respectively; that is, the number of columns and lines. .SS ESCDELAY -For \fIcurses\fP to distinguish an escape character corresponding to a -user's press of an \*(``Escape\*('' key on the input device from one -included in a control sequence used by a cursor movement or function -key, -the library waits to see if another key event occurs after the escape -character. -\fB\%ESCDELAY\fP +For +.I curses +to distinguish the ESC character resulting from a user's press of the +\*(``Escape\*('' key on the input device from one beginning an +.I "escape sequence" +(as commonly produced by function keys), +it waits after the escape character to see if further characters are +available on the input stream within a short interval. +.B \%ESCDELAY stores this interval in milliseconds. +.PP +If \fB\%keypad\fP(3NCURSES) is disabled for the +.I curses +window receiving input, +a program must disambiguate escape sequences itself. .SS TABSIZE The \fIcurses\fP library converts a tab character to this number of spaces as it adds a tab to a window; @@ -232,9 +239,14 @@ see \fB\%addch\fP(3NCURSES). Either \fB\%initscr\fP(3NCURSES) or \fB\%newterm\fP(3NCURSES) initializes \fIcurses\fP. .PP -If \fI\%ncurses\fP is configured to provide separate \fIcurses\fP and -\fIterminfo\fP libraries, -most of these variables reside in the \fIcurses\fP library. +If +.I \%ncurses +is configured to provide separate +.I curses +and +.I \%tinfo +libraries, +most of these variables reside in the former. .SH PORTABILITY The X/Open Curses standard documents all of the foregoing types and symbols except for \fB\%newscr\fP, diff --git a/upstream/opensuse-tumbleweed/man3/cursor.3form b/upstream/opensuse-tumbleweed/man3/cursor.3form index aea5e0ed..7dd2bfb1 100644 --- a/upstream/opensuse-tumbleweed/man3/cursor.3form +++ b/upstream/opensuse-tumbleweed/man3/cursor.3form @@ -1,6 +1,6 @@ '\" t .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -28,8 +28,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_cursor.3x,v 1.29 2023/11/25 13:58:47 tom Exp $ -.TH cursor 3FORM 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: form_cursor.3x,v 1.31 2024/03/16 15:35:01 tom Exp $ +.TH cursor 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBpos_form_cursor\fP \- position a form window cursor diff --git a/upstream/opensuse-tumbleweed/man3/cursor.3menu b/upstream/opensuse-tumbleweed/man3/cursor.3menu index 09ff4130..dd757b83 100644 --- a/upstream/opensuse-tumbleweed/man3/cursor.3menu +++ b/upstream/opensuse-tumbleweed/man3/cursor.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: menu_cursor.3x,v 1.28 2023/11/25 13:58:47 tom Exp $ -.TH cursor 3MENU 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: menu_cursor.3x,v 1.30 2024/03/16 15:35:01 tom Exp $ +.TH cursor 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBpos_menu_cursor\fP \- position a menu's cursor diff --git a/upstream/opensuse-tumbleweed/man3/daemon.3 b/upstream/opensuse-tumbleweed/man3/daemon.3 index a44263c9..a3d87940 100644 --- a/upstream/opensuse-tumbleweed/man3/daemon.3 +++ b/upstream/opensuse-tumbleweed/man3/daemon.3 @@ -6,7 +6,7 @@ .\" .\" @(#)daemon.3 8.1 (Berkeley) 6/9/93 .\" Added mentioning of glibc weirdness wrt unistd.h. 5/11/98, Al Viro -.TH daemon 3 2023-07-20 "Linux man-pages 6.05.01" +.TH daemon 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME daemon \- run in the background .SH LIBRARY @@ -15,15 +15,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int daemon(int " nochdir ", int " noclose ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR daemon (): .nf Since glibc 2.21: @@ -39,7 +39,7 @@ The .BR daemon () function is for programs wishing to detach themselves from the controlling terminal and run in the background as system daemons. -.PP +.P If .I nochdir is zero, @@ -47,7 +47,7 @@ is zero, changes the process's current working directory to the root directory ("/"); otherwise, the current working directory is left unchanged. -.PP +.P If .I noclose is zero, @@ -88,10 +88,9 @@ T{ .BR daemon () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS A similar function appears on the BSDs. -.PP +.P The glibc implementation can also return \-1 when .I /dev/null exists but is not a character device with the expected diff --git a/upstream/opensuse-tumbleweed/man3/data.3form b/upstream/opensuse-tumbleweed/man3/data.3form index 2e9e3a9d..00c74557 100644 --- a/upstream/opensuse-tumbleweed/man3/data.3form +++ b/upstream/opensuse-tumbleweed/man3/data.3form @@ -1,6 +1,6 @@ '\" t .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -28,8 +28,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_data.3x,v 1.30 2023/11/25 13:58:47 tom Exp $ -.TH data 3FORM 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: form_data.3x,v 1.32 2024/03/16 15:35:01 tom Exp $ +.TH data 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBdata_ahead\fP, \fBdata_behind\fP \- diff --git a/upstream/opensuse-tumbleweed/man3/dbopen.3 b/upstream/opensuse-tumbleweed/man3/dbopen.3 index a6d418ac..e18596f3 100644 --- a/upstream/opensuse-tumbleweed/man3/dbopen.3 +++ b/upstream/opensuse-tumbleweed/man3/dbopen.3 @@ -5,7 +5,7 @@ .\" .\" @(#)dbopen.3 8.5 (Berkeley) 1/2/94 .\" -.TH dbopen 3 2022-12-04 "Linux man-pages 6.05.01" +.TH dbopen 3 2024-05-02 "Linux man-pages (unreleased)" .UC 7 .SH NAME dbopen \- database access methods @@ -18,7 +18,7 @@ Standard C library .B #include .B #include .B #include -.PP +.P .BI "DB *dbopen(const char *" file ", int " flags ", int " mode \ ", DBTYPE " type , .BI " const void *" openinfo ); @@ -30,7 +30,7 @@ Since glibc 2.2, glibc no longer provides these interfaces. Probably, you are looking for the APIs provided by the .I libdb library instead. -.PP +.P .BR dbopen () is the library interface to database files. The supported file formats are btree, hashed, and UNIX file oriented. @@ -44,7 +44,7 @@ in their respective manual pages .BR hash (3), and .BR recno (3). -.PP +.P .BR dbopen () opens .I file @@ -53,7 +53,7 @@ Files never intended to be preserved on disk may be created by setting the .I file argument to NULL. -.PP +.P The .I flags and @@ -93,7 +93,7 @@ is not possible.) .\"DB_TXN .\"Support transactions in the database. .\"The DB_LOCK and DB_SHMEM flags must be set as well. -.PP +.P The .I type argument is of type @@ -106,7 +106,7 @@ may be set to .BR DB_HASH , or .BR DB_RECNO . -.PP +.P The .I openinfo argument is a pointer to an access-method-specific structure described @@ -115,7 +115,7 @@ If .I openinfo is NULL, each access method will use defaults appropriate for the system and the access method. -.PP +.P .BR dbopen () returns a pointer to a .I DB @@ -126,7 +126,7 @@ structure is defined in the .I include file, and contains at least the following fields: -.PP +.P .in +4n .EX typedef struct { @@ -144,7 +144,7 @@ typedef struct { } DB; .EE .in -.PP +.P These elements describe a database type and a set of functions performing various actions. These functions take a pointer to a structure as returned by @@ -428,7 +428,7 @@ and 0 on success. .SS Key/data pairs Access to all file types is based on key/data pairs. Both keys and data are represented by the following data structure: -.PP +.P .in +4n .EX typedef struct { @@ -437,7 +437,7 @@ typedef struct { } DBT; .EE .in -.PP +.P The elements of the .I DBT structure are defined as follows: @@ -447,7 +447,7 @@ A pointer to a byte string. .TP .I size The length of the byte string. -.PP +.P Key and data byte strings may reference strings of essentially unlimited length although any two of them must fit into available memory at the same time. @@ -473,7 +473,7 @@ incompatible with the current file specification or which is not meaningful for the function (for example, use of the cursor without prior initialization) or there is a mismatch between the version number of file and the software. -.PP +.P The .I close routines may fail and set @@ -485,7 +485,7 @@ for any of the errors specified for the library routines .BR free (3), or .BR fsync (2). -.PP +.P The .IR del , .IR get , @@ -500,7 +500,7 @@ for any of the errors specified for the library routines .BR free (3), or .BR malloc (3). -.PP +.P The .I fd routines will fail and set @@ -508,7 +508,7 @@ routines will fail and set to .B ENOENT for in memory databases. -.PP +.P The .I sync routines may fail and set @@ -520,10 +520,10 @@ The typedef .I DBT is a mnemonic for "data base thang", and was used because no one could think of a reasonable name that wasn't already used. -.PP +.P The file descriptor interface is a kludge and will be deleted in a future version of the interface. -.PP +.P None of the access methods provide any form of concurrent access, locking, or transactions. .SH SEE ALSO @@ -531,6 +531,6 @@ locking, or transactions. .BR hash (3), .BR mpool (3), .BR recno (3) -.PP +.P .IR "LIBTP: Portable, Modular Transactions for UNIX" , Margo Seltzer, Michael Olson, USENIX proceedings, Winter 1992. diff --git a/upstream/opensuse-tumbleweed/man3/default_colors.3ncurses b/upstream/opensuse-tumbleweed/man3/default_colors.3ncurses index 7b7a1d99..9838479e 100644 --- a/upstream/opensuse-tumbleweed/man3/default_colors.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/default_colors.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 2000-2011,2016 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -29,8 +29,8 @@ .\" .\" Author: Thomas E. Dickey 1997,1999,2000,2005 .\" -.\" $Id: default_colors.3x,v 1.48 2023/12/16 20:32:22 tom Exp $ -.TH default_colors 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: default_colors.3x,v 1.52 2024/04/13 22:17:22 tom Exp $ +.TH default_colors 3NCURSES 2024-04-13 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -44,7 +44,7 @@ .SH NAME \fB\%use_default_colors\fP, \fB\%assume_default_colors\fP \- -use terminal's default colors +use terminal's default colors in \fIcurses\fP .SH SYNOPSIS .nf \fB#include diff --git a/upstream/opensuse-tumbleweed/man3/define_key.3ncurses b/upstream/opensuse-tumbleweed/man3/define_key.3ncurses index 76d744b8..87cf3205 100644 --- a/upstream/opensuse-tumbleweed/man3/define_key.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/define_key.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -29,8 +29,8 @@ .\" .\" Author: Thomas E. Dickey 1997 .\" -.\" $Id: define_key.3x,v 1.40 2023/12/16 20:32:22 tom Exp $ -.TH define_key 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: define_key.3x,v 1.42 2024/03/16 15:35:01 tom Exp $ +.TH define_key 3NCURSES 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fB\%define_key\fP \- define a \fIcurses\fR keycode diff --git a/upstream/opensuse-tumbleweed/man3/delch.3ncurses b/upstream/opensuse-tumbleweed/man3/delch.3ncurses index 2b577b8c..b811e2c6 100644 --- a/upstream/opensuse-tumbleweed/man3/delch.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/delch.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2006,2010 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_delch.3x,v 1.30 2023/12/16 21:09:11 tom Exp $ -.TH delch 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: curs_delch.3x,v 1.34 2024/04/20 19:24:14 tom Exp $ +.TH delch 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -44,7 +44,7 @@ \fB\%wdelch\fP, \fB\%mvdelch\fP, \fB\%mvwdelch\fP \- -delete the character at the cursor in a \fIcurses\fR window +delete a character from a \fIcurses\fR window .SH SYNOPSIS .nf \fB#include @@ -55,28 +55,59 @@ delete the character at the cursor in a \fIcurses\fR window \fBint mvwdelch(WINDOW *\fIwin\fP, int \fIy\fP, int \fIx\fP); .fi .SH DESCRIPTION -These routines delete the character under the cursor; all characters to the -right of the cursor on the same line are moved to the left one position and the -last character on the line is filled with a blank. -The cursor position does -not change (after moving to \fIy\fP, \fIx\fP, if specified). -(This does not -imply use of the hardware delete character feature.) +.B \%wdelch +deletes the character at the cursor position in +.IR win . +\fB\%ncurses\fP(3NCURSES) describes the variants of this function. +.PP +.B \%wdelch +moves all characters to the right of the cursor on the same line to the +left one position and replaces the contents of the rightmost position on +the line with the window's blank character; +see \fB\%bkgd\fP(3NCURSES) +(wide-character API users may consult \fB\%bkgrnd\fP(3NCURSES) instead). +The cursor position does not change +(after moving to +.RI ( y , +.IR x ), +if specified). .SH RETURN VALUE -All routines return the integer \fBERR\fP upon failure and an \fBOK\fP -(SVr4 specifies only -\*(``an integer value other than \fBERR\fP\*('') -upon successful completion. +These functions return +.B OK +on success and +.B ERR +on failure. +.PP +Functions taking a +.I \%WINDOW +pointer argument fail if the pointer is +.BR NULL . .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES -Note that \fBdelch\fP, \fBmvdelch\fP, and \fBmvwdelch\fP may be macros. +.BR \%delch , +.BR \%mvdelch , +and +.B \%mvwdelch +may be implemented as macros. +.PP +A terminal's +.B \%delete_character +.RB ( dch1 ) +capability +is not necessarily employed. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. -The -standard specifies that they return \fBERR\fP on failure, but specifies no -error conditions. +X/Open Curses, +Issue 4 describes these functions. +.PP +SVr4 +.I curses +describes a successful return value only as +\*(``an integer value other than +.BR ERR \*(''. .SH SEE ALSO \fB\%ncurses\fP(3NCURSES) diff --git a/upstream/opensuse-tumbleweed/man3/deleteln.3ncurses b/upstream/opensuse-tumbleweed/man3/deleteln.3ncurses index 505f3f16..26ef0735 100644 --- a/upstream/opensuse-tumbleweed/man3/deleteln.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/deleteln.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2007,2010 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_deleteln.3x,v 1.34 2023/12/16 21:33:34 tom Exp $ -.TH deleteln 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: curs_deleteln.3x,v 1.38 2024/04/20 21:20:07 tom Exp $ +.TH deleteln 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -96,7 +96,7 @@ terminal. In fact, they will not use hardware line delete/insert unless \fBidlok(..., TRUE)\fP has been set on the current window. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. +These functions are described in X/Open Curses, Issue 4. The standard specifies that they return \fBERR\fP on failure, but specifies no error conditions. diff --git a/upstream/opensuse-tumbleweed/man3/des_crypt.3 b/upstream/opensuse-tumbleweed/man3/des_crypt.3 index 41afe047..a21638a4 100644 --- a/upstream/opensuse-tumbleweed/man3/des_crypt.3 +++ b/upstream/opensuse-tumbleweed/man3/des_crypt.3 @@ -10,7 +10,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH des_crypt 3 2023-07-20 "Linux man-pages 6.05.01" +.TH des_crypt 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME des_crypt, ecb_crypt, cbc_crypt, des_setparity, DES_FAILED \- fast DES encryption @@ -22,7 +22,7 @@ Standard C library .\" Sun version .\" .B #include .B #include -.PP +.P .BI "[[deprecated]] int ecb_crypt(char *" key ", char " data [. datalen ], .BI " unsigned int " datalen ", \ unsigned int " mode ); @@ -30,9 +30,9 @@ unsigned int " mode ); .BI " unsigned int " datalen ", \ unsigned int " mode , .BI " char *" ivec ); -.PP +.P .BI "[[deprecated]] void des_setparity(char *" key ); -.PP +.P .BI "[[deprecated]] int DES_FAILED(int " status ); .fi .SH DESCRIPTION @@ -64,7 +64,7 @@ mode protects against insertions, deletions, and substitutions of blocks. Also, regularities in the clear text will not appear in the cipher text. -.PP +.P Here is how to use these routines. The first argument, .IR key , @@ -120,7 +120,7 @@ An error occurred in the hardware or driver. .TP .B DESERR_BADPARAM Bad argument to routine. -.PP +.P Given a result status .IR stat , the macro @@ -146,14 +146,13 @@ T{ .BR des_setparity () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY 4.3BSD. glibc 2.1. Removed in glibc 2.28. -.PP +.P Because they employ the DES block cipher, which is no longer considered secure, these functions were removed. diff --git a/upstream/opensuse-tumbleweed/man3/difftime.3 b/upstream/opensuse-tumbleweed/man3/difftime.3 index e1cd34fc..aa6b248d 100644 --- a/upstream/opensuse-tumbleweed/man3/difftime.3 +++ b/upstream/opensuse-tumbleweed/man3/difftime.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 19:48:17 1993 by Rik Faith (faith@cs.unc.edu) -.TH difftime 3 2023-07-20 "Linux man-pages 6.05.01" +.TH difftime 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME difftime \- calculate time difference .SH LIBRARY @@ -17,7 +17,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double difftime(time_t " time1 ", time_t " time0 ); .fi .SH DESCRIPTION @@ -26,9 +26,13 @@ The function returns the number of seconds elapsed between time \fItime1\fP and time \fItime0\fP, represented as a .IR double . -Each of the times is specified in calendar time, which means its -value is a measurement (in seconds) relative to the -Epoch, 1970-01-01 00:00:00 +0000 (UTC). +Each time is a count of seconds. +.P +.I difftime(b,\~a) +acts like +.I (b\-a) +except that the result does not overflow and is rounded to +.IR double . .SH ATTRIBUTES For an explanation of the terms used in this section, see .BR attributes (7). @@ -43,24 +47,10 @@ T{ .BR difftime () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY POSIX.1-2001, C89, SVr4, 4.3BSD. -.SH NOTES -On a POSIX system, -.I time_t -is an arithmetic type, and one could just -define -.PP -.in +4n -.EX -#define my_difftime(t1,t0) (double)(t1 \- t0) -.EE -.in -.PP -when the possible overflow in the subtraction is not a concern. .SH SEE ALSO .BR date (1), .BR gettimeofday (2), diff --git a/upstream/opensuse-tumbleweed/man3/dirfd.3 b/upstream/opensuse-tumbleweed/man3/dirfd.3 index 4fa622cd..8fab3c0e 100644 --- a/upstream/opensuse-tumbleweed/man3/dirfd.3 +++ b/upstream/opensuse-tumbleweed/man3/dirfd.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH dirfd 3 2023-07-20 "Linux man-pages 6.05.01" +.TH dirfd 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME dirfd \- get directory stream file descriptor .SH LIBRARY @@ -13,15 +13,15 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "int dirfd(DIR *" dirp ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR dirfd (): .nf /* Since glibc 2.10: */ _POSIX_C_SOURCE >= 200809L @@ -32,7 +32,7 @@ The function .BR dirfd () returns the file descriptor associated with the directory stream .IR dirp . -.PP +.P This file descriptor is the one used internally by the directory stream. As a result, it is useful only for functions which do not depend on or alter the file position, such as @@ -76,7 +76,6 @@ T{ .BR dirfd () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/div.3 b/upstream/opensuse-tumbleweed/man3/div.3 index fa2e5389..36e8a6e7 100644 --- a/upstream/opensuse-tumbleweed/man3/div.3 +++ b/upstream/opensuse-tumbleweed/man3/div.3 @@ -12,7 +12,7 @@ .\" Modified 1993-07-24, Rik Faith (faith@cs.unc.edu) .\" Modified 2002-08-10, 2003-11-01 Walter Harms, aeb .\" -.TH div 3 2023-07-20 "Linux man-pages 6.05.01" +.TH div 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME div, ldiv, lldiv, imaxdiv \- compute quotient and remainder of an integer division @@ -22,21 +22,21 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "div_t div(int " numerator ", int " denominator ); .BI "ldiv_t ldiv(long " numerator ", long " denominator ); .BI "lldiv_t lldiv(long long " numerator ", long long " denominator ); -.PP +.P .B #include -.PP +.P .BI "imaxdiv_t imaxdiv(intmax_t " numerator ", intmax_t " denominator ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR lldiv (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -51,7 +51,7 @@ named \fIdiv_t\fP that contains two integer members (in unspecified order) named \fIquot\fP and \fIrem\fP. The quotient is rounded toward zero. The result satisfies \fIquot\fP*\fIdenominator\fP+\fIrem\fP = \fInumerator\fP. -.PP +.P The .BR ldiv (), .BR lldiv (), @@ -81,25 +81,24 @@ T{ .BR imaxdiv () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY POSIX.1-2001, C89, C99, SVr4, 4.3BSD. -.PP +.P .BR lldiv () and .BR imaxdiv () were added in C99. .SH EXAMPLES After -.PP +.P .in +4n .EX div_t q = div(\-5, 3); .EE .in -.PP +.P the values \fIq.quot\fP and \fIq.rem\fP are \-1 and \-2, respectively. .SH SEE ALSO .BR abs (3), diff --git a/upstream/opensuse-tumbleweed/man3/dl_iterate_phdr.3 b/upstream/opensuse-tumbleweed/man3/dl_iterate_phdr.3 index dc157589..a5331555 100644 --- a/upstream/opensuse-tumbleweed/man3/dl_iterate_phdr.3 +++ b/upstream/opensuse-tumbleweed/man3/dl_iterate_phdr.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH dl_iterate_phdr 3 2023-07-20 "Linux man-pages 6.05.01" +.TH dl_iterate_phdr 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME dl_iterate_phdr \- walk through list of shared objects .SH LIBRARY @@ -13,7 +13,7 @@ Standard C library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .B int dl_iterate_phdr( .BI " int (*" callback ")(struct dl_phdr_info *" info , .BI " size_t " size ", void *" data ), @@ -25,7 +25,7 @@ The function allows an application to inquire at run time to find out which shared objects it has loaded, and the order in which they were loaded. -.PP +.P The .BR dl_iterate_phdr () function walks through the list of an @@ -35,7 +35,7 @@ once for each object, until either all shared objects have been processed or .I callback returns a nonzero value. -.PP +.P Each call to .I callback receives three arguments: @@ -52,11 +52,11 @@ program as the second argument (also named .IR data ) in the call to .BR dl_iterate_phdr (). -.PP +.P The .I info argument is a structure of the following type: -.PP +.P .in +4n .EX struct dl_phdr_info { @@ -90,7 +90,7 @@ struct dl_phdr_info { }; .EE .in -.PP +.P (The .IR ElfW () macro definition turns its argument into the name of an ELF data @@ -102,7 +102,7 @@ yields the data type name Further information on these types can be found in the .IR " and " header files.) -.PP +.P The .I dlpi_addr field indicates the base address of the shared object @@ -113,7 +113,7 @@ The .I dlpi_name field is a null-terminated string giving the pathname from which the shared object was loaded. -.PP +.P To understand the meaning of the .I dlpi_phdr and @@ -128,9 +128,9 @@ shared object. The .I dlpi_phnum field indicates the size of this array. -.PP +.P These program headers are structures of the following form: -.PP +.P .in +4n .EX typedef struct { @@ -145,23 +145,23 @@ typedef struct { } Elf32_Phdr; .EE .in -.PP +.P Note that we can calculate the location of a particular program header, .IR x , in virtual memory using the formula: -.PP +.P .in +4n .EX addr == info\->dlpi_addr + info\->dlpi_phdr[x].p_vaddr; .EE .in -.PP +.P Possible values for .I p_type include the following (see .I for further details): -.PP +.P .in +4n .EX #define PT_LOAD 1 /* Loadable program segment */ @@ -196,7 +196,6 @@ T{ .BR dl_iterate_phdr () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS Various other systems provide a version of this function, although details of the returned @@ -209,7 +208,7 @@ On the BSDs and Solaris, the structure includes the fields and .I dlpi_phnum in addition to other implementation-specific fields. -.PP +.P Future versions of the C library may add further fields to the .I dl_phdr_info structure; in that event, the @@ -233,13 +232,13 @@ shared objects it has loaded. For each shared object, the program lists some information (virtual address, size, flags, and type) for each of the objects ELF segments. -.PP +.P The following shell session demonstrates the output produced by the program on an x86-64 system. The first shared object for which output is displayed (where the name is an empty string) is the main program. -.PP +.P .in +4n .EX $ \fB./a.out\fP @@ -341,6 +340,6 @@ main(void) .BR dlopen (3), .BR elf (5), .BR ld.so (8) -.PP +.P .IR "Executable and Linking Format Specification" , available at various locations online. diff --git a/upstream/opensuse-tumbleweed/man3/dladdr.3 b/upstream/opensuse-tumbleweed/man3/dladdr.3 index 4571e67d..889f60a7 100644 --- a/upstream/opensuse-tumbleweed/man3/dladdr.3 +++ b/upstream/opensuse-tumbleweed/man3/dladdr.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH dladdr 3 2023-07-20 "Linux man-pages 6.05.01" +.TH dladdr 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME dladdr, dladdr1 \- translate address to symbolic information .SH LIBRARY @@ -14,7 +14,7 @@ Dynamic linking library .nf .B #define _GNU_SOURCE .B #include -.PP +.P .BI "int dladdr(const void *" addr ", Dl_info *" info ); .BI "int dladdr1(const void *" addr ", Dl_info *" info ", void **" extra_info , .BI " int " flags ); @@ -32,7 +32,7 @@ returns information about the shared object and symbol that overlaps This information is returned in a .I Dl_info structure: -.PP +.P .in +4n .EX typedef struct { @@ -47,7 +47,7 @@ typedef struct { } Dl_info; .EE .in -.PP +.P If no symbol matching .I addr could be found, then @@ -55,7 +55,7 @@ could be found, then and .I dli_saddr are set to NULL. -.PP +.P The function .BR dladdr1 () is like @@ -203,7 +203,7 @@ but not to a symbol in the shared object, then the and .I info\->dli_saddr fields are set to NULL. -.PP +.P If the address specified in .I addr could not be matched to a shared object, then these functions return 0. @@ -228,7 +228,6 @@ T{ .BR dladdr1 () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH HISTORY @@ -238,7 +237,7 @@ glibc 2.0. .TP .BR dladdr1 () glibc 2.3.3. -.PP +.P Solaris. .SH BUGS Sometimes, the function pointers you pass to @@ -252,7 +251,7 @@ may end up pointing back at the object from which you called .BR dladdr (), even if the function used as an argument should come from a dynamically linked library. -.PP +.P The problem is that the function pointer will still be resolved at compile time, but merely point to the .I plt diff --git a/upstream/opensuse-tumbleweed/man3/dlerror.3 b/upstream/opensuse-tumbleweed/man3/dlerror.3 index 14baeeaa..85c904a2 100644 --- a/upstream/opensuse-tumbleweed/man3/dlerror.3 +++ b/upstream/opensuse-tumbleweed/man3/dlerror.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH dlerror 3 2023-07-20 "Linux man-pages 6.05.01" +.TH dlerror 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME dlerror \- obtain error diagnostic for functions in the dlopen API .SH LIBRARY @@ -13,7 +13,7 @@ Dynamic linking library .SH SYNOPSIS .nf .B #include -.PP +.P .B "char *dlerror(void);" .fi .SH DESCRIPTION @@ -27,7 +27,7 @@ since the last call to The returned string does .I not include a trailing newline. -.PP +.P .BR dlerror () returns NULL if no errors have occurred since initialization or since it was last called. @@ -45,13 +45,12 @@ T{ .BR dlerror () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY glibc 2.0. POSIX.1-2001. -.PP +.P SunOS. .SH NOTES The message returned by @@ -60,7 +59,7 @@ may reside in a statically allocated buffer that is overwritten by subsequent .BR dlerror () calls. -.\" .LP +.\" .P .\" The string returned by .\" .BR dlerror () .\" should not be modified. diff --git a/upstream/opensuse-tumbleweed/man3/dlinfo.3 b/upstream/opensuse-tumbleweed/man3/dlinfo.3 index 586663d9..a9239d97 100644 --- a/upstream/opensuse-tumbleweed/man3/dlinfo.3 +++ b/upstream/opensuse-tumbleweed/man3/dlinfo.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH dlinfo 3 2023-07-20 "Linux man-pages 6.05.01" +.TH dlinfo 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME dlinfo \- obtain information about a dynamically loaded object .SH LIBRARY @@ -14,7 +14,7 @@ Dynamic linking library .B #define _GNU_SOURCE .B #include .B #include -.PP +.P .BR "int dlinfo(void *restrict " handle ", int " request \ ", void *restrict " info ); .fi @@ -36,7 +36,7 @@ The argument is a pointer to a buffer used to store information returned by the call; the type of this argument depends on .IR request . -.PP +.P The following values are supported for .I request (with the corresponding type for @@ -214,7 +214,6 @@ T{ .BR dlinfo () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS The sets of requests supported by the various implementations overlaps only partially. @@ -232,7 +231,7 @@ and .B RTLD_DI_SERINFO requests to obtain the library search path list for the library. Here is an example of what we might see when running the program: -.PP +.P .in +4n .EX $ \fB./a.out /lib64/libm.so.6\fP diff --git a/upstream/opensuse-tumbleweed/man3/dlopen.3 b/upstream/opensuse-tumbleweed/man3/dlopen.3 index 3774e9eb..14f16898 100644 --- a/upstream/opensuse-tumbleweed/man3/dlopen.3 +++ b/upstream/opensuse-tumbleweed/man3/dlopen.3 @@ -14,7 +14,7 @@ .\" Modified by Walter Harms: dladdr, dlvsym .\" Modified by Petr Baudis , 2008-12-04: dladdr caveat .\" -.TH dlopen 3 2023-07-20 "Linux man-pages 6.05.01" +.TH dlopen 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME dlclose, dlopen, dlmopen \- open and close a shared object @@ -24,14 +24,14 @@ Dynamic linking library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void *dlopen(const char *" filename ", int " flags ); .BI "int dlclose(void *" handle ); -.PP +.P .B #define _GNU_SOURCE .br .B #include -.PP +.P .BI "void *dlmopen(Lmid_t " lmid ", const char *" filename ", int " flags ); .fi .SH DESCRIPTION @@ -49,7 +49,7 @@ This handle is employed with other functions in the dlopen API, such as .BR dlinfo (3), and .BR dlclose (). -.PP +.P If .I filename .\" FIXME On Solaris, when handle is NULL, we seem to get back @@ -99,7 +99,7 @@ The directories and .I /usr/lib are searched (in that order). -.PP +.P If the object specified by .I filename has dependencies on other shared objects, @@ -107,7 +107,7 @@ then these are also automatically loaded by the dynamic linker using the same rules. (This process may occur recursively, if those objects in turn have dependencies, and so on.) -.PP +.P One of the following two values must be included in .IR flags : .TP @@ -132,7 +132,7 @@ all undefined symbols in the shared object are resolved before .BR dlopen () returns. If this cannot be done, an error is returned. -.PP +.P Zero or more of the following values may also be ORed in .IR flags : .TP @@ -176,7 +176,7 @@ shared object ahead of the global scope. This means that a self-contained object will use its own symbols in preference to global symbols with the same name contained in objects that have already been loaded. -.PP +.P If .I filename is NULL, then the returned handle is for the main program. @@ -188,7 +188,7 @@ and then all shared objects loaded by .BR dlopen () with the flag .BR RTLD_GLOBAL . -.PP +.P Symbol references in the shared object are resolved using (in order): symbols in the link map of objects loaded for the main program and its dependencies; @@ -200,7 +200,7 @@ using the flag; and definitions in the shared object itself (and any dependencies that were loaded for that object). -.PP +.P Any global symbols in the executable that were placed into its dynamic symbol table by .BR ld (1) @@ -212,7 +212,7 @@ the executable's global symbols to be placed in the dynamic symbol table, or because .BR ld (1) noted a dependency on a symbol in another object during static linking. -.PP +.P If the same shared object is opened again with .BR dlopen (), the same object handle is returned. @@ -225,7 +225,7 @@ has been called on it as many times as has succeeded on it. Constructors (see below) are called only when the object is actually loaded into memory (i.e., when the reference count increases to 1). -.PP +.P A subsequent .BR dlopen () call that loads the same shared object with @@ -238,7 +238,7 @@ can be promoted to .B RTLD_GLOBAL in a subsequent .BR dlopen (). -.PP +.P If .BR dlopen () fails for any reason, it returns NULL. @@ -251,7 +251,7 @@ and .I flags arguments, as well as the return value, are the same, except for the differences noted below. -.PP +.P The .BR dlmopen () function differs from @@ -270,7 +270,7 @@ call is made.) The .I Lmid_t type is an opaque handle that refers to a namespace. -.PP +.P The .I lmid argument is either the ID of an existing namespace @@ -289,7 +289,7 @@ Create a new namespace and load the shared object in that namespace. The object must have been correctly linked to reference all of the other shared objects that it requires, since the new namespace is initially empty. -.PP +.P If .I filename is NULL, then the only permitted value for @@ -302,7 +302,7 @@ The function decrements the reference count on the dynamically loaded shared object referred to by .IR handle . -.PP +.P If the object's reference count drops to zero and no symbols in this object are required by other objects, then the object is unloaded @@ -311,13 +311,13 @@ after first calling any destructors defined for the object. because this object was opened with the .B RTLD_GLOBAL flag and one of its symbols satisfied a relocation in another object.) -.PP +.P All shared objects that were automatically loaded when .BR dlopen () was invoked on the object referred to by .I handle are recursively closed in the same manner. -.PP +.P A successful return from .BR dlclose () does not guarantee that the symbols associated with @@ -339,11 +339,11 @@ On error (file could not be found, was not readable, had the wrong format, or caused errors during loading), these functions return NULL. -.PP +.P On success, .BR dlclose () returns 0; on error, it returns a nonzero value. -.PP +.P Errors from these functions can be diagnosed using .BR dlerror (3). .SH ATTRIBUTES @@ -362,7 +362,6 @@ T{ .BR dlclose () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR dlopen () @@ -398,7 +397,7 @@ dependent shared objects are implicitly loaded according to the usual rules, and symbol references are likewise resolved according to the usual rules, but such resolution is confined to the definitions provided by the objects that have been (explicitly and implicitly) loaded into the namespace. -.PP +.P The .BR dlmopen () function permits object-load isolation\[em]the ability @@ -418,7 +417,7 @@ without exposing those symbols to the entire application. This can be achieved by using a separate namespace and the .B RTLD_GLOBAL flag. -.PP +.P The .BR dlmopen () function also can be used to provide better isolation than the @@ -434,7 +433,7 @@ Thus, .B RTLD_LOCAL is insufficient to isolate a loaded shared object except in the (uncommon) case where one has explicit control over all shared object dependencies. -.PP +.P Possible uses of .BR dlmopen () are plugins where the author of the plugin-loading framework @@ -449,7 +448,7 @@ Using .BR dlmopen (), this can be achieved by loading the same shared object file into different namespaces. -.PP +.P The glibc implementation supports a maximum of .\" DL_NNS 16 namespaces. @@ -473,7 +472,7 @@ See the info pages (under "Function attributes") .\" info gcc "C Extensions" "Function attributes" for further information. -.PP +.P An older method of (partially) achieving the same result is via the use of two special symbols recognized by the linker: .B _init @@ -493,7 +492,7 @@ this can be done by using the .BR gcc (1) .I \-nostartfiles command-line option. -.PP +.P Use of .B _init and @@ -514,7 +513,7 @@ permit multiple initialization and finalization functions to be defined. .\" .\" void _init(void) __attribute__((constructor)); .\" .\" void _fini(void) __attribute__((destructor)); .\" -.PP +.P Since glibc 2.2.3, .BR atexit (3) can be used to register an exit handler that is automatically @@ -543,7 +542,7 @@ looks up the address of the .BR cos (3) function, and prints the cosine of 2.0. The following is an example of building and running the program: -.PP +.P .in +4n .EX $ \fBcc dlopen_demo.c \-ldl\fP @@ -621,5 +620,5 @@ main(void) .BR rtld\-audit (7), .BR ld.so (8), .BR ldconfig (8) -.PP +.P gcc info pages, ld info pages diff --git a/upstream/opensuse-tumbleweed/man3/dlsym.3 b/upstream/opensuse-tumbleweed/man3/dlsym.3 index 499e29c3..dd5fb992 100644 --- a/upstream/opensuse-tumbleweed/man3/dlsym.3 +++ b/upstream/opensuse-tumbleweed/man3/dlsym.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH dlsym 3 2023-07-20 "Linux man-pages 6.05.01" +.TH dlsym 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME dlsym, dlvsym \- obtain address of a symbol in a shared object or executable .SH LIBRARY @@ -13,12 +13,12 @@ Dynamic linking library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void *dlsym(void *restrict " handle ", const char *restrict " symbol ); -.PP +.P .B #define _GNU_SOURCE .B #include -.PP +.P .BI "void *dlvsym(void *restrict " handle ", const char *restrict " symbol , .BI " const char *restrict " version ); .fi @@ -39,7 +39,7 @@ returns NULL. (The search performed by .BR dlsym () is breadth first through the dependency tree of these shared objects.) -.PP +.P In unusual cases (see NOTES) the value of the symbol could actually be NULL. Therefore, a NULL return from .BR dlsym () @@ -53,7 +53,7 @@ and then call .BR dlerror (3) again, saving its return value into a variable, and check whether this saved value is not NULL. -.PP +.P There are two special pseudo-handles that may be specified in .IR handle : .TP @@ -79,7 +79,7 @@ in can find and invoke the "real" function provided in another shared object (or for that matter, the "next" definition of the function in cases where there are multiple layers of preloading). -.PP +.P The .B _GNU_SOURCE feature test macro must be defined in order to obtain the @@ -89,7 +89,7 @@ and .B RTLD_NEXT from .IR . -.PP +.P The function .BR dlvsym () does the same as @@ -117,7 +117,6 @@ T{ .BR dlvsym () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR dlsym () diff --git a/upstream/opensuse-tumbleweed/man3/drand48.3 b/upstream/opensuse-tumbleweed/man3/drand48.3 index b768d0d7..6d61a084 100644 --- a/upstream/opensuse-tumbleweed/man3/drand48.3 +++ b/upstream/opensuse-tumbleweed/man3/drand48.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 19:46:03 1993 by Rik Faith (faith@cs.unc.edu) -.TH drand48 3 2023-07-20 "Linux man-pages 6.05.01" +.TH drand48 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME drand48, erand48, lrand48, nrand48, mrand48, jrand48, srand48, seed48, lcong48 \- generate uniformly distributed pseudo-random numbers @@ -18,26 +18,26 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B double drand48(void); .BI "double erand48(unsigned short " xsubi [3]); -.PP +.P .B long lrand48(void); .BI "long nrand48(unsigned short " xsubi [3]); -.PP +.P .B long mrand48(void); .BI "long jrand48(unsigned short " xsubi [3]); -.PP +.P .BI "void srand48(long " seedval ); .BI "unsigned short *seed48(unsigned short " seed16v [3]); .BI "void lcong48(unsigned short " param [7]); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P All functions shown above: .\" .BR drand48 (), .\" .BR erand48 (), @@ -56,7 +56,7 @@ All functions shown above: .SH DESCRIPTION These functions generate pseudo-random numbers using the linear congruential algorithm and 48-bit integer arithmetic. -.PP +.P The .BR drand48 () and @@ -64,21 +64,21 @@ and functions return nonnegative double-precision floating-point values uniformly distributed over the interval [0.0,\ 1.0). -.PP +.P The .BR lrand48 () and .BR nrand48 () functions return nonnegative long integers uniformly distributed over the interval [0,\ 2\[ha]31). -.PP +.P The .BR mrand48 () and .BR jrand48 () functions return signed long integers uniformly distributed over the interval [\-2\[ha]31,\ 2\[ha]31). -.PP +.P The .BR srand48 (), .BR seed48 (), @@ -97,17 +97,17 @@ and .BR jrand48 () do not require an initialization function to be called first. -.PP +.P All the functions work by generating a sequence of 48-bit integers, .IR Xi , according to the linear congruential formula: -.PP +.P .in +4n .EX .B Xn+1 = (aXn + c) mod m, where n >= 0 .EE .in -.PP +.P The parameter .I m = 2\[ha]48, hence 48-bit integer arithmetic is performed. @@ -118,14 +118,14 @@ is called, and .I c are given by: -.PP +.P .in +4n .EX .B a = 0x5DEECE66D .B c = 0xB .EE .in -.PP +.P The value returned by any of the functions .BR drand48 (), .BR erand48 (), @@ -143,7 +143,7 @@ be returned, is copied from the high-order bits of .I Xi and transformed into the returned value. -.PP +.P The functions .BR drand48 (), .BR lrand48 (), @@ -169,7 +169,7 @@ value of .I Xi into the array before calling the function for the first time. -.PP +.P The initializer function .BR srand48 () sets the high order 32-bits of @@ -178,7 +178,7 @@ to the argument .IR seedval . The low order 16-bits are set to the arbitrary value 0x330E. -.PP +.P The initializer function .BR seed48 () sets the value of @@ -192,7 +192,7 @@ previous value of is copied into an internal buffer and a pointer to this buffer is returned by .BR seed48 (). -.PP +.P The initialization function .BR lcong48 () allows the user to specify @@ -249,8 +249,7 @@ T} Thread safety T{ MT-Unsafe race:drand48 T} .TE -.sp 1 -.PP +.P The above functions record global state information for the random number generator, so they are not thread-safe. diff --git a/upstream/opensuse-tumbleweed/man3/drand48_r.3 b/upstream/opensuse-tumbleweed/man3/drand48_r.3 index 146fed4c..8191baad 100644 --- a/upstream/opensuse-tumbleweed/man3/drand48_r.3 +++ b/upstream/opensuse-tumbleweed/man3/drand48_r.3 @@ -5,7 +5,7 @@ .\" .\" Created 2004-10-31. Text taken from a page by Walter Harms, 2003-09-08 .\" -.TH drand48_r 3 2023-07-20 "Linux man-pages 6.05.01" +.TH drand48_r 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME drand48_r, erand48_r, lrand48_r, nrand48_r, mrand48_r, jrand48_r, srand48_r, seed48_r, lcong48_r @@ -16,35 +16,35 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int drand48_r(struct drand48_data *restrict " buffer , .BI " double *restrict " result ); .BI "int erand48_r(unsigned short " xsubi [3] "," .BI " struct drand48_data *restrict "buffer , .BI " double *restrict " result ");" -.PP +.P .BI "int lrand48_r(struct drand48_data *restrict " buffer , .BI " long *restrict " result ); .BI "int nrand48_r(unsigned short " xsubi[3] "," .BI " struct drand48_data *restrict "buffer , .BI " long *restrict " result ");" -.PP +.P .BI "int mrand48_r(struct drand48_data *restrict " buffer , .BI " long *restrict " result ");" .BI "int jrand48_r(unsigned short " xsubi[3] "," .BI " struct drand48_data *restrict " buffer , .BI " long *restrict " result ");" -.PP +.P .BI "int srand48_r(long int " seedval ", struct drand48_data *" buffer ");" .BI "int seed48_r(unsigned short " seed16v[3] ", struct drand48_data *" buffer ); .BI "int lcong48_r(unsigned short " param[7] ", struct drand48_data *" buffer ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P All functions shown above: .\" .BR drand48_r (), .\" .BR erand48_r (), @@ -65,7 +65,7 @@ These functions are the reentrant analogs of the functions described in Instead of modifying the global random generator state, they use the supplied data .IR buffer . -.PP +.P Before the first use, this struct must be initialized, for example, by filling it with zeros, or by calling one of the functions .BR srand48_r (), @@ -96,7 +96,6 @@ T{ .BR lcong48_r () T} Thread safety MT-Safe race:buffer .TE -.sp 1 .SH STANDARDS GNU. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/driver.3form b/upstream/opensuse-tumbleweed/man3/driver.3form index 1693af7f..eb107073 100644 --- a/upstream/opensuse-tumbleweed/man3/driver.3form +++ b/upstream/opensuse-tumbleweed/man3/driver.3form @@ -28,8 +28,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_driver.3x,v 1.57 2024/01/13 22:05:39 tom Exp $ -.TH driver 3FORM 2024-01-13 "ncurses 6.4" "Library calls" +.\" $Id: form_driver.3x,v 1.61 2024/04/20 18:55:09 tom Exp $ +.TH driver 3FORM 2024-04-20 "ncurses 6.5" "Library calls" .de bP .ie n .IP \(bu 4 .el .IP \(bu 2 @@ -43,7 +43,7 @@ command-processing loop of the form system \fB#include .PP \fBint form_driver(FORM *\fIform\fP, int \fIc\fP); -\fBint form_driver_w(FORM *\fIform\fP, int \fIc\fP, wchar_t \fIwch\fP); +\fBint form_driver_w(FORM *\fIform\fP, int \fIc\fP, wchar_t \fIwc\fP); .fi .SH DESCRIPTION .SS form_driver diff --git a/upstream/opensuse-tumbleweed/man3/driver.3menu b/upstream/opensuse-tumbleweed/man3/driver.3menu index 98132840..233ffe0d 100644 --- a/upstream/opensuse-tumbleweed/man3/driver.3menu +++ b/upstream/opensuse-tumbleweed/man3/driver.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: menu_driver.3x,v 1.45 2023/12/23 16:08:25 tom Exp $ -.TH driver 3MENU 2023-12-23 "ncurses 6.4" "Library calls" +.\" $Id: menu_driver.3x,v 1.47 2024/03/16 15:35:01 tom Exp $ +.TH driver 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .de bP .ie n .IP \(bu 4 .el .IP \(bu 2 diff --git a/upstream/opensuse-tumbleweed/man3/duplocale.3 b/upstream/opensuse-tumbleweed/man3/duplocale.3 index 7b1bff8a..6ef42bbd 100644 --- a/upstream/opensuse-tumbleweed/man3/duplocale.3 +++ b/upstream/opensuse-tumbleweed/man3/duplocale.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH duplocale 3 2023-05-03 "Linux man-pages 6.05.01" +.TH duplocale 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME duplocale \- duplicate a locale object .SH LIBRARY @@ -11,15 +11,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "locale_t duplocale(locale_t " locobj ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR duplocale (): .nf Since glibc 2.10: @@ -32,7 +32,7 @@ The .BR duplocale () function creates a duplicate of the locale object referred to by .IR locobj . -.PP +.P If .I locobj is @@ -90,7 +90,7 @@ can be used to ensure that the .B LC_GLOBAL_LOCALE value is converted into a usable locale object. See EXAMPLES, below. -.PP +.P Each locale object created by .BR duplocale () should be deallocated using @@ -106,7 +106,7 @@ The program takes one command-line argument, a string of characters that is converted to uppercase and displayed on standard output. An example of its use is the following: -.PP +.P .in +4n .EX $ \fB./a.out abc\fP diff --git a/upstream/opensuse-tumbleweed/man3/dysize.3 b/upstream/opensuse-tumbleweed/man3/dysize.3 index 7e2d3285..40c7410f 100644 --- a/upstream/opensuse-tumbleweed/man3/dysize.3 +++ b/upstream/opensuse-tumbleweed/man3/dysize.3 @@ -4,7 +4,7 @@ .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" aeb: some corrections -.TH dysize 3 2023-07-20 "Linux man-pages 6.05.01" +.TH dysize 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME dysize \- get number of days for a given year .SH LIBRARY @@ -13,15 +13,15 @@ Standard C library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "int dysize(int " year ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR dysize (): .nf Since glibc 2.19: @@ -32,13 +32,13 @@ Feature Test Macro Requirements for glibc (see .SH DESCRIPTION The function returns 365 for a normal year and 366 for a leap year. The calculation for leap year is based on: -.PP +.P .in +4n .EX (year) %4 == 0 && ((year) %100 != 0 || (year) %400 == 0) .EE .in -.PP +.P The formula is defined in the macro .I __isleap(year) also found in @@ -57,12 +57,11 @@ T{ .BR dysize () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY SunOS 4.x. -.PP +.P This is a compatibility function only. Don't use it in new programs. .\" The SCO version of this function had a year-2000 problem. diff --git a/upstream/opensuse-tumbleweed/man3/ecvt.3 b/upstream/opensuse-tumbleweed/man3/ecvt.3 index f207948d..539d182e 100644 --- a/upstream/opensuse-tumbleweed/man3/ecvt.3 +++ b/upstream/opensuse-tumbleweed/man3/ecvt.3 @@ -10,7 +10,7 @@ .\" Modified Sat Jul 24 19:40:39 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified Fri Jun 25 12:10:47 1999 by Andries Brouwer (aeb@cwi.nl) .\" -.TH ecvt 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ecvt 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ecvt, fcvt \- convert a floating-point number to a string .SH LIBRARY @@ -19,18 +19,18 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] char *ecvt(double " number ", int " ndigits , .BI " int *restrict " decpt ", int *restrict " sign ); .BI "[[deprecated]] char *fcvt(double " number ", int " ndigits , .BI " int *restrict " decpt ", int *restrict " sign ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR ecvt (), .BR fcvt (): .nf @@ -68,7 +68,7 @@ otherwise it is set to 0. If .I number is zero, it is unspecified whether \fI*decpt\fP is 0 or 1. -.PP +.P The .BR fcvt () function is identical to @@ -105,7 +105,6 @@ T{ .BR fcvt () T} Thread safety MT-Unsafe race:fcvt .TE -.sp 1 .SH STANDARDS None. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/ecvt_r.3 b/upstream/opensuse-tumbleweed/man3/ecvt_r.3 index 39eafa9c..4f83f655 100644 --- a/upstream/opensuse-tumbleweed/man3/ecvt_r.3 +++ b/upstream/opensuse-tumbleweed/man3/ecvt_r.3 @@ -8,7 +8,7 @@ .\" .\" Corrected return types; from Fabian; 2004-10-05 .\" -.TH ecvt_r 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ecvt_r 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ecvt_r, fcvt_r, qecvt_r, qfcvt_r \- convert a floating-point number to a string .SH LIBRARY @@ -17,14 +17,14 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] int ecvt_r(double " number ", int " ndigits , .BI " int *restrict " decpt ", int *restrict " sign , .BI " char *restrict " buf ", size_t " len ); .BI "[[deprecated]] int fcvt_r(double " number ", int " ndigits , .BI " int *restrict " decpt ", int *restrict " sign , .BI " char *restrict " buf ", size_t " len ); -.PP +.P .BI "[[deprecated]] int qecvt_r(long double " number ", int " ndigits , .BI " int *restrict " decpt ", int *restrict " sign , .BI " char *restrict " buf ", size_t " len ); @@ -32,12 +32,12 @@ Standard C library .BI " int *restrict " decpt ", int *restrict " sign , .BI " char *restrict " buf ", size_t " len ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR ecvt_r (), .BR fcvt_r (), .BR qecvt_r (), @@ -87,7 +87,6 @@ T{ .BR qfcvt_r () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH NOTES diff --git a/upstream/opensuse-tumbleweed/man3/encrypt.3 b/upstream/opensuse-tumbleweed/man3/encrypt.3 index a3fae2f3..10ec9ec5 100644 --- a/upstream/opensuse-tumbleweed/man3/encrypt.3 +++ b/upstream/opensuse-tumbleweed/man3/encrypt.3 @@ -9,7 +9,7 @@ .\" .\" Modified 2003-04-04, aeb .\" -.TH encrypt 3 2023-07-20 "Linux man-pages 6.05.01" +.TH encrypt 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME encrypt, setkey, encrypt_r, setkey_r \- encrypt 64-bit messages .SH LIBRARY @@ -19,17 +19,17 @@ Password hashing library .nf .BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "[[deprecated]] void encrypt(char " block "[64], int " edflag ); -.PP +.P .BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "[[deprecated]] void setkey(const char *" key ); -.PP +.P .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "[[deprecated]] void setkey_r(const char *" key ", struct crypt_data *" data ); .BI "[[deprecated]] void encrypt_r(char *" block ", int " edflag , .BI " struct crypt_data *" data ); @@ -46,7 +46,7 @@ argument used here is an array of 64 bytes, each of which has numerical value 1 or 0. The bytes key[n] where n=8*i-1 are ignored, so that the effective key length is 56 bits. -.PP +.P The .BR encrypt () function modifies the passed buffer, encoding if @@ -58,7 +58,7 @@ argument, also .I block is a bit vector representation of the actual value that is encoded. The result is returned in that same vector. -.PP +.P These two functions are not reentrant, that is, the key data is kept in static storage. The functions @@ -68,7 +68,7 @@ and are the reentrant versions. They use the following structure to hold the key data: -.PP +.P .in +4n .EX struct crypt_data { @@ -85,7 +85,7 @@ struct crypt_data { }; .EE .in -.PP +.P Before calling .BR setkey_r () set @@ -125,7 +125,6 @@ T{ .BR setkey_r () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR encrypt () @@ -139,7 +138,7 @@ POSIX.1-2008. None. .SH HISTORY Removed in glibc 2.28. -.PP +.P Because they employ the DES block cipher, which is no longer considered secure, these functions were removed from glibc. @@ -156,7 +155,7 @@ See .SS Features in glibc In glibc 2.2, these functions use the DES algorithm. .SH EXAMPLES -.\" [[deprecated]] SRC BEGIN (encrypt.c) +.\" SRC BEGIN (encrypt.c) .EX #define _XOPEN_SOURCE #include diff --git a/upstream/opensuse-tumbleweed/man3/end.3 b/upstream/opensuse-tumbleweed/man3/end.3 index a0691d6a..36281070 100644 --- a/upstream/opensuse-tumbleweed/man3/end.3 +++ b/upstream/opensuse-tumbleweed/man3/end.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH end 3 2023-05-03 "Linux man-pages 6.05.01" +.TH end 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME etext, edata, end \- end of program segments .SH SYNOPSIS @@ -35,7 +35,7 @@ they are not standardized; use with caution. .SH NOTES The program must explicitly declare these symbols; they are not defined in any header file. -.PP +.P On some systems the names of these symbols are preceded by underscores, thus: .IR _etext , @@ -43,7 +43,7 @@ thus: and .IR _end . These symbols are also defined for programs compiled on Linux. -.PP +.P At the start of program execution, the program break will be somewhere near .I &end @@ -57,7 +57,7 @@ Use with an argument of zero to find the current value of the program break. .SH EXAMPLES When run, the program below produces output such as the following: -.PP +.P .in +4n .EX .RB "$" " ./a.out" diff --git a/upstream/opensuse-tumbleweed/man3/endian.3 b/upstream/opensuse-tumbleweed/man3/endian.3 index fa7b9fd8..7ff7053a 100644 --- a/upstream/opensuse-tumbleweed/man3/endian.3 +++ b/upstream/opensuse-tumbleweed/man3/endian.3 @@ -5,7 +5,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH endian 3 2023-05-03 "Linux man-pages 6.05.01" +.TH endian 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME htobe16, htole16, be16toh, le16toh, htobe32, htole32, be32toh, le32toh, htobe64, htole64, be64toh, le64toh \- @@ -16,29 +16,29 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "uint16_t htobe16(uint16_t " host_16bits ); .BI "uint16_t htole16(uint16_t " host_16bits ); .BI "uint16_t be16toh(uint16_t " big_endian_16bits ); .BI "uint16_t le16toh(uint16_t " little_endian_16bits ); -.PP +.P .BI "uint32_t htobe32(uint32_t " host_32bits ); .BI "uint32_t htole32(uint32_t " host_32bits ); .BI "uint32_t be32toh(uint32_t " big_endian_32bits ); .BI "uint32_t le32toh(uint32_t " little_endian_32bits ); -.PP +.P .BI "uint64_t htobe64(uint64_t " host_64bits ); .BI "uint64_t htole64(uint64_t " host_64bits ); .BI "uint64_t be64toh(uint64_t " big_endian_64bits ); .BI "uint64_t le64toh(uint64_t " little_endian_64bits ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE .ad l -.PP +.P .BR htobe16 (), .BR htole16 (), .BR be16toh (), @@ -62,21 +62,21 @@ Feature Test Macro Requirements for glibc (see These functions convert the byte encoding of integer values from the byte order that the current CPU (the "host") uses, to and from little-endian and big-endian byte order. -.PP +.P The number, .IR nn , in the name of each function indicates the size of integer handled by the function, either 16, 32, or 64 bits. -.PP +.P The functions with names of the form "htobe\fInn\fP" convert from host byte order to big-endian order. -.PP +.P The functions with names of the form "htole\fInn\fP" convert from host byte order to little-endian order. -.PP +.P The functions with names of the form "be\fInn\fPtoh" convert from big-endian order to host byte order. -.PP +.P The functions with names of the form "le\fInn\fPtoh" convert from little-endian order to host byte order. .SH VERSIONS @@ -97,7 +97,7 @@ the equivalent of OpenBSDs "betoh32" is "be32toh"). None. .SH HISTORY glibc 2.9. -.PP +.P These functions are similar to the older .BR byteorder (3) family of functions. @@ -105,7 +105,7 @@ For example, .BR be32toh () is identical to .BR ntohl (). -.PP +.P The advantage of the .BR byteorder (3) functions is that they are standard functions available @@ -120,7 +120,7 @@ Since host byte order is either little-endian or big-endian, only one of these conversions will have an effect. When we run this program on a little-endian system such as x86-32, we see the following: -.PP +.P .in +4n .EX $ \fB./a.out\fP diff --git a/upstream/opensuse-tumbleweed/man3/envz_add.3 b/upstream/opensuse-tumbleweed/man3/envz_add.3 index fcb5ca3f..888fc07c 100644 --- a/upstream/opensuse-tumbleweed/man3/envz_add.3 +++ b/upstream/opensuse-tumbleweed/man3/envz_add.3 @@ -6,7 +6,7 @@ .\" based on the description in glibc source and infopages .\" .\" Corrections and additions, aeb -.TH envz_add 3 2023-07-20 "Linux man-pages 6.05.01" +.TH envz_add 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME envz_add, envz_entry, envz_get, envz_merge, envz_remove, envz_strip \- environment string support @@ -16,29 +16,29 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "error_t envz_add(char **restrict " envz ", size_t *restrict " envz_len , .BI " const char *restrict " name \ ", const char *restrict " value ); -.PP +.P .BI "char *envz_entry(const char *restrict " envz ", size_t " envz_len , .BI " const char *restrict " name ); -.PP +.P .BI "char *envz_get(const char *restrict " envz ", size_t " envz_len , .BI " const char *restrict " name ); -.PP +.P .BI "error_t envz_merge(char **restrict " envz ", size_t *restrict " envz_len , .BI " const char *restrict " envz2 ", size_t " envz2_len , .BI " int " override ); -.PP +.P .BI "void envz_remove(char **restrict " envz ", size_t *restrict " envz_len , .BI " const char *restrict " name ); -.PP +.P .BI "void envz_strip(char **restrict " envz ", size_t *restrict " envz_len ); .fi .SH DESCRIPTION These functions are glibc-specific. -.PP +.P An argz vector is a pointer to a character buffer together with a length, see .BR argz_add (3). @@ -48,9 +48,9 @@ Everything after the first \[aq]=\[aq] is considered to be the value. If there is no \[aq]=\[aq], the value is taken to be NULL. (While the value in case of a trailing \[aq]=\[aq] is the empty string "".) -.PP +.P These functions are for handling envz vectors. -.PP +.P .BR envz_add () adds the string .RI \&" name = value \&" @@ -69,14 +69,14 @@ and If an entry with the same .I name existed, it is removed. -.PP +.P .BR envz_entry () looks for .I name in the envz vector .RI ( envz ,\ envz_len ) and returns the entry if found, or NULL if not. -.PP +.P .BR envz_get () looks for .I name @@ -87,7 +87,7 @@ and returns the value if found, or NULL if not. an entry for .I name without \[aq]=\[aq] sign.) -.PP +.P .BR envz_merge () adds each entry in .I envz2 @@ -102,14 +102,14 @@ is true, then values in will supersede those with the same name in .IR *envz , otherwise not. -.PP +.P .BR envz_remove () removes the entry for .I name from .RI ( *envz ,\ *envz_len ) if there was one. -.PP +.P .BR envz_strip () removes all entries with value NULL. .SH RETURN VALUE @@ -138,7 +138,6 @@ T{ .BR envz_strip () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH EXAMPLES diff --git a/upstream/opensuse-tumbleweed/man3/erf.3 b/upstream/opensuse-tumbleweed/man3/erf.3 index ed7f7f0d..3cdfb0ae 100644 --- a/upstream/opensuse-tumbleweed/man3/erf.3 +++ b/upstream/opensuse-tumbleweed/man3/erf.3 @@ -13,7 +13,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH erf 3 2023-07-20 "Linux man-pages 6.05.01" +.TH erf 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME erf, erff, erfl \- error function .SH LIBRARY @@ -22,24 +22,24 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double erf(double " x ); .BI "float erff(float " x ); .BI "long double erfl(long double " x ); -.PP +.P .fi .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR erf (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR erff (), .BR erfl (): .nf @@ -51,7 +51,7 @@ Feature Test Macro Requirements for glibc (see These functions return the error function of .IR x , defined as -.PP +.P .in +4n .EX erf(x) = 2/sqrt(pi) * integral from 0 to x of exp(\-t*t) dt @@ -61,20 +61,20 @@ erf(x) = 2/sqrt(pi) * integral from 0 to x of exp(\-t*t) dt On success, these functions return the value of the error function of .IR x , a value in the range [\-1,\ 1]. -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is +0 (\-0), +0 (\-0) is returned. -.PP +.P If .I x is positive infinity (negative infinity), +1 (\-1) is returned. -.PP +.P If .I x is subnormal, @@ -85,7 +85,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Range error: result underflow (\fIx\fP is subnormal) @@ -95,7 +95,7 @@ Range error: result underflow (\fIx\fP is subnormal) An underflow floating-point exception .RB ( FE_UNDERFLOW ) is raised. -.PP +.P These functions do not set .IR errno . .\" It is intentional that these functions do not set errno for this case @@ -116,12 +116,11 @@ T{ .BR erfl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/erfc.3 b/upstream/opensuse-tumbleweed/man3/erfc.3 index 92d6293e..70bdd7ae 100644 --- a/upstream/opensuse-tumbleweed/man3/erfc.3 +++ b/upstream/opensuse-tumbleweed/man3/erfc.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH erfc 3 2023-07-20 "Linux man-pages 6.05.01" +.TH erfc 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME erfc, erfcf, erfcl \- complementary error function .SH LIBRARY @@ -13,24 +13,24 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double erfc(double " x ); .BI "float erfcf(float " x ); .BI "long double erfcl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR erfc (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR erfcf (), .BR erfcl (): .nf @@ -46,28 +46,28 @@ that is, 1.0 \- erf(x). On success, these functions return the complementary error function of .IR x , a value in the range [0,2]. -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is +0 or \-0, 1 is returned. -.PP +.P If .I x is positive infinity, +0 is returned. -.PP +.P If .I x is negative infinity, +2 is returned. -.PP +.P If the function result underflows and produces an unrepresentable value, the return value is 0.0. -.PP +.P If the function result underflows but produces a representable (i.e., subnormal) value, .\" e.g., erfc(27) on x86-32 @@ -78,7 +78,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Range error: result underflow (result is subnormal) @@ -88,7 +88,7 @@ Range error: result underflow (result is subnormal) An underflow floating-point exception .RB ( FE_UNDERFLOW ) is raised. -.PP +.P These functions do not set .IR errno . .\" It is intentional that these functions do not set errno for this case @@ -109,12 +109,11 @@ T{ .BR erfcl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/err.3 b/upstream/opensuse-tumbleweed/man3/err.3 index 87f45a32..3db67031 100644 --- a/upstream/opensuse-tumbleweed/man3/err.3 +++ b/upstream/opensuse-tumbleweed/man3/err.3 @@ -9,7 +9,7 @@ .\" .\" 2011-09-10, mtk, Converted from mdoc to man macros .\" -.TH err 3 2023-07-20 "Linux man-pages 6.05.01" +.TH err 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME err, verr, errx, verrx, warn, vwarn, warnx, vwarnx \- formatted error messages .SH LIBRARY @@ -18,18 +18,18 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[noreturn]] void err(int " eval ", const char *" fmt ", ...);" .BI "[[noreturn]] void errx(int " eval ", const char *" fmt ", ...);" -.PP +.P .BI "void warn(const char *" fmt ", ...);" .BI "void warnx(const char *" fmt ", ...);" -.PP +.P .B #include -.PP +.P .BI "[[noreturn]] void verr(int " eval ", const char *" fmt ", va_list " args ); .BI "[[noreturn]] void verrx(int " eval ", const char *" fmt ", va_list " args ); -.PP +.P .BI "void vwarn(const char *" fmt ", va_list " args ); .BI "void vwarnx(const char *" fmt ", va_list " args ); .fi @@ -48,7 +48,7 @@ argument is not NULL, the .BR printf (3)-like formatted error message is output. The output is terminated by a newline character. -.PP +.P The .BR err (), .BR verr (), @@ -63,13 +63,13 @@ preceded by another colon and space unless the .I fmt argument is NULL. -.PP +.P The .BR errx () and .BR warnx () functions do not append an error message. -.PP +.P The .BR err (), .BR verr (), @@ -99,7 +99,6 @@ T{ .BR vwarnx () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS BSD. .SH HISTORY @@ -112,7 +111,7 @@ BSD. Display the current .I errno information string and exit: -.PP +.P .in +4n .EX p = malloc(size); @@ -123,9 +122,9 @@ if (fd == \-1) err(EXIT_FAILURE, "%s", file_name); .EE .in -.PP +.P Display an error message and exit: -.PP +.P .in +4n .EX if (tm.tm_hour < START_TIME) @@ -133,9 +132,9 @@ if (tm.tm_hour < START_TIME) start_time_string); .EE .in -.PP +.P Warn of an error: -.PP +.P .in +4n .EX fd = open(raw_device, O_RDONLY, 0); diff --git a/upstream/opensuse-tumbleweed/man3/errno.3 b/upstream/opensuse-tumbleweed/man3/errno.3 index f3ffee5d..72185eb0 100644 --- a/upstream/opensuse-tumbleweed/man3/errno.3 +++ b/upstream/opensuse-tumbleweed/man3/errno.3 @@ -9,7 +9,7 @@ .\" 2006-02-09 Kurt Wall, mtk .\" Added non-POSIX errors .\" -.TH errno 3 2022-12-04 "Linux man-pages 6.05.01" +.TH errno 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME errno \- number of last error .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.\".PP +.\".P .\".BI "extern int " errno ; .fi .SH DESCRIPTION @@ -43,7 +43,7 @@ allowed to change The value of .I errno is never set to zero by any system call or library function. -.PP +.P For some system calls and library functions (e.g., .BR getpriority (2)), \-1 is a valid return on success. @@ -55,7 +55,7 @@ if the call returns a status that indicates that an error may have occurred, checking to see if .I errno has a nonzero value. -.PP +.P .I errno is defined by the ISO C standard to be a modifiable lvalue of type @@ -74,7 +74,7 @@ The header file defines symbolic names for each of the possible error numbers that may appear in .IR errno . -.PP +.P All the error names specified by POSIX.1 must have distinct values, with the exception of .B EAGAIN @@ -82,7 +82,7 @@ and .BR EWOULDBLOCK , which may be the same. On Linux, these two have the same value on all architectures. -.PP +.P The error numbers that correspond to each symbolic name vary across UNIX systems, and even across different architectures on Linux. @@ -94,7 +94,7 @@ and .BR strerror (3) functions can be used to convert these names to corresponding textual error messages. -.PP +.P On any particular Linux system, one can obtain a list of all symbolic error names and the corresponding error numbers using the @@ -102,7 +102,7 @@ the corresponding error numbers using the command (part of the .I moreutils package): -.PP +.P .in +4n .EX $ \fBerrno \-l\fP @@ -114,13 +114,13 @@ EIO 5 Input/output error \&... .EE .in -.PP +.P The .BR errno (1) command can also be used to look up individual error numbers and names, and to search for errors using strings from the error description, as in the following examples: -.PP +.P .in +4n .EX $ \fBerrno 2\fP @@ -131,7 +131,7 @@ $ \fBerrno \-s permission\fP EACCES 13 Permission denied .EE .in -.\".PP +.\".P .\" POSIX.1 (2001 edition) lists the following symbolic error names. Of .\" these, \fBEDOM\fP and \fBERANGE\fP are in the ISO C standard. ISO C .\" Amendment 1 defines the additional error number \fBEILSEQ\fP for @@ -151,7 +151,7 @@ but was not present in earlier POSIX.1 standards. .TP .I C99 The name is defined by C99. -.PP +.P Below is a list of the symbolic error names that are defined on Linux: .TP 16 .B E2BIG @@ -595,7 +595,7 @@ Invalid cross-device link (POSIX.1-2001). Exchange full. .SH NOTES A common mistake is to do -.PP +.P .in +4n .EX if (somecall() == \-1) { @@ -604,7 +604,7 @@ if (somecall() == \-1) { } .EE .in -.PP +.P where .I errno no longer needs to have the value it had upon return from @@ -614,7 +614,7 @@ no longer needs to have the value it had upon return from If the value of .I errno should be preserved across a library call, it must be saved: -.PP +.P .in +4n .EX if (somecall() == \-1) { @@ -624,7 +624,7 @@ if (somecall() == \-1) { } .EE .in -.PP +.P Note that the POSIX threads APIs do .I not set @@ -634,7 +634,7 @@ Instead, on failure they return an error number as the function result. These error numbers have the same meanings as the error numbers returned in .I errno by other APIs. -.PP +.P On some ancient systems, .I was not present or did not declare diff --git a/upstream/opensuse-tumbleweed/man3/error.3 b/upstream/opensuse-tumbleweed/man3/error.3 index 1b12a60a..f341c860 100644 --- a/upstream/opensuse-tumbleweed/man3/error.3 +++ b/upstream/opensuse-tumbleweed/man3/error.3 @@ -25,7 +25,7 @@ .\" .\" References: .\" glibc manual and source -.TH error 3 2023-07-20 "Linux man-pages 6.05.01" +.TH error 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME error, error_at_line, error_message_count, error_one_per_line, error_print_progname \- glibc error reporting functions @@ -35,14 +35,14 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void error(int " status ", int " errnum ", const char *" format ", ...);" .BI "void error_at_line(int " status ", int " errnum ", const char *" filename , .BI " unsigned int " linenum ", const char *" format ", ...);" -.PP +.P .BI "extern unsigned int " error_message_count ; .BI "extern int " error_one_per_line ; -.PP +.P .BI "extern void (*" error_print_progname ")(void);" .fi .SH DESCRIPTION @@ -63,7 +63,7 @@ should follow .I format in the argument list. The output is terminated by a newline character. -.PP +.P The program name printed by .BR error () is the value of the global variable @@ -74,14 +74,14 @@ initially has the same value as .IR argv[0] . The value of this variable can be modified to change the output of .BR error (). -.PP +.P If \fIstatus\fP has a nonzero value, then .BR error () calls .BR exit (3) to terminate the program using the given value as the exit status; otherwise it returns after printing the error message. -.PP +.P The .BR error_at_line () function is exactly the same as @@ -101,20 +101,20 @@ The preprocessor values \fB__LINE__\fP and .BR error_at_line (), but other values can also be used. For example, these arguments could refer to a location in an input file. -.PP +.P If the global variable \fIerror_one_per_line\fP is set nonzero, a sequence of .BR error_at_line () calls with the same value of \fIfilename\fP and \fIlinenum\fP will result in only one message (the first) being output. -.PP +.P The global variable \fIerror_message_count\fP counts the number of messages that have been output by .BR error () and .BR error_at_line (). -.PP +.P If the global variable \fIerror_print_progname\fP is assigned the address of a function (i.e., is not NULL), then that function is called @@ -144,8 +144,7 @@ T} Thread safety T{ MT-Unsafe\ race: error_at_line/\:error_one_per_line locale T} .TE -.sp 1 -.PP +.P The internal .I error_one_per_line variable is accessed (without any form of synchronization, but since it's an diff --git a/upstream/opensuse-tumbleweed/man3/ether_aton.3 b/upstream/opensuse-tumbleweed/man3/ether_aton.3 index 973566b1..dbc6c2ff 100644 --- a/upstream/opensuse-tumbleweed/man3/ether_aton.3 +++ b/upstream/opensuse-tumbleweed/man3/ether_aton.3 @@ -9,7 +9,7 @@ .\" .\" Minor additions, aeb, 2013-06-21 .\" -.TH ether_aton 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ether_aton 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ether_aton, ether_ntoa, ether_ntohost, ether_hostton, ether_line, ether_ntoa_r, ether_aton_r \- Ethernet address manipulation routines @@ -19,19 +19,19 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *ether_ntoa(const struct ether_addr *" addr ); .BI "struct ether_addr *ether_aton(const char *" asc ); -.PP +.P .BI "int ether_ntohost(char *" hostname ", const struct ether_addr *" addr ); .BI "int ether_hostton(const char *" hostname ", struct ether_addr *" addr ); -.PP +.P .BI "int ether_line(const char *" line ", struct ether_addr *" addr , .BI " char *" hostname ); -.PP +.P /* GNU extensions */ .BI "char *ether_ntoa_r(const struct ether_addr *" addr ", char *" buf ); -.PP +.P .BI "struct ether_addr *ether_aton_r(const char *" asc , .BI " struct ether_addr *" addr ); .fi @@ -45,7 +45,7 @@ allocated buffer, which subsequent calls will overwrite. .BR ether_aton () returns NULL if the address is invalid. -.PP +.P The .BR ether_ntoa () function converts the Ethernet host address @@ -54,21 +54,21 @@ given in network byte order to a string in standard hex-digits-and-colons notation, omitting leading zeros. The string is returned in a statically allocated buffer, which subsequent calls will overwrite. -.PP +.P The .BR ether_ntohost () function maps an Ethernet address to the corresponding hostname in .I /etc/ethers and returns nonzero if it cannot be found. -.PP +.P The .BR ether_hostton () function maps a hostname to the corresponding Ethernet address in .I /etc/ethers and returns nonzero if it cannot be found. -.PP +.P The .BR ether_line () function parses a line in @@ -80,7 +80,7 @@ The buffer pointed to by .I hostname must be sufficiently long, for example, have the same length as .IR line . -.PP +.P The functions .BR ether_ntoa_r () and @@ -91,13 +91,13 @@ thread-safe versions of and .BR ether_aton () respectively, and do not use static buffers. -.PP +.P The structure .I ether_addr is defined in .I as: -.PP +.P .in +4n .EX struct ether_addr { @@ -129,7 +129,6 @@ T{ .BR ether_aton_r () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/euidaccess.3 b/upstream/opensuse-tumbleweed/man3/euidaccess.3 index a8d12189..7a896a1b 100644 --- a/upstream/opensuse-tumbleweed/man3/euidaccess.3 +++ b/upstream/opensuse-tumbleweed/man3/euidaccess.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH euidaccess 3 2023-07-20 "Linux man-pages 6.05.01" +.TH euidaccess 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME euidaccess, eaccess \- check effective user's permissions for a file .SH LIBRARY @@ -13,7 +13,7 @@ Standard C library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "int euidaccess(const char *" pathname ", int " mode ); .BI "int eaccess(const char *" pathname ", int " mode ); .fi @@ -28,13 +28,13 @@ However, whereas performs checks using the real user and group identifiers of the process, .BR euidaccess () uses the effective identifiers. -.PP +.P .I mode is a mask consisting of one or more of .BR R_OK ", " W_OK ", " X_OK ", and " F_OK , with the same meanings as for .BR access (2). -.PP +.P .BR eaccess () is a synonym for .BR euidaccess (), @@ -65,7 +65,6 @@ T{ .BR eaccess () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS Some other systems have an .\" e.g., FreeBSD 6.1. @@ -84,7 +83,7 @@ performing some operation based on that information leads to race conditions: the file permissions may change between the two steps. Generally, it is safer just to attempt the desired operation and handle any permission error that occurs. -.PP +.P This function always dereferences symbolic links. If you need to check the permissions on a symbolic link, use .BR faccessat (2) diff --git a/upstream/opensuse-tumbleweed/man3/exec.3 b/upstream/opensuse-tumbleweed/man3/exec.3 index 0f60f57b..a94a2f1b 100644 --- a/upstream/opensuse-tumbleweed/man3/exec.3 +++ b/upstream/opensuse-tumbleweed/man3/exec.3 @@ -11,7 +11,7 @@ .\" Modified, 24 Jun 2004, Michael Kerrisk .\" Added note on casting NULL .\" -.TH exec 3 2023-07-20 "Linux man-pages 6.05.01" +.TH exec 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME execl, execlp, execle, execv, execvp, execvpe \- execute a file .SH LIBRARY @@ -20,9 +20,9 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B extern char **environ; -.PP +.P .BI "int execl(const char *" pathname ", const char *" arg ", ..." .B " /*, (char *) NULL */);" .BI "int execlp(const char *" file ", const char *" arg ", ..." @@ -34,12 +34,12 @@ Standard C library .BI "int execvpe(const char *" file ", char *const " argv \ "[], char *const " envp "[]);" .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR execvpe (): .nf _GNU_SOURCE @@ -54,10 +54,10 @@ The functions described in this manual page are layered on top of (See the manual page for .BR execve (2) for further details about the replacement of the current process image.) -.PP +.P The initial argument for these functions is the name of a file that is to be executed. -.PP +.P The functions can be grouped based on the letters following the "exec" prefix. .\" .SS l - execl(), execlp(), execle() @@ -77,7 +77,7 @@ The list of arguments be terminated by a null pointer, and, since these are variadic functions, this pointer must be cast .IR "(char\ *) NULL" . -.PP +.P By contrast with the 'l' functions, the 'v' functions (below) specify the command-line arguments of the executed program as a vector. .\" @@ -99,7 +99,7 @@ The argument is an array of pointers to null-terminated strings and .I must be terminated by a null pointer. -.PP +.P All other .BR exec () functions (which do not include 'e' in the suffix) @@ -121,20 +121,20 @@ a list that includes the directories returned by (which typically returns the value "/bin:/usr/bin") and possibly also the current working directory; see NOTES for further details. -.PP +.P .BR execvpe () searches for the program using the value of .B PATH from the caller's environment, not from the .I envp argument. -.PP +.P If the specified filename includes a slash character, then .B PATH is ignored, and the file at the specified pathname is executed. -.PP +.P In addition, certain errors are treated specially. -.PP +.P If permission is denied for a file (the attempted .BR execve (2) failed with the error @@ -145,7 +145,7 @@ they will return with .I errno set to .BR EACCES . -.PP +.P If the header of a file isn't recognized (the attempted .BR execve (2) failed with the error @@ -154,7 +154,7 @@ these functions will execute the shell .RI ( /bin/sh ) with the path of the file as its first argument. (If this attempt fails, no further searching is done.) -.PP +.P All other .BR exec () functions (which do not include 'p' in the suffix) @@ -195,7 +195,6 @@ T{ .BR execvpe () T} Thread safety MT-Safe env .TE -.sp 1 .SH VERSIONS The default search path (used when the environment does not contain the variable \fBPATH\fR) @@ -218,7 +217,7 @@ caused the current working directory to be dropped altogether from the default search path. This accidental behavior change is considered mildly beneficial, and won't be reverted. -.PP +.P The behavior of .BR execlp () and @@ -232,7 +231,7 @@ sleep and retry if is encountered. Linux treats it as a hard error and returns immediately. -.PP +.P Traditionally, the functions .BR execlp () and diff --git a/upstream/opensuse-tumbleweed/man3/exit.3 b/upstream/opensuse-tumbleweed/man3/exit.3 index f51c5579..4fa48e08 100644 --- a/upstream/opensuse-tumbleweed/man3/exit.3 +++ b/upstream/opensuse-tumbleweed/man3/exit.3 @@ -7,7 +7,7 @@ .\" could be listed on this page. See, for example, the list in the .\" POSIX exit(3p) page. .\" -.TH exit 3 2023-07-20 "Linux man-pages 6.05.01" +.TH exit 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME exit \- cause normal process termination .SH LIBRARY @@ -16,7 +16,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[noreturn]] void exit(int " status ); .fi .SH DESCRIPTION @@ -26,7 +26,7 @@ function causes normal process termination and the least significant byte of .I status (i.e., \fIstatus & 0xFF\fP) is returned to the parent (see .BR wait (2)). -.PP +.P All functions registered with .BR atexit (3) and @@ -53,14 +53,14 @@ If a function has been registered multiple times using or .BR on_exit (3), then it is called as many times as it was registered. -.PP +.P All open .BR stdio (3) streams are flushed and closed. Files created by .BR tmpfile (3) are removed. -.PP +.P The C standard specifies two constants, \fBEXIT_SUCCESS\fP and \fBEXIT_FAILURE\fP, that may be passed to @@ -85,8 +85,7 @@ T{ .BR exit () T} Thread safety MT-Unsafe race:exit .TE -.sp 1 -.PP +.P The .BR exit () function uses a global variable that is not protected, @@ -110,7 +109,7 @@ removes registrations created using .BR atexit (3) and .BR on_exit (3). -.PP +.P The use of .B EXIT_SUCCESS and @@ -119,12 +118,12 @@ is slightly more portable (to non-UNIX environments) than the use of 0 and some nonzero value like 1 or \-1. In particular, VMS uses a different convention. -.PP +.P BSD has attempted to standardize exit codes (which some C libraries such as the GNU C library have also adopted); see the file .IR . -.PP +.P After .BR exit (), the exit status must be transmitted to the @@ -151,7 +150,7 @@ This allows the parent to subsequently use .BR waitpid (2) (or similar) to learn the termination status of the child; at that point the zombie process slot is released. -.PP +.P If the implementation supports the .B SIGCHLD signal, this signal @@ -171,7 +170,7 @@ is sent a signal, and the terminal is disassociated from this session, allowing it to be acquired by a new controlling process. -.PP +.P If the exit of the process causes a process group to become orphaned, and if any member of the newly orphaned process group is stopped, then a @@ -183,7 +182,7 @@ sent to each process in this process group. See .BR setpgid (2) for an explanation of orphaned process groups. -.PP +.P Except in the above cases, where the signalled processes may be children of the terminating process, termination of a process does diff --git a/upstream/opensuse-tumbleweed/man3/exp.3 b/upstream/opensuse-tumbleweed/man3/exp.3 index 8736d126..85a3f8fc 100644 --- a/upstream/opensuse-tumbleweed/man3/exp.3 +++ b/upstream/opensuse-tumbleweed/man3/exp.3 @@ -14,7 +14,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH exp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH exp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME exp, expf, expl \- base-e exponential function .SH LIBRARY @@ -23,17 +23,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double exp(double " x ); .BI "float expf(float " x ); .BI "long double expl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR expf (), .BR expl (): .nf @@ -48,26 +48,26 @@ logarithms) raised to the power of .SH RETURN VALUE On success, these functions return the exponential value of .IR x . -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is positive infinity, positive infinity is returned. -.PP +.P If .I x is negative infinity, +0 is returned. -.PP +.P If the result underflows, a range error occurs, and zero is returned. -.PP +.P If the result overflows, a range error occurs, and the functions return @@ -81,7 +81,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Range error, overflow @@ -115,12 +115,11 @@ T{ .BR expl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/exp10.3 b/upstream/opensuse-tumbleweed/man3/exp10.3 index 88b0ea61..69b6094f 100644 --- a/upstream/opensuse-tumbleweed/man3/exp10.3 +++ b/upstream/opensuse-tumbleweed/man3/exp10.3 @@ -13,7 +13,7 @@ .\" Modified 1995-08-14 by Arnt Gulbrandsen .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) -.TH exp10 3 2023-07-20 "Linux man-pages 6.05.01" +.TH exp10 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME exp10, exp10f, exp10l \- base-10 exponential function .SH LIBRARY @@ -23,7 +23,7 @@ Math library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "double exp10(double " x ); .BI "float exp10f(float " x ); .BI "long double exp10l(long double " x ); @@ -35,7 +35,7 @@ raised to the power of .SH RETURN VALUE On success, these functions return the base-10 exponential value of .IR x . -.PP +.P For various special cases, including the handling of infinity and NaN, as well as overflows and underflows, see .BR exp (3). @@ -44,7 +44,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P For a discussion of the errors that can occur for these functions, see .BR exp (3). .SH ATTRIBUTES @@ -63,7 +63,6 @@ T{ .BR exp10l () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/exp2.3 b/upstream/opensuse-tumbleweed/man3/exp2.3 index 9b3d99c6..728deb05 100644 --- a/upstream/opensuse-tumbleweed/man3/exp2.3 +++ b/upstream/opensuse-tumbleweed/man3/exp2.3 @@ -14,7 +14,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH exp2 3 2023-07-20 "Linux man-pages 6.05.01" +.TH exp2 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME exp2, exp2f, exp2l \- base-2 exponential function .SH LIBRARY @@ -23,17 +23,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double exp2(double " x ); .BI "float exp2f(float " x ); .BI "long double exp2l(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR exp2 (), .BR exp2f (), .BR exp2l (): @@ -46,7 +46,7 @@ These functions return the value of 2 raised to the power of .SH RETURN VALUE On success, these functions return the base-2 exponential value of .IR x . -.PP +.P For various special cases, including the handling of infinity and NaN, as well as overflows and underflows, see .BR exp (3). @@ -55,7 +55,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P For a discussion of the errors that can occur for these functions, see .BR exp (3). .SH ATTRIBUTES @@ -74,13 +74,12 @@ T{ .BR exp2l () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY glibc 2.1. C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/expm1.3 b/upstream/opensuse-tumbleweed/man3/expm1.3 index dd99ac18..0bdfc6b9 100644 --- a/upstream/opensuse-tumbleweed/man3/expm1.3 +++ b/upstream/opensuse-tumbleweed/man3/expm1.3 @@ -8,7 +8,7 @@ .\" Modified 2002-07-27 Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH expm1 3 2023-07-20 "Linux man-pages 6.05.01" +.TH expm1 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME expm1, expm1f, expm1l \- exponential minus 1 .SH LIBRARY @@ -17,17 +17,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double expm1(double " x ); .BI "float expm1f(float " x ); .BI "long double expm1l(long double " x ); -.PP +.P .fi .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR expm1 (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -36,7 +36,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR expm1f (), .BR expm1l (): .nf @@ -46,11 +46,11 @@ Feature Test Macro Requirements for glibc (see .fi .SH DESCRIPTION These functions return a value equivalent to -.PP +.P .nf exp(x) \- 1 .fi -.PP +.P The result is computed in a way that is accurate even if the value of .I x is near @@ -61,25 +61,25 @@ subtraction of two numbers that are nearly equal. .SH RETURN VALUE On success, these functions return .IR "exp(x)\ \-\ 1" . -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is +0 (\-0), +0 (\-0) is returned. -.PP +.P If .I x is positive infinity, positive infinity is returned. -.PP +.P If .I x is negative infinity, \-1 is returned. -.PP +.P If the result overflows, a range error occurs, and the functions return .RB \- HUGE_VAL , @@ -92,7 +92,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Range error, overflow @@ -122,7 +122,6 @@ T{ .BR expm1l () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -137,7 +136,7 @@ raised a bogus underflow floating-point exception for some large negative .I x values (where the function result approaches \-1). -.PP +.P Before approximately glibc 2.11, .\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=6814 .\" e.g., expm1(1e5) through expm1(1.00199970127e5), @@ -148,7 +147,7 @@ overflow exception, and returned a NaN instead of positive infinity, for some large positive .I x values. -.PP +.P Before glibc 2.11, .\" It looks like the fix was in glibc 2.11, or possibly glibc 2.12. .\" I have no test system for glibc 2.11, but glibc 2.12 passes. diff --git a/upstream/opensuse-tumbleweed/man3/extensions.3ncurses b/upstream/opensuse-tumbleweed/man3/extensions.3ncurses index 283c36c4..c3a31fc3 100644 --- a/upstream/opensuse-tumbleweed/man3/extensions.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/extensions.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1999-2010,2016 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -29,8 +29,8 @@ .\" .\" Author: Thomas E. Dickey 1999-on .\" -.\" $Id: curs_extend.3x,v 1.44 2023/12/23 16:36:18 tom Exp $ -.TH extensions 3NCURSES 2023-12-23 "ncurses 6.4" "Library calls" +.\" $Id: curs_extend.3x,v 1.46 2024/03/16 15:35:01 tom Exp $ +.TH extensions 3NCURSES 2024-03-16 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq diff --git a/upstream/opensuse-tumbleweed/man3/fabs.3 b/upstream/opensuse-tumbleweed/man3/fabs.3 index 37097d1d..6e6ed08d 100644 --- a/upstream/opensuse-tumbleweed/man3/fabs.3 +++ b/upstream/opensuse-tumbleweed/man3/fabs.3 @@ -10,7 +10,7 @@ .\" Modified Sat Jul 24 19:42:04 1993 by Rik Faith (faith@cs.unc.edu) .\" Added fabsl, fabsf, aeb, 2001-06-07 .\" -.TH fabs 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fabs 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fabs, fabsf, fabsl \- absolute value of floating-point number .SH LIBRARY @@ -19,17 +19,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double fabs(double " x ); .BI "float fabsf(float " x ); .BI "long double fabsl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR fabsf (), .BR fabsl (): .nf @@ -44,15 +44,15 @@ number .SH RETURN VALUE These functions return the absolute value of .IR x . -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is \-0, +0 is returned. -.PP +.P If .I x is negative infinity or positive infinity, positive infinity is returned. @@ -74,12 +74,11 @@ T{ .BR fabsl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/fclose.3 b/upstream/opensuse-tumbleweed/man3/fclose.3 index 3694d546..a39aaa8c 100644 --- a/upstream/opensuse-tumbleweed/man3/fclose.3 +++ b/upstream/opensuse-tumbleweed/man3/fclose.3 @@ -14,7 +14,7 @@ .\" .\" Modified 2000-07-22 by Nicolás Lichtmaier .\" -.TH fclose 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fclose 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fclose \- close a stream .SH LIBRARY @@ -23,7 +23,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int fclose(FILE *" stream ); .fi .SH DESCRIPTION @@ -55,7 +55,7 @@ is not valid. .\" low-level file operations on the same stream. If you do get this error, .\" you must have closed the stream's low-level file descriptor using .\" something like close(fileno(stream)). -.PP +.P The .BR fclose () function may also fail and set @@ -79,7 +79,6 @@ T{ .BR fclose () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/fcloseall.3 b/upstream/opensuse-tumbleweed/man3/fcloseall.3 index 7fc02c01..b7ed34bc 100644 --- a/upstream/opensuse-tumbleweed/man3/fcloseall.3 +++ b/upstream/opensuse-tumbleweed/man3/fcloseall.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH fcloseall 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fcloseall 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fcloseall \- close all open streams .SH LIBRARY @@ -13,7 +13,7 @@ Standard C library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .B int fcloseall(void); .fi .SH DESCRIPTION @@ -24,7 +24,7 @@ Buffered output for each stream is written before it is closed (as for .BR fflush (3)); buffered input is discarded. -.PP +.P The standard streams, .IR stdin , .IR stdout , @@ -50,8 +50,7 @@ T{ .BR fcloseall () T} Thread safety MT-Unsafe race:streams .TE -.sp 1 -.PP +.P The .BR fcloseall () function does not lock the streams, so it is not thread-safe. diff --git a/upstream/opensuse-tumbleweed/man3/fdim.3 b/upstream/opensuse-tumbleweed/man3/fdim.3 index 98c39615..271d8537 100644 --- a/upstream/opensuse-tumbleweed/man3/fdim.3 +++ b/upstream/opensuse-tumbleweed/man3/fdim.3 @@ -5,7 +5,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH fdim 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fdim 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fdim, fdimf, fdiml \- positive difference .SH LIBRARY @@ -14,17 +14,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double fdim(double " x ", double " y ); .BI "float fdimf(float " x ", float " y ); .BI "long double fdiml(long double " x ", long double " y ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR fdimf (), .BR fdiml (): .nf @@ -35,13 +35,13 @@ These functions return the positive difference, max(\fIx\fP-\fIy\fP,0), between their arguments. .SH RETURN VALUE On success, these functions return the positive difference. -.PP +.P If .I x or .I y is a NaN, a NaN is returned. -.PP +.P If the result overflows, a range error occurs, and the functions return @@ -55,7 +55,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Range error: result overflow @@ -81,7 +81,6 @@ T{ .BR fdiml () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/fenv.3 b/upstream/opensuse-tumbleweed/man3/fenv.3 index 653ba038..04f3dcaf 100644 --- a/upstream/opensuse-tumbleweed/man3/fenv.3 +++ b/upstream/opensuse-tumbleweed/man3/fenv.3 @@ -6,7 +6,7 @@ .\" 2000-08-14 added GNU additions from Andreas Jaeger .\" 2000-12-05 some changes inspired by acahalan's remarks .\" -.TH fenv 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fenv 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME feclearexcept, fegetexceptflag, feraiseexcept, fesetexceptflag, fetestexcept, fegetenv, fegetround, feholdexcept, fesetround, @@ -18,16 +18,16 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int feclearexcept(int " excepts ); .BI "int fegetexceptflag(fexcept_t *" flagp ", int " excepts ); .BI "int feraiseexcept(int " excepts ); .BI "int fesetexceptflag(const fexcept_t *" flagp ", int " excepts ); .BI "int fetestexcept(int " excepts ); -.PP +.P .B "int fegetround(void);" .BI "int fesetround(int " rounding_mode ); -.PP +.P .BI "int fegetenv(fenv_t *" envp ); .BI "int feholdexcept(fenv_t *" envp ); .BI "int fesetenv(const fenv_t *" envp ); @@ -41,20 +41,20 @@ The .I divide-by-zero exception occurs when an operation on finite numbers produces infinity as exact answer. -.PP +.P The .I overflow exception occurs when a result has to be represented as a floating-point number, but has (much) larger absolute value than the largest (finite) floating-point number that is representable. -.PP +.P The .I underflow exception occurs when a result has to be represented as a floating-point number, but has smaller absolute value than the smallest positive normalized floating-point number (and would lose much accuracy when represented as a denormalized number). -.PP +.P The .I inexact exception occurs when the rounded result of an operation @@ -64,7 +64,7 @@ It may occur whenever or .I underflow occurs. -.PP +.P The .I invalid exception occurs when there is no well-defined result @@ -75,7 +75,7 @@ Exceptions are represented in two ways: as a single bit implementation-defined way with bit positions in an integer, and also as an opaque structure that may contain more information about the exception (perhaps the code address where it occurred). -.PP +.P Each of the macros .BR FE_DIVBYZERO , .BR FE_INEXACT , @@ -91,12 +91,12 @@ Other exceptions may be supported. The macro .B FE_ALL_EXCEPT is the bitwise OR of all bits corresponding to supported exceptions. -.PP +.P The .BR feclearexcept () function clears the supported exceptions represented by the bits in its argument. -.PP +.P The .BR fegetexceptflag () function stores a representation of the state of the exception flags @@ -104,12 +104,12 @@ represented by the argument .I excepts in the opaque object .IR *flagp . -.PP +.P The .BR feraiseexcept () function raises the supported exceptions represented by the bits in .IR excepts . -.PP +.P The .BR fesetexceptflag () function sets the complete status for the exceptions represented by @@ -120,7 +120,7 @@ This value must have been obtained by an earlier call of .BR fegetexceptflag () with a last argument that contained all bits in .IR excepts . -.PP +.P The .BR fetestexcept () function returns a word in which the bits are set that were @@ -135,7 +135,7 @@ round to nearest (the default), round up (toward positive infinity), round down (toward negative infinity), and round toward zero. -.PP +.P Each of the macros .BR FE_TONEAREST , .BR FE_UPWARD , @@ -144,17 +144,17 @@ and .B FE_TOWARDZERO is defined when the implementation supports getting and setting the corresponding rounding direction. -.PP +.P The .BR fegetround () function returns the macro corresponding to the current rounding mode. -.PP +.P The .BR fesetround () function sets the rounding mode as specified by its argument and returns zero when it was successful. -.PP +.P C99 and POSIX.1-2008 specify an identifier, .BR FLT_ROUNDS , defined in @@ -177,9 +177,9 @@ Rounding is toward positive infinity. .TP .B 3 Rounding is toward negative infinity. -.PP +.P Other values represent machine-dependent, nonstandard rounding modes. -.PP +.P The value of .B FLT_ROUNDS should reflect the current rounding mode as set by @@ -197,19 +197,19 @@ The default environment is denoted by This is the environment setup at program start and it is defined by ISO C to have round to nearest, all exceptions cleared and a nonstop (continue on exceptions) mode. -.PP +.P The .BR fegetenv () function saves the current floating-point environment in the object .IR *envp . -.PP +.P The .BR feholdexcept () function does the same, then clears all exception flags, and sets a nonstop (continue on exceptions) mode, if available. It returns zero when successful. -.PP +.P The .BR fesetenv () function restores the floating-point environment from @@ -222,7 +222,7 @@ or or equal to .BR FE_DFL_ENV . This call does not raise exceptions. -.PP +.P The .BR feupdateenv () function installs the floating-point environment represented by @@ -272,7 +272,6 @@ T} Thread safety T{ MT-Safe T} .TE -.sp 1 .hy .SH STANDARDS C11, POSIX.1-2008, IEC 60559 (IEC 559:1989), ANSI/IEEE 854. @@ -299,16 +298,16 @@ and to set individual floating-point traps, and .BR fegetexcept () to query the state. -.PP +.P .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B "#include " -.PP +.P .BI "int feenableexcept(int " excepts ); .BI "int fedisableexcept(int " excepts ); .B "int fegetexcept(void);" .fi -.PP +.P The .BR feenableexcept () and diff --git a/upstream/opensuse-tumbleweed/man3/ferror.3 b/upstream/opensuse-tumbleweed/man3/ferror.3 index 68791f17..cdfc3a7e 100644 --- a/upstream/opensuse-tumbleweed/man3/ferror.3 +++ b/upstream/opensuse-tumbleweed/man3/ferror.3 @@ -14,7 +14,7 @@ .\" .\" Converted for Linux, Mon Nov 29 14:24:40 1993, faith@cs.unc.edu .\" -.TH ferror 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ferror 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME clearerr, feof, ferror \- check and reset stream status .SH LIBRARY @@ -23,7 +23,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void clearerr(FILE *" stream ); .BI "int feof(FILE *" stream ); .BI "int ferror(FILE *" stream ); @@ -33,7 +33,7 @@ The function .BR clearerr () clears the end-of-file and error indicators for the stream pointed to by .IR stream . -.PP +.P The function .BR feof () tests the end-of-file indicator for the stream pointed to by @@ -41,7 +41,7 @@ tests the end-of-file indicator for the stream pointed to by returning nonzero if it is set. The end-of-file indicator can be cleared only by the function .BR clearerr (). -.PP +.P The function .BR ferror () tests the error indicator for the stream pointed to by @@ -50,7 +50,7 @@ returning nonzero if it is set. The error indicator can be reset only by the .BR clearerr () function. -.PP +.P For nonlocking counterparts, see .BR unlocked_stdio (3). .SH RETURN VALUE @@ -59,7 +59,7 @@ The function returns nonzero if the end-of-file indicator is set for .IR stream ; otherwise, it returns zero. -.PP +.P The .BR ferror () function returns nonzero if the error indicator is set for @@ -84,7 +84,6 @@ T{ .BR ferror () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/fexecve.3 b/upstream/opensuse-tumbleweed/man3/fexecve.3 index 2ffe5c38..d0401277 100644 --- a/upstream/opensuse-tumbleweed/man3/fexecve.3 +++ b/upstream/opensuse-tumbleweed/man3/fexecve.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH fexecve 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fexecve 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fexecve \- execute program specified via file descriptor .SH LIBRARY @@ -12,15 +12,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int fexecve(int " fd ", char *const " argv "[], char *const " envp []); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR fexecve (): .nf Since glibc 2.10: @@ -92,12 +92,11 @@ T{ .BR fexecve () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY glibc 2.3.2. -.PP +.P On Linux with glibc versions 2.26 and earlier, .BR fexecve () is implemented using the @@ -131,7 +130,7 @@ of a file could be changed between the checksumming and the call to .BR fexecve (); for that, the solution is to ensure that the permissions on the file prevent it from being modified by malicious users. -.PP +.P The natural idiom when using .BR fexecve () is to set the close-on-exec flag on diff --git a/upstream/opensuse-tumbleweed/man3/fflush.3 b/upstream/opensuse-tumbleweed/man3/fflush.3 index a26c3e87..5670ba4e 100644 --- a/upstream/opensuse-tumbleweed/man3/fflush.3 +++ b/upstream/opensuse-tumbleweed/man3/fflush.3 @@ -15,7 +15,7 @@ .\" Modified 2000-07-22 by Nicolás Lichtmaier .\" Modified 2001-10-16 by John Levon .\" -.TH fflush 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fflush 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fflush \- flush a stream .SH LIBRARY @@ -24,7 +24,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int fflush(FILE *_Nullable " stream ); .fi .SH DESCRIPTION @@ -33,15 +33,15 @@ For output streams, forces a write of all user-space buffered data for the given output or update .I stream via the stream's underlying write function. -.PP +.P For input streams associated with seekable files (e.g., disk files, but not pipes or terminals), .BR fflush () discards any buffered data that has been fetched from the underlying file, but has not been consumed by the application. -.PP +.P The open status of the stream is unaffected. -.PP +.P If the .I stream argument is NULL, @@ -51,7 +51,7 @@ flushes open output streams. .\" mtk: POSIX specifies that only output streams are flushed for this case. .\" Also verified for glibc by experiment. -.PP +.P For a nonlocking counterpart, see .BR unlocked_stdio (3). .SH RETURN VALUE @@ -66,7 +66,7 @@ is set to indicate the error. .B EBADF .I stream is not an open stream, or is not open for writing. -.PP +.P The function .BR fflush () may also fail and set @@ -87,12 +87,11 @@ T{ .BR fflush () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C89, POSIX.1-2001, POSIX.1-2008. -.PP +.P POSIX.1-2001 did not specify the behavior for flushing of input streams, but the behavior is specified in POSIX.1-2008. .SH NOTES diff --git a/upstream/opensuse-tumbleweed/man3/ffs.3 b/upstream/opensuse-tumbleweed/man3/ffs.3 index b092438b..f3ce65e7 100644 --- a/upstream/opensuse-tumbleweed/man3/ffs.3 +++ b/upstream/opensuse-tumbleweed/man3/ffs.3 @@ -11,7 +11,7 @@ .\" .\" Modified 2003 Walter Harms (walter.harms@informatik.uni-oldenburg.de) .\" -.TH ffs 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ffs 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ffs, ffsl, ffsll \- find first bit set in a word .SH LIBRARY @@ -20,20 +20,17 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int ffs(int " i ); -.PP -.B #include -.PP .BI "int ffsl(long " i ); .BI "int ffsll(long long " i ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR ffs (): .nf Since glibc 2.12: @@ -44,7 +41,7 @@ Feature Test Macro Requirements for glibc (see Before glibc 2.12: none .fi -.PP +.P .BR ffsl (), .BR ffsll (): .nf @@ -87,10 +84,6 @@ T{ .BR ffsll () T} Thread safety MT-Safe .TE -.sp 1 -.SH VERSIONS -BSD systems have a prototype in -.IR . .SH STANDARDS .TP .BR ffs () diff --git a/upstream/opensuse-tumbleweed/man3/fgetc.3 b/upstream/opensuse-tumbleweed/man3/fgetc.3 index 1b13d611..03937120 100644 --- a/upstream/opensuse-tumbleweed/man3/fgetc.3 +++ b/upstream/opensuse-tumbleweed/man3/fgetc.3 @@ -5,7 +5,7 @@ .\" .\" Modified Wed Jul 28 11:12:07 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified Fri Sep 8 15:48:13 1995 by Andries Brouwer (aeb@cwi.nl) -.TH fgetc 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fgetc 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fgetc, fgets, getc, getchar, ungetc \- input of characters and strings .SH LIBRARY @@ -14,14 +14,14 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int fgetc(FILE *" stream ); .BI "int getc(FILE *" stream ); .B "int getchar(void);" -.PP +.P .BI "char *fgets(char " s "[restrict ." size "], int " size ", \ FILE *restrict " stream ); -.PP +.P .BI "int ungetc(int " c ", FILE *" stream ); .fi .SH DESCRIPTION @@ -35,18 +35,18 @@ cast to an or .B EOF on end of file or error. -.PP +.P .BR getc () is equivalent to .BR fgetc () except that it may be implemented as a macro which evaluates .I stream more than once. -.PP +.P .BR getchar () is equivalent to .BI "getc(" stdin ) \fR. -.PP +.P .BR fgets () reads in at most one less than .I size @@ -60,7 +60,7 @@ or a newline. If a newline is read, it is stored into the buffer. A terminating null byte (\[aq]\e0\[aq]) is stored after the last character in the buffer. -.PP +.P .BR ungetc () pushes .I c @@ -71,12 +71,12 @@ cast to where it is available for subsequent read operations. Pushed-back characters will be returned in reverse order; only one pushback is guaranteed. -.PP +.P Calls to the functions described here can be mixed with each other and with calls to other input functions from the .I stdio library for the same input stream. -.PP +.P For nonlocking counterparts, see .BR unlocked_stdio (3). .SH RETURN VALUE @@ -91,13 +91,13 @@ cast to an or .B EOF on end of file or error. -.PP +.P .BR fgets () returns .I s on success, and NULL on error or when end of file occurs while no characters have been read. -.PP +.P .BR ungetc () returns .I c @@ -122,7 +122,6 @@ T{ .BR ungetc () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/fgetgrent.3 b/upstream/opensuse-tumbleweed/man3/fgetgrent.3 index 71926a19..b69572cb 100644 --- a/upstream/opensuse-tumbleweed/man3/fgetgrent.3 +++ b/upstream/opensuse-tumbleweed/man3/fgetgrent.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 19:38:44 1993 by Rik Faith (faith@cs.unc.edu) -.TH fgetgrent 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fgetgrent 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fgetgrent \- get group file entry .SH LIBRARY @@ -19,15 +19,15 @@ Standard C library .B #include .B #include .B #include -.PP +.P .BI "struct group *fgetgrent(FILE *" stream ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR fgetgrent (): .nf Since glibc 2.19: @@ -49,9 +49,9 @@ must have the same format as .I /etc/group (see .BR group (5)). -.PP +.P The \fIgroup\fP structure is defined in \fI\fP as follows: -.PP +.P .in +4n .EX struct group { @@ -93,7 +93,6 @@ T{ .BR fgetgrent () T} Thread safety MT-Unsafe race:fgetgrent .TE -.sp 1 .\" FIXME The marking is different from that in the glibc manual, .\" which has: .\" diff --git a/upstream/opensuse-tumbleweed/man3/fgetpwent.3 b/upstream/opensuse-tumbleweed/man3/fgetpwent.3 index 676fe264..42dd0163 100644 --- a/upstream/opensuse-tumbleweed/man3/fgetpwent.3 +++ b/upstream/opensuse-tumbleweed/man3/fgetpwent.3 @@ -11,7 +11,7 @@ .\" Modified Sat Jul 24 19:37:37 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified Mon May 27 22:40:48 1996 by Martin Schulze (joey@linux.de) .\" -.TH fgetpwent 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fgetpwent 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fgetpwent \- get password file entry .SH LIBRARY @@ -22,15 +22,15 @@ Standard C library .B #include .B #include .B #include -.PP +.P .BI "struct passwd *fgetpwent(FILE *" stream ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR fgetpwent (): .nf Since glibc 2.19: @@ -51,9 +51,9 @@ must have the same format as .I /etc/passwd (see .BR passwd (5)). -.PP +.P The \fIpasswd\fP structure is defined in \fI\fP as follows: -.PP +.P .in +4n .EX struct passwd { @@ -101,7 +101,6 @@ T{ .BR fgetpwent () T} Thread safety MT-Unsafe race:fgetpwent .TE -.sp 1 .\" FIXME: The marking is different from that in the glibc manual, .\" which has: .\" diff --git a/upstream/opensuse-tumbleweed/man3/fgetwc.3 b/upstream/opensuse-tumbleweed/man3/fgetwc.3 index b66b0185..510a72d1 100644 --- a/upstream/opensuse-tumbleweed/man3/fgetwc.3 +++ b/upstream/opensuse-tumbleweed/man3/fgetwc.3 @@ -11,7 +11,7 @@ .\" ISO/IEC 9899:1999 .\" .\" Modified Tue Oct 16 23:18:40 BST 2001 by John Levon -.TH fgetwc 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fgetwc 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fgetwc, getwc \- read a wide character from a FILE stream .SH LIBRARY @@ -21,7 +21,7 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "wint_t fgetwc(FILE *" stream ); .BI "wint_t getwc(FILE *" stream ); .fi @@ -39,7 +39,7 @@ it returns If a wide-character conversion error occurs, it sets \fIerrno\fP to \fBEILSEQ\fP and returns .BR WEOF . -.PP +.P The .BR getwc () function or macro functions identically to @@ -47,7 +47,7 @@ function or macro functions identically to It may be implemented as a macro, and may evaluate its argument more than once. There is no reason ever to use it. -.PP +.P For nonlocking counterparts, see .BR unlocked_stdio (3). .SH RETURN VALUE @@ -80,7 +80,6 @@ T{ .BR getwc () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -92,7 +91,7 @@ depends on the .B LC_CTYPE category of the current locale. -.PP +.P In the absence of additional information passed to the .BR fopen (3) call, it is diff --git a/upstream/opensuse-tumbleweed/man3/fgetws.3 b/upstream/opensuse-tumbleweed/man3/fgetws.3 index fa2a2085..4d4f6e12 100644 --- a/upstream/opensuse-tumbleweed/man3/fgetws.3 +++ b/upstream/opensuse-tumbleweed/man3/fgetws.3 @@ -11,7 +11,7 @@ .\" ISO/IEC 9899:1999 .\" .\" Modified Tue Oct 16 23:18:40 BST 2001 by John Levon -.TH fgetws 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fgetws 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fgetws \- read a wide-character string from a FILE stream .SH LIBRARY @@ -20,7 +20,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wchar_t *fgetws(wchar_t " ws "[restrict ." n "], int " n \ ", FILE *restrict " stream ); .fi @@ -37,10 +37,10 @@ and adds a terminating null wide character (L\[aq]\e0\[aq]). It stops reading wide characters after it has encountered and stored a newline wide character. It also stops when end of stream is reached. -.PP +.P The programmer must ensure that there is room for at least \fIn\fP wide characters at \fIws\fP. -.PP +.P For a nonlocking counterpart, see .BR unlocked_stdio (3). .SH RETURN VALUE @@ -63,7 +63,6 @@ T{ .BR fgetws () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -75,7 +74,7 @@ depends on the .B LC_CTYPE category of the current locale. -.PP +.P In the absence of additional information passed to the .BR fopen (3) call, it is @@ -83,7 +82,7 @@ reasonable to expect that .BR fgetws () will actually read a multibyte string from the stream and then convert it to a wide-character string. -.PP +.P This function is unreliable, because it does not permit to deal properly with null wide characters that may be present in the input. diff --git a/upstream/opensuse-tumbleweed/man3/field.3form b/upstream/opensuse-tumbleweed/man3/field.3form index 86a63ad0..040bf1c9 100644 --- a/upstream/opensuse-tumbleweed/man3/field.3form +++ b/upstream/opensuse-tumbleweed/man3/field.3form @@ -1,6 +1,6 @@ '\" t .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2012 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -28,8 +28,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_field.3x,v 1.32 2023/11/25 13:58:47 tom Exp $ -.TH field 3FORM 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: form_field.3x,v 1.34 2024/03/16 15:35:01 tom Exp $ +.TH field 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBform_field\fP \- make and break connections between fields and forms diff --git a/upstream/opensuse-tumbleweed/man3/field_attributes.3form b/upstream/opensuse-tumbleweed/man3/field_attributes.3form index b20052e2..b7a5155d 100644 --- a/upstream/opensuse-tumbleweed/man3/field_attributes.3form +++ b/upstream/opensuse-tumbleweed/man3/field_attributes.3form @@ -1,6 +1,6 @@ '\" t .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2006,2010 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -28,8 +28,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_field_attributes.3x,v 1.33 2023/11/25 13:58:47 tom Exp $ -.TH field_attributes 3FORM 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: form_field_attributes.3x,v 1.35 2024/03/16 15:35:01 tom Exp $ +.TH field_attributes 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq diff --git a/upstream/opensuse-tumbleweed/man3/field_buffer.3form b/upstream/opensuse-tumbleweed/man3/field_buffer.3form index 1e5df694..ee97dbdc 100644 --- a/upstream/opensuse-tumbleweed/man3/field_buffer.3form +++ b/upstream/opensuse-tumbleweed/man3/field_buffer.3form @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_field_buffer.3x,v 1.43 2023/12/16 20:32:22 tom Exp $ -.TH field_buffer 3FORM 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: form_field_buffer.3x,v 1.45 2024/03/16 15:35:01 tom Exp $ +.TH field_buffer 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq diff --git a/upstream/opensuse-tumbleweed/man3/field_info.3form b/upstream/opensuse-tumbleweed/man3/field_info.3form index d0e559f6..570438f7 100644 --- a/upstream/opensuse-tumbleweed/man3/field_info.3form +++ b/upstream/opensuse-tumbleweed/man3/field_info.3form @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_field_info.3x,v 1.30 2023/11/25 13:58:47 tom Exp $ -.TH field_info 3FORM 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: form_field_info.3x,v 1.32 2024/03/16 15:35:01 tom Exp $ +.TH field_info 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq diff --git a/upstream/opensuse-tumbleweed/man3/field_just.3form b/upstream/opensuse-tumbleweed/man3/field_just.3form index b0a72116..3ce9a3ec 100644 --- a/upstream/opensuse-tumbleweed/man3/field_just.3form +++ b/upstream/opensuse-tumbleweed/man3/field_just.3form @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_field_just.3x,v 1.33 2023/11/25 13:58:47 tom Exp $ -.TH field_just 3FORM 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: form_field_just.3x,v 1.35 2024/03/16 15:35:01 tom Exp $ +.TH field_just 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq diff --git a/upstream/opensuse-tumbleweed/man3/field_new.3form b/upstream/opensuse-tumbleweed/man3/field_new.3form index b23dea10..268956bb 100644 --- a/upstream/opensuse-tumbleweed/man3/field_new.3form +++ b/upstream/opensuse-tumbleweed/man3/field_new.3form @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_field_new.3x,v 1.39 2023/11/25 13:58:47 tom Exp $ -.TH field_new 3FORM 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: form_field_new.3x,v 1.41 2024/03/16 15:35:01 tom Exp $ +.TH field_new 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBnew_field\fP, \fBdup_field\fP, diff --git a/upstream/opensuse-tumbleweed/man3/field_opts.3form b/upstream/opensuse-tumbleweed/man3/field_opts.3form index e9097e5f..0696b237 100644 --- a/upstream/opensuse-tumbleweed/man3/field_opts.3form +++ b/upstream/opensuse-tumbleweed/man3/field_opts.3form @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2014,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_field_opts.3x,v 1.42 2023/11/25 13:58:47 tom Exp $ -.TH field_opts 3FORM 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: form_field_opts.3x,v 1.44 2024/03/16 15:35:01 tom Exp $ +.TH field_opts 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBset_field_opts\fP, \fBfield_opts_on\fP, diff --git a/upstream/opensuse-tumbleweed/man3/field_userptr.3form b/upstream/opensuse-tumbleweed/man3/field_userptr.3form index cbe6725d..06f908f0 100644 --- a/upstream/opensuse-tumbleweed/man3/field_userptr.3form +++ b/upstream/opensuse-tumbleweed/man3/field_userptr.3form @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_field_userptr.3x,v 1.28 2023/11/25 13:58:47 tom Exp $ -.TH field_userptr 3FORM 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: form_field_userptr.3x,v 1.30 2024/03/16 15:35:01 tom Exp $ +.TH field_userptr 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBset_field_userptr\fP, \fBfield_userptr\fP \- diff --git a/upstream/opensuse-tumbleweed/man3/field_validation.3form b/upstream/opensuse-tumbleweed/man3/field_validation.3form index b0171e2e..48056dda 100644 --- a/upstream/opensuse-tumbleweed/man3/field_validation.3form +++ b/upstream/opensuse-tumbleweed/man3/field_validation.3form @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_field_validation.3x,v 1.51 2023/12/16 20:32:22 tom Exp $ -.TH field_validation 3FORM 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: form_field_validation.3x,v 1.53 2024/03/16 15:35:01 tom Exp $ +.TH field_validation 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq diff --git a/upstream/opensuse-tumbleweed/man3/fieldtype.3form b/upstream/opensuse-tumbleweed/man3/fieldtype.3form index 6733ac66..8425a44e 100644 --- a/upstream/opensuse-tumbleweed/man3/fieldtype.3form +++ b/upstream/opensuse-tumbleweed/man3/fieldtype.3form @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2006,2010 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_fieldtype.3x,v 1.44 2023/11/25 13:58:47 tom Exp $ -.TH fieldtype 3FORM 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: form_fieldtype.3x,v 1.46 2024/03/16 15:35:01 tom Exp $ +.TH fieldtype 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .de bP .ie n .IP \(bu 4 .el .IP \(bu 2 diff --git a/upstream/opensuse-tumbleweed/man3/fileno.3 b/upstream/opensuse-tumbleweed/man3/fileno.3 index 642948b3..81bafb72 100644 --- a/upstream/opensuse-tumbleweed/man3/fileno.3 +++ b/upstream/opensuse-tumbleweed/man3/fileno.3 @@ -12,7 +12,7 @@ .\" Converted for Linux, Mon Nov 29 14:24:40 1993, faith@cs.unc.edu .\" Added remark on EBADF for fileno, aeb, 2001-03-22 .\" -.TH fileno 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fileno 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fileno \- obtain file descriptor of a stdio stream .SH LIBRARY @@ -21,15 +21,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int fileno(FILE *" stream ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR fileno (): .nf _POSIX_C_SOURCE @@ -48,7 +48,7 @@ is called. Duplicate the file descriptor with .BR dup (2) before passing it to code that might close it. -.PP +.P For the nonlocking counterpart, see .BR unlocked_stdio (3). .SH RETURN VALUE @@ -78,7 +78,6 @@ T{ .BR fileno () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/finite.3 b/upstream/opensuse-tumbleweed/man3/finite.3 index 11a1581a..8cc426d0 100644 --- a/upstream/opensuse-tumbleweed/man3/finite.3 +++ b/upstream/opensuse-tumbleweed/man3/finite.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH finite 3 2023-07-20 "Linux man-pages 6.05.01" +.TH finite 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME finite, finitef, finitel, isinf, isinff, isinfl, isnan, isnanf, isnanl \- BSD floating-point classification functions @@ -13,52 +13,52 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int finite(double " x ); .BI "int finitef(float " x ); .BI "int finitel(long double " x ); -.PP +.P .BI "int isinf(double " x ); .BI "int isinff(float " x ); .BI "int isinfl(long double " x ); -.PP +.P .BI "int isnan(double " x ); .BI "int isnanf(float " x ); .BI "int isnanl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR finite (), .BR finitef (), .BR finitel (): .nf /* glibc >= 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE -.PP +.P .BR isinf (): _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE || /* glibc >= 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR isinff (), .BR isinfl (): .nf /* glibc >= 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR isnan (): .nf _XOPEN_SOURCE || _ISOC99_SOURCE || /* glibc >= 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR isnanf (), .BR isnanl (): .nf @@ -76,7 +76,7 @@ functions return a nonzero value if .I x is neither infinite nor a "not-a-number" (NaN) value, and 0 otherwise. -.PP +.P The .BR isnan (), .BR isnanf (), @@ -86,7 +86,7 @@ functions return a nonzero value if .I x is a NaN value, and 0 otherwise. -.PP +.P The .BR isinf (), .BR isinff (), @@ -119,7 +119,6 @@ T{ .BR isnanl () T} Thread safety MT-Safe .TE -.sp 1 .SH NOTES Note that these functions are obsolete. C99 defines macros diff --git a/upstream/opensuse-tumbleweed/man3/flockfile.3 b/upstream/opensuse-tumbleweed/man3/flockfile.3 index c2a18a42..325a676d 100644 --- a/upstream/opensuse-tumbleweed/man3/flockfile.3 +++ b/upstream/opensuse-tumbleweed/man3/flockfile.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH flockfile 3 2023-07-20 "Linux man-pages 6.05.01" +.TH flockfile 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME flockfile, ftrylockfile, funlockfile \- lock FILE for stdio .SH LIBRARY @@ -12,17 +12,17 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void flockfile(FILE *" filehandle ); .BI "int ftrylockfile(FILE *" filehandle ); .BI "void funlockfile(FILE *" filehandle ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P All functions shown above: .nf /* Since glibc 2.24: */ _POSIX_C_SOURCE >= 199309L @@ -41,13 +41,13 @@ For each library call, these functions wait until the object is no longer locked by a different thread, then lock it, do the requested I/O, and unlock the object again. -.PP +.P (Note: this locking has nothing to do with the file locking done by functions like .BR flock (2) and .BR lockf (3).) -.PP +.P All this is invisible to the C-programmer, but there may be two reasons to wish for more detailed control. On the one hand, maybe @@ -55,7 +55,7 @@ a series of I/O actions by one thread belongs together, and should not be interrupted by the I/O of some other thread. On the other hand, maybe the locking overhead should be avoided for greater efficiency. -.PP +.P To this end, a thread can explicitly lock the .I FILE object, @@ -72,7 +72,7 @@ instead of .BR getc (3) and .BR putc (3). -.PP +.P The .BR flockfile () function waits for @@ -83,11 +83,11 @@ current thread owner of .IR *filehandle , and increments the lockcount. -.PP +.P The .BR funlockfile () function decrements the lock count. -.PP +.P The .BR ftrylockfile () function is a nonblocking version @@ -121,12 +121,11 @@ T{ .BR funlockfile () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY POSIX.1-2001. -.PP +.P These functions are available when .B _POSIX_THREAD_SAFE_FUNCTIONS is defined. diff --git a/upstream/opensuse-tumbleweed/man3/floor.3 b/upstream/opensuse-tumbleweed/man3/floor.3 index 60406077..88d85031 100644 --- a/upstream/opensuse-tumbleweed/man3/floor.3 +++ b/upstream/opensuse-tumbleweed/man3/floor.3 @@ -5,7 +5,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH floor 3 2023-07-20 "Linux man-pages 6.05.01" +.TH floor 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME floor, floorf, floorl \- largest integral value not greater than argument .SH LIBRARY @@ -14,17 +14,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double floor(double " x ); .BI "float floorf(float " x ); .BI "long double floorl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR floorf (), .BR floorl (): .nf @@ -35,7 +35,7 @@ Feature Test Macro Requirements for glibc (see .SH DESCRIPTION These functions return the largest integral value that is not greater than .IR x . -.PP +.P For example, .I floor(0.5) is 0.0, and @@ -44,7 +44,7 @@ is \-1.0. .SH RETURN VALUE These functions return the floor of .IR x . -.PP +.P If .I x is integral, +0, \-0, NaN, or an infinity, @@ -69,17 +69,16 @@ T{ .BR floorl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to SVr4, 4.3BSD, C89. -.PP +.P SUSv2 and POSIX.1-2001 contain text about overflow (which might set .I errno to diff --git a/upstream/opensuse-tumbleweed/man3/fma.3 b/upstream/opensuse-tumbleweed/man3/fma.3 index e9a3313c..ecf11404 100644 --- a/upstream/opensuse-tumbleweed/man3/fma.3 +++ b/upstream/opensuse-tumbleweed/man3/fma.3 @@ -8,7 +8,7 @@ .\" Modified 2004-11-15, Added further text on FLT_ROUNDS .\" as suggested by AEB and Fabian Kreutz .\" -.TH fma 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fma 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fma, fmaf, fmal \- floating-point multiply and add .SH LIBRARY @@ -17,17 +17,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double fma(double " x ", double " y ", double " z ); .BI "float fmaf(float " x ", float " y ", float " z ); .BI "long double fmal(long double " x ", long double " y ", long double " z ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR fma (), .BR fmaf (), .BR fmal (): @@ -44,13 +44,13 @@ current rounding mode (see These functions return the value of .IR x " * " y " + " z , rounded as one ternary operation. -.PP +.P If .I x or .I y is a NaN, a NaN is returned. -.PP +.P If .I x times @@ -60,7 +60,7 @@ is an exact infinity, and is an infinity with the opposite sign, a domain error occurs, and a NaN is returned. -.PP +.P .\" POSIX.1-2008 allows some possible differences for the following two .\" domain error cases, but on Linux they are treated the same (AFAICS). .\" Nevertheless, we'll mirror POSIX.1 and describe the two cases @@ -76,7 +76,7 @@ a domain error occurs, and a NaN is returned. .\" POSIX.1 says that a NaN or an implementation-defined value shall .\" be returned for this case. -.PP +.P If one of .I x or @@ -87,7 +87,7 @@ is a NaN, .\" POSIX.1 makes the domain error optional for this case. a domain error occurs, and a NaN is returned. -.PP +.P If .I x times @@ -96,11 +96,11 @@ is not an infinity times zero (or vice versa), and .I z is a NaN, a NaN is returned. -.PP +.P If the result overflows, a range error occurs, and an infinity with the correct sign is returned. -.PP +.P If the result underflows, a range error occurs, and a signed 0 is returned. @@ -109,7 +109,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP * \fIy\fP + \fIz\fP, \ @@ -136,7 +136,7 @@ Range error: result underflow An underflow floating-point exception .RB ( FE_UNDERFLOW ) is raised. -.PP +.P These functions do not set .IR errno . .\" FIXME . Is it intentional that these functions do not set errno? @@ -157,7 +157,6 @@ T{ .BR fmal () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/fmax.3 b/upstream/opensuse-tumbleweed/man3/fmax.3 index 11334328..9a388c70 100644 --- a/upstream/opensuse-tumbleweed/man3/fmax.3 +++ b/upstream/opensuse-tumbleweed/man3/fmax.3 @@ -5,7 +5,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH fmax 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fmax 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fmax, fmaxf, fmaxl \- determine maximum of two floating-point numbers .SH LIBRARY @@ -14,17 +14,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double fmax(double " x ", double " y ); .BI "float fmaxf(float " x ", float " y ); .BI "long double fmaxl(long double " x ", long double " y ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR fmax (), .BR fmaxf (), .BR fmaxl (): @@ -41,9 +41,9 @@ These functions return the maximum of .I x and .IR y . -.PP +.P If one argument is a NaN, the other argument is returned. -.PP +.P If both arguments are NaN, a NaN is returned. .SH ERRORS No errors occur. @@ -63,7 +63,6 @@ T{ .BR fmaxl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/fmemopen.3 b/upstream/opensuse-tumbleweed/man3/fmemopen.3 index 081a33f0..eb68fd39 100644 --- a/upstream/opensuse-tumbleweed/man3/fmemopen.3 +++ b/upstream/opensuse-tumbleweed/man3/fmemopen.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH fmemopen 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fmemopen 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fmemopen \- open memory as stream .SH LIBRARY @@ -12,16 +12,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "FILE *fmemopen(void " buf [. size "], size_t " size ", \ const char *" mode ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR fmemopen (): .nf Since glibc 2.10: @@ -37,7 +37,7 @@ function opens a stream that permits the access specified by The stream allows I/O to be performed on the string or memory buffer pointed to by .IR buf . -.PP +.P The .I mode argument specifies the semantics of I/O on the stream, @@ -64,7 +64,7 @@ The buffer contents are truncated .I a+ Append; open the stream for reading and writing, with the initial buffer position set to the first null byte. -.PP +.P The stream maintains the notion of a current position, the location where the next I/O operation will be performed. The current position is implicitly updated by I/O operations. @@ -77,7 +77,7 @@ the initial position is set to the start of the buffer. In append mode, if no null byte is found within the buffer, then the initial position is .IR size+1 . -.PP +.P If .I buf is specified as NULL, then @@ -92,13 +92,13 @@ The buffer is automatically freed when the stream is closed. Note that the caller has no way to obtain a pointer to the temporary buffer allocated by this call (but see .BR open_memstream (3)). -.PP +.P If .I buf is not NULL, then it should point to a buffer of at least .I size bytes allocated by the caller. -.PP +.P When a stream that has been opened for writing is flushed .RB ( fflush (3)) or closed @@ -110,7 +110,7 @@ buffer .I size counts that byte) to allow for this. -.PP +.P In a stream opened for reading, null bytes (\[aq]\e0\[aq]) in the buffer do not cause read operations to return an end-of-file indication. @@ -118,11 +118,11 @@ A read from the buffer will indicate end-of-file only when the current buffer position advances .I size bytes past the start of the buffer. -.PP +.P Write operations take place either at the current position (for modes other than append), or at the current size of the stream (for append modes). -.PP +.P Attempts to write more than .I size bytes to the buffer result in an error. @@ -132,7 +132,7 @@ By default, such errors will be visible buffer is flushed. Disabling buffering with the following call may be useful to detect errors at the time of an output operation: -.PP +.P .in +4n .EX setbuf(stream, NULL); @@ -161,13 +161,12 @@ T{ .BR fmemopen (), T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY glibc 1.0.x. POSIX.1-2008. -.PP +.P POSIX.1-2008 specifies that \[aq]b\[aq] in .I mode shall be ignored. @@ -175,7 +174,7 @@ However, Technical Corrigendum 1 .\" http://austingroupbugs.net/view.php?id=396 adjusts the standard to allow implementation-specific treatment for this case, thus permitting the glibc treatment of \[aq]b\[aq]. -.PP +.P With glibc 2.22, binary mode (see below) was removed, many longstanding bugs in the implementation of .BR fmemopen () @@ -194,7 +193,7 @@ writes don't implicitly add a terminating null byte, and is relative to the end of the buffer (i.e., the value specified by the .I size argument), rather than the current string length. -.PP +.P An API bug afflicted the implementation of binary mode: to specify binary mode, the \[aq]b\[aq] must be the .I second @@ -206,7 +205,7 @@ This is inconsistent with the treatment of .I mode by .BR fopen (3). -.PP +.P Binary mode was removed in glibc 2.22; a \[aq]b\[aq] specified in .I mode has no effect. @@ -227,7 +226,7 @@ fails with the error It would be more consistent if this case successfully created a stream that then returned end-of-file on the first attempt at reading; since glibc 2.22, the glibc implementation provides that behavior. -.PP +.P Before glibc 2.22, specifying append mode ("a" or "a+") for .BR fmemopen () @@ -237,7 +236,7 @@ sets the initial buffer position to the first null byte, but the end of the stream) does not force subsequent writes to append at the end of the stream. This bug is fixed in glibc 2.22. -.PP +.P Before glibc 2.22, if the .I mode argument to @@ -254,7 +253,7 @@ However, in this case the glibc .BR fmemopen () sets the buffer position to \-1. This bug is fixed in glibc 2.22. -.PP +.P Before glibc 2.22, .\" https://sourceware.org/bugzilla/show_bug.cgi?id=14292 when a call to @@ -271,7 +270,7 @@ was .I subtracted from the end-of-stream position, instead of being added. This bug is fixed in glibc 2.22. -.PP +.P The glibc 2.9 addition of "binary" mode for .BR fmemopen () .\" http://sourceware.org/bugzilla/show_bug.cgi?id=6544 @@ -289,7 +288,7 @@ The program scans its input string (taken from the program's first command-line argument) reading integers, and writes the squares of these integers to the output buffer. An example of the output produced by this program is the following: -.PP +.P .in +4n .EX .RB "$" " ./a.out \[aq]1 23 43\[aq]" diff --git a/upstream/opensuse-tumbleweed/man3/fmin.3 b/upstream/opensuse-tumbleweed/man3/fmin.3 index c6fbb9df..45b83de1 100644 --- a/upstream/opensuse-tumbleweed/man3/fmin.3 +++ b/upstream/opensuse-tumbleweed/man3/fmin.3 @@ -5,7 +5,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH fmin 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fmin 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fmin, fminf, fminl \- determine minimum of two floating-point numbers .SH LIBRARY @@ -14,17 +14,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double fmin(double " x ", double " y ); .BI "float fminf(float " x ", float " y ); .BI "long double fminl(long double " x ", long double " y ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR fmin (), .BR fminf (), .BR fminl (): @@ -41,9 +41,9 @@ These functions return the minimum of .I x and .IR y . -.PP +.P If one argument is a NaN, the other argument is returned. -.PP +.P If both arguments are NaN, a NaN is returned. .SH ERRORS No errors occur. @@ -63,7 +63,6 @@ T{ .BR fminl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/fmod.3 b/upstream/opensuse-tumbleweed/man3/fmod.3 index e5245140..211b2f80 100644 --- a/upstream/opensuse-tumbleweed/man3/fmod.3 +++ b/upstream/opensuse-tumbleweed/man3/fmod.3 @@ -13,7 +13,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH fmod 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fmod 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fmod, fmodf, fmodl \- floating-point remainder function .SH LIBRARY @@ -22,17 +22,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double fmod(double " x ", double " y ); .BI "float fmodf(float " x ", float " y ); .BI "long double fmodl(long double " x ", long double " y ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR fmodf (), .BR fmodl (): .nf @@ -58,6 +58,23 @@ is the quotient of / .IR y , rounded toward zero to an integer. +.P +To obtain the modulus, more specifically, the Least Positive Residue, +you will need to adjust the result from fmod like so: +.P +.in +4n +.nf +z = fmod(x, y); +if (z < 0) + z += y; +.fi +.in +.P +An alternate way to express this is with +.IR "fmod(fmod(x, y) + y, y)" , +but the second +.BR fmod () +usually costs way more than the one branch. .SH RETURN VALUE On success, these functions return the value \fIx\fP\ \-\ \fIn\fP*\fIy\fP, @@ -67,25 +84,25 @@ such that the returned value has the same sign as .I x and a magnitude less than the magnitude of .IR y . -.PP +.P If .I x or .I y is a NaN, a NaN is returned. -.PP +.P If .I x is an infinity, a domain error occurs, and a NaN is returned. -.PP +.P If .I y is zero, a domain error occurs, and a NaN is returned. -.PP +.P If .I x is +0 (\-0), and @@ -96,7 +113,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP is an infinity @@ -133,12 +150,11 @@ T{ .BR fmodl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to @@ -151,5 +167,17 @@ to .B EDOM when a domain error occurred for an infinite .IR x . +.SH EXAMPLES +The call +.I fmod(372, 360) +returns 348. +.P +The call +.I fmod(-372, 360) +returns -12. +.P +The call +.I fmod(-372, -360) +also returns -12. .SH SEE ALSO .BR remainder (3) diff --git a/upstream/opensuse-tumbleweed/man3/fmtmsg.3 b/upstream/opensuse-tumbleweed/man3/fmtmsg.3 index 1ed98248..b4fc2cc2 100644 --- a/upstream/opensuse-tumbleweed/man3/fmtmsg.3 +++ b/upstream/opensuse-tumbleweed/man3/fmtmsg.3 @@ -9,7 +9,7 @@ .\" The function is quite complex and deserves an example .\" .\" Polished, aeb, 2003-11-01 -.TH fmtmsg 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fmtmsg 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fmtmsg \- print formatted error messages .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int fmtmsg(long " classification ", const char *" label , .BI " int " severity ", const char *" text , .BI " const char *" action ", const char *" tag ); @@ -33,23 +33,23 @@ For messages written to the format depends on the .B MSGVERB environment variable. -.PP +.P The .I label argument identifies the source of the message. The string must consist of two colon separated parts where the first part has not more than 10 and the second part not more than 14 characters. -.PP +.P The .I text argument describes the condition of the error. -.PP +.P The .I action argument describes possible steps to recover from the error. If it is printed, it is prefixed by "TO FIX: ". -.PP +.P The .I tag argument is a reference to the online documentation where more @@ -80,7 +80,7 @@ is a synonym for The .I classification argument is the sum of values describing 4 types of information. -.PP +.P The first value defines the output channel. .TP 12n .B MM_PRINT @@ -92,7 +92,7 @@ Output to the system console. .TP .B "MM_PRINT | MM_CONSOLE" Output to both. -.PP +.P The second value is the source of the error: .TP 12n .B MM_HARD @@ -103,7 +103,7 @@ A firmware error occurred. .TP .B MM_SOFT A software error occurred. -.PP +.P The third value encodes the detector of the problem: .TP 12n .B MM_APPL @@ -114,7 +114,7 @@ It is detected by a utility. .TP .B MM_OPSYS It is detected by the operating system. -.PP +.P The fourth value shows the severity of the incident: .TP 12n .B MM_RECOVER @@ -141,7 +141,7 @@ This value is printed as WARNING. .TP .B MM_INFO This value is printed as INFO. -.PP +.P The numeric values are between 0 and 4. Using .BR addseverity (3) @@ -174,7 +174,7 @@ When this variable is defined, is non-NULL, and is a colon-separated list of valid keywords, then only the parts of the message corresponding to these keywords is printed. Valid keywords are "label", "severity", "text", "action", and "tag". -.PP +.P The environment variable .B SEV_LEVEL can be used to introduce new severity levels. @@ -186,25 +186,25 @@ print nothing. If the user puts .B SEV_LEVEL with a format like -.PP +.P .RS SEV_LEVEL=[description[:description[:...]]] .RE -.PP +.P in the environment of the process before the first call to .BR fmtmsg (), where each description is of the form -.PP +.P .RS severity-keyword,level,printstring .RE -.PP +.P then .BR fmtmsg () will also accept the indicated values for the level (in addition to the standard levels 0\[en]4), and use the indicated printstring when such a level occurs. -.PP +.P The severity-keyword part is not used by .BR fmtmsg () but it has to be present. @@ -237,13 +237,12 @@ glibc\ >=\ 2.16: MT-Safe; glibc\ <\ 2.16: MT-Unsafe T} .TE -.sp 1 -.PP +.P Before glibc 2.16, the .BR fmtmsg () function uses a static variable that is not protected, so it is not thread-safe. -.PP +.P Since glibc 2.16, .\" Modified in commit 7724defcf8873116fe4efab256596861eef21a94 the @@ -268,7 +267,7 @@ POSIX.1-2001 and POSIX.1-2008. .TP .B SEV_LEVEL System V. -.PP +.P System V and UnixWare man pages tell us that these functions have been replaced by "pfmt() and addsev()" or by "pfmt(), vpfmt(), lfmt(), and vlfmt()", and will be removed later. @@ -307,26 +306,26 @@ main(void) } .EE .\" SRC END -.PP +.P The output should be: -.PP +.P .in +4n .EX util\-linux:mount: ERROR: unknown mount option TO FIX: See mount(8). util\-linux:mount:017 .EE .in -.PP +.P and after -.PP +.P .in +4n .EX MSGVERB=text:action; export MSGVERB .EE .in -.PP +.P the output becomes: -.PP +.P .in +4n .EX unknown mount option diff --git a/upstream/opensuse-tumbleweed/man3/fnmatch.3 b/upstream/opensuse-tumbleweed/man3/fnmatch.3 index 3de81178..c359a1df 100644 --- a/upstream/opensuse-tumbleweed/man3/fnmatch.3 +++ b/upstream/opensuse-tumbleweed/man3/fnmatch.3 @@ -6,7 +6,7 @@ .\" Modified Sat Jul 24 19:35:54 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified Mon Oct 16 00:16:29 2000 following Joseph S. Myers .\" -.TH fnmatch 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fnmatch 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fnmatch \- match filename or pathname .SH LIBRARY @@ -15,7 +15,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int fnmatch(const char *" "pattern" ", const char *" string ", int " flags ); .fi .SH DESCRIPTION @@ -27,7 +27,7 @@ argument matches the .I pattern argument, which is a shell wildcard pattern (see .BR glob (7)). -.PP +.P The .I flags argument modifies the behavior; it is the bitwise OR of zero or more @@ -118,7 +118,6 @@ T{ .BR fnmatch () T} Thread safety MT-Safe env locale .TE -.sp 1 .SH STANDARDS .TP .BR fnmatch () diff --git a/upstream/opensuse-tumbleweed/man3/fopen.3 b/upstream/opensuse-tumbleweed/man3/fopen.3 index e96303c9..bf09c62b 100644 --- a/upstream/opensuse-tumbleweed/man3/fopen.3 +++ b/upstream/opensuse-tumbleweed/man3/fopen.3 @@ -14,7 +14,7 @@ .\" Modified, aeb, 960421, 970806 .\" Modified, joey, aeb, 2002-01-03 .\" -.TH fopen 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fopen 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fopen, fdopen, freopen \- stream open functions .SH LIBRARY @@ -23,7 +23,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "FILE *fopen(const char *restrict " pathname \ ", const char *restrict " mode ); .BI "FILE *fdopen(int " fd ", const char *" mode ); @@ -31,12 +31,12 @@ Standard C library ", const char *restrict " mode , .BI " FILE *restrict " stream ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR fdopen (): .nf _POSIX_C_SOURCE @@ -47,7 +47,7 @@ The function opens the file whose name is the string pointed to by .I pathname and associates a stream with it. -.PP +.P The argument .I mode points to a string beginning with one of the following sequences @@ -84,7 +84,7 @@ POSIX is silent on what the initial read position is when using this mode. For glibc, the initial file position for reading is at the beginning of the file, but for Android/BSD/MacOS, the initial file position for reading is at the end of the file. -.PP +.P The .I mode string can also include the letter \[aq]b\[aq] either as a last character or as @@ -97,15 +97,15 @@ conforming systems, including Linux. and adding the \[aq]b\[aq] may be a good idea if you do I/O to a binary file and expect that your program may be ported to non-UNIX environments.) -.PP +.P See NOTES below for details of glibc extensions for .IR mode . -.PP +.P Any created file will have the mode .BR S_IRUSR " | " S_IWUSR " | " S_IRGRP " | " S_IWGRP " | " S_IROTH " | " S_IWOTH (0666), as modified by the process's umask value (see .BR umask (2)). -.PP +.P Reads and writes may be intermixed on read/write streams in any order. Note that ANSI C requires that a file positioning function intervene between output and input, unless an input operation encounters end-of-file. @@ -120,18 +120,18 @@ operation between write and read operations on such a stream. This operation may be an apparent no-op (as in \fIfseek(..., 0L, SEEK_CUR)\fP called for its synchronizing side effect). -.PP +.P Opening a file in append mode (\fBa\fP as the first character of .IR mode ) causes all subsequent write operations to this stream to occur at end-of-file, as if preceded by the call: -.PP +.P .in +4n .EX fseek(stream, 0, SEEK_END); .EE .in -.PP +.P The file descriptor associated with the stream is opened as if by a call to .BR open (2) with the following flags: @@ -186,7 +186,7 @@ The argument is used just as in the .BR fopen () function. -.PP +.P If the .I pathname argument is a null pointer, @@ -197,7 +197,7 @@ that is, .BR freopen () reopens the pathname that is associated with the stream. The specification for this behavior was added in the C99 standard, which says: -.PP +.P .RS In this case, the file descriptor associated with the stream need not be closed @@ -207,7 +207,7 @@ succeeds. It is implementation-defined which changes of mode are permitted (if any), and under what circumstances. .RE -.PP +.P The primary use of the .BR freopen () function is to change the file associated with a standard text stream @@ -235,7 +235,7 @@ provided to or .BR freopen () was invalid. -.PP +.P The .BR fopen (), .BR fdopen (), @@ -245,21 +245,21 @@ functions may also fail and set .I errno for any of the errors specified for the routine .BR malloc (3). -.PP +.P The .BR fopen () function may also fail and set .I errno for any of the errors specified for the routine .BR open (2). -.PP +.P The .BR fdopen () function may also fail and set .I errno for any of the errors specified for the routine .BR fcntl (2). -.PP +.P The .BR freopen () function may also fail and set @@ -285,7 +285,6 @@ T{ .BR freopen () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR fopen () @@ -354,7 +353,7 @@ to .BR EEXIST . This flag is ignored for .BR fdopen (). -.PP +.P In addition to the above characters, .BR fopen () and @@ -362,9 +361,9 @@ and support the following syntax in .IR mode : -.PP +.P .BI " ,ccs=" string -.PP +.P The given .I string is taken as the name of a coded character set and diff --git a/upstream/opensuse-tumbleweed/man3/fopencookie.3 b/upstream/opensuse-tumbleweed/man3/fopencookie.3 index 61f77bc3..ac3c082a 100644 --- a/upstream/opensuse-tumbleweed/man3/fopencookie.3 +++ b/upstream/opensuse-tumbleweed/man3/fopencookie.3 @@ -4,9 +4,9 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH fopencookie 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fopencookie 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME -fopencookie \- opening a custom stream +fopencookie \- open a custom stream .SH LIBRARY Standard C library .RI ( libc ", " \-lc ) @@ -15,7 +15,7 @@ Standard C library .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #define _FILE_OFFSET_BITS 64 .B #include -.PP +.P .BI "FILE *fopencookie(void *restrict " cookie ", const char *restrict " mode , .BI " cookie_io_functions_t " io_funcs ); .fi @@ -31,7 +31,7 @@ is used to implement .BR fmemopen (3), which provides a stream interface to data that is stored in a buffer in memory. -.PP +.P In order to create a custom stream the programmer must: .IP \[bu] 3 Implement four "hook" functions that are used internally by the @@ -52,7 +52,7 @@ Call .BR fopencookie () to open a new stream and associate the cookie and hook functions with that stream. -.PP +.P The .BR fopencookie () function serves a purpose similar to @@ -60,14 +60,14 @@ function serves a purpose similar to it opens a new stream and returns a pointer to a .I FILE object that is used to operate on that stream. -.PP +.P The .I cookie argument is a pointer to the caller's cookie structure that is to be associated with the new stream. This pointer is supplied as the first argument when the standard I/O library invokes any of the hook functions described below. -.PP +.P The .I mode argument serves the same purpose as for @@ -83,13 +83,13 @@ and See .BR fopen (3) for details. -.PP +.P The .I io_funcs argument is a structure that contains four fields pointing to the programmer-defined hook functions that are used to implement this stream. The structure is defined as follows -.PP +.P .in +4n .EX typedef struct { @@ -100,7 +100,7 @@ typedef struct { } cookie_io_functions_t; .EE .in -.PP +.P The four fields are as follows: .TP .I cookie_read_function_t *read @@ -257,7 +257,6 @@ T{ .BR fopencookie () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH EXAMPLES @@ -269,7 +268,7 @@ The program writes its command-line arguments to the stream, and then seeks through the stream reading two out of every five characters and writing them to standard output. The following shell session demonstrates the use of the program: -.PP +.P .in +4n .EX .RB "$" " ./a.out \[aq]hello world\[aq]" @@ -279,7 +278,7 @@ The following shell session demonstrates the use of the program: Reached end of file .EE .in -.PP +.P Note that a more general version of the program below could be improved to more robustly handle various error situations (e.g., opening a stream with a cookie that already has an open stream; diff --git a/upstream/opensuse-tumbleweed/man3/form.3form b/upstream/opensuse-tumbleweed/man3/form.3form index 473e4169..5dd53ce8 100644 --- a/upstream/opensuse-tumbleweed/man3/form.3form +++ b/upstream/opensuse-tumbleweed/man3/form.3form @@ -1,6 +1,6 @@ '\" t .\"*************************************************************************** -.\" Copyright 2018-2021,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2016,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -28,8 +28,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form.3x,v 1.52 2023/12/23 16:08:25 tom Exp $ -.TH form 3FORM 2023-12-23 "ncurses 6.4" "Library calls" +.\" $Id: form.3x,v 1.54 2024/03/16 15:35:01 tom Exp $ +.TH form 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq diff --git a/upstream/opensuse-tumbleweed/man3/form_variables.3form b/upstream/opensuse-tumbleweed/man3/form_variables.3form index 6e2d51bb..f4ce75d2 100644 --- a/upstream/opensuse-tumbleweed/man3/form_variables.3form +++ b/upstream/opensuse-tumbleweed/man3/form_variables.3form @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2020-2021,2023 Thomas E. Dickey * +.\" Copyright 2020-2023,2024 Thomas E. Dickey * .\" Copyright 2010-2013,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_variables.3x,v 1.16 2023/10/07 21:19:07 tom Exp $ -.TH form_variables 3FORM 2023-10-07 "ncurses 6.4" "Library calls" +.\" $Id: form_variables.3x,v 1.18 2024/03/16 15:35:01 tom Exp $ +.TH form_variables 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fB\%TYPE_ALNUM\fP, \fB\%TYPE_ALPHA\fP, diff --git a/upstream/opensuse-tumbleweed/man3/format.3menu b/upstream/opensuse-tumbleweed/man3/format.3menu index 32c774d8..b460c6d6 100644 --- a/upstream/opensuse-tumbleweed/man3/format.3menu +++ b/upstream/opensuse-tumbleweed/man3/format.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2015,2016 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: menu_format.3x,v 1.33 2023/11/25 13:58:47 tom Exp $ -.TH format 3MENU 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: menu_format.3x,v 1.35 2024/03/16 15:35:01 tom Exp $ +.TH format 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBset_menu_format\fP, \fBmenu_format\fP \- diff --git a/upstream/opensuse-tumbleweed/man3/fpathconf.3 b/upstream/opensuse-tumbleweed/man3/fpathconf.3 index 61951972..d8799440 100644 --- a/upstream/opensuse-tumbleweed/man3/fpathconf.3 +++ b/upstream/opensuse-tumbleweed/man3/fpathconf.3 @@ -20,7 +20,7 @@ .\" _PC_SYMLINK_MAX, .\" _PC_2_SYMLINKS .\" -.TH fpathconf 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fpathconf 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fpathconf, pathconf \- get configuration values for files .SH LIBRARY @@ -29,7 +29,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "long fpathconf(int " fd ", int " name ); .BI "long pathconf(const char *" path ", int " name ); .fi @@ -39,13 +39,13 @@ gets a value for the configuration option .I name for the open file descriptor .IR fd . -.PP +.P .BR pathconf () gets a value for configuration option .I name for the filename .IR path . -.PP +.P The corresponding macros defined in .I are minimum values; if an application wants to take advantage of values @@ -54,7 +54,7 @@ which may change, a call to or .BR pathconf () can be made, which may yield more liberal results. -.PP +.P Setting .I name equal to one of the following constants returns the following @@ -252,7 +252,6 @@ T{ .BR pathconf () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -263,7 +262,7 @@ Files with name lengths longer than the value returned for equal to .B _PC_NAME_MAX may exist in the given directory. -.PP +.P Some returned values may be huge; they are not suitable for allocating memory. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/fpclassify.3 b/upstream/opensuse-tumbleweed/man3/fpclassify.3 index cfb16be1..17a0fdd3 100644 --- a/upstream/opensuse-tumbleweed/man3/fpclassify.3 +++ b/upstream/opensuse-tumbleweed/man3/fpclassify.3 @@ -6,7 +6,7 @@ .\" This was done with the help of the glibc manual. .\" .\" 2004-10-31, aeb, corrected -.TH fpclassify 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fpclassify 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fpclassify, isfinite, isnormal, isnan, isinf \- floating-point classification macros @@ -16,19 +16,19 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int fpclassify(" x ); .BI "int isfinite(" x ); .BI "int isnormal(" x ); .BI "int isnan(" x ); .BI "int isinf(" x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .\" I haven't fully grokked the source to determine the FTM requirements; .\" in part, the following has been tested by experiment. .BR fpclassify (), @@ -37,7 +37,7 @@ Feature Test Macro Requirements for glibc (see .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L .fi -.PP +.P .BR isnan (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -45,7 +45,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR isinf (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -82,7 +82,7 @@ is too small to be represented in normalized format. .B FP_NORMAL if nothing of the above is correct then it must be a normal floating-point number. -.PP +.P The other macros provide a short answer to some standard questions. .TP 14 .BI isfinite( x ) @@ -122,12 +122,11 @@ T{ .BR isinf () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY POSIX.1-2001, C99. -.PP +.P In glibc 2.01 and earlier, .BR isinf () returns a nonzero value (actually: 1) if diff --git a/upstream/opensuse-tumbleweed/man3/fpurge.3 b/upstream/opensuse-tumbleweed/man3/fpurge.3 index 545af207..4057c90c 100644 --- a/upstream/opensuse-tumbleweed/man3/fpurge.3 +++ b/upstream/opensuse-tumbleweed/man3/fpurge.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH fpurge 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fpurge 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fpurge, __fpurge \- purge a stream .SH LIBRARY @@ -13,13 +13,13 @@ Standard C library .nf /* unsupported */ .B #include -.PP +.P .BI "int fpurge(FILE *" stream ); -.PP +.P /* supported */ .B #include .B #include -.PP +.P .BI "void __fpurge(FILE *" stream ); .fi .SH DESCRIPTION @@ -34,7 +34,7 @@ this includes any text pushed back via .BR ungetc (3). See also .BR fflush (3). -.PP +.P The function .BR __fpurge () does precisely the same, but without returning a value. @@ -64,7 +64,6 @@ T{ .BR __fpurge () T} Thread safety MT-Safe race:stream .TE -.sp 1 .SH STANDARDS None. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/fputwc.3 b/upstream/opensuse-tumbleweed/man3/fputwc.3 index ce5ad42f..cdac37df 100644 --- a/upstream/opensuse-tumbleweed/man3/fputwc.3 +++ b/upstream/opensuse-tumbleweed/man3/fputwc.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH fputwc 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fputwc 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fputwc, putwc \- write a wide character to a FILE stream .SH LIBRARY @@ -19,7 +19,7 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "wint_t fputwc(wchar_t " wc ", FILE *" stream ); .BI "wint_t putwc(wchar_t " wc ", FILE *" stream ); .fi @@ -38,7 +38,7 @@ If a wide-character conversion error occurs, it sets \fIerrno\fP to \fBEILSEQ\fP and returns .BR WEOF . Otherwise, it returns \fIwc\fP. -.PP +.P The .BR putwc () function or macro functions identically to @@ -46,7 +46,7 @@ function or macro functions identically to It may be implemented as a macro, and may evaluate its argument more than once. There is no reason ever to use it. -.PP +.P For nonlocking counterparts, see .BR unlocked_stdio (3). .SH RETURN VALUE @@ -79,7 +79,6 @@ T{ .BR putwc () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -91,7 +90,7 @@ depends on the .B LC_CTYPE category of the current locale. -.PP +.P In the absence of additional information passed to the .BR fopen (3) call, it is diff --git a/upstream/opensuse-tumbleweed/man3/fputws.3 b/upstream/opensuse-tumbleweed/man3/fputws.3 index dd549327..62b3425d 100644 --- a/upstream/opensuse-tumbleweed/man3/fputws.3 +++ b/upstream/opensuse-tumbleweed/man3/fputws.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH fputws 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fputws 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fputws \- write a wide-character string to a FILE stream .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int fputws(const wchar_t *restrict " ws ", FILE *restrict " stream ); .fi .SH DESCRIPTION @@ -31,7 +31,7 @@ function. It writes the wide-character string starting at \fIws\fP, up to but not including the terminating null wide character (L\[aq]\e0\[aq]), to \fIstream\fP. -.PP +.P For a nonlocking counterpart, see .BR unlocked_stdio (3). .SH RETURN VALUE @@ -54,7 +54,6 @@ T{ .BR fputws () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -66,7 +65,7 @@ depends on the .B LC_CTYPE category of the current locale. -.PP +.P In the absence of additional information passed to the .BR fopen (3) call, it is diff --git a/upstream/opensuse-tumbleweed/man3/fread.3 b/upstream/opensuse-tumbleweed/man3/fread.3 index 2874d433..0deecd41 100644 --- a/upstream/opensuse-tumbleweed/man3/fread.3 +++ b/upstream/opensuse-tumbleweed/man3/fread.3 @@ -16,7 +16,7 @@ .\" Modified Thu Apr 20 20:43:53 1995 by Jim Van Zandt .\" Modified Fri May 17 10:21:51 1996 by Martin Schulze .\" -.TH fread 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fread 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fread, fwrite \- binary stream input/output .SH LIBRARY @@ -25,7 +25,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t fread(void " ptr "[restrict ." size " * ." nmemb ], .BI " size_t " size ", size_t " nmemb , .BI " FILE *restrict " stream ); @@ -44,7 +44,7 @@ bytes long, from the stream pointed to by .IR stream , storing them at the location given by .IR ptr . -.PP +.P The function .BR fwrite () writes @@ -55,7 +55,7 @@ bytes long, to the stream pointed to by .IR stream , obtaining them from the location given by .IR ptr . -.PP +.P For nonlocking counterparts, see .BR unlocked_stdio (3). .SH RETURN VALUE @@ -69,10 +69,10 @@ This number equals the number of bytes transferred only when is 1. If an error occurs, or the end of the file is reached, the return value is a short item count (or zero). -.PP +.P The file position indicator for the stream is advanced by the number of bytes successfully read or written. -.PP +.P .BR fread () does not distinguish between end-of-file and error, and callers must use .BR feof (3) @@ -94,7 +94,6 @@ T{ .BR fwrite () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -104,7 +103,7 @@ The program below demonstrates the use of .BR fread () by parsing /bin/sh ELF executable in binary mode and printing its magic and class: -.PP +.P .in +4n .EX $ \fB./a.out\fP diff --git a/upstream/opensuse-tumbleweed/man3/frexp.3 b/upstream/opensuse-tumbleweed/man3/frexp.3 index c3c838a7..3d357c94 100644 --- a/upstream/opensuse-tumbleweed/man3/frexp.3 +++ b/upstream/opensuse-tumbleweed/man3/frexp.3 @@ -11,7 +11,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH frexp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH frexp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME frexp, frexpf, frexpl \- convert floating-point number to fractional and integral components @@ -21,17 +21,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double frexp(double " x ", int *" exp ); .BI "float frexpf(float " x ", int *" exp ); .BI "long double frexpl(long double " x ", int *" exp ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR frexpf (), .BR frexpl (): .nf @@ -55,20 +55,20 @@ the normalized fraction is times a power of two, and its absolute value is always in the range 1/2 (inclusive) to 1 (exclusive), that is, [0.5,1). -.PP +.P If .I x is zero, then the normalized fraction is zero and zero is stored in .IR exp . -.PP +.P If .I x is a NaN, a NaN is returned, and the value of .I *exp is unspecified. -.PP +.P If .I x is positive infinity (negative infinity), @@ -93,19 +93,18 @@ T{ .BR frexpl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to SVr4, 4.3BSD, C89. .SH EXAMPLES The program below produces results such as the following: -.PP +.P .in +4n .EX .RB "$" " ./a.out 2560" @@ -132,8 +131,7 @@ main(int argc, char *argv[]) x = strtod(argv[1], NULL); r = frexp(x, &exp); \& - printf("frexp(%g, &e) = %g: %g * %d\[ha]%d = %g\en", - x, r, r, FLT_RADIX, exp, x); + printf("frexp(%g, &e) = %g: %g * %d\[ha]%d = %g\en", x, r, r, 2, exp, x); exit(EXIT_SUCCESS); } .EE diff --git a/upstream/opensuse-tumbleweed/man3/fseek.3 b/upstream/opensuse-tumbleweed/man3/fseek.3 index 4b7a9af5..89948f09 100644 --- a/upstream/opensuse-tumbleweed/man3/fseek.3 +++ b/upstream/opensuse-tumbleweed/man3/fseek.3 @@ -12,7 +12,7 @@ .\" .\" Converted for Linux, Mon Nov 29 15:22:01 1993, faith@cs.unc.edu .\" -.TH fseek 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fseek 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fgetpos, fseek, fsetpos, ftell, rewind \- reposition a stream .SH LIBRARY @@ -21,12 +21,12 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int fseek(FILE *" stream ", long " offset ", int " whence ); .BI "long ftell(FILE *" stream ); -.PP +.P .BI "void rewind(FILE *" stream ); -.PP +.P .BI "int fgetpos(FILE *restrict " stream ", fpos_t *restrict " pos ); .BI "int fsetpos(FILE *" stream ", const fpos_t *" pos ); .fi @@ -54,27 +54,27 @@ function clears the end-of-file indicator for the stream and undoes any effects of the .BR ungetc (3) function on the same stream. -.PP +.P The .BR ftell () function obtains the current value of the file position indicator for the stream pointed to by .IR stream . -.PP +.P The .BR rewind () function sets the file position indicator for the stream pointed to by .I stream to the beginning of the file. It is equivalent to: -.PP +.P .RS (void) fseek(stream, 0L, SEEK_SET) .RE -.PP +.P except that the error indicator for the stream is also cleared (see .BR clearerr (3)). -.PP +.P The .BR fgetpos () and @@ -94,7 +94,7 @@ On some non-UNIX systems, an .I fpos_t object may be a complex object and these routines may be the only way to portably reposition a text stream. -.PP +.P If the stream refers to a regular file and the resulting stream offset is beyond the size of the file, subsequent writes will extend the file with a hole, up to the offset, @@ -135,7 +135,7 @@ Or: the resulting file offset would be negative. The file descriptor underlying .I stream is not seekable (e.g., it refers to a pipe, FIFO, or socket). -.PP +.P The functions .BR fgetpos (), .BR fseek (), @@ -168,7 +168,6 @@ T{ .BR fsetpos () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/fseeko.3 b/upstream/opensuse-tumbleweed/man3/fseeko.3 index 3625fe2d..e108ec77 100644 --- a/upstream/opensuse-tumbleweed/man3/fseeko.3 +++ b/upstream/opensuse-tumbleweed/man3/fseeko.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH fseeko 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fseeko 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fseeko, ftello \- seek to or report file position .SH LIBRARY @@ -12,16 +12,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int fseeko(FILE *" stream ", off_t " offset ", int " whence ); .BI "off_t ftello(FILE *" stream ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR fseeko (), .BR ftello (): .nf @@ -48,7 +48,7 @@ is of type .I off_t instead of .IR long . -.PP +.P On some architectures, both .I off_t and @@ -88,7 +88,6 @@ T{ .BR ftello () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/ftime.3 b/upstream/opensuse-tumbleweed/man3/ftime.3 index cfa6ad93..0c4a22ee 100644 --- a/upstream/opensuse-tumbleweed/man3/ftime.3 +++ b/upstream/opensuse-tumbleweed/man3/ftime.3 @@ -9,7 +9,7 @@ .\" Modified Sun Oct 18 17:31:43 1998 by Andries Brouwer (aeb@cwi.nl) .\" 2008-06-23, mtk, minor rewrites, added some details .\" -.TH ftime 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ftime 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ftime \- return date and time .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "int ftime(struct timeb *" tp ); .fi .SH DESCRIPTION @@ -27,13 +27,13 @@ This function is no longer provided by the GNU C library. Use .BR clock_gettime (2) instead. -.PP +.P This function returns the current time as seconds and milliseconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC). The time is returned in .IR tp , which is declared as follows: -.PP +.P .in +4n .EX struct timeb { @@ -44,7 +44,7 @@ struct timeb { }; .EE .in -.PP +.P Here \fItime\fP is the number of seconds since the Epoch, and \fImillitm\fP is the number of milliseconds since \fItime\fP seconds since the Epoch. @@ -54,7 +54,7 @@ east of Greenwich). The \fIdstflag\fP field is a flag that, if nonzero, indicates that Daylight Saving time applies locally during the appropriate part of the year. -.PP +.P POSIX.1-2001 says that the contents of the \fItimezone\fP and \fIdstflag\fP fields are unspecified; avoid relying on them. .SH RETURN VALUE @@ -74,14 +74,13 @@ T{ .BR ftime () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY Removed in glibc 2.33. 4.2BSD, POSIX.1-2001. Removed in POSIX.1-2008. -.PP +.P This function is obsolete. Don't use it. If the time in seconds diff --git a/upstream/opensuse-tumbleweed/man3/ftok.3 b/upstream/opensuse-tumbleweed/man3/ftok.3 index 3b7d8eca..b8df38d8 100644 --- a/upstream/opensuse-tumbleweed/man3/ftok.3 +++ b/upstream/opensuse-tumbleweed/man3/ftok.3 @@ -7,7 +7,7 @@ .\" Changed data type of proj_id; minor fixes .\" aeb: further fixes; added notes. .\" -.TH ftok 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ftok 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ftok \- convert a pathname and a project identifier to a System V IPC key .SH LIBRARY @@ -17,7 +17,7 @@ Standard C library .nf .B #include .fi -.PP +.P .BI "key_t ftok(const char *" pathname ", int " proj_id ); .SH DESCRIPTION The @@ -34,7 +34,7 @@ type System V IPC key, suitable for use with .BR semget (2), or .BR shmget (2). -.PP +.P The resulting value is the same for all pathnames that name the same file, when the same value of .I proj_id @@ -64,20 +64,19 @@ T{ .BR ftok () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY POSIX.1-2001. .SH NOTES On some ancient systems, the prototype was: -.PP +.P .in +4n .EX .BI "key_t ftok(char *" pathname ", char " proj_id ); .EE .in -.PP +.P Today, .I proj_id is an @@ -88,7 +87,7 @@ Typical usage has an ASCII character that is why the behavior is said to be undefined when .I proj_id is zero. -.PP +.P Of course, no guarantee can be given that the resulting .I key_t is unique. diff --git a/upstream/opensuse-tumbleweed/man3/fts.3 b/upstream/opensuse-tumbleweed/man3/fts.3 index 2a2745c0..6a8b9228 100644 --- a/upstream/opensuse-tumbleweed/man3/fts.3 +++ b/upstream/opensuse-tumbleweed/man3/fts.3 @@ -10,7 +10,7 @@ .\" .\" 2007-12-08, mtk, Converted from mdoc to man macros .\" -.TH fts 3 2023-07-20 "Linux man-pages 6.05.01" +.TH fts 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fts, fts_open, fts_read, fts_children, fts_set, fts_close \- \ traverse a file hierarchy @@ -22,16 +22,16 @@ Standard C library .B #include .B #include .B #include -.PP +.P .BI "FTS *fts_open(char *const *" path_argv ", int " options , .BI " int (*_Nullable " compar ")(const FTSENT **, const FTSENT **));" -.PP +.P .BI "FTSENT *fts_read(FTS *" ftsp ); -.PP +.P .BI "FTSENT *fts_children(FTS *" ftsp ", int " instr ); -.PP +.P .BI "int fts_set(FTS *" ftsp ", FTSENT *" f ", int " instr ); -.PP +.P .BI "int fts_close(FTS *" ftsp ); .fi .SH DESCRIPTION @@ -53,7 +53,7 @@ The function .BR fts_children () returns a pointer to a linked list of structures, each of which describes one of the files contained in a directory in the hierarchy. -.PP +.P In general, directories are visited two distinguishable times; in preorder (before any of their descendants are visited) and in postorder (after all of their descendants have been visited). @@ -63,7 +63,7 @@ symbolic links point to) or physically (visiting the symbolic links themselves), order the walk of the hierarchy or prune and/or revisit portions of the hierarchy. -.PP +.P Two structures (and associated types) are defined in the include file .IR . The first type is @@ -80,14 +80,14 @@ hierarchy. In this manual page, "file" and "FTSENT structure" are generally interchangeable. -.PP +.P The .I FTSENT structure contains fields describing a file. The structure contains at least the following fields (there are additional fields that should be considered private to the implementation): -.PP +.P .in +4n .EX typedef struct _ftsent { @@ -115,7 +115,7 @@ typedef struct _ftsent { } FTSENT; .EE .in -.PP +.P These fields are defined as follows: .\" .Bl -tag -width "fts_namelen" .TP @@ -187,7 +187,8 @@ A regular file. .TP .B FTS_NS A file for which no -.RB [ l ] stat (2) +.RB [ l ]\c +.BR stat (2) information was available. The contents of the .I fts_statp @@ -198,7 +199,8 @@ field will be set to indicate what caused the error. .TP .B FTS_NSOK A file for which no -.RB [ l ] stat (2) +.RB [ l ]\c +.BR stat (2) information was requested. The contents of the .I fts_statp @@ -329,10 +331,11 @@ field are undefined. .TP .I fts_statp A pointer to -.RB [ l ] stat (2) +.RB [ l ]\c +.BR stat (2) information for the file. .\" .El -.PP +.P A single buffer is used for all of the paths of all of the files in the file hierarchy. Therefore, the @@ -366,7 +369,7 @@ function takes a pointer to an array of character pointers naming one or more paths which make up a logical file hierarchy to be traversed. The array must be terminated by a null pointer. -.PP +.P There are a number of options, at least one of which (either .B FTS_LOGICAL @@ -464,7 +467,7 @@ This option prevents fts from descending into directories that have a different device number than the file from which the descent began. .\" .El -.PP +.P The argument .BR compar () specifies a user-defined function which may be used to order the traversal @@ -516,7 +519,7 @@ All other files are visited at least once. (Hard links between directories that do not cause cycles or symbolic links to symbolic links may cause files to be visited more than once, or directories more than twice.) -.PP +.P If all the members of the hierarchy have been returned, .BR fts_read () returns NULL and sets @@ -535,7 +538,7 @@ structure is returned, and .I errno may or may not have been set (see .IR fts_info ). -.PP +.P The .I FTSENT structures returned by @@ -570,7 +573,7 @@ structure, and is ordered by the user-specified comparison function, if any. Repeated calls to .BR fts_children () will re-create this linked list. -.PP +.P As a special case, if .BR fts_read () has not yet been called for a hierarchy, @@ -598,7 +601,7 @@ NULL and sets .I errno to indicate the error. -.PP +.P The .I FTSENT structures returned by @@ -609,7 +612,7 @@ may be overwritten after a call to or .BR fts_read () on the same file hierarchy stream. -.PP +.P The .I instr argument is either zero or the following value: @@ -636,7 +639,7 @@ The .BR fts_set () function returns 0 on success, and \-1 if an error occurs. -.PP +.P The .I instr argument is either 0 (meaning "do nothing") or one of the following values: @@ -721,7 +724,7 @@ for any of the errors specified for .BR open (2) and .BR malloc (3). -.PP +.P In addition, .BR fts_open () may fail and set @@ -732,7 +735,7 @@ as follows: Any element of .I path_argv was an empty string. -.PP +.P The function .BR fts_close () may fail and set @@ -741,7 +744,7 @@ for any of the errors specified for .BR chdir (2) and .BR close (2). -.PP +.P The functions .BR fts_read () and @@ -754,8 +757,9 @@ for any of the errors specified for .BR opendir (3), .BR readdir (3), and -.RB [ l ] stat (2). -.PP +.RB [ l ]\c +.BR stat (2). +.P In addition, .BR fts_children (), .BR fts_open (), @@ -792,7 +796,6 @@ T{ .BR fts_children () T} Thread safety MT-Unsafe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/ftw.3 b/upstream/opensuse-tumbleweed/man3/ftw.3 index b2311357..41fd4dc4 100644 --- a/upstream/opensuse-tumbleweed/man3/ftw.3 +++ b/upstream/opensuse-tumbleweed/man3/ftw.3 @@ -15,7 +15,7 @@ .\" 2006-05-24, Michael Kerrisk .\" Added an example program. .\" -.TH ftw 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ftw 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ftw, nftw \- file tree walk .SH LIBRARY @@ -24,24 +24,24 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int nftw(const char *" dirpath , .BI " int (*" fn ")(const char *" fpath ", const struct stat *" sb , .BI " int " typeflag ", struct FTW *" ftwbuf ), .BI " int " nopenfd ", int " flags ); -.PP +.P .B [[deprecated]] .BI "int ftw(const char *" dirpath , .BI " int (*" fn ")(const char *" fpath ", const struct stat *" sb , .BI " int " typeflag ), .BI " int " nopenfd ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR nftw (): .nf _XOPEN_SOURCE >= 500 @@ -53,7 +53,7 @@ located under the directory \fIdirpath\fP, and calls \fIfn\fP() once for each entry in the tree. By default, directories are handled before the files and subdirectories they contain (preorder traversal). -.PP +.P To avoid using up all of the calling process's file descriptors, \fInopenfd\fP specifies the maximum number of directories that .BR nftw () @@ -66,7 +66,7 @@ directories have to be closed and reopened. .BR nftw () uses at most one file descriptor for each level in the directory tree. -.PP +.P For each entry found in the tree, .BR nftw () calls @@ -94,7 +94,7 @@ structure returned by a call to .BR stat (2) for .IR fpath . -.PP +.P The .I typeflag argument passed to @@ -167,7 +167,7 @@ contains information returned by performing .BR lstat (2) on the "dangling" symbolic link. (But see BUGS.) -.PP +.P The fourth argument .RI ( ftwbuf ) that @@ -175,7 +175,7 @@ that supplies when calling \fIfn\fP() is a pointer to a structure of type \fIFTW\fP: -.PP +.P .in +4n .EX struct FTW { @@ -184,7 +184,7 @@ struct FTW { }; .EE .in -.PP +.P .I base is the offset of the filename (i.e., basename component) in the pathname given in @@ -195,7 +195,7 @@ is the depth of in the directory tree, relative to the root of the tree .RI ( dirpath , which has depth 0). -.PP +.P To stop the tree walk, \fIfn\fP() returns a nonzero value; this value will become the return value of .BR nftw (). @@ -206,7 +206,7 @@ in which case it will return zero, or until it encounters an error (such as a .BR malloc (3) failure), in which case it will return \-1. -.PP +.P Because .BR nftw () uses dynamic data structures, the only safe way to @@ -216,7 +216,7 @@ have the handler set a global flag that is checked by \fIfn\fP(). \fIDon't\fP use .BR longjmp (3) unless the program is going to terminate. -.PP +.P The \fIflags\fP argument of .BR nftw () is formed by ORing zero or more of the @@ -258,10 +258,10 @@ Causes .BR nftw () to return immediately with the return value \fBFTW_STOP\fP. -.PP +.P Other return values could be associated with new actions in the future; \fIfn\fP() should not return values other than those listed above. -.PP +.P The feature test macro .B _GNU_SOURCE must be defined @@ -335,14 +335,14 @@ and (possibly) .BR FTW_SL . .SH RETURN VALUE These functions return 0 on success, and \-1 if an error occurs. -.PP +.P If \fIfn\fP() returns nonzero, then the tree walk is terminated and the value returned by \fIfn\fP() is returned as the result of .BR ftw () or .BR nftw (). -.PP +.P If .BR nftw () is called with the \fBFTW_ACTIONRETVAL\fP flag, @@ -369,7 +369,6 @@ T{ .BR ftw () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS In some implementations (e.g., glibc), .BR ftw () diff --git a/upstream/opensuse-tumbleweed/man3/futimes.3 b/upstream/opensuse-tumbleweed/man3/futimes.3 index 0f57891c..2ac7627a 100644 --- a/upstream/opensuse-tumbleweed/man3/futimes.3 +++ b/upstream/opensuse-tumbleweed/man3/futimes.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH futimes 3 2023-07-20 "Linux man-pages 6.05.01" +.TH futimes 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME futimes, lutimes \- change file timestamps .SH LIBRARY @@ -12,16 +12,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int futimes(int " fd ", const struct timeval " tv [2]); .BI "int lutimes(const char *" filename ", const struct timeval " tv [2]); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR futimes (), .BR lutimes (): .nf @@ -38,7 +38,7 @@ with the difference that the file whose timestamps are to be changed is specified via a file descriptor, .IR fd , rather than via a pathname. -.PP +.P .BR lutimes () changes the access and modification times of a file in the same way as .BR utimes (2), @@ -65,7 +65,7 @@ is not a valid file descriptor. The .I /proc filesystem could not be accessed. -.PP +.P The following additional error may occur for .BR lutimes (): .TP @@ -86,7 +86,6 @@ T{ .BR lutimes () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS Linux, BSD. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/fwide.3 b/upstream/opensuse-tumbleweed/man3/fwide.3 index 6b33de0e..01f2081b 100644 --- a/upstream/opensuse-tumbleweed/man3/fwide.3 +++ b/upstream/opensuse-tumbleweed/man3/fwide.3 @@ -8,7 +8,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH fwide 3 2023-03-30 "Linux man-pages 6.05.01" +.TH fwide 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fwide \- set and determine the orientation of a FILE stream .SH LIBRARY @@ -17,15 +17,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int fwide(FILE *" stream ", int " mode ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR fwide (): .nf _XOPEN_SOURCE >= 500 || _ISOC99_SOURCE @@ -46,10 +46,10 @@ returns zero if \fIstream\fP has no orientation yet; in this case the next I/O operation might change the orientation (to byte oriented if it is a char I/O operation, or to wide-character oriented if it is a wide-character I/O operation). -.PP +.P Once a stream has an orientation, it cannot be changed and persists until the stream is closed. -.PP +.P When \fImode\fP is nonzero, the .BR fwide () function first attempts to set @@ -78,7 +78,7 @@ function with the and .B %ls directives. -.PP +.P Char oriented output to a wide-character oriented stream can be performed through the .BR fwprintf (3) diff --git a/upstream/opensuse-tumbleweed/man3/gamma.3 b/upstream/opensuse-tumbleweed/man3/gamma.3 index 2dc9075e..082da41e 100644 --- a/upstream/opensuse-tumbleweed/man3/gamma.3 +++ b/upstream/opensuse-tumbleweed/man3/gamma.3 @@ -5,7 +5,7 @@ .\" .\" Modified 2003-11-18, aeb: historical remarks .\" -.TH gamma 3 2023-07-20 "Linux man-pages 6.05.01" +.TH gamma 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME gamma, gammaf, gammal \- (logarithm of the) gamma function .SH LIBRARY @@ -14,24 +14,24 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] double gamma(double " x ");" .BI "[[deprecated]] float gammaf(float " x ");" .BI "[[deprecated]] long double gammal(long double " x ");" .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR gamma (): .nf _XOPEN_SOURCE || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR gammaf (), .BR gammal (): .nf @@ -45,7 +45,7 @@ These functions are deprecated: instead, use either the or the .BR lgamma (3) functions, as appropriate. -.PP +.P For the definition of the Gamma function, see .BR tgamma (3). .SS *BSD version @@ -80,15 +80,14 @@ T{ .BR gammal () T} Thread safety MT-Unsafe race:signgam .TE -.sp 1 .SH STANDARDS None. .SH HISTORY SVID 2. -.PP +.P Because of historical variations in behavior across systems, this function is not specified in any recent standard. -.PP +.P 4.2BSD had a .BR gamma () that computed @@ -100,12 +99,12 @@ in the external integer In 4.3BSD the name was changed to .BR lgamma (3), and the man page promises -.PP +.P .in +4n "At some time in the future the name gamma will be rehabilitated and used for the Gamma function" .in -.PP +.P This did indeed happen in 4.4BSD, where .BR gamma () computes the Gamma function (with no effect on diff --git a/upstream/opensuse-tumbleweed/man3/gcvt.3 b/upstream/opensuse-tumbleweed/man3/gcvt.3 index a43ade7c..d5633273 100644 --- a/upstream/opensuse-tumbleweed/man3/gcvt.3 +++ b/upstream/opensuse-tumbleweed/man3/gcvt.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 19:32:25 1993 by Rik Faith (faith@cs.unc.edu) -.TH gcvt 3 2023-07-20 "Linux man-pages 6.05.01" +.TH gcvt 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME gcvt \- convert a floating-point number to a string .SH LIBRARY @@ -17,15 +17,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *gcvt(double " number ", int " ndigit ", char *" buf ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR gcvt (): .nf Since glibc 2.17 @@ -66,7 +66,6 @@ T{ .BR gcvt () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/get_nprocs.3 b/upstream/opensuse-tumbleweed/man3/get_nprocs.3 index 583054d1..96446a5f 100644 --- a/upstream/opensuse-tumbleweed/man3/get_nprocs.3 +++ b/upstream/opensuse-tumbleweed/man3/get_nprocs.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH get_nprocs 3 2023-07-20 "Linux man-pages 6.05.01" +.TH get_nprocs 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME get_nprocs, get_nprocs_conf \- get number of processors .SH LIBRARY @@ -13,7 +13,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B int get_nprocs(void); .B int get_nprocs_conf(void); .fi @@ -21,7 +21,7 @@ Standard C library The function .BR get_nprocs_conf () returns the number of processors configured by the operating system. -.PP +.P The function .BR get_nprocs () returns the number of processors currently available in the system. @@ -45,7 +45,6 @@ T{ .BR get_nprocs_conf () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH NOTES @@ -55,12 +54,12 @@ implementation of these functions is rather expensive, since they open and parse files in the .I /sys filesystem each time they are called. -.PP +.P The following .BR sysconf (3) calls make use of the functions documented on this page to return the same information. -.PP +.P .in +4n .EX np = sysconf(_SC_NPROCESSORS_CONF); /* processors configured */ @@ -73,7 +72,7 @@ The following example shows how and .BR get_nprocs_conf () can be used. -.PP +.P .\" SRC BEGIN (get_nprocs_conf.c) .EX #include diff --git a/upstream/opensuse-tumbleweed/man3/get_phys_pages.3 b/upstream/opensuse-tumbleweed/man3/get_phys_pages.3 index 71cd4c96..6915d7fe 100644 --- a/upstream/opensuse-tumbleweed/man3/get_phys_pages.3 +++ b/upstream/opensuse-tumbleweed/man3/get_phys_pages.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH get_phys_pages 3 2023-05-03 "Linux man-pages 6.05.01" +.TH get_phys_pages 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME get_phys_pages, get_avphys_pages \- get total and available physical page counts @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B "#include " -.PP +.P .B long get_phys_pages(void); .B long get_avphys_pages(void); .fi @@ -20,7 +20,7 @@ Standard C library The function .BR get_phys_pages () returns the total number of physical pages of memory available on the system. -.PP +.P The function .BR get_avphys_pages () returns the number of currently available physical pages of memory on the @@ -56,7 +56,7 @@ The following .BR sysconf (3) calls provide a portable means of obtaining the same information as the functions described on this page. -.PP +.P .in +4n .EX total_pages = sysconf(_SC_PHYS_PAGES); /* total pages */ @@ -69,7 +69,7 @@ The following example shows how and .BR get_avphys_pages () can be used. -.PP +.P .\" SRC BEGIN (get_phys_pages.c) .EX #include diff --git a/upstream/opensuse-tumbleweed/man3/get_wch.3ncurses b/upstream/opensuse-tumbleweed/man3/get_wch.3ncurses index bffaf8f5..9349b5e4 100644 --- a/upstream/opensuse-tumbleweed/man3/get_wch.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/get_wch.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 2002-2016,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_get_wch.3x,v 1.31 2023/12/23 16:35:10 tom Exp $ -.TH get_wch 3NCURSES 2023-12-23 "ncurses 6.4" "Library calls" +.\" $Id: curs_get_wch.3x,v 1.40 2024/04/20 19:23:03 tom Exp $ +.TH get_wch 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -60,136 +60,200 @@ get (or push back) a wide character from \fIcurses\fR terminal keyboard \fBint mvget_wch(int \fIy\fP, int \fIx\fP, wint_t *\fIwch\fP); \fBint mvwget_wch(WINDOW *\fIwin\fP, int \fIy\fP, int \fIx\fP, wint_t *\fIwch\fP); .PP -\fBint unget_wch(const wchar_t \fIwch\fP); +\fBint unget_wch(const wchar_t \fIwc\fP); .fi .SH DESCRIPTION -.SS wget_wch -The -\fBget_wch\fP, -\fBwget_wch\fP, -\fBmvget_wch\fP, and -\fBmvwget_wch\fP -functions read a character -from the terminal associated with the current or specified window. -In no-delay mode, -if no input is waiting, the value \fBERR\fP is returned. -In delay mode, -the program waits until the system passes text through to the program. -Depending on the setting of \fBcbreak\fP, -this is after one character (cbreak mode), -or after the first newline (nocbreak mode). -In half-delay mode, -the program waits until the user types a character or the specified -timeout interval has elapsed. +.SS "Reading Characters" +.B \%wget_wch +gathers a key stroke +.I wch +from the terminal keyboard associated with a +.I curses +window +.IR win , +returning +.B OK +if a wide character is read, +.B \%KEY_CODE_YES +if a function key is read, +and +.B ERR +if no key event is available. +\fB\%ncurses\fP(3NCURSES) describes the variants of this function. .PP -Unless \fBnoecho\fP has been set, -these routines echo the character into the designated window. +When input is pending, +.B \%wget_wch +stores an integer +identifying the key stroke in +.IR wch ; +for alphanumeric and punctuation keys, +this value corresponds to the character encoding used by the terminal. +Use of the control key as a modifier often results in a distinct code. +The behavior of other keys depends on whether +.I win +is in keypad mode; +see subsections \*(``Keypad Mode\*('' and \*(``Predefined Key Codes\*('' +in \fB\%getch\fP(3NCURSES). .PP -If the window is not a pad and has been moved or modified since the -last call to \fBwrefresh\fP, -\fBwrefresh\fP will be called before another character is read. +If no input is pending, +then if the no-delay flag is set in the window +(see \fB\%nodelay\fP(3NCURSES)), +the function returns +.BR ERR ; +otherwise, +.I curses +waits until the terminal has input. +If \fB\%cbreak\fP(3NCURSES) +has been called, +this happens after one character is read. +If \fB\%nocbreak\fP(3NCURSES) +has been called, +it occurs when the next newline is read. +If \fB\%halfdelay\fP(3NCURSES) +has been called, +.I curses +waits until a character is typed or the specified delay elapses. .PP -If \fBkeypad\fP is enabled, -these functions respond to -the pressing of a function key by setting the object pointed to by -\fIwch\fP -to the keycode assigned to the function key, -and returning \fBKEY_CODE_YES\fP. -If a character (such as escape) that could be the -beginning of a function key is received, curses sets a timer. -If the remainder -of the sequence does arrive within the designated time, curses passes through -the character; otherwise, curses returns the function key value. -For this -reason, many terminals experience a delay between the time a user presses -the escape key and the time the escape is returned to the program. -.PP -The keycodes returned by these functions are the same as those -returned by \fBwgetch\fP: +If \fB\%echo\fP(3NCURSES) has been called, +and the window is not a pad, +.I curses +writes +.I wch +to the window +(at the cursor position) +per the following rules. +.bP +If +.I wch +matches the terminal's erase character, +the cursor moves leftward one position +and the new position is erased +as if \fB\%wmove\fP(3NCURSES) and then \fB\%wdelch\fP(3NCURSES) were called. +When the window's keypad mode is enabled +(see below), +.B \%KEY_LEFT +and +.B \%KEY_BACKSPACE +are handled the same way. .bP -The predefined function -keys are listed in \fB\fP as macros with values outside the range -of 8-bit characters. -Their names begin with \fBKEY_\fP. +.I curses +writes any other +.I wch +to the window, +as with \fB\%wecho_wchar\fP(3NCURSES). .bP -Other (user-defined) function keys -which may be defined using \fB\%define_key\fP(3NCURSES) have no names, -but also are expected to have values outside the range of 8-bit characters. -.SS unget_wch -The -\fBunget_wch\fP -function pushes the wide character -\fIwch\fP -back onto the head of the input queue, so the wide character -is returned by the next call to -\fBget_wch\fP. -The pushback of -one character is guaranteed. -If the program calls -\fBunget_wch\fP -too many times without an intervening call to -\fBget_wch\fP, -the operation may fail. +If the window has been moved or modified since the last call to +\fB\%wrefresh\fP(3NCURSES), +.I curses +calls +.BR \%wrefresh . .PP -Unlike \fBungetch\fP and \fBwgetch\fP, -\fBunget_wch\fP cannot distinguish special characters -returned by \fBwget_wch\fP from ordinary characters. -An application can push special keys -which it may read via \fBwget_wch\fP -by checking for the \fBKEY_CODE_YES\fP result, -and using \fBungetch\fP for those special keys. +If +.I wch +is a carriage return and \fB\%nl\fP(3NCURSES) has been called, +.B \%wgetch +stores the the character code for newline +(line feed) +in +.I wch +instead. +.SS "Ungetting Characters" +.B \%unget_wch +places +.I wch +into the input queue to be returned by the next call to +.BR \%wget_wch . +A single input queue serves all windows. .SH RETURN VALUE -When -\fBget_wch\fP, -\fBwget_wch\fP, -\fBmvget_wch\fP, and -\fBmvwget_wch\fP -functions successfully -report the pressing of a function key, they return -\fBKEY_CODE_YES\fP. -When they successfully report a wide character, they return -\fBOK\fP. -Otherwise, they return -\fBERR\fP. -.PP -Upon successful completion, -\fBunget_wch\fP +.B \%wget_wch returns -\fBOK\fP. -Otherwise, the function returns -\fBERR\fP. +.B OK +when it reads a wide character and +.B \%KEY_CODE_YES +when it reads a function key code. +It returns +.B ERR +if +.bP +the +.I \%WINDOW +pointer is +.BR NULL , +or +.bP +its timeout expires without any data arriving, +or +.bP +execution was interrupted by a signal, +in which case +.B \%errno +is set to +.BR \%EINTR . .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. -.SH NOTES -Applications should not define the escape key by itself as a single-character -function. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .PP -When using -\fBget_wch\fP, -\fBwget_wch\fP, -\fBmvget_wch\fP, or -\fBmvwget_wch\fP, applications should -not use -\fBnocbreak\fP -mode and -\fBecho\fP -mode -at the same time. -Depending on the state of the tty driver when each character -is typed, the program may produce undesirable results. +.B \%unget_wch +returns +.B OK +on success and +.B ERR +if there is no more room in the input queue. +.SH NOTES +See the \*(``NOTES\*('' section of \fB\%wgetch\fP(3NCURSES). .PP All of these functions except -\fB\%wget_wch\fP and -\fB\%unget_wch\fP +.B \%wget_wch +and +.B \%unget_wch may be implemented as macros. +.PP +Unlike \fB\%wgetch\fP(3NCURSES), +.B \%wget_wch +and its variants store the value of the input character in an additional +.I wch +parameter instead of the return value. +.PP +Unlike +.BR \%ungetch , +.B \%unget_wch +cannot distinguish function key codes +.B \%wget_wch +from conventional character codes. +An application can overcome this limitation by pushing function key +codes with +.B \%ungetch +and subsequently checking the return value of +.B \%wget_wch +for a match with +.BR \%KEY_CODE_YES . +.SH EXTENSIONS +See the \*(``EXTENSIONS\*('' section of \fB\%wgetch\fP(3NCURSES). .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. +Applications employing +.I \%ncurses +extensions should condition their use on the visibility of the +.B \%NCURSES_VERSION +preprocessor macro. +.PP +X/Open Curses, +Issue 4 describes these functions. +It specifies no error conditions for them. +.PP +See the \*(``PORTABILITY\*('' section of \fB\%wgetch\fP(3NCURSES) regarding +the interaction of +.B \%wget_wch +with signal handlers. .SH SEE ALSO +\fB\%getch\fP(3NCURSES) describes comparable functions of the +.I \%ncurses +library in its non-wide-character configuration. +.PP \fB\%ncurses\fP(3NCURSES), -\fB\%getch\fP(3NCURSES), +\fB\%add_wch\fP(3NCURSES), \fB\%inopts\fP(3NCURSES), -\fB\%ins_wch\fP(3NCURSES), \fB\%move\fP(3NCURSES), \fB\%refresh\fP(3NCURSES) diff --git a/upstream/opensuse-tumbleweed/man3/get_wstr.3ncurses b/upstream/opensuse-tumbleweed/man3/get_wstr.3ncurses index 79d8b6a3..dddda644 100644 --- a/upstream/opensuse-tumbleweed/man3/get_wstr.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/get_wstr.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 2002-2012,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_get_wstr.3x,v 1.42 2023/12/16 20:32:22 tom Exp $ -.TH get_wstr 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: curs_get_wstr.3x,v 1.48 2024/04/20 19:18:18 tom Exp $ +.TH get_wstr 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -147,9 +147,11 @@ if the associated call to \fBwget_wch\fP failed. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES Any of these functions other than \fBwgetn_wstr\fP @@ -216,6 +218,9 @@ while others (PDCurses) do not allow this. NetBSD 7 curses imitates \fI\%ncurses\fP 6.1 in this regard, treating a \fB\-1\fP as an indefinite number of characters. .SH SEE ALSO +\fB\%getstr\fP(3NCURSES) describes comparable functions of the +.I \%ncurses +library in its non-wide-character configuration. +.PP \fB\%ncurses\fP(3NCURSES), -\fB\%getstr\fP(3NCURSES), \fB\%get_wch\fP(3NCURSES) diff --git a/upstream/opensuse-tumbleweed/man3/getaddrinfo.3 b/upstream/opensuse-tumbleweed/man3/getaddrinfo.3 index 805ce104..143edeaf 100644 --- a/upstream/opensuse-tumbleweed/man3/getaddrinfo.3 +++ b/upstream/opensuse-tumbleweed/man3/getaddrinfo.3 @@ -22,7 +22,7 @@ .\" FIXME . glibc's 2.9 NEWS file documents DCCP and UDP-lite support .\" and is SCTP support now also there? .\" -.TH getaddrinfo 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getaddrinfo 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getaddrinfo, freeaddrinfo, gai_strerror \- network address and service translation @@ -34,22 +34,22 @@ Standard C library .B #include .B #include .B #include -.PP +.P .BI "int getaddrinfo(const char *restrict " node , .BI " const char *restrict " service , .BI " const struct addrinfo *restrict " hints , .BI " struct addrinfo **restrict " res ); -.PP +.P .BI "void freeaddrinfo(struct addrinfo *" res ); -.PP +.P .BI "const char *gai_strerror(int " errcode ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getaddrinfo (), .BR freeaddrinfo (), .BR gai_strerror (): @@ -84,13 +84,13 @@ and functions into a single interface, but unlike the latter functions, .BR getaddrinfo () is reentrant and allows programs to eliminate IPv4-versus-IPv6 dependencies. -.PP +.P The .I addrinfo structure used by .BR getaddrinfo () contains the following fields: -.PP +.P .in +4n .EX struct addrinfo { @@ -105,7 +105,7 @@ struct addrinfo { }; .EE .in -.PP +.P The .I hints argument points to an @@ -160,11 +160,11 @@ any protocol can be returned by .I ai_flags This field specifies additional options, described below. Multiple flags are specified by bitwise OR-ing them together. -.PP +.P All the other fields in the structure pointed to by .I hints must contain either 0 or a null pointer, as appropriate. -.PP +.P Specifying .I hints as NULL is equivalent to setting @@ -199,7 +199,7 @@ must be a numerical network address. The .B AI_NUMERICHOST flag suppresses any potentially lengthy network host address lookups. -.PP +.P If the .B AI_PASSIVE flag is specified in @@ -224,7 +224,7 @@ If is not NULL, then the .B AI_PASSIVE flag is ignored. -.PP +.P If the .B AI_PASSIVE flag is not set in @@ -244,7 +244,7 @@ for IPv4 addresses, for IPv6 address); this is used by applications that intend to communicate with peers running on the same host. -.PP +.P .I service sets the port in each returned address structure. If this argument is a service name (see @@ -267,13 +267,13 @@ is not NULL, then must point to a string containing a numeric port number. This flag is used to inhibit the invocation of a name resolution service in cases where it is known not to be required. -.PP +.P Either .I node or .IR service , but not both, may be NULL. -.PP +.P The .BR getaddrinfo () function allocates and initializes a linked list of @@ -289,7 +289,7 @@ and returns a pointer to the start of the list in The items in the linked list are linked by the .I ai_next field. -.PP +.P There are several reasons why the linked list may have more than one .I addrinfo @@ -311,7 +311,7 @@ is defined in RFC\ 3484; the order can be tweaked for a particular system by editing .I /etc/gai.conf (available since glibc 2.5). -.PP +.P If .I hints.ai_flags includes the @@ -326,7 +326,7 @@ official name of the host. .\" structure was set pointing to the canonical name; that was .\" more than POSIX.1-2001 specified, or other implementations provided. .\" MTK, Aug 05 -.PP +.P The remaining fields of each returned .I addrinfo structure are initialized as follows: @@ -360,7 +360,7 @@ field, and the length of the socket address, in bytes, is placed in the .I ai_addrlen field. -.PP +.P If .I hints.ai_flags includes the @@ -379,7 +379,7 @@ does not return IPv6 socket addresses that would always fail in .BR connect (2) or .BR bind (2). -.PP +.P If .I hints.ai_flags specifies the @@ -404,7 +404,7 @@ in the list pointed to by is ignored if .B AI_V4MAPPED is not also specified. -.PP +.P The .BR freeaddrinfo () function frees the memory that was allocated @@ -462,7 +462,9 @@ The resulting string is encoded using the current locale's encoding. .\"If no component of the returned name starts with xn\-\- the IDN .\"step can be skipped, therefore avoiding unnecessary slowdowns. .TP -.BR AI_IDN_ALLOW_UNASSIGNED ", " AI_IDN_USE_STD3_ASCII_RULES +.B AI_IDN_ALLOW_UNASSIGNED +.TQ +.B AI_IDN_USE_STD3_ASCII_RULES Setting these flags will enable the IDNA_ALLOW_UNASSIGNED (allow unassigned Unicode code points) and IDNA_USE_STD3_ASCII_RULES (check output to make sure it is a STD3 @@ -499,7 +501,7 @@ contains invalid flags; or, included .B AI_CANONNAME and -.I name +.I node was NULL. .TP .B EAI_FAIL @@ -570,7 +572,7 @@ respectively). Other system error; .I errno is set to indicate the error. -.PP +.P The .BR gai_strerror () function translates these error codes to a human readable string, @@ -597,7 +599,6 @@ T{ .BR gai_strerror () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS According to POSIX.1, specifying .\" POSIX.1-2001, POSIX.1-2008 diff --git a/upstream/opensuse-tumbleweed/man3/getaddrinfo_a.3 b/upstream/opensuse-tumbleweed/man3/getaddrinfo_a.3 index 4b891ab6..373165af 100644 --- a/upstream/opensuse-tumbleweed/man3/getaddrinfo_a.3 +++ b/upstream/opensuse-tumbleweed/man3/getaddrinfo_a.3 @@ -8,7 +8,7 @@ .\" References: http://people.redhat.com/drepper/asynchnl.pdf, .\" http://www.imperialviolet.org/2005/06/01/asynchronous-dns-lookups-with-glibc.html .\" -.TH getaddrinfo_a 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getaddrinfo_a 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getaddrinfo_a, gai_suspend, gai_error, gai_cancel \- asynchronous network address and service translation @@ -19,12 +19,12 @@ Asynchronous name lookup library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "int getaddrinfo_a(int " mode ", struct gaicb *" list [restrict], .BI " int " nitems ", struct sigevent *restrict " sevp ); .BI "int gai_suspend(const struct gaicb *const " list "[], int " nitems , .BI " const struct timespec *" timeout ); -.PP +.P .BI "int gai_error(struct gaicb *" req ); .BI "int gai_cancel(struct gaicb *" req ); .fi @@ -35,7 +35,7 @@ function performs the same task as .BR getaddrinfo (3), but allows multiple name look-ups to be performed asynchronously, with optional notification on completion of look-up operations. -.PP +.P The .I mode argument has one of the following values: @@ -51,7 +51,7 @@ and the requests are resolved in the background. See the discussion of the .I sevp argument below. -.PP +.P The array .I list specifies the look-up requests to process. @@ -66,7 +66,7 @@ are ignored. Each request is described by a .I gaicb structure, defined as follows: -.PP +.P .in +4n .EX struct gaicb { @@ -77,7 +77,7 @@ struct gaicb { }; .EE .in -.PP +.P The elements of this structure correspond to the arguments of .BR getaddrinfo (3). Thus, @@ -106,7 +106,7 @@ The .I addrinfo structure referenced by the last two elements is described in .BR getaddrinfo (3). -.PP +.P When .I mode is specified as @@ -118,7 +118,7 @@ structure pointed to by the .I sevp argument. For the definition and general details of this structure, see -.BR sigevent (7). +.BR sigevent (3type). The .I sevp\->sigev_notify field can have the following values: @@ -131,7 +131,7 @@ When a look-up completes, generate the signal .I sigev_signo for the process. See -.BR sigevent (7) +.BR sigevent (3type) for general details. The .I si_code @@ -147,9 +147,9 @@ When a look-up completes, invoke .I sigev_notify_function as if it were the start function of a new thread. See -.BR sigevent (7) +.BR sigevent (3type) for details. -.PP +.P For .B SIGEV_SIGNAL and @@ -158,7 +158,7 @@ it may be useful to point .I sevp\->sigev_value.sival_ptr to .IR list . -.PP +.P The .BR gai_suspend () function suspends execution of the calling thread, @@ -188,12 +188,12 @@ If .I timeout is NULL, then the call blocks indefinitely (until one of the events above occurs). -.PP +.P No explicit indication of which request was completed is given; you must determine which request(s) have completed by iterating with .BR gai_error () over the list of requests. -.PP +.P The .BR gai_error () function returns the status of the request @@ -203,7 +203,7 @@ either if the request was not completed yet, 0 if it was handled successfully, or an error code if the request could not be resolved. -.PP +.P The .BR gai_cancel () function cancels the request @@ -237,7 +237,7 @@ Out of memory. .B EAI_SYSTEM .I mode is invalid. -.PP +.P The .BR gai_suspend () function returns 0 if at least one of the listed requests has been completed. @@ -253,7 +253,7 @@ There were no actual requests given to the function. A signal has interrupted the function. Note that this interruption might have been caused by signal notification of some completed look-up request. -.PP +.P The .BR gai_error () function can return @@ -265,7 +265,7 @@ for an unfinished look-up request, or the error code .B EAI_CANCELED if the request has been canceled explicitly before it could be finished. -.PP +.P The .BR gai_cancel () function can return one of these values: @@ -278,7 +278,7 @@ The request has not been canceled. .TP .B EAI_ALLDONE The request has already completed. -.PP +.P The .BR gai_strerror (3) function translates these error codes to a human readable string, @@ -300,12 +300,11 @@ T{ .BR gai_cancel () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH HISTORY glibc 2.2.3. -.PP +.P The interface of .BR getaddrinfo_a () was modeled after the @@ -320,7 +319,7 @@ The program below simply resolves several hostnames in parallel, giving a speed-up compared to resolving the hostnames sequentially using .BR getaddrinfo (3). The program might be used like this: -.PP +.P .in +4n .EX $ \fB./a.out mirrors.kernel.org enoent.linuxfoundation.org gnu.org\fP @@ -329,17 +328,20 @@ enoent.linuxfoundation.org: Name or service not known gnu.org: 209.51.188.116 .EE .in -.PP +.P Here is the program source code -.PP +.P .\" SRC BEGIN (sync.c) .EX #define _GNU_SOURCE +#include #include #include #include #include \& +#define MALLOC(n, type) ((type *) reallocarray(NULL, n, sizeof(type))) +\& int main(int argc, char *argv[]) { @@ -354,11 +356,10 @@ main(int argc, char *argv[]) } \& for (size_t i = 0; i < argc \- 1; i++) { - reqs[i] = malloc(sizeof(*reqs[0])); - if (reqs[i] == NULL) { - perror("malloc"); - exit(EXIT_FAILURE); - } + reqs[i] = MALLOC(1, struct gaicb); + if (reqs[i] == NULL) + err(EXIT_FAILURE, "malloc"); +\& memset(reqs[i], 0, sizeof(*reqs[0])); reqs[i]\->ar_name = argv[i + 1]; } @@ -399,9 +400,9 @@ This example shows a simple interactive .BR getaddrinfo_a () front-end. The notification facility is not demonstrated. -.PP +.P An example session might look like this: -.PP +.P .in +4n .EX $ \fB./a.out\fP @@ -420,20 +421,42 @@ $ \fB./a.out\fP [02] gnu.org: 209.51.188.116 .EE .in -.PP +.P The program source is as follows: -.PP +.P .\" SRC BEGIN (async.c) .EX #define _GNU_SOURCE +#include +#include #include #include #include #include \& +#define CALLOC(n, type) ((type *) calloc(n, sizeof(type))) +\& +#define REALLOCF(ptr, n, type) \e +({ \e + static_assert(__builtin_types_compatible_p(typeof(ptr), type *)); \e + \e + (type *) reallocarrayf(ptr, n, sizeof(type)); \e +}) +\& static struct gaicb **reqs = NULL; static size_t nreqs = 0; \& +static inline void * +reallocarrayf(void *p, size_t nmemb, size_t size) +{ + void *q; +\& + q = reallocarray(p, nmemb, size); + if (q == NULL && nmemb != 0 && size != 0) + free(p); + return q; +} +\& static char * getcmd(void) { @@ -459,9 +482,14 @@ add_requests(void) \& while ((host = strtok(NULL, " "))) { nreqs++; - reqs = realloc(reqs, sizeof(reqs[0]) * nreqs); + reqs = REALLOCF(reqs, nreqs, struct gaicb *); + if (reqs == NULL) + err(EXIT_FAILURE, "reallocf"); +\& + reqs[nreqs \- 1] = CALLOC(1, struct gaicb); + if (reqs[nreqs \- 1] == NULL) + err(EXIT_FAILURE, "calloc"); \& - reqs[nreqs \- 1] = calloc(1, sizeof(*reqs[0])); reqs[nreqs \- 1]\->ar_name = strdup(host); } \& @@ -483,7 +511,12 @@ wait_requests(void) char *id; int ret; size_t n; - struct gaicb const **wait_reqs = calloc(nreqs, sizeof(*wait_reqs)); + struct gaicb const **wait_reqs; +\& + wait_reqs = CALLOC(nreqs, const struct gaicb *); + if (wait_reqs == NULL) + err(EXIT_FAILURE, "calloc"); +\& /* NULL elements are ignored by gai_suspend(). */ \& while ((id = strtok(NULL, " ")) != NULL) { @@ -609,4 +642,4 @@ main(void) .BR lio_listio (3), .BR hostname (7), .BR ip (7), -.BR sigevent (7) +.BR sigevent (3type) diff --git a/upstream/opensuse-tumbleweed/man3/getauxval.3 b/upstream/opensuse-tumbleweed/man3/getauxval.3 index 8e7d5e4a..86399161 100644 --- a/upstream/opensuse-tumbleweed/man3/getauxval.3 +++ b/upstream/opensuse-tumbleweed/man3/getauxval.3 @@ -5,7 +5,7 @@ .\" .\" See also https://lwn.net/Articles/519085/ .\" -.TH getauxval 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getauxval 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getauxval \- retrieve a value from the auxiliary vector .SH LIBRARY @@ -14,7 +14,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "unsigned long getauxval(unsigned long " type ); .fi .SH DESCRIPTION @@ -24,7 +24,7 @@ function retrieves values from the auxiliary vector, a mechanism that the kernel's ELF binary loader uses to pass certain information to user space when a program is executed. -.PP +.P Each entry in the auxiliary vector consists of a pair of values: a type that identifies what this entry represents, and a value for that type. @@ -32,7 +32,7 @@ Given the argument .IR type , .BR getauxval () returns the corresponding value. -.PP +.P The value returned for each .I type is given in the following list. @@ -224,7 +224,6 @@ T{ .BR getauxval () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH HISTORY @@ -238,19 +237,19 @@ that allows the kernel to communicate a certain set of standard information that the dynamic linker usually or always needs. In some cases, the same information could be obtained by system calls, but using the auxiliary vector is cheaper. -.PP +.P The auxiliary vector resides just above the argument list and environment in the process address space. The auxiliary vector supplied to a program can be viewed by setting the .B LD_SHOW_AUXV environment variable when running a program: -.PP +.P .in +4n .EX $ LD_SHOW_AUXV=1 sleep 1 .EE .in -.PP +.P The auxiliary vector of any process can (subject to file permissions) be obtained via .IR /proc/ pid /auxv ; diff --git a/upstream/opensuse-tumbleweed/man3/getcchar.3ncurses b/upstream/opensuse-tumbleweed/man3/getcchar.3ncurses index 5be81554..18003b0b 100644 --- a/upstream/opensuse-tumbleweed/man3/getcchar.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/getcchar.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2019-2021,2023 Thomas E. Dickey * +.\" Copyright 2019-2023,2024 Thomas E. Dickey * .\" Copyright 2001-2015,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_getcchar.3x,v 1.43 2023/12/16 21:07:24 tom Exp $ -.TH getcchar 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: curs_getcchar.3x,v 1.49 2024/04/20 18:55:09 tom Exp $ +.TH getcchar 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .de bP .ie n .IP \(bu 4 .el .IP \(bu 2 @@ -36,21 +36,21 @@ .SH NAME \fB\%getcchar\fP, \fB\%setcchar\fP \- -convert between a wide-character string and a \fIcurses\fR complex character string +convert between a wide-character string and a \fIcurses\fR complex character .SH SYNOPSIS .nf \fB#include .PP \fBint getcchar( -.B " const cchar_t *\fIwcval\fP," -.B " wchar_t *\fIwch\fP," +.B " const cchar_t *\fIwch\fP," +.B " wchar_t *\fIwc\fP," .B " attr_t *\fIattrs\fP," .B " short *\fIcolor_pair\fP," .B " void *\fIopts\fP );" .PP .B "int setcchar(" -.B " cchar_t *\fIwcval\fP," -.B " const wchar_t *\fIwch\fP," +.B " cchar_t *\fIwch\fP," +.B " const wchar_t *\fIwc\fP," .B " const attr_t \fIattrs\fP," .B " short \fIcolor_pair\fP," .B " const void *\fIopts\fP );" @@ -59,32 +59,32 @@ convert between a wide-character string and a \fIcurses\fR complex character str .SS getcchar The \fBgetcchar\fP function gets a wide-character string and rendition from a \fBcchar_t\fP argument. -When \fIwch\fP is not a null pointer, +When \fIwc\fP is not a null pointer, the \fBgetcchar\fP function does the following: .bP -Extracts information from a \fBcchar_t\fP value \fIwcval\fP +Extracts information from a \fBcchar_t\fP value \fIwch\fP .bP Stores the character attributes in the location pointed to by \fIattrs\fP .bP Stores the color pair in the location pointed to by \fIcolor_pair\fP .bP Stores the wide-character string, -characters referenced by \fIwcval\fP, into the array pointed to by \fIwch\fP. +characters referenced by \fIwch\fP, into the array pointed to by \fIwc\fP. .PP When -\fIwch\fP +\fIwc\fP is a null pointer, the \fBgetcchar\fP function does the following: .bP -Obtains the number of wide characters pointed to by \fIwcval\fP +Obtains the number of wide characters pointed to by \fIwch\fP .bP Does not change the data referenced by \fIattrs\fP or \fIcolor_pair\fP .SS setcchar -The \fBsetcchar\fP function initializes the location pointed to by \fIwcval\fP +The \fBsetcchar\fP function initializes the location pointed to by \fIwch\fP by using: .bP The character attributes in @@ -93,7 +93,7 @@ The character attributes in The color pair in \fIcolor_pair\fP .bP -The wide-character string pointed to by \fIwch\fP. +The wide-character string pointed to by \fIwc\fP. The string must be L'\e0' terminated, contain at most one spacing character, which must be the first. @@ -104,21 +104,21 @@ Additional non-spacing characters are ignored. The string may contain a single control character instead. In that case, no non-spacing characters are allowed. .SH RETURN VALUE -When \fIwch\fP is a null pointer, +When \fIwc\fP is a null pointer, \fBgetcchar\fP returns the number of wide characters referenced by -\fIwcval\fP, +\fIwch\fP, including one for a trailing null. .PP -When \fIwch\fP is not a null pointer, +When \fIwc\fP is not a null pointer, \fBgetcchar\fP returns \fBOK\fP upon successful completion, and \fBERR\fP otherwise. .PP Upon successful completion, \fBsetcchar\fP returns \fBOK\fP. Otherwise, it returns \fBERR\fP. .SH NOTES -The \fIwcval\fP argument may be a value generated by a call to +The \fIwch\fP argument may be a value generated by a call to \fBsetcchar\fP or by a function that has a \fBcchar_t\fP output argument. -If \fIwcval\fP is constructed by any other means, the effect is unspecified. +If \fIwch\fP is constructed by any other means, the effect is unspecified. .SH EXTENSIONS X/Open Curses documents the \fIopts\fP argument as reserved for future use, saying that it must be null. diff --git a/upstream/opensuse-tumbleweed/man3/getch.3ncurses b/upstream/opensuse-tumbleweed/man3/getch.3ncurses index 09260d79..75575427 100644 --- a/upstream/opensuse-tumbleweed/man3/getch.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/getch.3ncurses @@ -28,19 +28,24 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_getch.3x,v 1.78 2024/02/17 19:27:03 tom Exp $ -.TH getch 3NCURSES 2024-02-17 "ncurses 6.4" "Library calls" +.\" $Id: curs_getch.3x,v 1.87 2024/04/20 19:18:18 tom Exp $ +.TH getch 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq +.ds ^ \(ha .\} .el \{\ .ie t .ds `` `` .el .ds `` "" .ie t .ds '' '' .el .ds '' "" +.ds ^ ^ .\} . +.ie \n(.g .ds : \: +.el .ds : \" empty +. .de bP .ie n .IP \(bu 4 .el .IP \(bu 2 @@ -62,320 +67,529 @@ get (or push back) characters from \fIcurses\fR terminal keyboard .B int mvgetch(int \fIy\fP, int \fIx\fP); .B int mvwgetch(WINDOW *\fIwin\fP, int \fIy\fP, int \fIx\fP); .PP -.B int ungetch(int \fIch\fP); +.B int ungetch(int \fIc\fP); .PP +.\" XXX: Move has_key into its own page like define_key and key_defined? \fI/* extension */\fP -.B int has_key(int \fIch\fP); +.B int has_key(int \fIc\fP); .fi .SH DESCRIPTION .SS "Reading Characters" -The \fBgetch\fP, \fBwgetch\fP, \fBmvgetch\fP and \fBmvwgetch\fP, routines read -a character from the window. -In no-delay mode, if no input is waiting, the value \fBERR\fP is returned. -In delay mode, the program waits until the system -passes text through to the program. -Depending on the setting of \fBcbreak\fP, -this is after one character (cbreak mode), -or after the first newline (nocbreak mode). -In half-delay mode, -the program waits until a character is typed or the -specified timeout has been reached. -.PP -If \fBecho\fP is enabled, and the window is not a pad, -then the character will also be echoed into the -designated window according to the following rules: -.bP -If the character is the current erase character, left arrow, or backspace, -the cursor is moved one space to the left and that screen position is erased -as if \fBdelch\fP had been called. +.B \%wgetch +gathers a key stroke from the terminal keyboard associated with a +.I curses +window +.IR win . +\fB\%ncurses\fP(3NCURSES) describes the variants of this function. +.PP +When input is pending, +.B \%wgetch +returns an integer identifying the key stroke; +for alphanumeric and punctuation keys, +this value corresponds to the character encoding used by the terminal. +Use of the control key as a modifier often results in a distinct code. +The behavior of other keys depends on whether +.I win +is in keypad mode; +see subsection \*(``Keypad Mode\*('' below. +.PP +If no input is pending, +then if the no-delay flag is set in the window +(see \fB\%nodelay\fP(3NCURSES)), +the function returns +.BR ERR ; +otherwise, +.I curses +waits until the terminal has input. +If \fB\%cbreak\fP(3NCURSES) +has been called, +this happens after one character is read. +If \fB\%nocbreak\fP(3NCURSES) +has been called, +it occurs when the next newline is read. +If \fB\%halfdelay\fP(3NCURSES) +has been called, +.I curses +waits until a character is typed or the specified delay elapses. +.PP +If \fB\%echo\fP(3NCURSES) has been called, +and the window is not a pad, +.I curses +writes the returned character +.I c +to the window +(at the cursor position) +per the following rules. .bP -If the character value is any other \fBKEY_\fP define, the user is alerted -with a \fBbeep\fP call. +If +.I c +matches the terminal's erase character, +the cursor moves leftward one position +and the new position is erased +as if \fB\%wmove\fP(3NCURSES) and then \fB\%wdelch\fP(3NCURSES) were called. +When the window's keypad mode is enabled +(see below), +.B \%KEY_LEFT +and +.B \%KEY_BACKSPACE +are handled the same way. .bP -If the character is a carriage-return, -and if \fBnl\fP is enabled, -it is translated to a line-feed after echoing. +.I curses +writes any other +.I c +to the window, +as with \fB\%wechochar\fP(3NCURSES). .bP -Otherwise the character is simply output to the screen. +If the window has been moved or modified since the last call to +\fB\%wrefresh\fP(3NCURSES), +.I curses +calls +.BR \%wrefresh . .PP -If the window is not a pad, and it has been moved or modified since the last -call to \fBwrefresh\fP, \fBwrefresh\fP will be called before another character -is read. +If +.I c +is a carriage return and \fB\%nl\fP(3NCURSES) has been called, +.B \%wgetch +returns the character code for line feed instead. .SS "Keypad Mode" -If \fBkeypad\fP is \fBTRUE\fP, and a function key is pressed, the token for -that function key is returned instead of the raw characters: +To +.IR curses , +key strokes not from the alphabetic section of the keyboard +(those corresponding to the ECMA-6 character set\(emsee +\fIascii\fP(7)\(emoptionally modified by either the control or shift +keys) +are treated as +.I function +keys. +(In +.IR curses , +the term \*(``function key\*('' includes but is not limited to keycaps +engraved with \*(``F1\*('', +\*(``PF1\*('', +and so on.) +If the window is in keypad mode, +these produce a numeric code corresponding to the +.B KEY_ +symbols listed in subsection \*(``Predefined Key Codes\*('' below; +otherwise, +they transmit a sequence of codes typically starting with the escape +character, +and which must be collected with multiple +.B \%wgetch +calls. .bP -The predefined function -keys are listed in \fB\fP as macros with values outside the range -of 8-bit characters. -Their names begin with \fBKEY_\fP. +The +.I \%curses.h +header file declares many +.I "predefined function keys" +whose names begin with +.BR KEY_ ; +these object-like macros have values outside the range of eight-bit +character codes. .bP -Other (user-defined) function keys which may be defined -using \fB\%define_key\fP(3NCURSES) -have no names, but also are expected to have values outside the range of -8-bit characters. -.PP -Thus, a variable -intended to hold the return value of a function key must be of short size or -larger. -.PP -When a character that could be the beginning of a function key is received -(which, on modern terminals, means an escape character), -\fBcurses\fP sets a timer. -If the remainder of the sequence does not come in within the designated -time, the character is passed through; -otherwise, the function key value is returned. -For this reason, many terminals experience a delay between the time -a user presses the escape key and the escape is returned to the program. -.PP -In \fI\%ncurses\fP, the timer normally expires after -the value in \fBESCDELAY\fP (see \fB\%curses_variables\fP(3NCURSES)). -If \fBnotimeout\fP is \fBTRUE\fP, the timer does not expire; -it is an infinite (or very large) value. -Because function keys usually begin with an escape character, -the terminal may appear to hang in notimeout mode after pressing the escape key -until another key is pressed. +In +.IR \%ncurses , +.I "user-defined function keys" +are configured with \fB\%define_key\fP(3NCURSES); +they have no names, +but are also expected to have values outside the range of eight-bit +codes. +.PP +A variable intended to hold a function key code must thus be of type +.I short +or larger. +.PP +Most terminals one encounters follow the ECMA-48 standard insofar as +their function keys produce character sequences prefixed with the +escape character ESC. +This fact implies that +.I curses +cannot know whether the terminal has sent an ESC key stroke or the +beginning of a function key's character sequence without waiting to see +if, +and how soon, +further input arrives. +When +.I curses +reads such an ambiguous character, +it sets a timer. +If the remainder of the sequence does not arrive within the designated +time, +.B \%wgetch +returns the prefix character; +otherwise, +it returns the function key code corresponding to the unique sequence +defined by the terminal. +Consequently, +a user of a +.I curses +application may experience a delay after pressing ESC while +.I curses +disambiguates the input; +see section \*(``EXTENSIONS\*('' below. +If the window is in \*(``no time-out\*('' mode, +the timer does not expire; +it is an infinite +(or very large) +value. +See \fB\%notimeout\fP(3NCURSES). +Because function key sequences usually begin with an escape character, +the terminal may appear to hang in no time-out mode after the user has +pressed ESC. +Generally, +further typing \*(``awakens\*('' +.IR curses . .SS "Ungetting Characters" -The \fBungetch\fP routine places \fIch\fP back onto the input queue to be -returned by the next call to \fBwgetch\fP. -There is just one input queue for all windows. +.B \%ungetch +places +.I c +into the input queue to be returned by the next call to +.BR \%wgetch . +A single input queue serves all windows. .SS "Predefined Key Codes" -The following special keys are defined in \fB\fP. +The header file +.I \%curses.h +defines the following function key codes. .bP -Except for the special case \fBKEY_RESIZE\fP, -it is necessary to enable \fBkeypad\fP for \fBgetch\fP to return these codes. +Except for the special case of +.BR \%KEY_RESIZE , +a window's keypad mode must be enabled for +.B \%wgetch +to read these codes from it. .bP Not all of these are necessarily supported on any particular terminal. .bP -The naming convention may seem obscure, with some apparent -misspellings (such as \*(``RSUME\*('' for \*(``resume\*(''). -The names correspond to the long terminfo capability names for the keys, -and were defined long ago, in the 1980s. +The naming convention may seem obscure, +with some apparent misspellings +(such as \*(``RSUME\*('' for \*(``resume\*(''); +the names correspond to the +.I \%term\%info +capability names for the keys, +and were standardized before the IBM PC/AT keyboard layout achieved a +dominant position in industry. .PP .RS +.\" XXX: Move this list into ncurses(3X), rather than duplicating it in +.\" get_wch(3X) or having that page cross reference this one? .TS -tab(/) ; -l l . -\fBName\fP/\fBKey\fP \fBname\fP -_ -KEY_BREAK/Break key -KEY_DOWN/The four arrow keys ... -KEY_UP -KEY_LEFT -KEY_RIGHT -KEY_HOME/Home key (upward+left arrow) -KEY_BACKSPACE/Backspace -KEY_F0/T{ -Function keys; space for 64 keys is reserved. +Lb Lb +Lb Lx. +Symbol Key name += +KEY_BREAK Break key +KEY_DOWN Arrow keys +KEY_UP \^ +KEY_LEFT \^ +KEY_RIGHT \^ +KEY_HOME Home key (upward+left arrow) +KEY_BACKSPACE Backspace +KEY_F0 T{ +Function keys; space for 64 keys is reserved T} -KEY_F(\fIn\fP)/T{ -For 0 \(<= \fIn\fP \(<= 63 +KEY_F(\fIn\fP) T{ +Function key \fIn\fP where 0 \(<= \fIn\fP \(<= 63 T} -KEY_DL/Delete line -KEY_IL/Insert line -KEY_DC/Delete character -KEY_IC/Insert char or enter insert mode -KEY_EIC/Exit insert char mode -KEY_CLEAR/Clear screen -KEY_EOS/Clear to end of screen -KEY_EOL/Clear to end of line -KEY_SF/Scroll 1 line forward -KEY_SR/Scroll 1 line backward (reverse) -KEY_NPAGE/Next page -KEY_PPAGE/Previous page -KEY_STAB/Set tab -KEY_CTAB/Clear tab -KEY_CATAB/Clear all tabs -KEY_ENTER/Enter or send -KEY_SRESET/Soft (partial) reset -KEY_RESET/Reset or hard reset -KEY_PRINT/Print or copy -KEY_LL/Home down or bottom (lower left) -KEY_A1/Upper left of keypad -KEY_A3/Upper right of keypad -KEY_B2/Center of keypad -KEY_C1/Lower left of keypad -KEY_C3/Lower right of keypad -KEY_BTAB/Back tab key -KEY_BEG/Beg(inning) key -KEY_CANCEL/Cancel key -KEY_CLOSE/Close key -KEY_COMMAND/Cmd (command) key -KEY_COPY/Copy key -KEY_CREATE/Create key -KEY_END/End key -KEY_EXIT/Exit key -KEY_FIND/Find key -KEY_HELP/Help key -KEY_MARK/Mark key -KEY_MESSAGE/Message key -KEY_MOUSE/Mouse event occurred -KEY_MOVE/Move key -KEY_NEXT/Next object key -KEY_OPEN/Open key -KEY_OPTIONS/Options key -KEY_PREVIOUS/Previous object key -KEY_REDO/Redo key -KEY_REFERENCE/Ref(erence) key -KEY_REFRESH/Refresh key -KEY_REPLACE/Replace key -KEY_RESIZE/Screen resized -KEY_RESTART/Restart key -KEY_RESUME/Resume key -KEY_SAVE/Save key -KEY_SBEG/Shifted beginning key -KEY_SCANCEL/Shifted cancel key -KEY_SCOMMAND/Shifted command key -KEY_SCOPY/Shifted copy key -KEY_SCREATE/Shifted create key -KEY_SDC/Shifted delete char key -KEY_SDL/Shifted delete line key -KEY_SELECT/Select key -KEY_SEND/Shifted end key -KEY_SEOL/Shifted clear line key -KEY_SEXIT/Shifted exit key -KEY_SFIND/Shifted find key -KEY_SHELP/Shifted help key -KEY_SHOME/Shifted home key -KEY_SIC/Shifted insert key -KEY_SLEFT/Shifted left arrow key -KEY_SMESSAGE/Shifted message key -KEY_SMOVE/Shifted move key -KEY_SNEXT/Shifted next key -KEY_SOPTIONS/Shifted options key -KEY_SPREVIOUS/Shifted prev key -KEY_SPRINT/Shifted print key -KEY_SREDO/Shifted redo key -KEY_SREPLACE/Shifted replace key -KEY_SRIGHT/Shifted right arrow key -KEY_SRSUME/Shifted resume key -KEY_SSAVE/Shifted save key -KEY_SSUSPEND/Shifted suspend key -KEY_SUNDO/Shifted undo key -KEY_SUSPEND/Suspend key -KEY_UNDO/Undo key +KEY_DL Delete line +KEY_IL Insert line +KEY_DC Delete character +KEY_IC Insert character/Enter insert mode +KEY_EIC Exit insert character mode +KEY_CLEAR Clear screen +KEY_EOS Clear to end of screen +KEY_EOL Clear to end of line +KEY_SF Scroll one line forward +KEY_SR Scroll one line backward (reverse) +KEY_NPAGE Next page/Page up +KEY_PPAGE Previous page/Page down +KEY_STAB Set tab +KEY_CTAB Clear tab +KEY_CATAB Clear all tabs +KEY_ENTER Enter/Send +KEY_SRESET Soft (partial) reset +KEY_RESET (Hard) reset +KEY_PRINT Print/Copy +KEY_LL Home down/Bottom (lower left) +KEY_A1 Upper left of keypad +KEY_A3 Upper right of keypad +KEY_B2 Center of keypad +KEY_C1 Lower left of keypad +KEY_C3 Lower right of keypad +KEY_BTAB Back tab key +KEY_BEG Beg(inning) key +KEY_CANCEL Cancel key +KEY_CLOSE Close key +KEY_COMMAND Cmd (command) key +KEY_COPY Copy key +KEY_CREATE Create key +KEY_END End key +KEY_EXIT Exit key +KEY_FIND Find key +KEY_HELP Help key +KEY_MARK Mark key +KEY_MESSAGE Message key +KEY_MOUSE Mouse event occurred +KEY_MOVE Move key +KEY_NEXT Next object key +KEY_OPEN Open key +KEY_OPTIONS Options key +KEY_PREVIOUS Previous object key +KEY_REDO Redo key +KEY_REFERENCE Ref(erence) key +KEY_REFRESH Refresh key +KEY_REPLACE Replace key +KEY_RESIZE Screen resized +KEY_RESTART Restart key +KEY_RESUME Resume key +KEY_SAVE Save key +KEY_SELECT Select key +KEY_SUSPEND Suspend key +KEY_UNDO Undo key +_ +KEY_SBEG Shifted beginning key +KEY_SCANCEL Shifted cancel key +KEY_SCOMMAND Shifted command key +KEY_SCOPY Shifted copy key +KEY_SCREATE Shifted create key +KEY_SDC Shifted delete character key +KEY_SDL Shifted delete line key +KEY_SEND Shifted end key +KEY_SEOL Shifted clear line key +KEY_SEXIT Shifted exit key +KEY_SFIND Shifted find key +KEY_SHELP Shifted help key +KEY_SHOME Shifted home key +KEY_SIC Shifted insert key +KEY_SLEFT Shifted left arrow key +KEY_SMESSAGE Shifted message key +KEY_SMOVE Shifted move key +KEY_SNEXT Shifted next object key +KEY_SOPTIONS Shifted options key +KEY_SPREVIOUS Shifted previous object key +KEY_SPRINT Shifted print key +KEY_SREDO Shifted redo key +KEY_SREPLACE Shifted replace key +KEY_SRIGHT Shifted right arrow key +KEY_SRSUME Shifted resume key +KEY_SSAVE Shifted save key +KEY_SSUSPEND Shifted suspend key +KEY_SUNDO Shifted undo key .TE .RE .PP -Keypad is arranged like this: +Many keyboards feature a nine-key directional pad. .PP .RS .TS -allbox tab(/) ; -c c c . -\fBA1\fP/\fBup\fP/\fBA3\fP -\fBleft\fP/\fBB2\fP/\fBright\fP -\fBC1\fP/\fBdown\fP/\fBC3\fP +allbox center; +C C C. +A1 up A3 +left B2 right +C1 down C3 .TE .RE .sp -A few of these predefined values do \fInot\fP correspond to a real key: +Two of the symbols in the list above do +.I not +correspond to a physical key. .bP -.B KEY_RESIZE -is returned when the \fBSIGWINCH\fP signal has been detected -(see \fB\%initscr\fP(3NCURSES) and \fB\%resizeterm\fP(3NCURSES)). -This code is returned whether or not \fBkeypad\fP has been enabled. +.B \%wgetch +returns +.BR \%KEY_RESIZE , +even if the window's keypad mode is disabled, +when +.I \%ncurses +handles a +.B \%SIGWINCH +signal; +see \fB\%initscr\fP(3NCURSES) and \fB\%resizeterm\fP(3NCURSES). .bP -.B KEY_MOUSE -is returned for mouse-events (see \fB\%mouse\fP(3NCURSES)). -This code relies upon whether or not \fB\%keypad\fP(3NCURSES) has been enabled, -because -(e.g., -with \fBxterm\fP(1) mouse prototocol) -\fI\%ncurses\fP must read escape sequences, -just like a function key. +.B \%wgetch +returns +.B \%KEY_MOUSE +to indicate that a mouse event is pending collection; +see \fB\%mouse\fP(3NCURSES). +Receipt of this code requires a window's keypad mode to be enabled, +because to interpret mouse input +(as with with \fI\%xterm\fP(1)'s mouse prototocol), +.I \%ncurses +must read an escape sequence, +as with a function key. .SS "Testing Key Codes" -The \fBhas_key\fP routine takes a key-code value from the above list, and -returns \fBTRUE\fP or \fBFALSE\fP according to whether -the current terminal type recognizes a key with that value. -.PP -The library also supports these extensions: -.RS 3 -.TP 5 -.B define_key -defines a key-code for a given string (see \fB\%define_key\fP(3NCURSES)). -.TP 5 -.B key_defined -checks if there is a key-code defined for a given -string (see \fB\%key_defined\fP(3NCURSES)). -.RE +In +.IR \%ncurses , +.B \%has_key +returns a Boolean value indicating whether the terminal type recognizes +its parameter as a key code value. +See also +\fB\%define_key\fP(3NCURSES) and \fB\%key_defined\fP(3NCURSES). .SH RETURN VALUE -All routines return the integer \fBERR\fP upon failure and an integer value -other than \fBERR\fP (\fBOK\fP in the case of \fBungetch\fP) upon successful -completion. -.RS 3 -.TP 5 -\fBungetch\fP -returns \fBERR\fP -if there is no more room in the FIFO. -.TP -\fBwgetch\fP -returns \fBERR\fP -.RS -.bP -if the window pointer is null, or +Except for +.BR \%has_key , +these functions return +.B OK +on success and +.B ERR +on failure. +.PP +Functions taking a +.I \%WINDOW +pointer argument fail if the pointer is +.BR NULL . +.PP +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. +.PP +.B \%wgetch +also fails if .bP -if its timeout expires without having any data, or +its timeout expires without any data arriving, +or .bP -if the execution was interrupted by a signal (\fBerrno\fP will be set to -\fBEINTR\fP). -.RE -.RE +execution was interrupted by a signal, +in which case +.B \%errno +is set to +.BR \%EINTR . +.PP +.B \%ungetch +fails if there is no more room in the input queue. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. +.B \%has_key +returns +.B TRUE +or +.BR FALSE . .SH NOTES -Use of the escape key by a programmer for a single character function is -discouraged, as it will cause a delay of up to one second while the -keypad code looks for a following function-key sequence. -.PP -Some keys may be the same as commonly used control -keys, e.g., -\fBKEY_ENTER\fP versus control/M, -\fBKEY_BACKSPACE\fP versus control/H. -Some curses implementations may differ according to whether they -treat these control keys specially (and ignore the terminfo), or -use the terminfo definitions. -\fI\%ncurses\fP uses the terminfo definition. -If it says that \fBKEY_ENTER\fP is control/M, -\fBgetch\fP will return \fBKEY_ENTER\fP -when you press control/M. -.PP -Generally, \fBKEY_ENTER\fP denotes the character(s) sent by the \fIEnter\fP -key on the numeric keypad: +.I curses +discourages assignment of the ESC key to a discrete function by the +programmer because the library requires a delay while it awaits the +potential remainder of a terminal escape sequence. +.PP +Some key strokes are indistinguishable from control characters; +for example, +.B \%KEY_ENTER +may be the same as +.BR \*^M , +.\" as with att630 or pccon+keys +and +.B \%KEY_BACKSPACE +may be the same as +.B \*^H +.\" as with att505 or vt52-basic +or +.BR \*^? . +.\" as with pccon+keys or vt320 +Consult the terminal's +.I \%term\%info +entry to determine whether this is the case; +see \fB\%infocmp\fP(1). +Some +.I curses +implementations, +including +.IR \%ncurses , +honor the +.I \%term\%info +key definitions; +others treat such control characters specially. +.PP +.I curses +distinguishes the Enter keys in the alphabetic and numeric keypad +sections of a keyboard because (most) terminals do. +.B \%KEY_ENTER +refers to the key on the numeric keypad and, +like other function keys, +and is reliably recognized only if the window's keypad mode is enabled. .bP -the terminal description lists the most useful keys, +The +.I \%term\%info +.B \%key_enter +.RB ( kent ) +capability describes the character (sequence) sent by the Enter key of +a terminal's numeric +(or similar) +keypad. .bP -the \fIEnter\fP key on the regular keyboard is already handled by -the standard ASCII characters for carriage-return and line-feed, +\*(``Enter or send\*('' is X/Open Curses's description of this key. +.PP +.I curses +treats the Enter or Return key in the +.I alphabetic +section of the keyboard differently. .bP -depending on whether \fBnl\fP or \fBnonl\fP was called, -pressing \*(``Enter\*('' on the regular keyboard -may return either a carriage-return or line-feed, and finally +It usually produces a control code for carriage return +.RB ( \*^M ) +or line feed +.RB ( \*^J ). .bP -\*(``Enter or send\*('' is the standard description for this key. -.PP -When using \fBgetch\fP, \fBwgetch\fP, \fBmvgetch\fP, or -\fBmvwgetch\fP, nocbreak mode (\fBnocbreak\fP) and echo mode -(\fBecho\fP) should not be used at the same time. -Depending on the -state of the tty driver when each character is typed, the program may -produce undesirable results. -.PP -Note that \fBgetch\fP, \fBmvgetch\fP, and \fBmvwgetch\fP may be macros. -.PP -Historically, the set of keypad macros was largely defined by the extremely -function-key-rich keyboard of the AT&T 7300, aka 3B1, aka Safari 4. -Modern -personal computers usually have only a small subset of these. -IBM PC-style -consoles typically support little more than \fBKEY_UP\fP, \fBKEY_DOWN\fP, -\fBKEY_LEFT\fP, \fBKEY_RIGHT\fP, \fBKEY_HOME\fP, \fBKEY_END\fP, -\fBKEY_NPAGE\fP, \fBKEY_PPAGE\fP, and function keys 1 through 12. -The Ins key -is usually mapped to \fBKEY_IC\fP. +Depending on the terminal mode +(raw, +cbreak, +or +\*(``cooked\*(''), +and whether \fB\%nl\fP(3NCURSES) or \fB\%nonl\fP(3NCURSES) has been called, +.B \%wgetch +may return either a carriage return or line feed upon an Enter or Return +key stroke. +.PP +Use of +.B \%wgetch +with \fB\%echo\fP(3NCURSES) and neither \fB\%cbreak\fP(3NCURSES) nor \fB\%raw\fP(3NCURSES) +is not well-defined. +.PP +Historically, +the list of key code macros above was influenced by the +function-key-rich keyboard of the AT&T 7300 +(also known variously as the \*(``3B1\*('', \*(``Safari 4\*('', and +\*(``UNIX PC\*(''), +a 1985 machine. +Today's computer keyboards are based that of the IBM PC/AT and tend to +have fewer. +A +.I curses +application can expect such a keyboard to transmit key codes +.BR \%KEY_UP , +.BR \%KEY_DOWN , +.BR \%KEY_LEFT , +.BR \%KEY_RIGHT , +.BR \%KEY_HOME , +.BR \%KEY_END , +.B \%KEY_PPAGE +(Page Up), +.B \%KEY_NPAGE +(Page Down), +.B \%KEY_IC +(Insert), +.B \%KEY_DC +(Delete), +and +.BI \%KEY_F( n ) +for 1 \(<= +.I n +\(<= 12. +.PP +.BR \%getch , +.BR \%mvgetch , +and +.B \%mvwgetch +may be implemented as macros. .SH EXTENSIONS +In +.IR \%ncurses , +when a window's \*(``no time-out\*('' mode is +.I not +set, +the +.B \%ESCDELAY +variable configures the duration of the timer used to disambiguate a +function key character sequence from a series of key strokes beginning +with ESC typed by the user; +see +\fB\%curses_variables\fP(3NCURSES). +.PP \fB\%has_key\fP was designed for \fB\%ncurses\fP(3NCURSES), and is not found in SVr4 .IR curses , @@ -389,32 +603,51 @@ extensions should condition their use on the visibility of the .B \%NCURSES_VERSION preprocessor macro. .PP -X/Open Curses, Issue 4, Version 2, describes +X/Open Curses, +Issue 4 describes \fB\%getch\fP, \fB\%wgetch\fP, \fB\%mvgetch\fP, \fB\%mvwgetch\fP, and \fB\%ungetch\fP. -They read single-byte characters only. -The standard specifies that they return \fBERR\fP on failure, -but describes no failure conditions. +It specifies no error conditions for them. +.PP +.B \%wgetch +reads only single-byte characters. .PP The echo behavior of these functions on input of .B KEY_ or backspace characters was not specified in the SVr4 documentation. This description is adapted from X/Open Curses. .PP -The behavior of \fBgetch\fP and friends in the presence of signal -handlers is unspecified in the SVr4 documentation and X/Open Curses. -Under historical curses implementations, +The behavior of +.B \%wgetch +in the presence of signal handlers is unspecified in the SVr4 +documentation and X/Open Curses. +In historical +.I curses +implementations, it varied depending on whether the operating system's dispatch of a -signal to a handler interrupts a \fBread\fP(2) call in progress or not, +signal to a handler interrupting a \fIread\fP(2) call in progress, and also (in some implementations) whether an input timeout or non-blocking mode has been set. +Programmers concerned about portability should be prepared for either of +two cases: +(a) signal receipt does not interrupt +.BR \%wgetch ; +or +(b) signal receipt interrupts +.B \%wgetch +and causes it to return +.B ERR +with +.B \%errno +set to +.BR \%EINTR . .PP -.B KEY_MOUSE +.B \%KEY_MOUSE is mentioned in X/Open Curses, along with a few related .I \%term\%info @@ -424,31 +657,41 @@ The implementation in .I \%ncurses is an extension. .PP -.B KEY_RESIZE -is an extension first implemented for -.I \%ncurses. +.B \%KEY_RESIZE +and +.B \%has_key +are extensions first implemented for +.IR \%ncurses . +By 2022, +.I \%PDCurses +.\" https://web.archive.org/web/20220117232009/https://pdcurses.org/docs/MANUAL.html +and NetBSD .I curses -later added this extension. -.PP -Programmers concerned about portability should be prepared for either of two -cases: (a) signal receipt does not interrupt \fBgetch\fP; (b) signal receipt -interrupts \fBgetch\fP and causes it to return \fBERR\fP with \fBerrno\fP set to -\fBEINTR\fP. -.PP -The \fBhas_key\fP function is unique to \fI\%ncurses\fP. -We recommend that -any code using it be conditionalized on the \fBNCURSES_VERSION\fP feature macro. +.\" https://web.archive.org/web/20200923185647/https://man.netbsd.org/curses_input.3 +had added them along with +.BR \%KEY_MOUSE . .SH SEE ALSO +\fB\%get_wch\fP(3NCURSES) describes comparable functions of the +.I \%ncurses +library in its wide-character configuration +.RI ( \%ncursesw ). +.PP \fB\%ncurses\fP(3NCURSES), +\fB\%addch\fP(3NCURSES), \fB\%inopts\fP(3NCURSES), \fB\%mouse\fP(3NCURSES), \fB\%move\fP(3NCURSES), \fB\%outopts\fP(3NCURSES), \fB\%refresh\fP(3NCURSES), \fB\%curses_variables\fP(3NCURSES), -\fB\%resizeterm\fP(3NCURSES) +\fB\%resizeterm\fP(3NCURSES), +\fB\%ascii\fP(7) +.PP +ECMA-6 \*(``7-bit coded Character Set\*('' +\% .PP -Comparable functions in the wide-character (ncursesw) library are -described in -\fB\%get_wch\fP(3NCURSES). +ECMA-48 \*(``Control Functions for Coded Character Sets\*('' +\% diff --git a/upstream/opensuse-tumbleweed/man3/getcontext.3 b/upstream/opensuse-tumbleweed/man3/getcontext.3 index 4cd604c6..879cfe85 100644 --- a/upstream/opensuse-tumbleweed/man3/getcontext.3 +++ b/upstream/opensuse-tumbleweed/man3/getcontext.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH getcontext 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getcontext 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getcontext, setcontext \- get or set the user context .SH LIBRARY @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int getcontext(ucontext_t *" ucp ); .BI "int setcontext(const ucontext_t *" ucp ); .fi @@ -31,7 +31,7 @@ and .BR swapcontext (3) that allow user-level context switching between multiple threads of control within a process. -.PP +.P The .I mcontext_t type is machine-dependent and opaque. @@ -39,7 +39,7 @@ The .I ucontext_t type is a structure that has at least the following fields: -.PP +.P .in +4n .EX typedef struct ucontext_t { @@ -51,7 +51,7 @@ typedef struct ucontext_t { } ucontext_t; .EE .in -.PP +.P with .I sigset_t and @@ -76,14 +76,14 @@ and is the machine-specific representation of the saved context, that includes the calling thread's machine registers. -.PP +.P The function .BR getcontext () initializes the structure pointed to by .I ucp to the currently active context. -.PP +.P The function .BR setcontext () restores the user context @@ -99,11 +99,11 @@ handler (see the discussion of the .B SA_SIGINFO flag in .BR sigaction (2)). -.PP +.P If the context was obtained by a call of .BR getcontext (), program execution continues as if this call just returned. -.PP +.P If the context was obtained by a call of .BR makecontext (3), program execution continues by a call to the function @@ -120,7 +120,7 @@ specified as the first argument of that call to .BR makecontext (3). When this member is NULL, the thread exits. -.PP +.P If the context was obtained by a call to a signal handler, then old standard text says that "program execution continues with the program instruction following the instruction interrupted @@ -153,12 +153,11 @@ T{ .BR setcontext () T} Thread safety MT-Safe race:ucp .TE -.sp 1 .SH STANDARDS None. .SH HISTORY SUSv2, POSIX.1-2001. -.PP +.P POSIX.1-2008 removes these functions, citing portability issues, and recommending that applications be rewritten to use POSIX threads instead. @@ -181,7 +180,7 @@ is from the first call, or via a call. The user has to invent their own bookkeeping device, and a register variable won't do since registers are restored. -.PP +.P When a signal occurs, the current user context is saved and a new context is created by the kernel for the signal handler. Do not leave the handler using diff --git a/upstream/opensuse-tumbleweed/man3/getcwd.3 b/upstream/opensuse-tumbleweed/man3/getcwd.3 index 7149581c..ea3c4cf0 100644 --- a/upstream/opensuse-tumbleweed/man3/getcwd.3 +++ b/upstream/opensuse-tumbleweed/man3/getcwd.3 @@ -10,7 +10,7 @@ .\" Modified Mon Dec 11 13:32:51 MET 2000 by aeb .\" Modified Thu Apr 22 03:49:15 CEST 2002 by Roger Luethi .\" -.TH getcwd 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getcwd 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getcwd, getwd, get_current_dir_name \- get current working directory .SH LIBRARY @@ -19,23 +19,23 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *getcwd(char " buf [. size "], size_t " size ); .B "char *get_current_dir_name(void);" -.PP +.P .BI "[[deprecated]] char *getwd(char " buf [PATH_MAX]); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR get_current_dir_name (): .nf _GNU_SOURCE .fi -.PP +.P .BR getwd (): .nf Since glibc 2.12: @@ -53,7 +53,7 @@ the calling process. The pathname is returned as the function result and via the argument .IR buf , if present. -.PP +.P The .BR getcwd () function copies an absolute pathname of the current working directory @@ -61,7 +61,7 @@ to the array pointed to by .IR buf , which is of length .IR size . -.PP +.P If the length of the absolute pathname of the current working directory, including the terminating null byte, exceeds .I size @@ -71,7 +71,7 @@ is set to .BR ERANGE ; an application should check for this error, and allocate a larger buffer if necessary. -.PP +.P As an extension to the POSIX.1-2001 standard, glibc's .BR getcwd () allocates the buffer dynamically using @@ -89,7 +89,7 @@ is allocated as big as necessary. The caller should .BR free (3) the returned buffer. -.PP +.P .BR get_current_dir_name () will .BR malloc (3) @@ -102,7 +102,7 @@ is set, and its value is correct, then that value will be returned. The caller should .BR free (3) the returned buffer. -.PP +.P .BR getwd () does not .BR malloc (3) @@ -136,7 +136,7 @@ and .BR getwd () this is the same value as .IR buf . -.PP +.P On failure, these functions return NULL, and .I errno is set to indicate the error. @@ -202,14 +202,13 @@ T{ .BR get_current_dir_name () T} Thread safety MT-Safe env .TE -.sp 1 .SH VERSIONS POSIX.1-2001 leaves the behavior of .BR getcwd () unspecified if .I buf is NULL. -.PP +.P POSIX.1-2001 does not define any errors for .BR getwd (). @@ -234,7 +233,7 @@ exceeds this limit, then the system call fails with the error .BR ENAMETOOLONG . In this case, the library functions fall back to a (slower) alternative implementation that returns the full pathname. -.PP +.P Following a change in Linux 2.6.36, .\" commit 8df9d1a4142311c084ffeeacb67cd34d190eff74 the pathname returned by the @@ -272,7 +271,7 @@ Removed in POSIX.1-2008. Use .BR getcwd () instead. -.PP +.P Under Linux, these functions make use of the .BR getcwd () system call (available since Linux 2.1.92). diff --git a/upstream/opensuse-tumbleweed/man3/getdate.3 b/upstream/opensuse-tumbleweed/man3/getdate.3 index fefc3708..f7103564 100644 --- a/upstream/opensuse-tumbleweed/man3/getdate.3 +++ b/upstream/opensuse-tumbleweed/man3/getdate.3 @@ -8,7 +8,7 @@ .\" Modified, 2001-12-26, aeb .\" 2008-09-07, mtk, Various rewrites; added an example program. .\" -.TH getdate 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getdate 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getdate, getdate_r \- convert a date-plus-time string to broken-down time .SH LIBRARY @@ -17,25 +17,25 @@ Standard C library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "struct tm *getdate(const char *" string ); -.PP +.P .B "extern int getdate_err;" -.PP +.P .BI "int getdate_r(const char *restrict " string ", struct tm *restrict " res ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getdate (): .nf _XOPEN_SOURCE >= 500 .\" || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED .fi -.PP +.P .BR getdate_r (): .nf _GNU_SOURCE @@ -56,7 +56,7 @@ This structure is allocated in static storage, and consequently it will be overwritten by further calls to .BR getdate (). -.PP +.P In contrast to .BR strptime (3), (which has a @@ -68,11 +68,11 @@ whose full pathname is given in the environment variable .BR DATEMSK . The first line in the file that matches the given input string is used for the conversion. -.PP +.P The matching is done case insensitively. Superfluous whitespace, either in the pattern or in the string to be converted, is ignored. -.PP +.P The conversion specifications that a pattern can contain are those given for .BR strptime (3). One more conversion specification is specified in POSIX.1-2001: @@ -83,7 +83,7 @@ Timezone name. .\" Looking at the glibc 2.21 source code, where the implementation uses .\" strptime(), suggests that it might be supported. This is not implemented in glibc. -.PP +.P When .B %Z is given, the structure containing the broken-down time @@ -92,21 +92,21 @@ time in the given timezone. Otherwise, the structure is initialized to the broken-down time corresponding to the current local time (as by a call to .BR localtime (3)). -.PP +.P When only the day of the week is given, the day is taken to be the first such day on or after today. -.PP +.P When only the month is given (and no year), the month is taken to be the first such month equal to or after the current month. If no day is given, it is the first day of the month. -.PP +.P When no hour, minute, and second are given, the current hour, minute, and second are taken. -.PP +.P If no date is given, but we know the hour, then that hour is taken to be the first such hour equal to or after the current hour. -.PP +.P .BR getdate_r () is a GNU extension that provides a reentrant version of .BR getdate (). @@ -127,7 +127,7 @@ to one of the error numbers shown below. Changes to .I errno are unspecified. -.PP +.P On success .BR getdate_r () returns 0; @@ -174,7 +174,9 @@ Invalid input specification. .B DATEMSK File containing format patterns. .TP -.BR TZ ", " LC_TIME +.B TZ +.TQ +.B LC_TIME Variables used by .BR strptime (3). .SH ATTRIBUTES @@ -204,7 +206,6 @@ T} Thread safety T{ MT-Safe env locale T} .TE -.sp 1 .SH VERSIONS The POSIX.1 specification for .BR strptime (3) @@ -231,7 +232,7 @@ and for each call displays the values in the fields of the returned .I tm structure. The following shell session demonstrates the operation of the program: -.PP +.P .in +4n .EX .RB "$" " TFILE=$PWD/tfile" diff --git a/upstream/opensuse-tumbleweed/man3/getdirentries.3 b/upstream/opensuse-tumbleweed/man3/getdirentries.3 index 67d6da16..3eae3f07 100644 --- a/upstream/opensuse-tumbleweed/man3/getdirentries.3 +++ b/upstream/opensuse-tumbleweed/man3/getdirentries.3 @@ -5,7 +5,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH getdirentries 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getdirentries 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getdirentries \- get directory entries in a filesystem-independent format .SH LIBRARY @@ -14,17 +14,17 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "ssize_t getdirentries(int " fd ", char " buf "[restrict ." nbytes "], \ size_t " nbytes , .BI " off_t *restrict " basep ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getdirentries (): .nf Since glibc 2.19: @@ -67,7 +67,6 @@ T{ .BR getdirentries () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS BSD. .SH NOTES diff --git a/upstream/opensuse-tumbleweed/man3/getdtablesize.3 b/upstream/opensuse-tumbleweed/man3/getdtablesize.3 index 40b940fb..f9b24c00 100644 --- a/upstream/opensuse-tumbleweed/man3/getdtablesize.3 +++ b/upstream/opensuse-tumbleweed/man3/getdtablesize.3 @@ -5,7 +5,7 @@ .\" .\" Modified 2002-04-15 by Roger Luethi and aeb .\" -.TH getdtablesize 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getdtablesize 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getdtablesize \- get file descriptor table size .SH LIBRARY @@ -14,15 +14,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B int getdtablesize(void); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getdtablesize (): .nf Since glibc 2.20: @@ -59,7 +59,6 @@ T{ .BR getdtablesize () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS The glibc version of .BR getdtablesize () @@ -73,7 +72,7 @@ when that fails. .\" The libc4 and libc5 versions return .\" .B OPEN_MAX .\" (set to 256 since Linux 0.98.4). -.PP +.P Portable applications should employ .I sysconf(_SC_OPEN_MAX) instead of this call. diff --git a/upstream/opensuse-tumbleweed/man3/getentropy.3 b/upstream/opensuse-tumbleweed/man3/getentropy.3 index f09a209b..4f5d3f85 100644 --- a/upstream/opensuse-tumbleweed/man3/getentropy.3 +++ b/upstream/opensuse-tumbleweed/man3/getentropy.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH getentropy 3 2023-03-30 "Linux man-pages 6.05.01" +.TH getentropy 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getentropy \- fill a buffer with random bytes .SH LIBRARY @@ -11,15 +11,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int getentropy(void " buffer [. length "], size_t " length ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getentropy (): .nf _DEFAULT_SOURCE @@ -35,7 +35,7 @@ at the location pointed to by The maximum permitted value for the .I length argument is 256. -.PP +.P A successful call to .BR getentropy () always provides the requested number of bytes of entropy. @@ -76,19 +76,19 @@ The .BR getentropy () function is implemented using .BR getrandom (2). -.PP +.P Whereas the glibc wrapper makes .BR getrandom (2) a cancelation point, .BR getentropy () is not a cancelation point. -.PP +.P .BR getentropy () is also declared in .BR . (No feature test macro need be defined to obtain the declaration from that header file.) -.PP +.P A call to .BR getentropy () may block if the system has just booted and the kernel has diff --git a/upstream/opensuse-tumbleweed/man3/getenv.3 b/upstream/opensuse-tumbleweed/man3/getenv.3 index 705eb43e..c0105df5 100644 --- a/upstream/opensuse-tumbleweed/man3/getenv.3 +++ b/upstream/opensuse-tumbleweed/man3/getenv.3 @@ -11,7 +11,7 @@ .\" Modified Sat Jul 24 19:30:29 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified Fri Feb 14 21:47:50 1997 by Andries Brouwer (aeb@cwi.nl) .\" -.TH getenv 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getenv 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getenv, secure_getenv \- get an environment variable .SH LIBRARY @@ -20,16 +20,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *getenv(const char *" name ); .BI "char *secure_getenv(const char *" name ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR secure_getenv (): .nf _GNU_SOURCE @@ -43,7 +43,7 @@ environment variable and returns a pointer to the corresponding .I value string. -.PP +.P The GNU-specific .BR secure_getenv () function is just like @@ -60,10 +60,10 @@ set-group-ID program); the effective capability bit was set on the executable file; or .IP \[bu] the process has a nonempty permitted capability set. -.PP +.P Secure execution may also be required if triggered by some Linux security modules. -.PP +.P The .BR secure_getenv () function is intended for use in general-purpose libraries @@ -90,7 +90,6 @@ T{ .BR secure_getenv () T} Thread safety MT-Safe env .TE -.sp 1 .SH STANDARDS .TP .BR getenv () @@ -107,13 +106,13 @@ POSIX.1-2001, C89, C99, SVr4, 4.3BSD. glibc 2.17. .SH NOTES The strings in the environment list are of the form \fIname=value\fP. -.PP +.P As typically implemented, .BR getenv () returns a pointer to a string within the environment list. The caller must take care not to modify this string, since that would change the environment of the process. -.PP +.P The implementation of .BR getenv () is not required to be reentrant. @@ -126,7 +125,7 @@ and can be modified by a subsequent call to .BR setenv (3), or .BR unsetenv (3). -.PP +.P The "secure execution" mode of .BR secure_getenv () is controlled by the diff --git a/upstream/opensuse-tumbleweed/man3/getfsent.3 b/upstream/opensuse-tumbleweed/man3/getfsent.3 index 5a03bd98..87f3d8a5 100644 --- a/upstream/opensuse-tumbleweed/man3/getfsent.3 +++ b/upstream/opensuse-tumbleweed/man3/getfsent.3 @@ -5,7 +5,7 @@ .\" .\" Inspired by a page written by Walter Harms. .\" -.TH getfsent 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getfsent 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getfsent, getfsspec, getfsfile, setfsent, endfsent \- handle fstab entries .SH LIBRARY @@ -14,11 +14,11 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B "int setfsent(void);" .B "struct fstab *getfsent(void);" .B "void endfsent(void);" -.PP +.P .BI "struct fstab *getfsfile(const char *" mount_point ); .BI "struct fstab *getfsspec(const char *" special_file ); .fi @@ -28,7 +28,7 @@ These functions read from the file The .I struct fstab is defined by: -.PP +.P .in +4n .EX struct fstab { @@ -42,26 +42,26 @@ struct fstab { }; .EE .in -.PP +.P Here the field .I fs_type contains (on a *BSD system) one of the five strings "rw", "rq", "ro", "sw", "xx" (read-write, read-write with quota, read-only, swap, ignore). -.PP +.P The function .BR setfsent () opens the file when required and positions it at the first line. -.PP +.P The function .BR getfsent () parses the next line from the file. (After opening it when required.) -.PP +.P The function .BR endfsent () closes the file when required. -.PP +.P The function .BR getfsspec () searches the file from the start and returns the first entry found @@ -70,7 +70,7 @@ for which the field matches the .I special_file argument. -.PP +.P The function .BR getfsfile () searches the file from the start and returns the first entry found @@ -121,7 +121,6 @@ T} Thread safety T{ MT-Unsafe race:fsent locale T} .TE -.sp 1 .SH VERSIONS Several operating systems have these functions, for example, *BSD, SunOS, Digital UNIX, AIX (which also has a @@ -141,7 +140,7 @@ The function appeared in 4.0BSD; the other four functions appeared in 4.3BSD. .SH NOTES These functions are not thread-safe. -.PP +.P Since Linux allows mounting a block special device in several places, and since several devices can have the same mount point, where the last device with a given mount point is the interesting one, diff --git a/upstream/opensuse-tumbleweed/man3/getgrent.3 b/upstream/opensuse-tumbleweed/man3/getgrent.3 index cd5beda6..a9c937b5 100644 --- a/upstream/opensuse-tumbleweed/man3/getgrent.3 +++ b/upstream/opensuse-tumbleweed/man3/getgrent.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 19:29:54 1993 by Rik Faith (faith@cs.unc.edu) -.TH getgrent 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getgrent 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getgrent, setgrent, endgrent \- get group file entry .SH LIBRARY @@ -18,18 +18,18 @@ Standard C library .nf .B #include .B #include -.PP +.P .B struct group *getgrent(void); -.PP +.P .B void setgrent(void); .B void endgrent(void); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR setgrent (): .nf _XOPEN_SOURCE >= 500 @@ -37,7 +37,7 @@ Feature Test Macro Requirements for glibc (see || /* glibc >= 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR getgrent (), .BR endgrent (): .nf @@ -62,19 +62,19 @@ The first time .BR getgrent () is called, it returns the first entry; thereafter, it returns successive entries. -.PP +.P The .BR setgrent () function rewinds to the beginning of the group database, to allow repeated scans. -.PP +.P The .BR endgrent () function is used to close the group database after all processing has been performed. -.PP +.P The \fIgroup\fP structure is defined in \fI\fP as follows: -.PP +.P .in +4n .EX struct group { @@ -86,7 +86,7 @@ struct group { }; .EE .in -.PP +.P For more information about the fields of this structure, see .BR group (5). .SH RETURN VALUE @@ -96,14 +96,14 @@ function returns a pointer to a .I group structure, or NULL if there are no more entries or an error occurs. -.PP +.P Upon error, .I errno may be set. If one wants to check .I errno after the call, it should be set to zero before the call. -.PP +.P The return value may point to a static area, and may be overwritten by subsequent calls to .BR getgrent (), @@ -180,8 +180,7 @@ T} Thread safety T{ MT-Unsafe race:grent locale T} .TE -.sp 1 -.PP +.P In the above table, .I grent in diff --git a/upstream/opensuse-tumbleweed/man3/getgrent_r.3 b/upstream/opensuse-tumbleweed/man3/getgrent_r.3 index b70c36ea..23da51fa 100644 --- a/upstream/opensuse-tumbleweed/man3/getgrent_r.3 +++ b/upstream/opensuse-tumbleweed/man3/getgrent_r.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH getgrent_r 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getgrent_r 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getgrent_r, fgetgrent_r \- get group file entry reentrantly .SH LIBRARY @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int getgrent_r(struct group *restrict " gbuf , .BI " char " buf "[restrict ." buflen "], size_t " buflen , .BI " struct group **restrict " gbufp ); @@ -20,18 +20,18 @@ Standard C library .BI " char " buf "[restrict ." buflen "], size_t " buflen , .BI " struct group **restrict " gbufp ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getgrent_r (): .nf _GNU_SOURCE .fi .\" FIXME . The FTM requirements seem inconsistent here. File a glibc bug? -.PP +.P .BR fgetgrent_r (): .nf Since glibc 2.19: @@ -52,11 +52,11 @@ The former reads the next group entry from the stream initialized by .BR setgrent (3). The latter reads the next group entry from .IR stream . -.PP +.P The \fIgroup\fP structure is defined in .I as follows: -.PP +.P .in +4n .EX struct group { @@ -68,10 +68,10 @@ struct group { }; .EE .in -.PP +.P For more information about the fields of this structure, see .BR group (5). -.PP +.P The nonreentrant functions return a pointer to static storage, where this static storage contains further pointers to group name, password, and members. @@ -132,7 +132,7 @@ T} Thread safety T{ MT-Safe T} .TE -.sp 1 +.P In the above table, .I grent in @@ -147,16 +147,16 @@ are used in parallel in different threads of a program, then data races could occur. .SH VERSIONS Other systems use the prototype -.PP +.P .in +4n .EX struct group *getgrent_r(struct group *grp, char *buf, int buflen); .EE .in -.PP +.P or, better, -.PP +.P .in +4n .EX int getgrent_r(struct group *grp, char *buf, int buflen, diff --git a/upstream/opensuse-tumbleweed/man3/getgrnam.3 b/upstream/opensuse-tumbleweed/man3/getgrnam.3 index b79e15f8..d19d4140 100644 --- a/upstream/opensuse-tumbleweed/man3/getgrnam.3 +++ b/upstream/opensuse-tumbleweed/man3/getgrnam.3 @@ -11,7 +11,7 @@ .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu) .\" Modified 2003-11-15 by aeb .\" -.TH getgrnam 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getgrnam 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getgrnam, getgrnam_r, getgrgid, getgrgid_r \- get group file entry .SH LIBRARY @@ -21,10 +21,10 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "struct group *getgrnam(const char *" name ); .BI "struct group *getgrgid(gid_t " gid ); -.PP +.P .BI "int getgrnam_r(const char *restrict " name \ ", struct group *restrict " grp , .BI " char " buf "[restrict ." buflen "], size_t " buflen , @@ -33,12 +33,12 @@ Standard C library .BI " char " buf "[restrict ." buflen "], size_t " buflen , .BI " struct group **restrict " result ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getgrnam_r (), .BR getgrgid_r (): .nf @@ -55,16 +55,16 @@ the broken-out fields of the record in the group database NIS, and LDAP) that matches the group name .IR name . -.PP +.P The .BR getgrgid () function returns a pointer to a structure containing the broken-out fields of the record in the group database that matches the group ID .IR gid . -.PP +.P The \fIgroup\fP structure is defined in \fI\fP as follows: -.PP +.P .in +4n .EX struct group { @@ -76,10 +76,10 @@ struct group { }; .EE .in -.PP +.P For more information about the fields of this structure, see .BR group (5). -.PP +.P The .BR getgrnam_r () and @@ -102,15 +102,15 @@ of size A pointer to the result (in case of success) or NULL (in case no entry was found or an error occurred) is stored in .IR *result . -.PP +.P The call -.PP +.P .in +4n .EX sysconf(_SC_GETGR_R_SIZE_MAX) .EE .in -.PP +.P returns either \-1, without changing .IR errno , or an initial suggested size for @@ -134,7 +134,7 @@ is set to indicate the error. If one wants to check .I errno after the call, it should be set to zero before the call. -.PP +.P The return value may point to a static area, and may be overwritten by subsequent calls to .BR getgrent (3), @@ -143,7 +143,7 @@ or .BR getgrnam (). (Do not pass the returned pointer to .BR free (3).) -.PP +.P On success, .BR getgrnam_r () and @@ -225,7 +225,6 @@ T{ .BR getgrgid_r () T} Thread safety MT-Safe locale .TE -.sp 1 .SH VERSIONS The formulation given above under "RETURN VALUE" is from POSIX.1. .\" POSIX.1-2001, POSIX.1-2008 diff --git a/upstream/opensuse-tumbleweed/man3/getgrouplist.3 b/upstream/opensuse-tumbleweed/man3/getgrouplist.3 index 0fe3690b..4a8f5fbc 100644 --- a/upstream/opensuse-tumbleweed/man3/getgrouplist.3 +++ b/upstream/opensuse-tumbleweed/man3/getgrouplist.3 @@ -7,7 +7,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH getgrouplist 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getgrouplist 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getgrouplist \- get list of groups to which a user belongs .SH LIBRARY @@ -16,16 +16,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int getgrouplist(const char *" user ", gid_t " group , .BI " gid_t *" groups ", int *" ngroups ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getgrouplist (): .nf Since glibc 2.19: @@ -45,7 +45,7 @@ Up to .I *ngroups of these groups are returned in the array .IR groups . -.PP +.P If it was not among the groups defined for .I user in the group database, then @@ -55,7 +55,7 @@ is included in the list of groups returned by typically this argument is specified as the group ID from the password record for .IR user . -.PP +.P The .I ngroups argument is a value-result argument: @@ -73,7 +73,7 @@ is a member is less than or equal to then the value .I *ngroups is returned. -.PP +.P If the user is a member of more than .I *ngroups groups, then @@ -97,7 +97,6 @@ T{ .BR getgrouplist () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS None. .SH HISTORY @@ -119,7 +118,7 @@ The second command-line argument specifies the value to be supplied to .BR getgrouplist (). The following shell session shows examples of the use of this program: -.PP +.P .in +4n .EX .RB "$" " ./a.out cecilia 0" @@ -135,6 +134,7 @@ ngroups = 3 \& .\" SRC BEGIN (getgrouplist.c) .EX +#include #include #include #include @@ -143,10 +143,10 @@ ngroups = 3 int main(int argc, char *argv[]) { - int ngroups; - struct passwd *pw; - struct group *gr; - gid_t *groups; + int ngroups; + gid_t *groups; + struct group *gr; + struct passwd *pw; \& if (argc != 3) { fprintf(stderr, "Usage: %s \en", argv[0]); @@ -163,10 +163,14 @@ main(int argc, char *argv[]) \& /* Fetch passwd structure (contains first group ID for user). */ \& + errno = 0; pw = getpwnam(argv[1]); if (pw == NULL) { - perror("getpwnam"); - exit(EXIT_SUCCESS); + if (errno) + perror("getpwnam"); + else + fprintf(stderr, "no such user\en"); + exit(EXIT_FAILURE); } \& /* Retrieve group list. */ @@ -180,7 +184,7 @@ main(int argc, char *argv[]) /* Display list of retrieved groups, along with group names. */ \& fprintf(stderr, "ngroups = %d\en", ngroups); - for (size_t j = 0; j < ngroups; j++) { + for (int j = 0; j < ngroups; j++) { printf("%d", groups[j]); gr = getgrgid(groups[j]); if (gr != NULL) diff --git a/upstream/opensuse-tumbleweed/man3/gethostbyname.3 b/upstream/opensuse-tumbleweed/man3/gethostbyname.3 index 620d492c..88ca5acb 100644 --- a/upstream/opensuse-tumbleweed/man3/gethostbyname.3 +++ b/upstream/opensuse-tumbleweed/man3/gethostbyname.3 @@ -16,7 +16,7 @@ .\" Modified 2002-08-05, Michael Kerrisk .\" Modified 2004-10-31, Andries Brouwer .\" -.TH gethostbyname 3 2023-07-20 "Linux man-pages 6.05.01" +.TH gethostbyname 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME gethostbyname, gethostbyaddr, sethostent, gethostent, endhostent, h_errno, @@ -30,31 +30,31 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void sethostent(int " stayopen ); .B void endhostent(void); -.PP +.P .B [[deprecated]] extern int h_errno; -.PP +.P .BI "[[deprecated]] struct hostent *gethostbyname(const char *" name ); .BI "[[deprecated]] struct hostent *gethostbyaddr(const void " addr [. len ], .BI " socklen_t " len ", int " type ); -.PP +.P .BI "[[deprecated]] void herror(const char *" s ); .BI "[[deprecated]] const char *hstrerror(int " err ); -.PP +.P /* System V/POSIX extension */ .B struct hostent *gethostent(void); -.PP +.P /* GNU extensions */ .B [[deprecated]] .BI "struct hostent *gethostbyname2(const char *" name ", int " af ); -.PP +.P .BI "int gethostent_r(struct hostent *restrict " ret , .BI " char " buf "[restrict ." buflen "], size_t " buflen , .BI " struct hostent **restrict " result , .BI " int *restrict " h_errnop ); -.PP +.P .B [[deprecated]] .BI "int gethostbyaddr_r(const void " addr "[restrict ." len "], socklen_t " len , .BI " int " type , @@ -75,12 +75,12 @@ Standard C library .BI " struct hostent **restrict " result , .BI " int *restrict " h_errnop ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR gethostbyname2 (), .BR gethostent_r (), .BR gethostbyaddr_r (), @@ -92,7 +92,7 @@ Feature Test Macro Requirements for glibc (see glibc up to and including 2.19: _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR herror (), .BR hstrerror (): .nf @@ -103,7 +103,7 @@ Feature Test Macro Requirements for glibc (see Before glibc 2.8: none .fi -.PP +.P .BR h_errno : .nf Since glibc 2.19 @@ -127,19 +127,19 @@ Applications should use and .BR gai_strerror (3) instead. -.PP +.P The .BR sethostent () function specifies, if \fIstayopen\fP is true (1), that a connected TCP socket should be used for the name server queries and that the connection should remain open during successive queries. Otherwise, name server queries will use UDP datagrams. -.PP +.P The .BR endhostent () function ends the use of a TCP connection for name server queries. -.PP +.P The .BR gethostbyname () function returns a structure of type @@ -178,7 +178,7 @@ will first be searched for for the file format). The current domain and its parents are searched unless \fIname\fP ends in a dot. -.PP +.P The .BR gethostbyaddr () function returns a structure of type \fIhostent\fP @@ -196,17 +196,17 @@ obtained via a call to .BR inet_addr (3)) for address type .BR AF_INET . -.PP +.P The (obsolete) .BR herror () function prints the error message associated with the current value of \fIh_errno\fP on \fIstderr\fP. -.PP +.P The (obsolete) .BR hstrerror () function takes an error number (typically \fIh_errno\fP) and returns the corresponding message string. -.PP +.P The domain name queries carried out by .BR gethostbyname () and @@ -224,15 +224,15 @@ configured sources, failing that, a local name server The .BR nsswitch.conf (5) file is the modern way of controlling the order of host lookups. -.PP +.P In glibc 2.4 and earlier, the .I order keyword was used to control the order of host lookups as defined in .I /etc/host.conf .RB ( host.conf (5)). -.PP +.P The \fIhostent\fP structure is defined in \fI\fP as follows: -.PP +.P .in +4n .EX struct hostent { @@ -245,7 +245,7 @@ struct hostent { #define h_addr h_addr_list[0] /* for backward compatibility */ .EE .in -.PP +.P The members of the \fIhostent\fP structure are: .TP .I h_name @@ -387,7 +387,7 @@ T{ .BR gethostbyname2_r () T} Thread safety MT-Safe env locale .TE -.sp 1 +.P In the above table, .I hostent in @@ -445,7 +445,7 @@ later calls. Copying the .I struct hostent does not suffice, since it contains pointers; a deep copy is required. -.PP +.P In the original BSD implementation the .I len argument @@ -469,7 +469,7 @@ POSIX.1-2001 makes it which is OK.) See also .BR accept (2). -.PP +.P The BSD prototype for .BR gethostbyaddr () uses @@ -498,7 +498,7 @@ glibc2 also has a that works like .BR gethostbyname (), but permits to specify the address family to which the address must belong. -.PP +.P glibc2 also has reentrant versions .BR gethostent_r (), .BR gethostbyaddr_r (), diff --git a/upstream/opensuse-tumbleweed/man3/gethostid.3 b/upstream/opensuse-tumbleweed/man3/gethostid.3 index 02a97d72..f4ee425b 100644 --- a/upstream/opensuse-tumbleweed/man3/gethostid.3 +++ b/upstream/opensuse-tumbleweed/man3/gethostid.3 @@ -7,7 +7,7 @@ .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" Modified Tue Oct 22 00:22:35 EDT 1996 by Eric S. Raymond -.TH gethostid 3 2023-07-20 "Linux man-pages 6.05.01" +.TH gethostid 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME gethostid, sethostid \- get or set the unique identifier of the current host .SH LIBRARY @@ -16,16 +16,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B long gethostid(void); .BI "int sethostid(long " hostid ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR gethostid (): .nf Since glibc 2.20: @@ -35,7 +35,7 @@ Feature Test Macro Requirements for glibc (see _BSD_SOURCE || _XOPEN_SOURCE >= 500 .\" || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED .fi -.PP +.P .BR sethostid (): .nf Since glibc 2.21: @@ -57,7 +57,7 @@ This normally resembles the Internet address for the local machine, as returned by .BR gethostbyname (3), and thus usually never needs to be set. -.PP +.P The .BR sethostid () call is restricted to the superuser. @@ -65,7 +65,7 @@ call is restricted to the superuser. .BR gethostid () returns the 32-bit identifier for the current host as set by .BR sethostid (). -.PP +.P On success, .BR sethostid () returns 0; on error, \-1 is returned, and @@ -109,7 +109,6 @@ T} Thread safety T{ MT-Unsafe const:hostid T} .TE -.sp 1 .SH VERSIONS In the glibc implementation, the .I hostid @@ -119,7 +118,7 @@ is stored in the file .I /var/adm/hostid was used.) .\" libc5 used /etc/hostid; libc4 didn't have these functions -.PP +.P In the glibc implementation, if .BR gethostid () cannot open the file containing the host ID, diff --git a/upstream/opensuse-tumbleweed/man3/getipnodebyname.3 b/upstream/opensuse-tumbleweed/man3/getipnodebyname.3 index 5babfeb3..c52dfa1c 100644 --- a/upstream/opensuse-tumbleweed/man3/getipnodebyname.3 +++ b/upstream/opensuse-tumbleweed/man3/getipnodebyname.3 @@ -3,7 +3,7 @@ .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" References: RFC 2553 -.TH getipnodebyname 3 2023-03-30 "Linux man-pages 6.05.01" +.TH getipnodebyname 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getipnodebyname, getipnodebyaddr, freehostent \- get network hostnames and addresses @@ -15,7 +15,7 @@ Standard C library .B #include .B #include .B #include -.PP +.P .BI "[[deprecated]] struct hostent *getipnodebyname(const char *" name ", int " af , .BI " int " flags ", int *" error_num ); .BI "[[deprecated]] struct hostent *getipnodebyaddr(const void " addr [. len ], @@ -30,7 +30,7 @@ Use and .BR getnameinfo (3) instead. -.PP +.P The .BR getipnodebyname () and @@ -38,7 +38,7 @@ and functions return the names and addresses of a network host. These functions return a pointer to the following structure: -.PP +.P .in +4n .EX struct hostent { @@ -50,7 +50,7 @@ struct hostent { }; .EE .in -.PP +.P These functions replace the .BR gethostbyname (3) and @@ -61,7 +61,7 @@ The and .BR getipnodebyaddr () functions can access multiple network address families. -.PP +.P Unlike the .B gethostby functions, @@ -95,7 +95,7 @@ The .I name argument points to a hexadecimal IPv6 address or a name of an IPv6 network host. -.PP +.P The .I flags argument specifies additional options. @@ -185,7 +185,7 @@ The domain name server returned a permanent failure response. .B TRY_AGAIN The domain name server returned a temporary failure response. You might have better luck next time. -.PP +.P A successful query returns a pointer to a .I hostent structure that contains the following fields: @@ -242,7 +242,7 @@ None. .SH HISTORY .\" Not in POSIX.1-2001. RFC\ 2553. -.PP +.P Present in glibc 2.1.91-95, but removed again. Several UNIX-like systems support them, but all call them deprecated. diff --git a/upstream/opensuse-tumbleweed/man3/getline.3 b/upstream/opensuse-tumbleweed/man3/getline.3 index 2b9d74a2..fc960f06 100644 --- a/upstream/opensuse-tumbleweed/man3/getline.3 +++ b/upstream/opensuse-tumbleweed/man3/getline.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH getline 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getline 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getline, getdelim \- delimited string input .SH LIBRARY @@ -13,18 +13,18 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "ssize_t getline(char **restrict " lineptr ", size_t *restrict " n , .BI " FILE *restrict " stream ); .BI "ssize_t getdelim(char **restrict " lineptr ", size_t *restrict " n , .BI " int " delim ", FILE *restrict " stream ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getline (), .BR getdelim (): .nf @@ -40,7 +40,7 @@ storing the address of the buffer containing the text into .IR *lineptr . The buffer is null-terminated and includes the newline character, if one was found. -.PP +.P If .I *lineptr is set to NULL before the call, then @@ -50,7 +50,7 @@ This buffer should be freed by the user program even if .BR getline () failed. -.PP +.P Alternatively, before calling .BR getline (), .I *lineptr @@ -68,13 +68,13 @@ updating and .I *n as necessary. -.PP +.P In either case, on a successful call, .I *lineptr and .I *n will be updated to reflect the buffer address and allocated size respectively. -.PP +.P .BR getdelim () works like .BR getline (), @@ -94,13 +94,13 @@ return the number of characters read, including the delimiter character, but not including the terminating null byte (\[aq]\e0\[aq]). This value can be used to handle embedded null bytes in the line read. -.PP +.P Both functions return \-1 on failure to read a line (including end-of-file condition). In the event of a failure, .I errno is set to indicate the error. -.PP +.P If .I *lineptr was set to NULL before the call, then the buffer should be freed by the @@ -133,7 +133,6 @@ T{ .BR getdelim () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/getloadavg.3 b/upstream/opensuse-tumbleweed/man3/getloadavg.3 index 5be1ab96..7f45786f 100644 --- a/upstream/opensuse-tumbleweed/man3/getloadavg.3 +++ b/upstream/opensuse-tumbleweed/man3/getloadavg.3 @@ -8,7 +8,7 @@ .\" .\" 2007-12-08, mtk, Converted from mdoc to man macros .\" -.TH getloadavg 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getloadavg 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getloadavg \- get system load averages .SH LIBRARY @@ -17,15 +17,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int getloadavg(double " loadavg[] ", int " nelem ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getloadavg (): .nf Since glibc 2.19: @@ -61,7 +61,6 @@ T{ .BR getloadavg () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS BSD. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/getlogin.3 b/upstream/opensuse-tumbleweed/man3/getlogin.3 index 5b88d77e..6ac36f8d 100644 --- a/upstream/opensuse-tumbleweed/man3/getlogin.3 +++ b/upstream/opensuse-tumbleweed/man3/getlogin.3 @@ -6,7 +6,7 @@ .\" Changed Tue Sep 19 01:49:29 1995, aeb: moved from man2 to man3 .\" added ref to /etc/utmp, added BUGS section, etc. .\" modified 2003 Walter Harms, aeb - added getlogin_r, note on stdin use -.TH getlogin 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getlogin 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getlogin, getlogin_r, cuserid \- get username .SH LIBRARY @@ -15,26 +15,26 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B "char *getlogin(void);" .BI "int getlogin_r(char " buf [. bufsize "], size_t " bufsize ); -.PP +.P .B #include -.PP +.P .BI "char *cuserid(char *" string ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getlogin_r (): .nf .\" Deprecated: _REENTRANT || _POSIX_C_SOURCE >= 199506L .fi -.PP +.P .BR cuserid (): .nf Since glibc 2.24: @@ -52,13 +52,13 @@ The string is statically allocated and might be overwritten on subsequent calls to this function or to .BR cuserid (). -.PP +.P .BR getlogin_r () returns this same username in the array .I buf of size .IR bufsize . -.PP +.P .BR cuserid () returns a pointer to a string containing a username associated with the effective user ID of the process. @@ -70,18 +70,18 @@ This string is statically allocated and might be overwritten on subsequent calls to this function or to .BR getlogin (). -.PP +.P The macro \fBL_cuserid\fP is an integer constant that indicates how long an array you might need to store a username. \fBL_cuserid\fP is declared in \fI\fP. -.PP +.P These functions let your program identify positively the user who is running .RB ( cuserid ()) or the user who logged in this session .RB ( getlogin ()). (These can differ when set-user-ID programs are involved.) -.PP +.P For most purposes, it is more useful to use the environment variable \fBLOGNAME\fP to find out who the user is. This is more flexible @@ -111,7 +111,7 @@ The calling process has no controlling terminal. The length of the username, including the terminating null byte (\[aq]\e0\[aq]), is larger than .IR bufsize . -.PP +.P Linux/glibc also has: .TP .B ENOENT @@ -169,7 +169,7 @@ T} Thread safety T{ MT-Unsafe race:cuserid/!string locale T} .TE -.sp 1 +.P In the above table, .I utent in @@ -232,7 +232,7 @@ of our program need not be the user who started it. Avoid .BR getlogin () for security-related purposes. -.PP +.P Note that glibc does not follow the POSIX specification and uses .I stdin instead of @@ -242,7 +242,7 @@ A bug. all return the login name also when .I stdin is redirected.) -.PP +.P Nobody knows precisely what .BR cuserid () does; avoid it in portable programs. diff --git a/upstream/opensuse-tumbleweed/man3/getmntent.3 b/upstream/opensuse-tumbleweed/man3/getmntent.3 index 9bfa2964..93d5100a 100644 --- a/upstream/opensuse-tumbleweed/man3/getmntent.3 +++ b/upstream/opensuse-tumbleweed/man3/getmntent.3 @@ -10,7 +10,7 @@ .\" Modified Sat Jul 24 21:46:57 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified 961109, 031115, aeb .\" -.TH getmntent 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getmntent 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getmntent, setmntent, addmntent, endmntent, hasmntopt, getmntent_r \- get filesystem descriptor file entry @@ -21,31 +21,31 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "FILE *setmntent(const char *" filename ", const char *" type ); -.PP +.P .BI "struct mntent *getmntent(FILE *" stream ); -.PP +.P .BI "int addmntent(FILE *restrict " stream , .BI " const struct mntent *restrict " mnt ); -.PP +.P .BI "int endmntent(FILE *" streamp ); -.PP +.P .BI "char *hasmntopt(const struct mntent *" mnt ", const char *" opt ); -.PP +.P /* GNU extension */ .B #include -.PP +.P .BI "struct mntent *getmntent_r(FILE *restrict " streamp , .BI " struct mntent *restrict " mntbuf , .BI " char " buf "[restrict ." buflen "], int " buflen ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getmntent_r (): .nf Since glibc 2.19: @@ -58,7 +58,7 @@ These routines are used to access the filesystem description file .I /etc/fstab and the mounted filesystem description file .IR /etc/mtab . -.PP +.P The .BR setmntent () function opens the filesystem description file @@ -76,7 +76,7 @@ The returned stream should be closed using .BR endmntent () rather than .BR fclose (3). -.PP +.P The .BR getmntent () function reads the next line of the filesystem @@ -88,7 +88,7 @@ The pointer points to a static area of memory which is overwritten by subsequent calls to .BR getmntent (). -.PP +.P The .BR addmntent () function adds the @@ -98,13 +98,13 @@ structure to the end of the open .IR stream . -.PP +.P The .BR endmntent () function closes the .I stream associated with the filesystem description file. -.PP +.P The .BR hasmntopt () function scans the @@ -121,7 +121,7 @@ See and .BR mount (8) for valid mount options. -.PP +.P The reentrant .BR getmntent_r () function is similar to @@ -136,13 +136,13 @@ in the provided array .I buf of size .IR buflen . -.PP +.P The .I mntent structure is defined in .I as follows: -.PP +.P .in +4n .EX struct mntent { @@ -155,7 +155,7 @@ struct mntent { }; .EE .in -.PP +.P Since fields in the mtab and fstab files are separated by whitespace, octal escapes are used to represent the characters space (\e040), tab (\e011), newline (\e012), and backslash (\e\e) in those files @@ -179,15 +179,15 @@ functions return a pointer to the .I mntent structure or NULL on failure. -.PP +.P The .BR addmntent () function returns 0 on success and 1 on failure. -.PP +.P The .BR endmntent () function always returns 1. -.PP +.P The .BR hasmntopt () function returns the address of the substring if @@ -238,7 +238,6 @@ T{ .BR getmntent_r () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS None. .SH HISTORY @@ -248,7 +247,7 @@ A routine was introduced in HP-UX 10, but it returns an .IR int . The prototype shown above is glibc-only. -.PP +.P System V also has a .BR getmntent () function but the calling sequence diff --git a/upstream/opensuse-tumbleweed/man3/getnameinfo.3 b/upstream/opensuse-tumbleweed/man3/getnameinfo.3 index 580a2650..4fb632c9 100644 --- a/upstream/opensuse-tumbleweed/man3/getnameinfo.3 +++ b/upstream/opensuse-tumbleweed/man3/getnameinfo.3 @@ -8,7 +8,7 @@ .\" 2004-12-14, mtk, Added EAI_OVERFLOW error .\" 2004-12-14 Fixed description of error return .\" -.TH getnameinfo 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getnameinfo 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getnameinfo \- address-to-name translation in protocol-independent manner .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "int getnameinfo(const struct sockaddr *restrict " addr \ ", socklen_t " addrlen , .BI " char " host "[_Nullable restrict ." hostlen ], @@ -27,12 +27,12 @@ Standard C library .BI " socklen_t " servlen , .BI " int " flags ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getnameinfo (): .nf Since glibc 2.22: @@ -55,7 +55,7 @@ but unlike those functions, .BR getnameinfo () is reentrant and allows programs to eliminate IPv4-versus-IPv6 dependencies. -.PP +.P The .I addr argument is a pointer to a generic socket address structure @@ -78,7 +78,7 @@ respectively) into which .BR getnameinfo () places null-terminated strings containing the host and service names respectively. -.PP +.P The caller can specify that no hostname (or no service name) is required by providing a NULL .I host @@ -91,7 +91,7 @@ argument or a zero argument. However, at least one of hostname or service name must be requested. -.PP +.P The .I flags argument modifies the behavior of @@ -140,7 +140,9 @@ converted from IDN format to the locale's encoding if necessary. ASCII-only names are not affected by the conversion, which makes this flag usable in existing programs and environments. .TP -.BR NI_IDN_ALLOW_UNASSIGNED ", " NI_IDN_USE_STD3_ASCII_RULES +.B NI_IDN_ALLOW_UNASSIGNED +.TQ +.B NI_IDN_USE_STD3_ASCII_RULES Setting these flags will enable the IDNA_ALLOW_UNASSIGNED (allow unassigned Unicode code points) and IDNA_USE_STD3_ASCII_RULES (check output to make sure it is a STD3 @@ -200,7 +202,7 @@ was too small. A system error occurred. The error code can be found in .IR errno . -.PP +.P The .BR gai_strerror (3) function translates these error codes to a human readable string, @@ -225,14 +227,13 @@ T{ .BR getnameinfo () T} Thread safety MT-Safe env locale .TE -.sp 1 .SH STANDARDS POSIX.1-2008. RFC\ 2553. .SH HISTORY glibc 2.1. POSIX.1-2001. -.PP +.P Before glibc 2.2, the .I hostlen and @@ -244,14 +245,14 @@ In order to assist the programmer in choosing reasonable sizes for the supplied buffers, .I defines the constants -.PP +.P .in +4n .EX #define NI_MAXHOST 1025 #define NI_MAXSERV 32 .EE .in -.PP +.P Since glibc 2.8, these definitions are exposed only if suitable feature test macros are defined, namely: @@ -262,7 +263,7 @@ or (in glibc versions up to and including 2.19) .B _BSD_SOURCE or .BR _SVID_SOURCE . -.PP +.P The former is the constant .B MAXDNAME in recent versions of BIND's @@ -275,7 +276,7 @@ The following code tries to get the numeric hostname and service name, for a given socket address. Note that there is no hardcoded reference to a particular address family. -.PP +.P .in +4n .EX struct sockaddr *addr; /* input */ @@ -287,10 +288,10 @@ if (getnameinfo(addr, addrlen, hbuf, sizeof(hbuf), sbuf, printf("host=%s, serv=%s\en", hbuf, sbuf); .EE .in -.PP +.P The following version checks if the socket address has a reverse address mapping. -.PP +.P .in +4n .EX struct sockaddr *addr; /* input */ @@ -304,7 +305,7 @@ else printf("host=%s\en", hbuf); .EE .in -.PP +.P An example program using .BR getnameinfo () can be found in @@ -324,17 +325,17 @@ can be found in .BR services (5), .BR hostname (7), .BR named (8) -.PP +.P R.\& Gilligan, S.\& Thomson, J.\& Bound and W.\& Stevens, .IR "Basic Socket Interface Extensions for IPv6" , RFC\ 2553, March 1999. -.PP +.P Tatsuya Jinmei and Atsushi Onoe, .IR "An Extension of Format for IPv6 Scoped Addresses" , internet draft, work in progress .UR ftp://ftp.ietf.org\:/internet\-drafts\:/draft\-ietf\-ipngwg\-scopedaddr\-format\-02.txt .UE . -.PP +.P Craig Metz, .IR "Protocol Independence Using the Sockets API" , Proceedings of the freenix track: diff --git a/upstream/opensuse-tumbleweed/man3/getnetent.3 b/upstream/opensuse-tumbleweed/man3/getnetent.3 index 9a584583..80fc8530 100644 --- a/upstream/opensuse-tumbleweed/man3/getnetent.3 +++ b/upstream/opensuse-tumbleweed/man3/getnetent.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 21:48:06 1993 by Rik Faith (faith@cs.unc.edu) -.TH getnetent 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getnetent 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getnetent, getnetbyname, getnetbyaddr, setnetent, endnetent \- get network entry @@ -18,12 +18,12 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B struct netent *getnetent(void); -.PP +.P .BI "struct netent *getnetbyname(const char *" name ); .BI "struct netent *getnetbyaddr(uint32_t " net ", int " type ); -.PP +.P .BI "void setnetent(int " stayopen ); .B void endnetent(void); .fi @@ -36,7 +36,7 @@ and returns a structure containing the broken-out fields from the entry. A connection is opened to the database if necessary. -.PP +.P The .BR getnetbyname () function returns a @@ -45,7 +45,7 @@ structure for the entry from the database that matches the network .IR name . -.PP +.P The .BR getnetbyaddr () function returns a @@ -59,7 +59,7 @@ of type The .I net argument must be in host byte order. -.PP +.P The .BR setnetent () function opens a connection to the database, @@ -71,17 +71,17 @@ then the connection to the database will not be closed between calls to one of the .BR getnet* () functions. -.PP +.P The .BR endnetent () function closes the connection to the database. -.PP +.P The .I netent structure is defined in .I as follows: -.PP +.P .in +4n .EX struct netent { @@ -92,7 +92,7 @@ struct netent { } .EE .in -.PP +.P The members of the .I netent structure are: @@ -174,7 +174,7 @@ MT-Unsafe race:netent env locale T} .TE -.sp 1 +.P In the above table, .I netent in @@ -190,7 +190,7 @@ then data races could occur. POSIX.1-2008. .SH HISTORY POSIX.1-2001, 4.3BSD. -.PP +.P Before glibc 2.2, the .I net argument of diff --git a/upstream/opensuse-tumbleweed/man3/getnetent_r.3 b/upstream/opensuse-tumbleweed/man3/getnetent_r.3 index eda9652d..c7548c27 100644 --- a/upstream/opensuse-tumbleweed/man3/getnetent_r.3 +++ b/upstream/opensuse-tumbleweed/man3/getnetent_r.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH getnetent_r 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getnetent_r 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getnetent_r, getnetbyname_r, getnetbyaddr_r \- get network entry (reentrant) @@ -14,7 +14,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int getnetent_r(struct netent *restrict " result_buf , .BI " char " buf "[restrict ." buflen "], size_t " buflen , .BI " struct netent **restrict " result , @@ -29,13 +29,13 @@ Standard C library .BI " char " buf "[restrict ." buflen "], size_t " buflen , .BI " struct netent **restrict " result , .BI " int *restrict " h_errnop ); -.PP +.P .fi .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getnetent_r (), .BR getnetbyname_r (), .BR getnetbyaddr_r (): @@ -62,13 +62,13 @@ structure is returned, and in the function calling signature and return value. This manual page describes just the differences from the nonreentrant functions. -.PP +.P Instead of returning a pointer to a statically allocated .I netent structure as the function result, these functions copy the structure into the location pointed to by .IR result_buf . -.PP +.P The .I buf array is used to store the string fields pointed to by the returned @@ -85,7 +85,7 @@ and the caller must try again with a larger buffer. (A buffer of length 1024 bytes should be sufficient for most applications.) .\" I can find no information on the required/recommended buffer size; .\" the nonreentrant functions use a 1024 byte buffer -- mtk. -.PP +.P If the function call successfully obtains a network record, then .I *result is set pointing to @@ -93,7 +93,7 @@ is set pointing to otherwise, .I *result is set to NULL. -.PP +.P The buffer pointed to by .I h_errnop is used to return the value that would be stored in the global variable @@ -104,7 +104,7 @@ by the nonreentrant versions of these functions. .SH RETURN VALUE On success, these functions return 0. On error, they return one of the positive error numbers listed in ERRORS. -.PP +.P On error, record not found .RB ( getnetbyname_r (), .BR getnetbyaddr_r ()), @@ -140,7 +140,6 @@ T{ .BR getnetbyaddr_r () T} Thread safety MT-Safe locale .TE -.sp 1 .SH VERSIONS Functions with similar names exist on some other systems, though typically with different calling signatures. diff --git a/upstream/opensuse-tumbleweed/man3/getopt.3 b/upstream/opensuse-tumbleweed/man3/getopt.3 index 88fd167b..828394a5 100644 --- a/upstream/opensuse-tumbleweed/man3/getopt.3 +++ b/upstream/opensuse-tumbleweed/man3/getopt.3 @@ -20,7 +20,7 @@ .\" the start of optstring .\" Modified 2006-12-15, mtk, Added getopt() example program. .\" -.TH getopt 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getopt 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getopt, getopt_long, getopt_long_only, optarg, optind, opterr, optopt \- Parse command-line options @@ -30,15 +30,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int getopt(int " argc ", char *" argv [], .BI " const char *" optstring ); -.PP +.P .BI "extern char *" optarg ; .BI "extern int " optind ", " opterr ", " optopt ; -.PP +.P .B #include -.PP +.P .BI "int getopt_long(int " argc ", char *" argv [], .BI " const char *" optstring , .BI " const struct option *" longopts ", int *" longindex ); @@ -46,17 +46,17 @@ Standard C library .BI " const char *" optstring , .BI " const struct option *" longopts ", int *" longindex ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getopt (): .nf _POSIX_C_SOURCE >= 2 || _XOPEN_SOURCE .fi -.PP +.P .BR getopt_long (), .BR getopt_long_only (): .nf @@ -82,7 +82,7 @@ If .BR getopt () is called repeatedly, it returns successively each of the option characters from each of the option elements. -.PP +.P The variable .I optind is the index of the next element to be processed in @@ -91,7 +91,7 @@ The system initializes this value to 1. The caller can reset it to 1 to restart scanning of the same .IR argv , or when scanning a new argument vector. -.PP +.P If .BR getopt () finds another option character, it returns that @@ -101,13 +101,13 @@ variable \fInextchar\fP so that the next call to can resume the scan with the following option character or \fIargv\fP-element. -.PP +.P If there are no more option characters, .BR getopt () returns \-1. Then \fIoptind\fP is the index in \fIargv\fP of the first \fIargv\fP-element that is not an option. -.PP +.P .I optstring is a string containing the legitimate option characters. A legitimate option character is any visible one byte @@ -139,7 +139,7 @@ is treated as the long option option is reserved by POSIX.2 for implementation extensions.) This behavior is a GNU extension, not available with libraries before glibc 2. -.PP +.P By default, .BR getopt () permutes the contents of \fIargv\fP as it @@ -166,7 +166,7 @@ written to expect options and other \fIargv\fP-elements in any order and that care about the ordering of the two.) The special argument "\-\-" forces an end of option-scanning regardless of the scanning mode. -.PP +.P While processing the option list, .BR getopt () can detect two kinds of errors: @@ -220,14 +220,14 @@ may take a parameter, of the form .B \-\-arg=param or .BR "\-\-arg param" . -.PP +.P .I longopts is a pointer to the first element of an array of .I struct option declared in .I as -.PP +.P .in +4n .EX struct option { @@ -238,7 +238,7 @@ struct option { }; .EE .in -.PP +.P The meanings of the different fields are: .TP .I name @@ -267,13 +267,13 @@ option is found, but left unchanged if the option is not found. \fIval\fP is the value to return, or to load into the variable pointed to by \fIflag\fP. -.PP +.P The last element of the array has to be filled with zeros. -.PP +.P If \fIlongindex\fP is not NULL, it points to a variable which is set to the index of the long option relative to .IR longopts . -.PP +.P .BR getopt_long_only () is like .BR getopt_long (), @@ -301,7 +301,7 @@ then the return value depends on the first character in .IR optstring : if it is \[aq]:\[aq], then \[aq]:\[aq] is returned; otherwise \[aq]?\[aq] is returned. -.PP +.P .BR getopt_long () and .BR getopt_long_only () @@ -347,7 +347,6 @@ T} Thread safety T{ MT-Unsafe race:getopt env T} .TE -.sp 1 .SH VERSIONS POSIX specifies that the .I argv @@ -378,7 +377,7 @@ is a GNU extension. .TP .BR getopt () POSIX.1-2001, and POSIX.2. -.PP +.P On some older implementations, .BR getopt () was declared in @@ -411,7 +410,7 @@ routine that rechecks .B POSIXLY_CORRECT and checks for GNU extensions in .IR optstring .) -.PP +.P Command-line arguments are parsed in strict order meaning that an option requiring an argument will consume the next argument, regardless of whether that argument is the correctly specified option argument @@ -438,7 +437,7 @@ to handle two program options: with no associated value; and .IR "\-t val" , which expects an associated value. -.PP +.P .\" SRC BEGIN (getopt.c) .EX #include @@ -490,7 +489,7 @@ main(int argc, char *argv[]) The following example program illustrates the use of .BR getopt_long () with most of its features. -.PP +.P .\" SRC BEGIN (getopt_long.c) .EX #include diff --git a/upstream/opensuse-tumbleweed/man3/getpass.3 b/upstream/opensuse-tumbleweed/man3/getpass.3 index 359ebd45..6986a831 100644 --- a/upstream/opensuse-tumbleweed/man3/getpass.3 +++ b/upstream/opensuse-tumbleweed/man3/getpass.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH getpass 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getpass 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getpass \- get a password .SH LIBRARY @@ -12,15 +12,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] char *getpass(const char *" prompt ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getpass (): .nf Since glibc 2.2.2: @@ -39,7 +39,7 @@ see the description of the .I ECHO flag in .BR termios (3). -.PP +.P The .BR getpass () function opens @@ -81,7 +81,6 @@ T{ .BR getpass () T} Thread safety MT-Unsafe term .TE -.sp 1 .SH STANDARDS None. .SH HISTORY @@ -113,7 +112,7 @@ You should use instead .BR readpassphrase (3bsd), provided by .IR libbsd . -.PP +.P In the GNU C library implementation, if .I /dev/tty cannot be opened, the prompt is written to @@ -122,7 +121,7 @@ and the password is read from .IR stdin . There is no limit on the length of the password. Line editing is not disabled. -.PP +.P According to SUSv2, the value of .B PASS_MAX must be defined in diff --git a/upstream/opensuse-tumbleweed/man3/getprotoent.3 b/upstream/opensuse-tumbleweed/man3/getprotoent.3 index 8aad2d3c..10522996 100644 --- a/upstream/opensuse-tumbleweed/man3/getprotoent.3 +++ b/upstream/opensuse-tumbleweed/man3/getprotoent.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 19:26:03 1993 by Rik Faith (faith@cs.unc.edu) -.TH getprotoent 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getprotoent 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getprotoent, getprotobyname, getprotobynumber, setprotoent, endprotoent \- get protocol entry @@ -18,12 +18,12 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B struct protoent *getprotoent(void); -.PP +.P .BI "struct protoent *getprotobyname(const char *" name ); .BI "struct protoent *getprotobynumber(int " proto ); -.PP +.P .BI "void setprotoent(int " stayopen ); .B void endprotoent(void); .fi @@ -37,7 +37,7 @@ and returns a structure containing the broken-out fields from the entry. A connection is opened to the database if necessary. -.PP +.P The .BR getprotobyname () function returns a @@ -47,7 +47,7 @@ for the entry from the database that matches the protocol name .IR name . A connection is opened to the database if necessary. -.PP +.P The .BR getprotobynumber () function returns a @@ -57,7 +57,7 @@ for the entry from the database that matches the protocol number .IR number . A connection is opened to the database if necessary. -.PP +.P The .BR setprotoent () function opens a connection to the database, @@ -69,17 +69,17 @@ then the connection to the database will not be closed between calls to one of the .BR getproto* () functions. -.PP +.P The .BR endprotoent () function closes the connection to the database. -.PP +.P The .I protoent structure is defined in .I as follows: -.PP +.P .in +4n .EX struct protoent { @@ -89,7 +89,7 @@ struct protoent { } .EE .in -.PP +.P The members of the .I protoent structure are: @@ -169,7 +169,7 @@ MT-Unsafe race:protoent locale T} .TE -.sp 1 +.P In the above table, .I protoent in diff --git a/upstream/opensuse-tumbleweed/man3/getprotoent_r.3 b/upstream/opensuse-tumbleweed/man3/getprotoent_r.3 index 5028e4f6..ac2f160a 100644 --- a/upstream/opensuse-tumbleweed/man3/getprotoent_r.3 +++ b/upstream/opensuse-tumbleweed/man3/getprotoent_r.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH getprotoent_r 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getprotoent_r 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getprotoent_r, getprotobyname_r, getprotobynumber_r \- get protocol entry (reentrant) @@ -14,7 +14,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int getprotoent_r(struct protoent *restrict " result_buf , .BI " char " buf "[restrict ." buflen "], size_t " buflen , .BI " struct protoent **restrict " result ); @@ -26,13 +26,13 @@ Standard C library .BI " struct protoent *restrict " result_buf , .BI " char " buf "[restrict ." buflen "], size_t " buflen , .BI " struct protoent **restrict " result ); -.PP +.P .fi .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getprotoent_r (), .BR getprotobyname_r (), .BR getprotobynumber_r (): @@ -59,13 +59,13 @@ structure is returned, and in the function calling signature and return value. This manual page describes just the differences from the nonreentrant functions. -.PP +.P Instead of returning a pointer to a statically allocated .I protoent structure as the function result, these functions copy the structure into the location pointed to by .IR result_buf . -.PP +.P The .I buf array is used to store the string fields pointed to by the returned @@ -83,7 +83,7 @@ and the caller must try again with a larger buffer. .\" I can find no information on the required/recommended buffer size; .\" the nonreentrant functions use a 1024 byte buffer. .\" The 1024 byte value is also what the Solaris man page suggests. -- mtk -.PP +.P If the function call successfully obtains a protocol record, then .I *result is set pointing to @@ -94,7 +94,7 @@ is set to NULL. .SH RETURN VALUE On success, these functions return 0. On error, they return one of the positive error numbers listed in ERRORS. -.PP +.P On error, record not found .RB ( getprotobyname_r (), .BR getprotobynumber_r ()), @@ -130,7 +130,6 @@ T{ .BR getprotobynumber_r () T} Thread safety MT-Safe locale .TE -.sp 1 .SH VERSIONS Functions with similar names exist on some other systems, though typically with different calling signatures. @@ -150,7 +149,7 @@ fails with the error .BR ERANGE , the program retries with larger buffer sizes. The following shell session shows a couple of sample runs: -.PP +.P .in +4n .EX .RB "$" " ./a.out tcp 1" diff --git a/upstream/opensuse-tumbleweed/man3/getpt.3 b/upstream/opensuse-tumbleweed/man3/getpt.3 index 6434f902..8b2064f7 100644 --- a/upstream/opensuse-tumbleweed/man3/getpt.3 +++ b/upstream/opensuse-tumbleweed/man3/getpt.3 @@ -5,7 +5,7 @@ .\" Redistribute and modify at will. .\" %%%LICENSE_END .\" -.TH getpt 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getpt 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getpt \- open a new pseudoterminal master .SH LIBRARY @@ -15,7 +15,7 @@ Standard C library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .B "int getpt(void);" .fi .SH DESCRIPTION @@ -23,13 +23,13 @@ Standard C library opens a new pseudoterminal device and returns a file descriptor that refers to that device. It is equivalent to opening the pseudoterminal multiplexor device -.PP +.P .in +4n .EX open("/dev/ptmx", O_RDWR); .EE .in -.PP +.P on Linux systems, though the pseudoterminal multiplexor device is located elsewhere on some systems that use the GNU C library. .SH RETURN VALUE @@ -57,7 +57,6 @@ T{ .BR getpt () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS Use .BR posix_openpt (3) diff --git a/upstream/opensuse-tumbleweed/man3/getpw.3 b/upstream/opensuse-tumbleweed/man3/getpw.3 index b94e1179..39e8483e 100644 --- a/upstream/opensuse-tumbleweed/man3/getpw.3 +++ b/upstream/opensuse-tumbleweed/man3/getpw.3 @@ -10,7 +10,7 @@ .\" Modified Sat Jul 24 19:23:25 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified Mon May 27 21:37:47 1996 by Martin Schulze (joey@linux.de) .\" -.TH getpw 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getpw 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getpw \- reconstruct password line entry .SH LIBRARY @@ -21,7 +21,7 @@ Standard C library .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .B #include -.PP +.P .BI "[[deprecated]] int getpw(uid_t " uid ", char *" buf ); .fi .SH DESCRIPTION @@ -30,15 +30,15 @@ The function reconstructs the password line entry for the given user ID \fIuid\fP in the buffer \fIbuf\fP. The returned buffer contains a line of format -.PP +.P .in +4n .EX .B name:passwd:uid:gid:gecos:dir:shell .EE .in -.PP +.P The \fIpasswd\fP structure is defined in \fI\fP as follows: -.PP +.P .in +4n .EX struct passwd { @@ -52,7 +52,7 @@ struct passwd { }; .EE .in -.PP +.P For more information about the fields of this structure, see .BR passwd (5). .SH RETURN VALUE @@ -61,7 +61,7 @@ The function returns 0 on success; on error, it returns \-1, and .I errno is set to indicate the error. -.PP +.P If .I uid is not found in the password database, @@ -103,7 +103,6 @@ T{ .BR getpw () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS None. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/getpwent.3 b/upstream/opensuse-tumbleweed/man3/getpwent.3 index c46af201..6b3ef039 100644 --- a/upstream/opensuse-tumbleweed/man3/getpwent.3 +++ b/upstream/opensuse-tumbleweed/man3/getpwent.3 @@ -11,7 +11,7 @@ .\" Modified Sat Jul 24 19:22:14 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified Mon May 27 21:37:47 1996 by Martin Schulze (joey@linux.de) .\" -.TH getpwent 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getpwent 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getpwent, setpwent, endpwent \- get password file entry .SH LIBRARY @@ -21,17 +21,17 @@ Standard C library .nf .B #include .B #include -.PP +.P .B struct passwd *getpwent(void); .B void setpwent(void); .B void endpwent(void); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getpwent (), .BR setpwent (), .BR endpwent (): @@ -53,19 +53,19 @@ The first time .BR getpwent () is called, it returns the first entry; thereafter, it returns successive entries. -.PP +.P The .BR setpwent () function rewinds to the beginning of the password database. -.PP +.P The .BR endpwent () function is used to close the password database after all processing has been performed. -.PP +.P The \fIpasswd\fP structure is defined in \fI\fP as follows: -.PP +.P .in +4n .EX struct passwd { @@ -79,7 +79,7 @@ struct passwd { }; .EE .in -.PP +.P For more information about the fields of this structure, see .BR passwd (5). .SH RETURN VALUE @@ -95,7 +95,7 @@ is set to indicate the error. If one wants to check .I errno after the call, it should be set to zero before the call. -.PP +.P The return value may point to a static area, and may be overwritten by subsequent calls to .BR getpwent (), @@ -161,7 +161,7 @@ T} Thread safety T{ MT-Unsafe race:pwent locale T} .TE -.sp 1 +.P In the above table, .I pwent in diff --git a/upstream/opensuse-tumbleweed/man3/getpwent_r.3 b/upstream/opensuse-tumbleweed/man3/getpwent_r.3 index 1cefc579..60f1414b 100644 --- a/upstream/opensuse-tumbleweed/man3/getpwent_r.3 +++ b/upstream/opensuse-tumbleweed/man3/getpwent_r.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH getpwent_r 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getpwent_r 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getpwent_r, fgetpwent_r \- get passwd file entry reentrantly .SH LIBRARY @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int getpwent_r(struct passwd *restrict " pwbuf , .BI " char " buf "[restrict ." buflen "], size_t " buflen , .BI " struct passwd **restrict " pwbufp ); @@ -21,12 +21,12 @@ Standard C library .BI " char " buf "[restrict ." buflen "], size_t " buflen , .BI " struct passwd **restrict " pwbufp ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getpwent_r (), .nf Since glibc 2.19: @@ -34,7 +34,7 @@ Feature Test Macro Requirements for glibc (see glibc 2.19 and earlier: _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR fgetpwent_r (): .nf Since glibc 2.19: @@ -55,11 +55,11 @@ The former reads the next passwd entry from the stream initialized by .BR setpwent (3). The latter reads the next passwd entry from .IR stream . -.PP +.P The \fIpasswd\fP structure is defined in .I as follows: -.PP +.P .in +4n .EX struct passwd { @@ -73,10 +73,10 @@ struct passwd { }; .EE .in -.PP +.P For more information about the fields of this structure, see .BR passwd (5). -.PP +.P The nonreentrant functions return a pointer to static storage, where this static storage contains further pointers to user name, password, gecos field, home directory and shell. @@ -133,7 +133,7 @@ T{ .BR fgetpwent_r () T} Thread safety MT-Safe .TE -.sp 1 +.P In the above table, .I pwent in @@ -148,16 +148,16 @@ are used in parallel in different threads of a program, then data races could occur. .SH VERSIONS Other systems use the prototype -.PP +.P .in +4n .EX struct passwd * getpwent_r(struct passwd *pwd, char *buf, int buflen); .EE .in -.PP +.P or, better, -.PP +.P .in +4n .EX int diff --git a/upstream/opensuse-tumbleweed/man3/getpwnam.3 b/upstream/opensuse-tumbleweed/man3/getpwnam.3 index 3e6af831..3547ca51 100644 --- a/upstream/opensuse-tumbleweed/man3/getpwnam.3 +++ b/upstream/opensuse-tumbleweed/man3/getpwnam.3 @@ -15,7 +15,7 @@ .\" Modified 2003-11-15 by aeb .\" 2008-11-07, mtk, Added an example program for getpwnam_r(). .\" -.TH getpwnam 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getpwnam 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getpwnam, getpwnam_r, getpwuid, getpwuid_r \- get password file entry .SH LIBRARY @@ -25,10 +25,10 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "struct passwd *getpwnam(const char *" name ); .BI "struct passwd *getpwuid(uid_t " uid ); -.PP +.P .BI "int getpwnam_r(const char *restrict " name ", \ struct passwd *restrict " pwd , .BI " char " buf "[restrict ." buflen "], size_t " buflen , @@ -37,12 +37,12 @@ struct passwd *restrict " pwd , .BI " char " buf "[restrict ." buflen "], size_t " buflen , .BI " struct passwd **restrict " result ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getpwnam_r (), .BR getpwuid_r (): .nf @@ -59,16 +59,16 @@ the broken-out fields of the record in the password database NIS, and LDAP) that matches the username .IR name . -.PP +.P The .BR getpwuid () function returns a pointer to a structure containing the broken-out fields of the record in the password database that matches the user ID .IR uid . -.PP +.P The \fIpasswd\fP structure is defined in \fI\fP as follows: -.PP +.P .in +4n .EX struct passwd { @@ -82,11 +82,11 @@ struct passwd { }; .EE .in -.PP +.P See .BR passwd (5) for more information about these fields. -.PP +.P The .BR getpwnam_r () and @@ -108,15 +108,15 @@ of size A pointer to the result (in case of success) or NULL (in case no entry was found or an error occurred) is stored in .IR *result . -.PP +.P The call -.PP +.P .in +4n .EX sysconf(_SC_GETPW_R_SIZE_MAX) .EE .in -.PP +.P returns either \-1, without changing .IR errno , or an initial suggested size for @@ -140,7 +140,7 @@ is set to indicate the error. If one wants to check .I errno after the call, it should be set to zero before the call. -.PP +.P The return value may point to a static area, and may be overwritten by subsequent calls to .BR getpwent (3), @@ -149,7 +149,7 @@ or .BR getpwuid (). (Do not pass the returned pointer to .BR free (3).) -.PP +.P On success, .BR getpwnam_r () and @@ -235,7 +235,6 @@ T} Thread safety T{ MT-Safe locale T} .TE -.sp 1 .SH VERSIONS The .I pw_gecos @@ -265,7 +264,7 @@ situation: 0, ENOENT, EBADF, ESRCH, EWOULDBLOCK, EPERM, and probably others. .\" FreeBSD 4.8, OpenBSD 3.2, NetBSD 1.6 - give EPERM .\" SunOS 5.8 - gives EBADF .\" Tru64 5.1b, HP-UX-11i, SunOS 5.7 - give 0 -.PP +.P The .I pw_dir field contains the name of the initial working directory of the user. @@ -288,7 +287,7 @@ The program below demonstrates the use of .BR getpwnam_r () to find the full username and user ID for the username supplied as a command-line argument. -.PP +.P .\" SRC BEGIN (getpwnam.c) .EX #include diff --git a/upstream/opensuse-tumbleweed/man3/getrpcent.3 b/upstream/opensuse-tumbleweed/man3/getrpcent.3 index be94a0e0..e1c2f9e3 100644 --- a/upstream/opensuse-tumbleweed/man3/getrpcent.3 +++ b/upstream/opensuse-tumbleweed/man3/getrpcent.3 @@ -6,7 +6,7 @@ .\" %%%LICENSE_END .\" .\" @(#)getrpcent.3n 2.2 88/08/02 4.0 RPCSRC; from 1.11 88/03/14 SMI -.TH getrpcent 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getrpcent 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getrpcent, getrpcbyname, getrpcbynumber, setrpcent, endrpcent \- get RPC entry @@ -16,12 +16,12 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B struct rpcent *getrpcent(void); -.PP +.P .BI "struct rpcent *getrpcbyname(const char *" name ); .BI "struct rpcent *getrpcbynumber(int " number ); -.PP +.P .BI "void setrpcent(int " stayopen ); .B void endrpcent(void); .fi @@ -34,7 +34,7 @@ and functions each return a pointer to an object with the following structure containing the broken-out fields of an entry in the RPC program number data base. -.PP +.P .in +4n .EX struct rpcent { @@ -44,7 +44,7 @@ struct rpcent { }; .EE .in -.PP +.P The members of this structure are: .TP .I r_name @@ -55,12 +55,12 @@ A NULL-terminated list of alternate names for the RPC program. .TP .I r_number The RPC program number for this service. -.PP +.P The .BR getrpcent () function reads the next entry from the database. A connection is opened to the database if necessary. -.PP +.P The .BR setrpcent () function opens a connection to the database, @@ -72,11 +72,11 @@ then the connection to the database will not be closed between calls to one of the .BR getrpc* () functions. -.PP +.P The .BR endrpcent () function closes the connection to the database. -.PP +.P The .BR getrpcbyname () and @@ -120,7 +120,6 @@ T{ .BR endrpcent () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS BSD. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/getrpcent_r.3 b/upstream/opensuse-tumbleweed/man3/getrpcent_r.3 index fd58a9f0..aa20597d 100644 --- a/upstream/opensuse-tumbleweed/man3/getrpcent_r.3 +++ b/upstream/opensuse-tumbleweed/man3/getrpcent_r.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH getrpcent_r 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getrpcent_r 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getrpcent_r, getrpcbyname_r, getrpcbynumber_r \- get RPC entry (reentrant) @@ -14,7 +14,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int getrpcent_r(struct rpcent *" result_buf ", char " buf [. buflen ], .BI " size_t " buflen ", struct rpcent **" result ); .BI "int getrpcbyname_r(const char *" name , @@ -23,13 +23,13 @@ Standard C library .BI "int getrpcbynumber_r(int " number , .BI " struct rpcent *" result_buf ", char " buf [. buflen ], .BI " size_t " buflen ", struct rpcent **" result ); -.PP +.P .fi .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getrpcent_r (), .BR getrpcbyname_r (), .BR getrpcbynumber_r (): @@ -56,13 +56,13 @@ structure is returned, and in the function calling signature and return value. This manual page describes just the differences from the nonreentrant functions. -.PP +.P Instead of returning a pointer to a statically allocated .I rpcent structure as the function result, these functions copy the structure into the location pointed to by .IR result_buf . -.PP +.P The .I buf array is used to store the string fields pointed to by the returned @@ -79,7 +79,7 @@ and the caller must try again with a larger buffer. (A buffer of length 1024 bytes should be sufficient for most applications.) .\" I can find no information on the required/recommended buffer size; .\" the nonreentrant functions use a 1024 byte buffer -- mtk. -.PP +.P If the function call successfully obtains an RPC record, then .I *result is set pointing to @@ -90,7 +90,7 @@ is set to NULL. .SH RETURN VALUE On success, these functions return 0. On error, they return one of the positive error numbers listed in ERRORS. -.PP +.P On error, record not found .RB ( getrpcbyname_r (), .BR getrpcbynumber_r ()), @@ -126,7 +126,6 @@ T{ .BR getrpcbynumber_r () T} Thread safety MT-Safe locale .TE -.sp 1 .SH VERSIONS Functions with similar names exist on some other systems, though typically with different calling signatures. diff --git a/upstream/opensuse-tumbleweed/man3/getrpcport.3 b/upstream/opensuse-tumbleweed/man3/getrpcport.3 index 56b6188b..23b1171a 100644 --- a/upstream/opensuse-tumbleweed/man3/getrpcport.3 +++ b/upstream/opensuse-tumbleweed/man3/getrpcport.3 @@ -6,7 +6,7 @@ .\" %%%LICENSE_END .\" .\" @(#)getrpcport.3r 2.2 88/08/02 4.0 RPCSRC; from 1.12 88/02/26 SMI -.TH getrpcport 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getrpcport 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getrpcport \- get RPC port number .SH LIBRARY @@ -15,7 +15,7 @@ Standard C library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "int getrpcport(const char *" host ", unsigned long " prognum , .BI " unsigned long " versnum ", unsigned int " proto ); .fi @@ -53,7 +53,6 @@ T{ .BR getrpcport () T} Thread safety MT-Safe env locale .TE -.sp 1 .SH STANDARDS BSD. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/gets.3 b/upstream/opensuse-tumbleweed/man3/gets.3 index 9bf383ae..371829b0 100644 --- a/upstream/opensuse-tumbleweed/man3/gets.3 +++ b/upstream/opensuse-tumbleweed/man3/gets.3 @@ -7,7 +7,7 @@ .\" Modified Fri Sep 8 15:48:13 1995 by Andries Brouwer (aeb@cwi.nl) .\" Modified 2013-12-31, David Malcolm .\" Split gets(3) into its own page; fgetc() et al. move to fgetc(3) -.TH gets 3 2023-07-20 "Linux man-pages 6.05.01" +.TH gets 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME gets \- get a string from standard input (DEPRECATED) .SH LIBRARY @@ -16,12 +16,12 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] char *gets(char *" "s" ); .fi .SH DESCRIPTION .IR "Never use this function" . -.PP +.P .BR gets () reads a line from .I stdin @@ -53,12 +53,11 @@ T{ .BR gets () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY C89, POSIX.1-2001. -.PP +.P LSB deprecates .BR gets (). POSIX.1-2008 marks @@ -84,7 +83,7 @@ It has been used to break computer security. Use .BR fgets () instead. -.PP +.P For more information, see CWE-242 (aka "Use of Inherently Dangerous Function") at http://cwe.mitre.org/data/definitions/242.html diff --git a/upstream/opensuse-tumbleweed/man3/getservent.3 b/upstream/opensuse-tumbleweed/man3/getservent.3 index fdd5d91c..b3c4b269 100644 --- a/upstream/opensuse-tumbleweed/man3/getservent.3 +++ b/upstream/opensuse-tumbleweed/man3/getservent.3 @@ -12,7 +12,7 @@ .\" Modified Mon Apr 22 01:50:54 1996 by Martin Schulze .\" 2001-07-25 added a clause about NULL proto (Martin Michlmayr or David N. Welton) .\" -.TH getservent 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getservent 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getservent, getservbyname, getservbyport, setservent, endservent \- get service entry @@ -22,12 +22,12 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B struct servent *getservent(void); -.PP +.P .BI "struct servent *getservbyname(const char *" name ", const char *" proto ); .BI "struct servent *getservbyport(int " port ", const char *" proto ); -.PP +.P .BI "void setservent(int " stayopen ); .B void endservent(void); .fi @@ -41,7 +41,7 @@ and returns a structure containing the broken-out fields from the entry. A connection is opened to the database if necessary. -.PP +.P The .BR getservbyname () function returns a @@ -56,7 +56,7 @@ If .I proto is NULL, any protocol will be matched. A connection is opened to the database if necessary. -.PP +.P The .BR getservbyport () function returns a @@ -72,7 +72,7 @@ If .I proto is NULL, any protocol will be matched. A connection is opened to the database if necessary. -.PP +.P The .BR setservent () function opens a connection to the database, @@ -84,17 +84,17 @@ then the connection to the database will not be closed between calls to one of the .BR getserv* () functions. -.PP +.P The .BR endservent () function closes the connection to the database. -.PP +.P The .I servent structure is defined in .I as follows: -.PP +.P .in +4n .EX struct servent { @@ -105,7 +105,7 @@ struct servent { } .EE .in -.PP +.P The members of the .I servent structure are: @@ -186,7 +186,7 @@ MT-Unsafe race:servent locale T} .TE -.sp 1 +.P In the above table, .I servent in diff --git a/upstream/opensuse-tumbleweed/man3/getservent_r.3 b/upstream/opensuse-tumbleweed/man3/getservent_r.3 index 04397ee8..e2fe2004 100644 --- a/upstream/opensuse-tumbleweed/man3/getservent_r.3 +++ b/upstream/opensuse-tumbleweed/man3/getservent_r.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH getservent_r 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getservent_r 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getservent_r, getservbyname_r, getservbyport_r \- get service entry (reentrant) @@ -14,7 +14,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int getservent_r(struct servent *restrict " result_buf , .BI " char " buf "[restrict ." buflen "], size_t " buflen , .BI " struct servent **restrict " result ); @@ -28,13 +28,13 @@ Standard C library .BI " struct servent *restrict " result_buf , .BI " char " buf "[restrict ." buflen "], size_t " buflen , .BI " struct servent **restrict " result ); -.PP +.P .fi .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getservent_r (), .BR getservbyname_r (), .BR getservbyport_r (): @@ -61,13 +61,13 @@ structure is returned, and in the function calling signature and return value. This manual page describes just the differences from the nonreentrant functions. -.PP +.P Instead of returning a pointer to a statically allocated .I servent structure as the function result, these functions copy the structure into the location pointed to by .IR result_buf . -.PP +.P The .I buf array is used to store the string fields pointed to by the returned @@ -84,7 +84,7 @@ and the caller must try again with a larger buffer. (A buffer of length 1024 bytes should be sufficient for most applications.) .\" I can find no information on the required/recommended buffer size; .\" the nonreentrant functions use a 1024 byte buffer -- mtk. -.PP +.P If the function call successfully obtains a service record, then .I *result is set pointing to @@ -95,7 +95,7 @@ is set to NULL. .SH RETURN VALUE On success, these functions return 0. On error, they return one of the positive error numbers listed in errors. -.PP +.P On error, record not found .RB ( getservbyname_r (), .BR getservbyport_r ()), @@ -131,7 +131,6 @@ T{ .BR getservbyport_r () T} Thread safety MT-Safe locale .TE -.sp 1 .SH VERSIONS Functions with similar names exist on some other systems, though typically with different calling signatures. @@ -151,7 +150,7 @@ fails with the error .BR ERANGE , the program retries with larger buffer sizes. The following shell session shows a couple of sample runs: -.PP +.P .in +4n .EX .RB "$" " ./a.out 7 tcp 1" diff --git a/upstream/opensuse-tumbleweed/man3/getspnam.3 b/upstream/opensuse-tumbleweed/man3/getspnam.3 index f0752cb6..03fca91f 100644 --- a/upstream/opensuse-tumbleweed/man3/getspnam.3 +++ b/upstream/opensuse-tumbleweed/man3/getspnam.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH getspnam 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getspnam 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getspnam, getspnam_r, getspent, getspent_r, setspent, endspent, fgetspent, fgetspent_r, sgetspent, sgetspent_r, putspent, @@ -16,31 +16,31 @@ Standard C library .nf /* General shadow password file API */ .B #include -.PP +.P .BI "struct spwd *getspnam(const char *" name ); .B struct spwd *getspent(void); -.PP +.P .B void setspent(void); .B void endspent(void); -.PP +.P .BI "struct spwd *fgetspent(FILE *" stream ); .BI "struct spwd *sgetspent(const char *" s ); -.PP +.P .BI "int putspent(const struct spwd *" p ", FILE *" stream ); -.PP +.P .B int lckpwdf(void); .B int ulckpwdf(void); -.PP +.P /* GNU extension */ .B #include -.PP +.P .BI "int getspent_r(struct spwd *" spbuf , .BI " char " buf [. buflen "], size_t " buflen ", \ struct spwd **" spbufp ); .BI "int getspnam_r(const char *" name ", struct spwd *" spbuf , .BI " char " buf [. buflen "], size_t " buflen ", \ struct spwd **" spbufp ); -.PP +.P .BI "int fgetspent_r(FILE *" stream ", struct spwd *" spbuf , .BI " char " buf [. buflen "], size_t " buflen ", \ struct spwd **" spbufp ); @@ -48,12 +48,12 @@ struct spwd **" spbufp ); .BI " char " buf [. buflen "], size_t " buflen ", \ struct spwd **" spbufp ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getspent_r (), .BR getspnam_r (), .BR fgetspent_r (), @@ -76,7 +76,7 @@ the shadow password database .IR /etc/shadow , NIS, and LDAP), readable only by root. -.PP +.P The functions described below resemble those for the traditional password database (e.g., see @@ -93,14 +93,14 @@ and .\" (pluggable authentication modules), and the file .\" .I /etc/nsswitch.conf .\" now describes the sources to be used. -.PP +.P The .BR getspnam () function returns a pointer to a structure containing the broken-out fields of the record in the shadow password database that matches the username .IR name . -.PP +.P The .BR getspent () function returns a pointer to the next entry in the shadow password @@ -112,21 +112,21 @@ When done reading, the program may call so that resources can be deallocated. .\" some systems require a call of setspent() before the first getspent() .\" glibc does not -.PP +.P The .BR fgetspent () function is similar to .BR getspent () but uses the supplied stream instead of the one implicitly opened by .BR setspent (). -.PP +.P The .BR sgetspent () function parses the supplied string .I s into a struct .IR spwd . -.PP +.P The .BR putspent () function writes the contents of the supplied struct @@ -136,7 +136,7 @@ as a text line in the shadow password file format to .IR stream . String entries with value NULL and numerical entries with value \-1 are written as an empty string. -.PP +.P The .BR lckpwdf () function is intended to protect against multiple simultaneous accesses @@ -151,7 +151,7 @@ password file. Only programs that use .BR lckpwdf () will notice the lock. -.PP +.P These were the functions that formed the original shadow API. They are widely available. .\" Also in libc5 @@ -173,20 +173,20 @@ of size A pointer to the result (in case of success) or NULL (in case no entry was found or an error occurred) is stored in .IR *spbufp . -.PP +.P The functions .BR getspent_r (), .BR fgetspent_r (), and .BR sgetspent_r () are similarly analogous to their nonreentrant counterparts. -.PP +.P Some non-glibc systems also have functions with these names, often with different prototypes. .\" SUN doesn't have sgetspent_r() .SS Structure The shadow password structure is defined in \fI\fP as follows: -.PP +.P .in +4n .EX struct spwd { @@ -215,10 +215,10 @@ The functions which have \fIint\fP as the return value return 0 for success and \-1 for failure, with .I errno set to indicate the error. -.PP +.P For the nonreentrant functions, the return value may point to static area, and may be overwritten by subsequent calls to these functions. -.PP +.P The reentrant functions return zero on success. In case of error, an error number is returned. .SH ERRORS @@ -235,7 +235,7 @@ local shadow password database file .TP .I /etc/.pwd.lock lock file -.PP +.P The include file .I defines the constant @@ -320,7 +320,7 @@ T} Thread safety T{ MT-Safe T} .TE -.sp 1 +.P In the above table, .I getspent in diff --git a/upstream/opensuse-tumbleweed/man3/getstr.3ncurses b/upstream/opensuse-tumbleweed/man3/getstr.3ncurses index c67a55c9..1cd38af1 100644 --- a/upstream/opensuse-tumbleweed/man3/getstr.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/getstr.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_getstr.3x,v 1.52 2023/12/16 20:32:22 tom Exp $ -.TH getstr 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: curs_getstr.3x,v 1.58 2024/04/20 19:18:18 tom Exp $ +.TH getstr 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -149,9 +149,11 @@ This implementation provides an extension as well. If a \fBSIGWINCH\fP interrupts the function, it will return \fBKEY_RESIZE\fP rather than \fBOK\fP or \fBERR\fP. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES Any of these functions other than \fBwgetnstr\fP @@ -288,6 +290,11 @@ Starting in 2021 rather than \fBnoraw\fP and \fBcbreak\fP for better compatibility with SVr4-curses, e.g., allowing one to enter a \fB^C\fP into the buffer. .SH SEE ALSO +\fB\%get_wstr\fP(3NCURSES) describes comparable functions of the +.I \%ncurses +library in its wide-character configuration +.RI ( \%ncursesw ). +.PP \fB\%ncurses\fP(3NCURSES), \fB\%getch\fP(3NCURSES), \fB\%termattrs\fP(3NCURSES), diff --git a/upstream/opensuse-tumbleweed/man3/getsubopt.3 b/upstream/opensuse-tumbleweed/man3/getsubopt.3 index 8cbccb04..99bb4dd0 100644 --- a/upstream/opensuse-tumbleweed/man3/getsubopt.3 +++ b/upstream/opensuse-tumbleweed/man3/getsubopt.3 @@ -23,7 +23,7 @@ .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. .\" %%%LICENSE_END .\" -.TH getsubopt 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getsubopt 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getsubopt \- parse suboption arguments from a string .SH LIBRARY @@ -32,16 +32,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int getsubopt(char **restrict " optionp ", char *const *restrict " tokens , .BI " char **restrict " valuep ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getsubopt (): .nf _XOPEN_SOURCE >= 500 @@ -62,13 +62,13 @@ which is separated from the suboption name by an equal sign. The following is an example of the kind of string that might be passed in .IR optionp : -.PP +.P .in +4n .EX .B ro,name=xyz .EE .in -.PP +.P The .I tokens argument is a pointer to a NULL-terminated array of pointers to the tokens that @@ -77,7 +77,7 @@ will look for in .IR optionp . The tokens should be distinct, null-terminated strings containing at least one character, with no embedded equal signs or commas. -.PP +.P Each call to .BR getsubopt () returns information about the next unprocessed suboption in @@ -98,11 +98,11 @@ The first comma in is overwritten with a null byte, so .I *valuep is precisely the "value string" for that suboption. -.PP +.P If the suboption is recognized, but no value string was found, .I *valuep is set to NULL. -.PP +.P When .BR getsubopt () returns, @@ -122,7 +122,7 @@ Otherwise, \-1 is returned and is the entire .IB name [= value ] string. -.PP +.P Since .I *optionp is changed, the first suboption before the call to @@ -143,7 +143,6 @@ T{ .BR getsubopt () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -156,7 +155,7 @@ overwrites any commas it finds in the string that string must be writable; it cannot be a string constant. .SH EXAMPLES The following program expects suboptions following a "\-o" option. -.PP +.P .\" SRC BEGIN (getsubopt.c) .EX #define _XOPEN_SOURCE 500 diff --git a/upstream/opensuse-tumbleweed/man3/gettext.3 b/upstream/opensuse-tumbleweed/man3/gettext.3 index c033f3b4..968ab72f 100644 --- a/upstream/opensuse-tumbleweed/man3/gettext.3 +++ b/upstream/opensuse-tumbleweed/man3/gettext.3 @@ -10,7 +10,7 @@ .\" GNU gettext source code and manual .\" LI18NUX 2000 Globalization Specification .\" -.TH GETTEXT 3 "May 2001" "GNU gettext 20220912" +.TH GETTEXT 3 "May 2001" "GNU gettext 0.22.5" .SH NAME gettext, dgettext, dcgettext \- translate message .SH SYNOPSIS diff --git a/upstream/opensuse-tumbleweed/man3/getttyent.3 b/upstream/opensuse-tumbleweed/man3/getttyent.3 index 81c4c4c4..b8869cbc 100644 --- a/upstream/opensuse-tumbleweed/man3/getttyent.3 +++ b/upstream/opensuse-tumbleweed/man3/getttyent.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH getttyent 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getttyent 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getttyent, getttynam, setttyent, endttyent \- get ttys file entry .SH LIBRARY @@ -12,10 +12,10 @@ Standard C library .SH SYNOPSIS .nf .B "#include " -.PP +.P .B "struct ttyent *getttyent(void);" .BI "struct ttyent *getttynam(const char *" name ); -.PP +.P .B "int setttyent(void);" .B "int endttyent(void);" .fi @@ -24,22 +24,22 @@ These functions provide an interface to the file .B _PATH_TTYS (e.g., .IR /etc/ttys ). -.PP +.P The function .BR setttyent () opens the file or rewinds it if already open. -.PP +.P The function .BR endttyent () closes the file. -.PP +.P The function .BR getttynam () searches for a given terminal name in the file. It returns a pointer to a .I ttyent structure (description below). -.PP +.P The function .BR getttyent () opens the file @@ -49,7 +49,7 @@ If the file is already open, the next entry. The .I ttyent structure has the form: -.PP +.P .in +4n .EX struct ttyent { @@ -62,10 +62,10 @@ struct ttyent { }; .EE .in -.PP +.P .I ty_status can be: -.PP +.P .in +4n .EX #define TTY_ON 0x01 /* enable logins (start ty_getty program) */ @@ -89,7 +89,6 @@ T{ .BR getttynam () T} Thread safety MT-Unsafe race:ttyent .TE -.sp 1 .SH STANDARDS BSD. .SH NOTES diff --git a/upstream/opensuse-tumbleweed/man3/getusershell.3 b/upstream/opensuse-tumbleweed/man3/getusershell.3 index cbd1d1ac..142b36eb 100644 --- a/upstream/opensuse-tumbleweed/man3/getusershell.3 +++ b/upstream/opensuse-tumbleweed/man3/getusershell.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 19:17:53 1993 by Rik Faith (faith@cs.unc.edu) -.TH getusershell 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getusershell 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getusershell, setusershell, endusershell \- get permitted user shells .SH LIBRARY @@ -17,17 +17,17 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B char *getusershell(void); .B void setusershell(void); .B void endusershell(void); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getusershell (), .BR setusershell (), .BR endusershell (): @@ -58,12 +58,12 @@ behaves as if and .I /bin/csh were listed in the file. -.PP +.P The .BR setusershell () function rewinds .IR /etc/shells . -.PP +.P The .BR endusershell () function closes @@ -90,7 +90,6 @@ T{ .BR endusershell () T} Thread safety MT-Unsafe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/getutent.3 b/upstream/opensuse-tumbleweed/man3/getutent.3 index d2aefcfb..88ba1495 100644 --- a/upstream/opensuse-tumbleweed/man3/getutent.3 +++ b/upstream/opensuse-tumbleweed/man3/getutent.3 @@ -10,7 +10,7 @@ .\" Modified Thu Jul 25 14:43:46 MET DST 1996 by Michael Haardt .\" .\" -.TH getutent 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getutent 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getutent, getutid, getutline, pututline, setutent, endutent, utmpname \- access utmp file entries @@ -20,22 +20,22 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B struct utmp *getutent(void); .BI "struct utmp *getutid(const struct utmp *" ut ); .BI "struct utmp *getutline(const struct utmp *" ut ); -.PP +.P .BI "struct utmp *pututline(const struct utmp *" ut ); -.PP +.P .B void setutent(void); .B void endutent(void); -.PP +.P .BI "int utmpname(const char *" file ); .fi .SH DESCRIPTION New applications should use the POSIX.1-specified "utmpx" versions of these functions; see STANDARDS. -.PP +.P .BR utmpname () sets the name of the utmp-format file for the other utmp functions to access. @@ -44,24 +44,24 @@ If is not used to set the filename before the other functions are used, they assume \fB_PATH_UTMP\fP, as defined in \fI\fP. -.PP +.P .BR setutent () rewinds the file pointer to the beginning of the utmp file. It is generally a good idea to call it before any of the other functions. -.PP +.P .BR endutent () closes the utmp file. It should be called when the user code is done accessing the file with the other functions. -.PP +.P .BR getutent () reads a line from the current file position in the utmp file. It returns a pointer to a structure containing the fields of the line. The definition of this structure is shown in .BR utmp (5). -.PP +.P .BR getutid () searches forward from the current file position in the utmp file based upon \fIut\fP. @@ -77,7 +77,7 @@ will find the first entry whose .I ut_id field matches \fIut\->ut_id\fP. -.PP +.P .BR getutline () searches forward from the current file position in the utmp file. It scans entries whose @@ -87,7 +87,7 @@ or \fBLOGIN_PROCESS\fP and returns the first one whose .I ut_line field matches \fIut\->ut_line\fP. -.PP +.P .BR pututline () writes the .I utmp @@ -108,16 +108,16 @@ return a pointer to a \fIstruct utmp\fP on success, and NULL on failure (which includes the "record not found" case). This \fIstruct utmp\fP is allocated in static storage, and may be overwritten by subsequent calls. -.PP +.P On success .BR pututline () returns .IR ut ; on failure, it returns NULL. -.PP +.P .BR utmpname () returns 0 if the new name was successfully stored, or \-1 on failure. -.PP +.P On failure, these functions .I errno set to indicate the error. @@ -128,7 +128,7 @@ Out of memory. .TP .B ESRCH Record not found. -.PP +.P .BR setutent (), .BR pututline (), and the @@ -189,7 +189,7 @@ T{ .BR utmpname () T} Thread safety MT-Unsafe race:utent .TE -.sp 1 +.P In the above table, .I utent in @@ -209,7 +209,7 @@ then data races could occur. None. .SH HISTORY XPG2, SVr4. -.PP +.P In XPG2 and SVID 2 the function .BR pututline () is documented to return void, and that is what it does on many systems @@ -218,15 +218,15 @@ HP-UX introduces a new function .BR _pututline () with the prototype given above for .BR pututline (). -.PP +.P All these functions are obsolete now on non-Linux systems. POSIX.1-2001 and POSIX.1-2008, following SUSv1, does not have any of these functions, but instead uses -.PP +.P .RS 4 .EX .B #include -.PP +.P .B struct utmpx *getutxent(void); .B struct utmpx *getutxid(const struct utmpx *); .B struct utmpx *getutxline(const struct utmpx *); @@ -235,7 +235,7 @@ does not have any of these functions, but instead uses .B void endutxent(void); .EE .RE -.PP +.P These functions are provided by glibc, and perform the same task as their equivalents without the "x", but use .IR "struct utmpx" , @@ -244,7 +244,7 @@ defined on Linux to be the same as For completeness, glibc also provides .BR utmpxname (), although this function is not specified by POSIX.1. -.PP +.P On some other systems, the \fIutmpx\fP structure is a superset of the \fIutmp\fP structure, with additional fields, and larger versions of the existing fields, @@ -252,7 +252,7 @@ and parallel files are maintained, often .I /var/*/utmpx and .IR /var/*/wtmpx . -.PP +.P Linux glibc on the other hand does not use a parallel \fIutmpx\fP file since its \fIutmp\fP structure is already large enough. The "x" functions listed above are just aliases for @@ -264,20 +264,20 @@ is an alias for .SS glibc notes The above functions are not thread-safe. glibc adds reentrant versions -.PP +.P .nf .B #include -.PP +.P .BI "int getutent_r(struct utmp *" ubuf ", struct utmp **" ubufp ); .BI "int getutid_r(struct utmp *" ut , .BI " struct utmp *" ubuf ", struct utmp **" ubufp ); .BI "int getutline_r(struct utmp *" ut , .BI " struct utmp *" ubuf ", struct utmp **" ubufp ); .fi -.PP +.P Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): -.PP +.P .BR getutent_r (), .BR getutid_r (), .BR getutline_r (): @@ -286,7 +286,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE .fi -.PP +.P These functions are GNU extensions, analogs of the functions of the same name without the _r suffix. The @@ -305,7 +305,7 @@ should check the return values of .BR getpwuid (3) and .BR ttyname (3). -.PP +.P .\" SRC BEGIN (getutent.c) .EX #include @@ -327,7 +327,7 @@ main(void) strcpy(entry.ut_line, ttyname(STDIN_FILENO) + strlen("/dev/")); /* only correct for ptys named /dev/tty[pqr][0\-9a\-z] */ strcpy(entry.ut_id, ttyname(STDIN_FILENO) + strlen("/dev/tty")); - time(&entry.ut_time); + entry.ut_time = time(NULL); strcpy(entry.ut_user, getpwuid(getuid())\->pw_name); memset(entry.ut_host, 0, UT_HOSTSIZE); entry.ut_addr = 0; diff --git a/upstream/opensuse-tumbleweed/man3/getutmp.3 b/upstream/opensuse-tumbleweed/man3/getutmp.3 index 04cf0ad6..1d857fed 100644 --- a/upstream/opensuse-tumbleweed/man3/getutmp.3 +++ b/upstream/opensuse-tumbleweed/man3/getutmp.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH getutmp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getutmp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getutmp, getutmpx \- copy utmp structure to utmpx, and vice versa .SH LIBRARY @@ -14,7 +14,7 @@ Standard C library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "void getutmp(const struct utmpx *" ux ", struct utmp *" u ); .BI "void getutmpx(const struct utmp *" u ", struct utmpx *" ux ); .fi @@ -49,7 +49,6 @@ T{ .BR getutmpx () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/getw.3 b/upstream/opensuse-tumbleweed/man3/getw.3 index f96512f9..843d2806 100644 --- a/upstream/opensuse-tumbleweed/man3/getw.3 +++ b/upstream/opensuse-tumbleweed/man3/getw.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH getw 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getw 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getw, putw \- input and output of words (ints) .SH LIBRARY @@ -12,16 +12,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int getw(FILE *" stream ); .BI "int putw(int " w ", FILE *" stream ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR getw (), .BR putw (): .nf @@ -39,7 +39,7 @@ It's provided for compatibility with SVr4. We recommend you use .BR fread (3) instead. -.PP +.P .BR putw () writes the word \fIw\fP (that is, an \fIint\fP) to \fIstream\fP. @@ -68,7 +68,6 @@ T{ .BR putw () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/getwchar.3 b/upstream/opensuse-tumbleweed/man3/getwchar.3 index 0ce51ce8..47a53caa 100644 --- a/upstream/opensuse-tumbleweed/man3/getwchar.3 +++ b/upstream/opensuse-tumbleweed/man3/getwchar.3 @@ -10,7 +10,7 @@ .\" http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH getwchar 3 2023-07-20 "Linux man-pages 6.05.01" +.TH getwchar 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getwchar \- read a wide character from standard input .SH LIBRARY @@ -19,7 +19,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B "wint_t getwchar(void);" .fi .SH DESCRIPTION @@ -42,7 +42,7 @@ to .B EILSEQ and returns .BR WEOF . -.PP +.P For a nonlocking counterpart, see .BR unlocked_stdio (3). .SH RETURN VALUE @@ -65,7 +65,6 @@ T{ .BR getwchar () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -77,7 +76,7 @@ depends on the .B LC_CTYPE category of the current locale. -.PP +.P It is reasonable to expect that .BR getwchar () will actually diff --git a/upstream/opensuse-tumbleweed/man3/getyx.3ncurses b/upstream/opensuse-tumbleweed/man3/getyx.3ncurses index ffa48e0c..177b4275 100644 --- a/upstream/opensuse-tumbleweed/man3/getyx.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/getyx.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2020-2022,2023 Thomas E. Dickey * +.\" Copyright 2020-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2007,2010 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_getyx.3x,v 1.40 2023/12/16 21:33:21 tom Exp $ -.TH getyx 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: curs_getyx.3x,v 1.44 2024/04/20 21:20:07 tom Exp $ +.TH getyx 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -78,7 +78,7 @@ The \fB\%getparyx\fP, \fB\%getbegyx\fP and \fB\%getmaxyx\fP -macros are described in the XSI Curses standard, Issue 4. +macros are described in X/Open Curses, Issue 4. .PP This implementation also provides functions \fB\%getbegx\fP, diff --git a/upstream/opensuse-tumbleweed/man3/glob.3 b/upstream/opensuse-tumbleweed/man3/glob.3 index 34a2745e..98ea94f8 100644 --- a/upstream/opensuse-tumbleweed/man3/glob.3 +++ b/upstream/opensuse-tumbleweed/man3/glob.3 @@ -12,7 +12,7 @@ .\" Expanded the description of various flags .\" Various wording fixes. .\" -.TH glob 3 2023-07-20 "Linux man-pages 6.05.01" +.TH glob 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME glob, globfree \- find pathnames matching a pattern, free memory from glob() .SH LIBRARY @@ -21,7 +21,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int glob(const char *restrict " pattern ", int " flags , .BI " int (*" errfunc ")(const char *" epath ", int " eerrno ), .BI " glob_t *restrict " pglob ); @@ -37,13 +37,13 @@ according to the rules used by the shell (see No tilde expansion or parameter substitution is done; if you want these, use .BR wordexp (3). -.PP +.P The .BR globfree () function frees the dynamically allocated storage from an earlier call to .BR glob (). -.PP +.P The results of a .BR glob () call are stored in the structure pointed to by @@ -54,7 +54,7 @@ This structure is of type .IR ) and includes the following elements defined by POSIX.2 (more may be present as an extension): -.PP +.P .in +4n .EX typedef struct { @@ -64,9 +64,9 @@ typedef struct { } glob_t; .EE .in -.PP +.P Results are stored in dynamically allocated storage. -.PP +.P The argument .I flags is made up of the bitwise OR of zero or more the following symbolic @@ -117,7 +117,7 @@ character. Normally, a backslash can be used to quote the following character, providing a mechanism to turn off the special meaning metacharacters. -.PP +.P .I flags may also include any of the following, which are GNU extensions and not defined by POSIX.2: @@ -193,7 +193,7 @@ However, the caller must still check that returned files are directories. (The purpose of this flag is merely to optimize performance when the caller is interested only in directories.) -.PP +.P If .I errfunc is not NULL, @@ -216,14 +216,14 @@ is set, .BR glob () will terminate after the call to .IR errfunc . -.PP +.P Upon successful return, .I pglob\->gl_pathc contains the number of matched pathnames and .I pglob\->gl_pathv contains a pointer to the list of pointers to matched pathnames. The list of pointers is terminated by a null pointer. -.PP +.P It is possible to call .BR glob () several times. @@ -232,7 +232,7 @@ In that case, the flag has to be set in .I flags on the second and later invocations. -.PP +.P As a GNU extension, .I pglob\->gl_flags is set to the flags specified, @@ -278,7 +278,7 @@ T{ .BR globfree () T} Thread safety MT-Safe .TE -.sp 1 +.P In the above table, .I utent in @@ -319,15 +319,15 @@ These will store their error code in .IR errno . .SH EXAMPLES One example of use is the following code, which simulates typing -.PP +.P .in +4n .EX ls \-l *.c ../*.c .EE .in -.PP +.P in the shell: -.PP +.P .in +4n .EX glob_t globbuf; diff --git a/upstream/opensuse-tumbleweed/man3/gnu_get_libc_version.3 b/upstream/opensuse-tumbleweed/man3/gnu_get_libc_version.3 index a1af9d1f..20fc5213 100644 --- a/upstream/opensuse-tumbleweed/man3/gnu_get_libc_version.3 +++ b/upstream/opensuse-tumbleweed/man3/gnu_get_libc_version.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH gnu_get_libc_version 3 2023-07-20 "Linux man-pages 6.05.01" +.TH gnu_get_libc_version 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME gnu_get_libc_version, gnu_get_libc_release \- get glibc version and release .SH LIBRARY @@ -13,7 +13,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B const char *gnu_get_libc_version(void); .B const char *gnu_get_libc_release(void); .fi @@ -21,7 +21,7 @@ Standard C library The function .BR gnu_get_libc_version () returns a string that identifies the glibc version available on the system. -.PP +.P The function .BR gnu_get_libc_release () returns a string indicates the release status of the glibc version @@ -43,14 +43,13 @@ T{ .BR gnu_get_libc_release () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH HISTORY glibc 2.1. .SH EXAMPLES When run, the program below will produce output such as the following: -.PP +.P .in +4n .EX .RB "$" " ./a.out" diff --git a/upstream/opensuse-tumbleweed/man3/grantpt.3 b/upstream/opensuse-tumbleweed/man3/grantpt.3 index 174c5c94..8ac498ef 100644 --- a/upstream/opensuse-tumbleweed/man3/grantpt.3 +++ b/upstream/opensuse-tumbleweed/man3/grantpt.3 @@ -3,7 +3,7 @@ .\" This page is in the public domain. - aeb .\" %%%LICENSE_END .\" -.TH grantpt 3 2023-07-20 "Linux man-pages 6.05.01" +.TH grantpt 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME grantpt \- grant access to the slave pseudoterminal .SH LIBRARY @@ -12,15 +12,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int grantpt(int " fd ");" .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR grantpt (): .nf Since glibc 2.24: @@ -39,7 +39,7 @@ The user ID of the slave is set to the real UID of the calling process. The group ID is set to an unspecified value (e.g., .IR tty ). The mode of the slave is set to 0620 (crw\-\-w\-\-\-\-). -.PP +.P The behavior of .BR grantpt () is unspecified if a signal handler is installed to catch @@ -80,16 +80,15 @@ T{ .BR grantpt () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY glibc 2.1. POSIX.1-2001. -.PP +.P This is part of the UNIX 98 pseudoterminal support, see .BR pts (4). -.PP +.P Historical systems implemented this function via a set-user-ID helper binary called "pt_chown". glibc on Linux before glibc 2.33 could do so as well, diff --git a/upstream/opensuse-tumbleweed/man3/group_member.3 b/upstream/opensuse-tumbleweed/man3/group_member.3 index 620b59ff..32f00ccf 100644 --- a/upstream/opensuse-tumbleweed/man3/group_member.3 +++ b/upstream/opensuse-tumbleweed/man3/group_member.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH group_member 3 2023-03-30 "Linux man-pages 6.05.01" +.TH group_member 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME group_member \- test whether a process is in a group .SH LIBRARY @@ -11,15 +11,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int group_member(gid_t " gid ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR group_member (): .nf _GNU_SOURCE diff --git a/upstream/opensuse-tumbleweed/man3/gsignal.3 b/upstream/opensuse-tumbleweed/man3/gsignal.3 index 45876503..748d3209 100644 --- a/upstream/opensuse-tumbleweed/man3/gsignal.3 +++ b/upstream/opensuse-tumbleweed/man3/gsignal.3 @@ -5,7 +5,7 @@ .\" .\" This replaces an earlier man page written by Walter Harms .\" . -.TH gsignal 3 2023-07-20 "Linux man-pages 6.05.01" +.TH gsignal 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME gsignal, ssignal \- software signal facility .SH LIBRARY @@ -14,19 +14,19 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B typedef void (*sighandler_t)(int); -.PP +.P .BI "[[deprecated]] int gsignal(int " signum ); -.PP +.P .BI "[[deprecated]] sighandler_t ssignal(int " signum ", sighandler_t " action ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR gsignal (), .BR ssignal (): .nf @@ -43,7 +43,7 @@ aliases for and .BR signal (2), respectively. -.PP +.P Elsewhere, on System V-like systems, these functions implement software signaling, entirely independent of the classical .BR signal (2) @@ -100,7 +100,6 @@ T{ .BR ssignal () T} Thread safety MT-Safe sigintr .TE -.sp 1 .SH STANDARDS None. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/hash.3 b/upstream/opensuse-tumbleweed/man3/hash.3 index ed99fe10..4ccbacaf 100644 --- a/upstream/opensuse-tumbleweed/man3/hash.3 +++ b/upstream/opensuse-tumbleweed/man3/hash.3 @@ -5,7 +5,7 @@ .\" .\" @(#)hash.3 8.6 (Berkeley) 8/18/94 .\" -.TH hash 3 2022-12-04 "Linux man-pages 6.05.01" +.TH hash 3 2024-05-02 "Linux man-pages (unreleased)" .UC 7 .SH NAME hash \- hash database access method @@ -26,7 +26,7 @@ Since glibc 2.2, glibc no longer provides these interfaces. Probably, you are looking for the APIs provided by the .I libdb library instead. -.PP +.P The routine .BR dbopen (3) is the library interface to database files. @@ -34,15 +34,15 @@ One of the supported file formats is hash files. The general description of the database access methods is in .BR dbopen (3), this manual page describes only the hash-specific information. -.PP +.P The hash data structure is an extensible, dynamic hashing scheme. -.PP +.P The access-method-specific data structure provided to .BR dbopen (3) is defined in the .I include file as follows: -.PP +.P .in +4n .EX typedef struct { @@ -55,7 +55,7 @@ typedef struct { } HASHINFO; .EE .in -.PP +.P The elements of this structure are as follows: .TP 10 .I bsize @@ -99,7 +99,7 @@ If is 0 (no order is specified), the current host order is used. If the file already exists, the specified value is ignored and the value specified when the tree was created is used. -.PP +.P If the file already exists (and the .B O_TRUNC flag is not specified), the @@ -111,12 +111,12 @@ and .I nelem are ignored and the values specified when the tree was created are used. -.PP +.P If a hash function is specified, .I hash_open attempts to determine if the hash function specified is the same as the one with which the database was created, and fails if it is not. -.PP +.P Backward-compatible interfaces to the routines described in .BR dbm (3), and @@ -137,9 +137,9 @@ Only big and little endian byte order are supported. .BR dbopen (3), .BR mpool (3), .BR recno (3) -.PP +.P .IR "Dynamic Hash Tables" , Per-Ake Larson, Communications of the ACM, April 1988. -.PP +.P .IR "A New Hash Package for UNIX" , Margo Seltzer, USENIX Proceedings, Winter 1991. diff --git a/upstream/opensuse-tumbleweed/man3/hook.3form b/upstream/opensuse-tumbleweed/man3/hook.3form index cf83bf5f..323106f6 100644 --- a/upstream/opensuse-tumbleweed/man3/hook.3form +++ b/upstream/opensuse-tumbleweed/man3/hook.3form @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_hook.3x,v 1.35 2024/01/20 18:12:04 tom Exp $ -.TH hook 3FORM 2024-01-20 "ncurses 6.4" "Library calls" +.\" $Id: form_hook.3x,v 1.37 2024/03/16 15:35:01 tom Exp $ +.TH hook 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBform_hook\fP \- set hooks for automatic invocation by applications diff --git a/upstream/opensuse-tumbleweed/man3/hook.3menu b/upstream/opensuse-tumbleweed/man3/hook.3menu index ac839367..e7391034 100644 --- a/upstream/opensuse-tumbleweed/man3/hook.3menu +++ b/upstream/opensuse-tumbleweed/man3/hook.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2007,2010 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: menu_hook.3x,v 1.30 2023/11/25 13:58:47 tom Exp $ -.TH hook 3MENU 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: menu_hook.3x,v 1.32 2024/03/16 15:35:01 tom Exp $ +.TH hook 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBmenu_hook\fP \- set hooks for automatic invocation by applications diff --git a/upstream/opensuse-tumbleweed/man3/hsearch.3 b/upstream/opensuse-tumbleweed/man3/hsearch.3 index dd801dfa..7dc38ee0 100644 --- a/upstream/opensuse-tumbleweed/man3/hsearch.3 +++ b/upstream/opensuse-tumbleweed/man3/hsearch.3 @@ -14,7 +14,7 @@ .\" 2008-09-03, mtk, restructured somewhat, in part after suggestions from .\" Timothy S. Nelson .\" -.TH hsearch 3 2023-07-20 "Linux man-pages 6.05.01" +.TH hsearch 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME hcreate, hdestroy, hsearch, hcreate_r, hdestroy_r, hsearch_r \- hash table management @@ -24,18 +24,18 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int hcreate(size_t " nel ); .B "void hdestroy(void);" -.PP +.P .BI "ENTRY *hsearch(ENTRY " item ", ACTION " action ); -.PP +.P .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "int hcreate_r(size_t " nel ", struct hsearch_data *" htab ); .BI "void hdestroy_r(struct hsearch_data *" htab ); -.PP +.P .BI "int hsearch_r(ENTRY " item ", ACTION " action ", ENTRY **" retval , .BI " struct hsearch_data *" htab ); .fi @@ -48,7 +48,7 @@ and allow the caller to create and manage a hash search table containing entries consisting of a key (a string) and associated data. Using these functions, only one hash table can be used at a time. -.PP +.P The three functions .BR hcreate_r (), .BR hsearch_r (), @@ -62,7 +62,7 @@ on which the function is to operate. The programmer should treat this structure as opaque (i.e., do not attempt to directly access or modify the fields in this structure). -.PP +.P First a hash table must be created using .BR hcreate (). The argument \fInel\fP specifies the maximum number of entries @@ -71,7 +71,7 @@ in the table. The implementation may adjust this value upward to improve the performance of the resulting hash table. .\" e.g., in glibc it is raised to the next higher prime number -.PP +.P The .BR hcreate_r () function performs the same task as @@ -82,7 +82,7 @@ The structure pointed to by .I htab must be zeroed before the first call to .BR hcreate_r (). -.PP +.P The function .BR hdestroy () frees the memory occupied by the hash table that was created by @@ -97,17 +97,17 @@ function performs the analogous task for a hash table described by .IR *htab , which was previously created using .BR hcreate_r (). -.PP +.P The .BR hsearch () function searches the hash table for an item with the same key as \fIitem\fP (where "the same" is determined using .BR strcmp (3)), and if successful returns a pointer to it. -.PP +.P The argument \fIitem\fP is of type \fIENTRY\fP, which is defined in \fI\fP as follows: -.PP +.P .in +4n .EX typedef struct entry { @@ -116,11 +116,11 @@ typedef struct entry { } ENTRY; .EE .in -.PP +.P The field \fIkey\fP points to a null-terminated string which is the search key. The field \fIdata\fP points to data that is associated with that key. -.PP +.P The argument \fIaction\fP determines what .BR hsearch () does after an unsuccessful search. @@ -139,7 +139,7 @@ is then .I data is ignored.) -.PP +.P The .BR hsearch_r () function is like @@ -161,7 +161,7 @@ return nonzero on success. They return 0 on error, with .I errno set to indicate the error. -.PP +.P On success, .BR hsearch () returns a pointer to an entry in the hash table. @@ -184,7 +184,7 @@ can fail for the following reasons: .B EINVAL .I htab is NULL. -.PP +.P .BR hsearch () and .BR hsearch_r () @@ -205,7 +205,7 @@ was and .I key was not found in the table. -.PP +.P POSIX.1 specifies only the .\" PROX.1-2001, POSIX.1-2008 .B ENOMEM @@ -233,7 +233,6 @@ T{ .BR hdestroy_r () T} Thread safety MT-Safe race:htab .TE -.sp 1 .SH STANDARDS .TP .BR hcreate () @@ -271,7 +270,7 @@ Typically, this means that .I nel should be at least 25% larger than the maximum number of elements that the caller expects to store in the table. -.PP +.P The .BR hdestroy () and @@ -296,12 +295,12 @@ should not do anything for a successful search. In libc and glibc (before glibc 2.3), the implementation violates the specification, updating the \fIdata\fP for the given \fIkey\fP in this case. -.PP +.P Individual hash table entries can be added, but not deleted. .SH EXAMPLES The following program inserts 24 items into a hash table, then prints some of them. -.PP +.P .\" SRC BEGIN (hsearch.c) .EX #include diff --git a/upstream/opensuse-tumbleweed/man3/hypot.3 b/upstream/opensuse-tumbleweed/man3/hypot.3 index 5f106c65..19f028c2 100644 --- a/upstream/opensuse-tumbleweed/man3/hypot.3 +++ b/upstream/opensuse-tumbleweed/man3/hypot.3 @@ -11,7 +11,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH hypot 3 2023-07-20 "Linux man-pages 6.05.01" +.TH hypot 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME hypot, hypotf, hypotl \- Euclidean distance function .SH LIBRARY @@ -20,17 +20,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double hypot(double " x ", double " y ); .BI "float hypotf(float " x ", float " y ); .BI "long double hypotl(long double " x ", long double " y ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR hypot (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -38,7 +38,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR hypotf (), .BR hypotl (): .nf @@ -57,7 +57,7 @@ and or the distance of the point .RI ( x , y ) from the origin. -.PP +.P The calculation is performed without undue overflow or underflow during the intermediate steps of the calculation. .\" e.g., hypot(DBL_MIN, DBL_MIN) does the right thing, as does, say @@ -69,14 +69,14 @@ with sides of length .I x and .IR y . -.PP +.P If .I x or .I y is an infinity, positive infinity is returned. -.PP +.P If .I x or @@ -84,7 +84,7 @@ or is a NaN, and the other argument is not an infinity, a NaN is returned. -.PP +.P If the result overflows, a range error occurs, and the functions return @@ -93,7 +93,7 @@ and the functions return or .BR HUGE_VALL , respectively. -.PP +.P If both arguments are subnormal, and the result is subnormal, .\" Actually, could the result not be subnormal if both arguments .\" are subnormal? I think not -- mtk, Jul 2008 @@ -104,7 +104,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Range error: result overflow @@ -141,12 +141,11 @@ T{ .BR hypotl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/iconv.3 b/upstream/opensuse-tumbleweed/man3/iconv.3 index 6e4a091f..120fbbc3 100644 --- a/upstream/opensuse-tumbleweed/man3/iconv.3 +++ b/upstream/opensuse-tumbleweed/man3/iconv.3 @@ -11,7 +11,7 @@ .\" 2000-06-30 correction by Yuichi SATO .\" 2000-11-15 aeb, fixed prototype .\" -.TH iconv 3 2023-07-20 "Linux man-pages 6.05.01" +.TH iconv 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME iconv \- perform character set conversion .SH LIBRARY @@ -20,7 +20,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t iconv(iconv_t " cd , .BI " char **restrict " inbuf ", size_t *restrict " inbytesleft , .BI " char **restrict " outbuf ", size_t *restrict " outbytesleft ); @@ -50,7 +50,7 @@ argument is the address of a variable that points to the first byte available in the output buffer; .I outbytesleft indicates the number of bytes available in the output buffer. -.PP +.P The main case is when \fIinbuf\fP is not NULL and \fI*inbuf\fP is not NULL. In this case, the .BR iconv () @@ -58,7 +58,7 @@ function converts the multibyte sequence starting at \fI*inbuf\fP to a multibyte sequence starting at \fI*outbuf\fP. At most \fI*inbytesleft\fP bytes, starting at \fI*inbuf\fP, will be read. At most \fI*outbytesleft\fP bytes, starting at \fI*outbuf\fP, will be written. -.PP +.P The .BR iconv () function converts one multibyte character at a time, and for @@ -134,7 +134,7 @@ beginning of the incomplete multibyte sequence. The output buffer has no more room for the next converted character. In this case, it sets \fIerrno\fP to \fBE2BIG\fP and returns .IR (size_t)\ \-1 . -.PP +.P A different case is when \fIinbuf\fP is NULL or \fI*inbuf\fP is NULL, but \fIoutbuf\fP is not NULL and \fI*outbuf\fP is not NULL. In this case, the @@ -148,7 +148,7 @@ If the output buffer has no more room for this reset sequence, it sets Otherwise, it increments \fI*outbuf\fP and decrements \fI*outbytesleft\fP by the number of bytes written. -.PP +.P A third case is when \fIinbuf\fP is NULL or \fI*inbuf\fP is NULL, and \fIoutbuf\fP is NULL or \fI*outbuf\fP is NULL. In this case, the @@ -191,8 +191,7 @@ T{ .BR iconv () T} Thread safety MT-Safe race:cd .TE -.sp 1 -.PP +.P The .BR iconv () function is MT-Safe, as long as callers arrange for @@ -209,7 +208,7 @@ In each series of calls to .BR iconv (), the last should be one with \fIinbuf\fP or \fI*inbuf\fP equal to NULL, in order to flush out any partially converted input. -.PP +.P Although .I inbuf and @@ -221,7 +220,7 @@ as C strings or as arrays of characters: the interpretation of character byte sequences is handled internally by the conversion functions. In some encodings, a zero byte may be a valid part of a multibyte character. -.PP +.P The caller of .BR iconv () must ensure that the pointers passed to the function are suitable diff --git a/upstream/opensuse-tumbleweed/man3/iconv_close.3 b/upstream/opensuse-tumbleweed/man3/iconv_close.3 index 089843cf..f5014e34 100644 --- a/upstream/opensuse-tumbleweed/man3/iconv_close.3 +++ b/upstream/opensuse-tumbleweed/man3/iconv_close.3 @@ -7,7 +7,7 @@ .\" GNU glibc-2 source code and manual .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" -.TH iconv_close 3 2023-07-20 "Linux man-pages 6.05.01" +.TH iconv_close 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME iconv_close \- deallocate descriptor for character set conversion .SH LIBRARY @@ -16,7 +16,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int iconv_close(iconv_t " cd ); .fi .SH DESCRIPTION @@ -46,7 +46,6 @@ T{ .BR iconv_close () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/iconv_open.3 b/upstream/opensuse-tumbleweed/man3/iconv_open.3 index 13ae7789..86333f91 100644 --- a/upstream/opensuse-tumbleweed/man3/iconv_open.3 +++ b/upstream/opensuse-tumbleweed/man3/iconv_open.3 @@ -11,7 +11,7 @@ .\" 2007-03-31 Bruno Haible, Describe the glibc/libiconv //TRANSLIT .\" and //IGNORE extensions for 'tocode'. .\" -.TH iconv_open 3 2023-07-20 "Linux man-pages 6.05.01" +.TH iconv_open 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME iconv_open \- allocate descriptor for character set conversion .SH LIBRARY @@ -20,7 +20,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "iconv_t iconv_open(const char *" tocode ", const char *" fromcode ); .fi .SH DESCRIPTION @@ -32,7 +32,7 @@ for converting byte sequences from character encoding to character encoding .IR tocode . -.PP +.P The values permitted for .I fromcode and @@ -61,13 +61,13 @@ When the string "//IGNORE" is appended to .IR tocode , characters that cannot be represented in the target character set will be silently discarded. -.PP +.P The resulting conversion descriptor can be used with .BR iconv (3) any number of times. It remains valid until deallocated using .BR iconv_close (3). -.PP +.P A conversion descriptor contains a conversion state. After creation using .BR iconv_open (), @@ -114,7 +114,6 @@ T{ .BR iconv_open () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/if_nameindex.3 b/upstream/opensuse-tumbleweed/man3/if_nameindex.3 index 39b72a04..42b325bc 100644 --- a/upstream/opensuse-tumbleweed/man3/if_nameindex.3 +++ b/upstream/opensuse-tumbleweed/man3/if_nameindex.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH if_nameindex 3 2023-07-20 "Linux man-pages 6.05.01" +.TH if_nameindex 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME if_nameindex, if_freenameindex \- get network interface names and indexes .SH LIBRARY @@ -13,7 +13,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "struct if_nameindex *if_nameindex(" void ); .BI "void if_freenameindex(struct if_nameindex *" "ptr" ); .fi @@ -27,14 +27,14 @@ about one of the network interfaces on the local system. The .I if_nameindex structure contains at least the following entries: -.PP +.P .in +4n .EX unsigned int if_index; /* Index of interface (1, 2, ...) */ char *if_name; /* Null\-terminated name ("eth0", etc.) */ .EE .in -.PP +.P The .I if_index field contains the interface index. @@ -46,7 +46,7 @@ The end of the array is indicated by entry with set to zero and .I if_name set to NULL. -.PP +.P The data structure returned by .BR if_nameindex () is dynamically allocated and should be freed using @@ -67,7 +67,7 @@ if: .TP .B ENOBUFS Insufficient resources available. -.PP +.P .BR if_nameindex () may also fail for any of the errors specified for .BR socket (2), @@ -93,14 +93,13 @@ T{ .BR if_freenameindex () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008, RFC\ 3493. .SH HISTORY glibc 2.1. POSIX.1-2001. BSDi. -.PP +.P Before glibc 2.3.4, the implementation supported only interfaces with IPv4 addresses. Support of interfaces that don't have IPv4 addresses is available only @@ -109,7 +108,7 @@ on kernels that support netlink. The program below demonstrates the use of the functions described on this page. An example of the output this program might produce is the following: -.PP +.P .in +4n .EX $ \fB./a.out\fI diff --git a/upstream/opensuse-tumbleweed/man3/if_nametoindex.3 b/upstream/opensuse-tumbleweed/man3/if_nametoindex.3 index ebbd2577..1a1272a6 100644 --- a/upstream/opensuse-tumbleweed/man3/if_nametoindex.3 +++ b/upstream/opensuse-tumbleweed/man3/if_nametoindex.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH if_nametoindex 3 2023-07-20 "Linux man-pages 6.05.01" +.TH if_nametoindex 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME if_nametoindex, if_indextoname \- mappings between network interface names and indexes @@ -13,7 +13,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "unsigned int if_nametoindex(const char *" "ifname" ); .BI "char *if_indextoname(unsigned int ifindex, char *" ifname ); .fi @@ -23,7 +23,7 @@ The function returns the index of the network interface corresponding to the name .IR ifname . -.PP +.P The .BR if_indextoname () function returns the name of the network interface @@ -41,7 +41,7 @@ returns the index number of the network interface; on error, 0 is returned and .I errno is set to indicate the error. -.PP +.P On success, .BR if_indextoname () returns @@ -57,7 +57,7 @@ if: .TP .B ENODEV No interface found with given name. -.PP +.P .BR if_indextoname () may fail and set .I errno @@ -65,7 +65,7 @@ if: .TP .B ENXIO No interface found for the index. -.PP +.P .BR if_nametoindex () and .BR if_indextoname () @@ -88,7 +88,6 @@ T{ .BR if_indextoname () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008, RFC\ 3493. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/ilogb.3 b/upstream/opensuse-tumbleweed/man3/ilogb.3 index 100b0c8c..07ce8964 100644 --- a/upstream/opensuse-tumbleweed/man3/ilogb.3 +++ b/upstream/opensuse-tumbleweed/man3/ilogb.3 @@ -7,7 +7,7 @@ .\" .\" Inspired by a page by Walter Harms created 2002-08-10 .\" -.TH ilogb 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ilogb 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ilogb, ilogbf, ilogbl \- get integer exponent of a floating-point value .SH LIBRARY @@ -16,17 +16,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int ilogb(double " x ); .BI "int ilogbf(float " x ); .BI "int ilogbl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR ilogb (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -35,7 +35,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR ilogbf (), .BR ilogbl (): .nf @@ -55,7 +55,7 @@ functions, cast to On success, these functions return the exponent of .IR x , as a signed integer. -.PP +.P If .I x is zero, then a domain error occurs, and the functions return @@ -63,14 +63,14 @@ is zero, then a domain error occurs, and the functions return .\" case, but for ilogb() it says domain error. .BR FP_ILOGB0 . .\" glibc: The numeric value is either `INT_MIN' or `-INT_MAX'. -.PP +.P If .I x is a NaN, then a domain error occurs, and the functions return .BR FP_ILOGBNAN . .\" glibc: The numeric value is either `INT_MIN' or `INT_MAX'. .\" On i386, FP_ILOGB0 and FP_ILOGBNAN have the same value. -.PP +.P If .I x is negative infinity or positive infinity, then @@ -88,7 +88,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP is 0 or a NaN @@ -124,7 +124,6 @@ T{ .BR ilogbl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/in_wch.3ncurses b/upstream/opensuse-tumbleweed/man3/in_wch.3ncurses index dca37d8a..203f8d1b 100644 --- a/upstream/opensuse-tumbleweed/man3/in_wch.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/in_wch.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 2002-2010,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_in_wch.3x,v 1.24 2023/11/18 18:00:11 tom Exp $ -.TH in_wch 3NCURSES 2023-11-18 "ncurses 6.4" "Library calls" +.\" $Id: curs_in_wch.3x,v 1.31 2024/04/20 21:20:07 tom Exp $ +.TH in_wch 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -49,33 +49,36 @@ get a \fIcurses\fR complex character from a window .nf \fB#include .PP -\fBint in_wch(cchar_t *\fIwcval\fP); -\fBint win_wch(WINDOW *\fIwin\fP, cchar_t *\fIwcval\fP); +\fBint in_wch(cchar_t *\fIwch\fP); +\fBint win_wch(WINDOW *\fIwin\fP, cchar_t *\fIwch\fP); .PP -\fBint mvin_wch(int \fIy\fP, int \fIx\fP, cchar_t *\fIwcval\fP); -\fBint mvwin_wch(WINDOW *\fIwin\fP, int \fIy\fP, int \fIx\fP, cchar_t *\fIwcval\fP); +\fBint mvin_wch(int \fIy\fP, int \fIx\fP, cchar_t *\fIwch\fP); +\fBint mvwin_wch(WINDOW *\fIwin\fP, int \fIy\fP, int \fIx\fP, cchar_t *\fIwch\fP); .fi .SH DESCRIPTION These functions extract the complex character and rendition from the current position in the named window into the \fBcchar_t\fP object -referenced by wcval. +referenced by wch. .SH RETURN VALUE -No errors are defined in the XSI Curses standard. +No errors are defined in X/Open Curses. This implementation checks for null pointers, returns \fBERR\fP in that case. Also, the \fImv\fP routines check for error moving the cursor, returning \fBERR\fP in that case. Otherwise they return \fBOK\fP. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES Note that all of these routines may be macros. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. +These functions are described in X/Open Curses, Issue 4. .SH SEE ALSO +\fB\%inch\fP(3NCURSES) describes comparable functions of the +.I \%ncurses +library in its non-wide-character configuration. +.PP \fB\%ncurses\fP(3NCURSES), -\fB\%inch\fP(3NCURSES), -\fB\%inchstr\fP(3NCURSES), -\fB\%instr\fP(3NCURSES), \fB\%inwstr\fP(3NCURSES) diff --git a/upstream/opensuse-tumbleweed/man3/in_wchstr.3ncurses b/upstream/opensuse-tumbleweed/man3/in_wchstr.3ncurses index 6d8a0c57..1b7227b0 100644 --- a/upstream/opensuse-tumbleweed/man3/in_wchstr.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/in_wchstr.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 2002-2012,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_in_wchstr.3x,v 1.32 2023/11/18 20:55:18 tom Exp $ -.TH in_wchstr 3NCURSES 2023-11-18 "ncurses 6.4" "Library calls" +.\" $Id: curs_in_wchstr.3x,v 1.39 2024/04/20 21:24:19 tom Exp $ +.TH in_wchstr 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -59,13 +59,13 @@ get a \fIcurses\fR complex character string from a window \fB#include .PP \fBint in_wchstr(cchar_t *\fIwchstr\fP); -\fBint in_wchnstr(cchar_t *\fIwchstr\fP, int \fIn\fP); \fBint win_wchstr(WINDOW *\fIwin\fP, cchar_t *\fIwchstr\fP); -\fBint win_wchnstr(WINDOW *\fIwin\fP, cchar_t *\fIwchstr\fP, int \fIn\fP); -.PP \fBint mvin_wchstr(int \fIy\fP, int \fIx\fP, cchar_t *\fIwchstr\fP); -\fBint mvin_wchnstr(int \fIy\fP, int \fIx\fP, cchar_t *\fIwchstr\fP, int \fIn\fP); \fBint mvwin_wchstr(WINDOW *\fIwin\fP, int \fIy\fP, int \fIx\fP, cchar_t *\fIwchstr\fP); +.PP +\fBint in_wchnstr(cchar_t *\fIwchstr\fP, int \fIn\fP); +\fBint win_wchnstr(WINDOW *\fIwin\fP, cchar_t *\fIwchstr\fP, int \fIn\fP); +\fBint mvin_wchnstr(int \fIy\fP, int \fIx\fP, cchar_t *\fIwchstr\fP, int \fIn\fP); \fBint mvwin_wchnstr(WINDOW *\fIwin\fP, int \fIy\fP, int \fIx\fP, cchar_t *\fIwchstr\fP, int \fIn\fP); .fi .SH DESCRIPTION @@ -95,9 +95,11 @@ if the \fIwin\fP parameter is null or .bP if the \fIwchstr\fP parameter is null. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES All routines except \fBwin_wchnstr\fP may be macros. .PP @@ -117,12 +119,14 @@ Therefore, the use of \fBwin_wchnstr\fP is recommended. .SH PORTABILITY -The XSI Curses defines no error conditions. +X/Open Curses defines no error conditions. This implementation checks for null pointers, returning \fBERR\fP in that case. .SH SEE ALSO +\fB\%inchstr\fP(3NCURSES) describes comparable functions of the +.I \%ncurses +library in its non-wide-character configuration. +.PP \fB\%ncurses\fP(3NCURSES), -\fB\%inchstr\fP(3NCURSES), -\fB\%instr\fP(3NCURSES), \fB\%inwstr\fP(3NCURSES), \fB\%in_wch\fP(3NCURSES) diff --git a/upstream/opensuse-tumbleweed/man3/inch.3ncurses b/upstream/opensuse-tumbleweed/man3/inch.3ncurses index daf10c52..e8348645 100644 --- a/upstream/opensuse-tumbleweed/man3/inch.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/inch.3ncurses @@ -28,8 +28,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_inch.3x,v 1.44 2024/01/13 22:05:39 tom Exp $ -.TH inch 3NCURSES 2024-01-13 "ncurses 6.4" "Library calls" +.\" $Id: curs_inch.3x,v 1.51 2024/04/20 21:20:07 tom Exp $ +.TH inch 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -83,9 +83,11 @@ A_ATTRIBUTES Extract attributes A_COLOR Extract color pair information .TE .SH RETURN VALUE -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .PP The \fBwinch\fP function does not return an error if the window contains characters larger than 8-bits (255). @@ -93,7 +95,7 @@ Only the low-order 8 bits of the character are used by \fBwinch\fP. .SH NOTES Note that all of these routines may be macros. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. +These functions are described in X/Open Curses, Issue 4. .PP Very old systems (before standardization) provide a different function with the same name: @@ -117,15 +119,10 @@ This implementation uses 8 bits for character values. An application using more bits, e.g., a Unicode value, should use the wide-character equivalents to these functions. .SH SEE ALSO -.TP -\fB\%ncurses\fP(3NCURSES) -gives an overview of the \fB\%WINDOW\fP and \fB\%chtype\fP data types. -.TP -\fB\%attr\fP(3NCURSES) -goes into more detail, pointing out portability problems and -constraints on the use of \fB\%chtype\fP for returning window -information. -.TP -\fB\%in_wch\fP(3NCURSES) -describes comparable functions for the wide-character (ncursesw) -library. +\fB\%in_wch\fP(3NCURSES) describes comparable functions of the +.I \%ncurses +library in its wide-character configuration +.RI ( \%ncursesw ). +.PP +\fB\%ncurses\fP(3NCURSES), +\fB\%instr\fP(3NCURSES) diff --git a/upstream/opensuse-tumbleweed/man3/inchstr.3ncurses b/upstream/opensuse-tumbleweed/man3/inchstr.3ncurses index c45f437e..32fe1f64 100644 --- a/upstream/opensuse-tumbleweed/man3/inchstr.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/inchstr.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_inchstr.3x,v 1.40 2023/11/19 00:08:58 tom Exp $ -.TH inchstr 3NCURSES 2023-11-18 "ncurses 6.4" "Library calls" +.\" $Id: curs_inchstr.3x,v 1.45 2024/04/20 21:20:07 tom Exp $ +.TH inchstr 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -94,9 +94,11 @@ if the \fIwin\fP parameter is null or .bP if the \fIchstr\fP parameter is null. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES All routines except \fBwinchnstr\fP may be macros. .PP @@ -121,7 +123,7 @@ Therefore, the use of \fBwinchnstr\fP is recommended. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. +These functions are described in X/Open Curses, Issue 4. It is no more specific than the SVr4 documentation on the trailing 0. It does specify diff --git a/upstream/opensuse-tumbleweed/man3/index.3 b/upstream/opensuse-tumbleweed/man3/index.3 index 56c2bb3d..77f2b5a2 100644 --- a/upstream/opensuse-tumbleweed/man3/index.3 +++ b/upstream/opensuse-tumbleweed/man3/index.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH index 3 2023-03-30 "Linux man-pages 6.05.01" +.TH index 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME index, rindex \- locate character in string .SH LIBRARY @@ -11,7 +11,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] char *index(const char *" s ", int " c ); .BI "[[deprecated]] char *rindex(const char *" s ", int " c ); .fi @@ -19,11 +19,11 @@ Standard C library .BR index () is identical to .BR strchr (3). -.PP +.P .BR rindex () is identical to .BR strrchr (3). -.PP +.P Use .BR strchr (3) and diff --git a/upstream/opensuse-tumbleweed/man3/inet.3 b/upstream/opensuse-tumbleweed/man3/inet.3 index 557bb2d3..04cfdb70 100644 --- a/upstream/opensuse-tumbleweed/man3/inet.3 +++ b/upstream/opensuse-tumbleweed/man3/inet.3 @@ -20,7 +20,7 @@ .\" Add discussion of Classful Addressing, noting that it is obsolete. .\" Added an EXAMPLE program. .\" -.TH inet 3 2023-07-20 "Linux man-pages 6.05.01" +.TH inet 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME inet_aton, inet_addr, inet_network, inet_ntoa, inet_makeaddr, inet_lnaof, inet_netof \- Internet address manipulation routines @@ -32,26 +32,26 @@ Standard C library .B #include .B #include .B #include -.PP +.P .BI "int inet_aton(const char *" cp ", struct in_addr *" inp ); -.PP +.P .BI "in_addr_t inet_addr(const char *" cp ); .BI "in_addr_t inet_network(const char *" cp ); -.PP +.P .BI "[[deprecated]] char *inet_ntoa(struct in_addr " in ); -.PP +.P .BI "[[deprecated]] struct in_addr inet_makeaddr(in_addr_t " net , .BI " in_addr_t " host ); -.PP +.P .BI "[[deprecated]] in_addr_t inet_lnaof(struct in_addr " in ); .BI "[[deprecated]] in_addr_t inet_netof(struct in_addr " in ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR inet_aton (), .BR inet_ntoa (): .nf @@ -104,7 +104,7 @@ The value .I a is interpreted as a 32-bit value that is stored directly into the binary address without any byte rearrangement. -.PP +.P In all of the above forms, components of the dotted address can be specified in decimal, octal (with a leading @@ -117,7 +117,7 @@ The form that uses exactly four decimal numbers is referred to as .I IPv4 dotted-decimal notation (or sometimes: .IR "IPv4 dotted-quad notation" ). -.PP +.P .BR inet_aton () returns 1 if the supplied string was successfully interpreted, or 0 if the string is invalid @@ -125,7 +125,7 @@ or 0 if the string is invalid is .I not set on error). -.PP +.P The .BR inet_addr () function converts the Internet host address @@ -142,7 +142,7 @@ Avoid its use in favor of or .BR getaddrinfo (3), which provide a cleaner way to indicate error return. -.PP +.P The .BR inet_network () function converts @@ -152,7 +152,7 @@ into a number in host byte order suitable for use as an Internet network address. On success, the converted address is returned. If the input is invalid, \-1 is returned. -.PP +.P The .BR inet_ntoa () function converts the Internet host address @@ -160,19 +160,19 @@ function converts the Internet host address dotted-decimal notation. The string is returned in a statically allocated buffer, which subsequent calls will overwrite. -.PP +.P The .BR inet_lnaof () function returns the local network address part of the Internet address \fIin\fP. The returned value is in host byte order. -.PP +.P The .BR inet_netof () function returns the network number part of the Internet address \fIin\fP. The returned value is in host byte order. -.PP +.P The .BR inet_makeaddr () function is the converse of @@ -183,7 +183,7 @@ It returns an Internet host address in network byte order, created by combining the network number \fInet\fP with the local address \fIhost\fP, both in host byte order. -.PP +.P The structure \fIin_addr\fP as used in .BR inet_ntoa (), .BR inet_makeaddr (), @@ -193,7 +193,7 @@ and is defined in .I as: -.PP +.P .in +4n .EX typedef uint32_t in_addr_t; @@ -227,7 +227,6 @@ T{ .BR inet_netof () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR inet_addr () @@ -243,7 +242,7 @@ None. .TQ .BR inet_ntoa () POSIX.1-2001, 4.3BSD. -.PP +.P .BR inet_lnaof (), .BR inet_netof (), and @@ -270,7 +269,7 @@ This address type is indicated by the binary value 110 in the most significant three bits of the address. The network address is contained in the three most significant bytes, and the host address occupies the remaining byte. -.PP +.P Classful network addresses are now obsolete, having been superseded by Classless Inter-Domain Routing (CIDR), which divides addresses into network and host components at @@ -286,7 +285,7 @@ and .BR inet_ntoa () is shown below. Here are some example runs: -.PP +.P .in +4n .EX .RB "$" " ./a.out 226.000.000.037" " # Last byte is in octal" diff --git a/upstream/opensuse-tumbleweed/man3/inet_net_pton.3 b/upstream/opensuse-tumbleweed/man3/inet_net_pton.3 index 2a744419..09bff617 100644 --- a/upstream/opensuse-tumbleweed/man3/inet_net_pton.3 +++ b/upstream/opensuse-tumbleweed/man3/inet_net_pton.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH inet_net_pton 3 2023-05-03 "Linux man-pages 6.05.01" +.TH inet_net_pton 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME inet_net_pton, inet_net_ntop \- Internet network number conversion .SH LIBRARY @@ -11,7 +11,7 @@ Resolver library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int inet_net_pton(int " af ", const char *" pres , .BI " void " netp [. nsize "], size_t " nsize ); .BI "char *inet_net_ntop(int " af , @@ -19,12 +19,12 @@ Resolver library .BI " int " bits , .BI " char " pres [. psize "], size_t " psize ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR inet_net_pton (), .BR inet_net_ntop (): .nf @@ -36,7 +36,7 @@ Feature Test Macro Requirements for glibc (see .SH DESCRIPTION These functions convert network numbers between presentation (i.e., printable) format and network (i.e., binary) format. -.PP +.P For both functions, .I af specifies the address family for the conversion; @@ -61,7 +61,7 @@ The .I nsize argument specifies the number of bytes available in .IR netp . -.PP +.P On success, .BR inet_net_pton () returns the number of bits in the network number field @@ -69,7 +69,7 @@ of the result placed in .IR netp . For a discussion of the input presentation format and the return value, see NOTES. -.PP +.P .IR Note : the buffer pointed to by .I netp @@ -91,7 +91,7 @@ The .I bits argument specifies the number of bits in the network number in .IR *netp . -.PP +.P The null-terminated presentation-format string is placed in the buffer pointed to by .IR pres . @@ -109,7 +109,7 @@ returns the number of bits in the network number. On error, it returns \-1, and .I errno is set to indicate the error. -.PP +.P On success, .BR inet_net_ntop () returns @@ -138,16 +138,16 @@ None. The network number may be specified either as a hexadecimal value or in dotted-decimal notation. -.PP +.P Hexadecimal values are indicated by an initial "0x" or "0X". The hexadecimal digits populate the nibbles (half octets) of the network number from left to right in network byte order. .\" If the hexadecimal string is short, the remaining nibbles are zeroed. -.PP +.P In dotted-decimal notation, up to four octets are specified, as decimal numbers separated by dots. Thus, any of the following forms are accepted: -.PP +.P .in +4n .EX a.b.c.d @@ -156,7 +156,7 @@ a.b a .EE .in -.PP +.P Each part is a number in the range 0 to 255 that populates one byte of the resulting network number, going from left to right, in network-byte (big endian) order. @@ -164,7 +164,7 @@ Where a part is omitted, the resulting byte in the network number is zero. .\" Reading other man pages, some other implementations treat .\" 'c' in a.b.c as a 16-bit number that populates right-most two bytes .\" 'b' in a.b as a 24-bit number that populates right-most three bytes -.PP +.P For either hexadecimal or dotted-decimal format, the network number can optionally be followed by a slash and a number in the range 0 to 32, @@ -210,7 +210,7 @@ is 16. Otherwise, .I bits is 8. -.PP +.P If the resulting .I bits value from the above steps is greater than or equal to 8, @@ -233,7 +233,7 @@ It then uses .BR inet_net_ntop () to convert the binary form back to presentation format, and displays the resulting string. -.PP +.P In order to demonstrate that .BR inet_net_pton () may not write to all bytes of its @@ -247,11 +247,11 @@ the program displays all of the bytes of the buffer returned by .BR inet_net_pton () allowing the user to see which bytes have not been touched by .BR inet_net_pton (). -.PP +.P An example run, showing that .BR inet_net_pton () infers the number of bits in the network number: -.PP +.P .in +4n .EX $ \fB./a.out 193.168\fP @@ -260,11 +260,11 @@ inet_net_ntop() yielded: 193.168.0/24 Raw address: c1a80000 .EE .in -.PP +.P Demonstrate that .BR inet_net_pton () does not zero out unused bytes in its result buffer: -.PP +.P .in +4n .EX $ \fB./a.out 193.168 0xffffffff\fP @@ -273,13 +273,13 @@ inet_net_ntop() yielded: 193.168.0/24 Raw address: c1a800ff .EE .in -.PP +.P Demonstrate that .BR inet_net_pton () will widen the inferred size of the network number, if the supplied number of bytes in the presentation string exceeds the inferred value: -.PP +.P .in +4n .EX $ \fB./a.out 193.168.1.128\fP @@ -288,13 +288,13 @@ inet_net_ntop() yielded: 193.168.1.128/32 Raw address: c1a80180 .EE .in -.PP +.P Explicitly specifying the size of the network number overrides any inference about its size (but any extra bytes that are explicitly specified will still be used by .BR inet_net_pton (): to populate the result buffer): -.PP +.P .in +4n .EX $ \fB./a.out 193.168.1.128/24\fP diff --git a/upstream/opensuse-tumbleweed/man3/inet_ntop.3 b/upstream/opensuse-tumbleweed/man3/inet_ntop.3 index 6f6d8536..6f2ce5de 100644 --- a/upstream/opensuse-tumbleweed/man3/inet_ntop.3 +++ b/upstream/opensuse-tumbleweed/man3/inet_ntop.3 @@ -4,7 +4,7 @@ .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" References: RFC 2553 -.TH inet_ntop 3 2023-07-20 "Linux man-pages 6.05.01" +.TH inet_ntop 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME inet_ntop \- convert IPv4 and IPv6 addresses from binary to text form .SH LIBRARY @@ -13,7 +13,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "const char *inet_ntop(int " af ", const void *restrict " src , .BI " char " dst "[restrict ." size "], socklen_t " size ); .fi @@ -29,7 +29,7 @@ which must be a non-null pointer. The caller specifies the number of bytes available in this buffer in the argument .IR size . -.PP +.P .BR inet_ntop () extends the .BR inet_ntoa (3) @@ -95,12 +95,11 @@ T{ .BR inet_ntop () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY POSIX.1-2001. -.PP +.P Note that RFC\ 2553 defines a prototype where the last argument .I size is of type diff --git a/upstream/opensuse-tumbleweed/man3/inet_pton.3 b/upstream/opensuse-tumbleweed/man3/inet_pton.3 index 420a6425..89b10c33 100644 --- a/upstream/opensuse-tumbleweed/man3/inet_pton.3 +++ b/upstream/opensuse-tumbleweed/man3/inet_pton.3 @@ -5,7 +5,7 @@ .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" References: RFC 2553 -.TH inet_pton 3 2023-07-20 "Linux man-pages 6.05.01" +.TH inet_pton 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME inet_pton \- convert IPv4 and IPv6 addresses from text to binary form .SH LIBRARY @@ -14,7 +14,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int inet_pton(int " af ", const char *restrict " src \ ", void *restrict " dst ); .fi @@ -35,7 +35,7 @@ or .BR AF_INET6 . .I dst is written in network byte order. -.PP +.P The following address families are currently supported: .TP .B AF_INET @@ -127,7 +127,6 @@ T{ .BR inet_pton () T} Thread safety MT-Safe locale .TE -.sp 1 .SH VERSIONS Unlike .BR inet_aton (3) @@ -163,7 +162,7 @@ The program below demonstrates the use of and .BR inet_ntop (3). Here are some example runs: -.PP +.P .in +4n .EX .RB "$" " ./a.out i6 0:0:0:0:0:0:0:0" diff --git a/upstream/opensuse-tumbleweed/man3/initgroups.3 b/upstream/opensuse-tumbleweed/man3/initgroups.3 index 81505cbf..ea68719e 100644 --- a/upstream/opensuse-tumbleweed/man3/initgroups.3 +++ b/upstream/opensuse-tumbleweed/man3/initgroups.3 @@ -10,7 +10,7 @@ .\" Modified 1993-07-24 by Rik Faith .\" Modified 2004-10-10 by aeb .\" -.TH initgroups 3 2023-07-20 "Linux man-pages 6.05.01" +.TH initgroups 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME initgroups \- initialize the supplementary group access list .SH LIBRARY @@ -20,15 +20,15 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "int initgroups(const char *" user ", gid_t " group ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR initgroups (): .nf Since glibc 2.19: @@ -50,7 +50,7 @@ The additional group .I group is also added to the list. -.PP +.P The .I user argument must be non-NULL. @@ -88,7 +88,6 @@ T{ .BR initgroups () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS None. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/initscr.3ncurses b/upstream/opensuse-tumbleweed/man3/initscr.3ncurses index 92f760fa..5bb0aef7 100644 --- a/upstream/opensuse-tumbleweed/man3/initscr.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/initscr.3ncurses @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_initscr.3x,v 1.62 2024/02/24 20:03:50 tom Exp $ -.TH initscr 3NCURSES 2024-02-24 "ncurses 6.4" "Library calls" +.\" $Id: curs_initscr.3x,v 1.69 2024/04/20 21:24:19 tom Exp $ +.TH initscr 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -174,10 +174,10 @@ i.e., \fBset_term\fP returns no error. .SH PORTABILITY -These functions were described in the XSI Curses standard, Issue 4. +These functions were described in X/Open Curses, Issue 4. As of 2015, the current document is X/Open Curses, Issue 7. .SS Differences -X/Open specifies that portable applications must not +X/Open Curses specifies that portable applications must not call \fBinitscr\fP more than once: .bP The portable way to use \fBinitscr\fP is once only, @@ -189,7 +189,7 @@ This implementation allows using \fBinitscr\fP after \fBendwin\fP. Old versions of curses, e.g., BSD 4.4, would return a null pointer from \fBinitscr\fP when an error is detected, rather than exiting. It is safe but redundant to check the return value of \fBinitscr\fP -in XSI Curses. +in X/Open Curses. .PP Calling \fBendwin\fP does not dispose of the memory allocated in \fBinitscr\fP or \fBnewterm\fP. diff --git a/upstream/opensuse-tumbleweed/man3/inopts.3ncurses b/upstream/opensuse-tumbleweed/man3/inopts.3ncurses index f4c5ac83..76d5647b 100644 --- a/upstream/opensuse-tumbleweed/man3/inopts.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/inopts.3ncurses @@ -1,6 +1,6 @@ '\" t .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2016,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -28,8 +28,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_inopts.3x,v 1.60 2023/12/23 16:36:18 tom Exp $ -.TH inopts 3NCURSES 2023-12-23 "ncurses 6.4" "Library calls" +.\" $Id: curs_inopts.3x,v 1.66 2024/04/13 22:20:29 tom Exp $ +.TH inopts 3NCURSES 2024-04-13 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -228,7 +228,7 @@ this is equivalent, under POSIX, to setting the CS7 flag on the terminal. The window argument, -.I win, +.IR win , is always ignored. If the terminfo capabilities \fBsmm\fP (meta_on) and @@ -278,7 +278,7 @@ passed through uninterpreted, instead of generating a signal. The behavior of the BREAK key depends on other bits in the terminal driver that are not set by -.I curses. +.IR curses . .\" .SS "qiflush, nqiflush" When the \fB\%noqiflush\fP routine is used, @@ -344,7 +344,7 @@ All routines that return an integer return \fBERR\fP upon failure and upon successful completion, unless otherwise noted in the preceding routine descriptions. .PP -X/Open does not define any error conditions. +X/Open Curses does not specify any error conditions. In this implementation, functions with a window parameter will return an error if it is null. Any function will also return an error if the terminal was not @@ -508,12 +508,43 @@ load key definitions in the order defined by the array of string capability names. The last key to be loaded determines the keycode which will be returned. In -.I \%ncurses, +.IR \%ncurses , you may also have extended capabilities interpreted as key definitions. These are loaded after the predefined keys, and if a capability's value is the same as a previously-loaded key definition, the later definition is the one used. +.SH HISTORY +Formerly, +.I \%ncurses +used +.B \%nl +and +.B \%nonl +to control the conversion of newlines to carriage return/line feed +on output as well as input. +X/Open Curses documents the use of these functions only for input. +This difference arose from converting the +.I \%pcurses +source (1986), +which used +\fI\%ioctl\fP(2) calls and the +.I \%sgttyb +structure, +to +.I \%termios +(the POSIX terminal API). +In the former, +both input and output were controlled via a single option +.BR \%CRMOD , +while the latter separates these features. +Because that conversion interferes with output optimization, +.I \%ncurses +6.2 (2020) amended +.B \%nl +and +.B \%nonl +to eliminate their effect on output. .SH SEE ALSO \fB\%ncurses\fP(3NCURSES), \fB\%getch\fP(3NCURSES), diff --git a/upstream/opensuse-tumbleweed/man3/ins_wch.3ncurses b/upstream/opensuse-tumbleweed/man3/ins_wch.3ncurses index fc559d2d..88fa05f5 100644 --- a/upstream/opensuse-tumbleweed/man3/ins_wch.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/ins_wch.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2019-2022,2023 Thomas E. Dickey * +.\" Copyright 2019-2023,2024 Thomas E. Dickey * .\" Copyright 2002-2010,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_ins_wch.3x,v 1.26 2023/12/23 16:03:24 tom Exp $ -.TH ins_wch 3NCURSES 2023-12-23 "ncurses 6.4" "Library calls" +.\" $Id: curs_ins_wch.3x,v 1.30 2024/04/20 19:18:18 tom Exp $ +.TH ins_wch 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -75,11 +75,11 @@ Functions taking a pointer argument fail if the pointer is .BR NULL . .PP -Functions prefixed with \*(``mv\*('' first perform cursor movement using -\fB\%wmove\fP and fail if the position +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position .RI ( y , .IR x ) -is outside the window. +is outside the window boundaries. .SH NOTES A terminal's .B \%insert_character @@ -93,7 +93,8 @@ and \fB\%mvwins_wch\fP may be implemented as macros. .SH PORTABILITY -X/Open Curses, Issue 4, describes these functions. +X/Open Curses, +Issue 4 describes these functions. .PP SVr4 describes successful return values only as \*(``an integer value other than \fBERR\fP\*(''. diff --git a/upstream/opensuse-tumbleweed/man3/ins_wstr.3ncurses b/upstream/opensuse-tumbleweed/man3/ins_wstr.3ncurses index 87be4e61..aa0b565c 100644 --- a/upstream/opensuse-tumbleweed/man3/ins_wstr.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/ins_wstr.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2019-2022,2023 Thomas E. Dickey * +.\" Copyright 2019-2023,2024 Thomas E. Dickey * .\" Copyright 2002-2012,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_ins_wstr.3x,v 1.30 2023/12/16 20:36:15 tom Exp $ -.TH ins_wstr 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: curs_ins_wstr.3x,v 1.38 2024/04/20 21:23:08 tom Exp $ +.TH ins_wstr 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -89,7 +89,7 @@ Special characters are handled as in \fB\%wadd_wch\fP(3NCURSES). .SH RETURN VALUE All functions return the integer \fBERR\fP upon failure and \fBOK\fP on success. .PP -X/Open does not define any error conditions. +X/Open Curses does not specify any error conditions. This implementation returns an error .bP if the \fIwin\fP parameter is null or @@ -98,18 +98,20 @@ if the \fIwstr\fP parameter is null or .bP if the \fBwins_wch\fP function returns an error. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fB\%wmove\fP(3NCURSES), and return an error if the position is outside the window, -or if the window pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES All but \fBwins_nwstr\fP may be macros. .PP If the first character in the string is a non-spacing character, these functions will fail. -XSI does not define what will happen if a non-spacing character follows -a control character. +X/Open Curses does not define what will happen +if a non-spacing character follows a control character. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4, +These functions are described in X/Open Curses, Issue 4, which adds \fI\%const\fP qualifiers to the arguments. .PP X/Open states that the entire string is inserted if \fIn\fP is less than 1. @@ -117,7 +119,10 @@ This is probably an error, because it is inconsistent with other functions, and differs from the X/Open implementation on Solaris. .SH SEE ALSO +\fB\%insstr\fP(3NCURSES) describes comparable functions of the +.I \%ncurses +library in its non-wide-character configuration. +.PP \fB\%ncurses\fP(3NCURSES), -\fB\%insstr\fP(3NCURSES), \fB\%ins_wch\fP(3NCURSES), \fB\%in_wch\fP(3NCURSES) diff --git a/upstream/opensuse-tumbleweed/man3/insch.3ncurses b/upstream/opensuse-tumbleweed/man3/insch.3ncurses index 8d0542e7..cfb2674f 100644 --- a/upstream/opensuse-tumbleweed/man3/insch.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/insch.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_insch.3x,v 1.36 2023/12/23 16:03:24 tom Exp $ -.TH insch 3NCURSES 2023-12-23 "ncurses 6.4" "Library calls" +.\" $Id: curs_insch.3x,v 1.40 2024/04/20 19:03:47 tom Exp $ +.TH insch 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -44,7 +44,7 @@ \fB\%winsch\fP, \fB\%mvinsch\fP, \fB\%mvwinsch\fP \- -insert a \fIcurses\fR character in a window +insert a \fIcurses\fP character in a window .SH SYNOPSIS .nf \fB#include \fP @@ -68,35 +68,43 @@ cell to the right; the rightmost character on the line is discarded. The cursor does not advance. .SH "RETURN VALUE" -These functions return \fBOK\fP on success and \fBERR\fP on failure. +These functions return +.B OK +on success and +.B ERR +on failure. .PP Functions taking a .I \%WINDOW pointer argument fail if the pointer is .BR NULL . .PP -Functions prefixed with \*(``mv\*('' first perform cursor movement using -\fB\%wmove\fP and fail if the position +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position .RI ( y , .IR x ) -is outside the window. +is outside the window boundaries. .SH NOTES +.BR \%insch , +.BR \%mvinsch , +and +.B \%mvwinsch +may be implemented as macros. +.PP A terminal's .B \%insert_character .RB ( ich1 ) capability is not necessarily employed. -.PP -\fB\%insch\fP, -\fB\%mvinsch\fP, -and -\fB\%mvwinsch\fP -may be implemented as macros. .SH PORTABILITY -X/Open Curses, Issue 4, describes these functions. +X/Open Curses, +Issue 4 describes these functions. .PP -SVr4 describes successful return values only as -\*(``an integer value other than \fBERR\fP\*(''. +SVr4 +.I curses +describes a successful return value only as +\*(``an integer value other than +.BR ERR \*(''. .SH "SEE ALSO" \fB\%ins_wch\fP(3NCURSES) describes comparable functions in the wide-character diff --git a/upstream/opensuse-tumbleweed/man3/insque.3 b/upstream/opensuse-tumbleweed/man3/insque.3 index d3444ce4..905d8033 100644 --- a/upstream/opensuse-tumbleweed/man3/insque.3 +++ b/upstream/opensuse-tumbleweed/man3/insque.3 @@ -14,7 +14,7 @@ .\" mtk, 2010-09-09: Noted glibc 2.4 bug, added info on circular .\" lists, added example program .\" -.TH insque 3 2023-07-20 "Linux man-pages 6.05.01" +.TH insque 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME insque, remque \- insert/remove an item from a queue .SH LIBRARY @@ -23,16 +23,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void insque(void *" elem ", void *" prev ); .BI "void remque(void *" elem ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR insque (), .BR remque (): .nf @@ -53,19 +53,19 @@ backward pointer. The linked list may be linear (i.e., NULL forward pointer at the end of the list and NULL backward pointer at the start of the list) or circular. -.PP +.P The .BR insque () function inserts the element pointed to by \fIelem\fP immediately after the element pointed to by \fIprev\fP. -.PP +.P If the list is linear, then the call .I "insque(elem, NULL)" can be used to insert the initial list element, and the call sets the forward and backward pointers of .I elem to NULL. -.PP +.P If the list is circular, the caller should ensure that the forward and backward pointers of the first element are initialized to point to that element, @@ -74,7 +74,7 @@ and the argument of the .BR insque () call should also point to the element. -.PP +.P The .BR remque () function removes the element pointed to by \fIelem\fP from the @@ -94,13 +94,12 @@ T{ .BR remque () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS On ancient systems, .\" e.g., SunOS, Linux libc4 and libc5 the arguments of these functions were of type \fIstruct qelem *\fP, defined as: -.PP +.P .in +4n .EX struct qelem { @@ -110,12 +109,12 @@ struct qelem { }; .EE .in -.PP +.P This is still what you will get if .B _GNU_SOURCE is defined before including \fI\fP. -.PP +.P The location of the prototypes for these functions differs among several versions of UNIX. The above is the POSIX version. @@ -137,7 +136,7 @@ with the forward and backward pointers in each element suitably initialized. The program below demonstrates the use of .BR insque (). Here is an example run of the program: -.PP +.P .in +4n .EX .RB "$ " "./a.out \-c a b c" diff --git a/upstream/opensuse-tumbleweed/man3/insstr.3ncurses b/upstream/opensuse-tumbleweed/man3/insstr.3ncurses index 13f6aef4..329b9340 100644 --- a/upstream/opensuse-tumbleweed/man3/insstr.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/insstr.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2019-2022,2023 Thomas E. Dickey * +.\" Copyright 2019-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_insstr.3x,v 1.46 2023/11/25 11:29:34 tom Exp $ -.TH insstr 3NCURSES 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: curs_insstr.3x,v 1.51 2024/04/20 21:20:07 tom Exp $ +.TH insstr 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -88,7 +88,7 @@ Special characters are handled as in \fB\%waddch\fP(3NCURSES). .SH RETURN VALUE All functions return the integer \fBERR\fP upon failure and \fBOK\fP on success. .PP -X/Open does not define any error conditions. +X/Open Curses does not specify any error conditions. This implementation returns an error .bP if the \fIwin\fP parameter is null or @@ -97,13 +97,15 @@ if the \fIstr\fP parameter is null or .bP the \fB\%winsch\fP(3NCURSES) function returns an error. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fB\%wmove\fP(3NCURSES), and return an error if the position is outside the window, -or if the window pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES All but \fBwinsnstr\fP may be macros. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4, +These functions are described in X/Open Curses, Issue 4, which adds \fI\%const\fP qualifiers to the arguments. .PP The Single Unix Specification, Version 2 states that diff --git a/upstream/opensuse-tumbleweed/man3/instr.3ncurses b/upstream/opensuse-tumbleweed/man3/instr.3ncurses index bf595f1b..36965f68 100644 --- a/upstream/opensuse-tumbleweed/man3/instr.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/instr.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_instr.3x,v 1.44 2023/12/16 20:32:22 tom Exp $ -.TH instr 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: curs_instr.3x,v 1.51 2024/04/20 21:24:19 tom Exp $ +.TH instr 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -89,9 +89,11 @@ if the \fIwin\fP parameter is null or .bP if the \fIchstr\fP parameter is null. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES All routines except \fBwinnstr\fP may be macros. .PP @@ -114,12 +116,15 @@ is recommended. SVr4 does not document whether a length limit includes or excludes the trailing NUL. .PP -The \fI\%ncurses\fP library extends the XSI description by allowing a +The \fI\%ncurses\fP library extends the X/Open Curses description by allowing a negative value for \fIn\fP. In this case, the functions return the string ending at the right margin. .SH SEE ALSO +\fB\%ins_wstr\fP(3NCURSES) describes comparable functions of the +.I \%ncurses +library in its wide-character configuration +.RI ( \%ncursesw ). +.PP \fB\%ncurses\fP(3NCURSES), \fB\%inch\fP(3NCURSES), -\fB\%inchstr\fP(3NCURSES), -\fB\%inwstr\fP(3NCURSES), -\fB\%in_wchstr\fP(3NCURSES) +\fB\%inchstr\fP(3NCURSES) diff --git a/upstream/opensuse-tumbleweed/man3/intro.3 b/upstream/opensuse-tumbleweed/man3/intro.3 index 7f72ae66..fbf9f65c 100644 --- a/upstream/opensuse-tumbleweed/man3/intro.3 +++ b/upstream/opensuse-tumbleweed/man3/intro.3 @@ -3,7 +3,7 @@ .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" 2007-10-23 mtk, Nearly a complete rewrite of the earlier page. -.TH intro 3 2023-02-05 "Linux man-pages 6.05.01" +.TH intro 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME intro \- introduction to library functions .SH DESCRIPTION @@ -12,7 +12,7 @@ excluding the library functions (system call wrappers) described in Section 2, which implement system calls. -.PP +.P Many of the functions described in the section are part of the Standard C Library .RI ( libc ). @@ -30,7 +30,7 @@ and .IR \-lrt , respectively, for the aforementioned libraries). -.PP +.P In some cases, the programmer must define a feature test macro in order to obtain the declaration of a function from the header file specified @@ -86,12 +86,12 @@ and its many implementations: 3head .IP \[bu] 3type -.PP +.P This difficult history frequently makes it a poor example to follow in design, implementation, and presentation. -.PP +.P Ideally, a library for the C language is designed such that each header file diff --git a/upstream/opensuse-tumbleweed/man3/inwstr.3ncurses b/upstream/opensuse-tumbleweed/man3/inwstr.3ncurses index 42cc321b..10662ce1 100644 --- a/upstream/opensuse-tumbleweed/man3/inwstr.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/inwstr.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 2002-2012,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_inwstr.3x,v 1.36 2023/12/30 21:32:48 tom Exp $ -.TH inwstr 3NCURSES 2023-12-30 "ncurses 6.4" "Library calls" +.\" $Id: curs_inwstr.3x,v 1.41 2024/04/20 21:20:07 tom Exp $ +.TH inwstr 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -99,9 +99,11 @@ if the \fIwstr\fP parameter is null, or .bP if no characters could be read. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement using -\fBwmove\fP, and return an error if the position is outside the window, -or if the window pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES All routines except \fBwinnwstr\fP @@ -130,7 +132,7 @@ Therefore, the use of \fBwinnwstr\fP is recommended. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. +These functions are described in X/Open Curses, Issue 4. .SH SEE ALSO \fB\%ncurses\fP(3NCURSES), \fB\%inch\fP(3NCURSES), diff --git a/upstream/opensuse-tumbleweed/man3/isalpha.3 b/upstream/opensuse-tumbleweed/man3/isalpha.3 index cf0d54ae..36256857 100644 --- a/upstream/opensuse-tumbleweed/man3/isalpha.3 +++ b/upstream/opensuse-tumbleweed/man3/isalpha.3 @@ -8,7 +8,7 @@ .\" Modified Sat Sep 2 21:52:01 1995 by Jim Van Zandt .\" Modified Mon May 27 22:55:26 1996 by Martin Schulze (joey@linux.de) .\" -.TH isalpha 3 2023-07-30 "Linux man-pages 6.05.01" +.TH isalpha 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME isalnum, isalpha, isascii, isblank, iscntrl, isdigit, isgraph, islower, isprint, ispunct, isspace, isupper, isxdigit, @@ -22,7 +22,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int isalnum(int " c ); .BI "int isalpha(int " c ); .BI "int iscntrl(int " c ); @@ -34,10 +34,10 @@ Standard C library .BI "int isspace(int " c ); .BI "int isupper(int " c ); .BI "int isxdigit(int " c ); -.PP +.P .BI "int isascii(int " c ); .BI "int isblank(int " c ); -.PP +.P .BI "int isalnum_l(int " c ", locale_t " locale ); .BI "int isalpha_l(int " c ", locale_t " locale ); .BI "int isblank_l(int " c ", locale_t " locale ); @@ -50,28 +50,28 @@ Standard C library .BI "int isspace_l(int " c ", locale_t " locale ); .BI "int isupper_l(int " c ", locale_t " locale ); .BI "int isxdigit_l(int " c ", locale_t " locale ); -.PP +.P .BI "int isascii_l(int " c ", locale_t " locale ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE .ad l -.PP +.P .BR isascii (): .nf _XOPEN_SOURCE || /* glibc >= 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _SVID_SOURCE .fi -.PP +.P .BR isblank (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L .fi -.PP +.P .BR \%salnum_l (), .BR \%salpha_l (), .BR \%sblank_l (), @@ -90,7 +90,7 @@ Feature Test Macro Requirements for glibc (see Before glibc 2.10: _GNU_SOURCE .fi -.PP +.P .BR isascii_l (): .nf Since glibc 2.10: @@ -109,7 +109,7 @@ or falls into a certain character class according to the specified locale. The functions without the "_l" suffix perform the check based on the current locale. -.PP +.P The functions with the "_l" suffix perform the check based on the locale specified by the locale object .IR locale . @@ -120,7 +120,7 @@ is the special locale object (see .BR duplocale (3)) or is not a valid locale object handle. -.PP +.P The list below explains the operation of the functions without the "_l" suffix; the functions with the "_l" suffix differ only in using the locale object @@ -170,9 +170,9 @@ alphanumeric character. .BR isspace () checks for white-space characters. In the -.B """C""" +.B \[dq]C\[dq] and -.B """POSIX""" +.B \[dq]POSIX\[dq] locales, these are: space, form-feed .RB ( \[aq]\ef\[aq] ), newline @@ -221,7 +221,6 @@ T{ .BR isxdigit () T} Thread safety MT-Safe .TE -.sp 1 .\" FIXME: need a thread-safety statement about the *_l functions .SH STANDARDS .TP @@ -357,7 +356,7 @@ is of type it must be cast to .IR "unsigned char" , as in the following example: -.PP +.P .in +4n .EX char c; @@ -365,7 +364,7 @@ char c; res = toupper((unsigned char) c); .EE .in -.PP +.P This is necessary because .I char may be the equivalent of @@ -375,7 +374,7 @@ converting to .IR int , yielding a value that is outside the range of .IR "unsigned char" . -.PP +.P The details of what characters belong to which class depend on the locale. For example, diff --git a/upstream/opensuse-tumbleweed/man3/isatty.3 b/upstream/opensuse-tumbleweed/man3/isatty.3 index fe44c888..99cb872f 100644 --- a/upstream/opensuse-tumbleweed/man3/isatty.3 +++ b/upstream/opensuse-tumbleweed/man3/isatty.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH isatty 3 2023-07-20 "Linux man-pages 6.05.01" +.TH isatty 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME isatty \- test whether a file descriptor refers to a terminal .SH LIBRARY @@ -13,7 +13,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int isatty(int " fd ); .fi .SH DESCRIPTION @@ -59,7 +59,6 @@ T{ .BR isatty () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/isfdtype.3 b/upstream/opensuse-tumbleweed/man3/isfdtype.3 index e8eb1f49..74ecf931 100644 --- a/upstream/opensuse-tumbleweed/man3/isfdtype.3 +++ b/upstream/opensuse-tumbleweed/man3/isfdtype.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH isfdtype 3 2023-03-30 "Linux man-pages 6.05.01" +.TH isfdtype 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME isfdtype \- test file type of a file descriptor .SH LIBRARY @@ -12,15 +12,15 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "int isfdtype(int " fd ", int " fdtype ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR isfdtype (): .nf Since glibc 2.20: diff --git a/upstream/opensuse-tumbleweed/man3/isgreater.3 b/upstream/opensuse-tumbleweed/man3/isgreater.3 index b5c30d5c..9252b632 100644 --- a/upstream/opensuse-tumbleweed/man3/isgreater.3 +++ b/upstream/opensuse-tumbleweed/man3/isgreater.3 @@ -6,7 +6,7 @@ .\" 2002-07-27 Walter Harms .\" this was done with the help of the glibc manual .\" -.TH isgreater 3 2023-07-20 "Linux man-pages 6.05.01" +.TH isgreater 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME isgreater, isgreaterequal, isless, islessequal, islessgreater, isunordered \- floating-point relational tests without exception for NaN @@ -16,7 +16,7 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int isgreater(" x ", " y ); .BI "int isgreaterequal(" x ", " y ); .BI "int isless(" x ", " y ); @@ -24,12 +24,12 @@ Math library .BI "int islessgreater(" x ", " y ); .BI "int isunordered(" x ", " y ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .nf All functions described here: _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -41,7 +41,7 @@ The normal relational operations (like fail if one of the operands is NaN. This will cause an exception. To avoid this, C99 defines the macros listed below. -.PP +.P These macros are guaranteed to evaluate their arguments only once. The arguments must be of real floating-point type (note: do not pass integer values as arguments to these macros, since the arguments will @@ -102,7 +102,7 @@ The macros other than .BR isunordered () return the result of the relational comparison; these macros return 0 if either argument is a NaN. -.PP +.P .BR isunordered () returns 1 if .I x @@ -130,7 +130,6 @@ T{ .BR isunordered () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS Not all hardware supports these functions, and where hardware support isn't provided, they will be emulated by macros. diff --git a/upstream/opensuse-tumbleweed/man3/iswalnum.3 b/upstream/opensuse-tumbleweed/man3/iswalnum.3 index 9d5bb246..2d05ee1f 100644 --- a/upstream/opensuse-tumbleweed/man3/iswalnum.3 +++ b/upstream/opensuse-tumbleweed/man3/iswalnum.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH iswalnum 3 2023-07-20 "Linux man-pages 6.05.01" +.TH iswalnum 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME iswalnum \- test for alphanumeric wide character .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int iswalnum(wint_t " wc ); .fi .SH DESCRIPTION @@ -31,26 +31,26 @@ It tests whether .I wc is a wide character belonging to the wide-character class "alnum". -.PP +.P The wide-character class "alnum" is a subclass of the wide-character class "graph", and therefore also a subclass of the wide-character class "print". -.PP +.P Being a subclass of the wide-character class "print", the wide-character class "alnum" is disjoint from the wide-character class "cntrl". -.PP +.P Being a subclass of the wide-character class "graph", the wide-character class "alnum" is disjoint from the wide-character class "space" and its subclass "blank". -.PP +.P The wide-character class "alnum" is disjoint from the wide-character class "punct". -.PP +.P The wide-character class "alnum" is the union of the wide-character classes "alpha" and "digit". As such, it also contains the wide-character class "xdigit". -.PP +.P The wide-character class "alnum" always contains at least the letters \[aq]A\[aq] to \[aq]Z\[aq], @@ -79,7 +79,6 @@ T{ .BR iswalnum () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/iswalpha.3 b/upstream/opensuse-tumbleweed/man3/iswalpha.3 index a05dfe97..0f309a55 100644 --- a/upstream/opensuse-tumbleweed/man3/iswalpha.3 +++ b/upstream/opensuse-tumbleweed/man3/iswalpha.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH iswalpha 3 2023-07-20 "Linux man-pages 6.05.01" +.TH iswalpha 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME iswalpha \- test for alphabetic wide character .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int iswalpha(wint_t " wc ); .fi .SH DESCRIPTION @@ -31,30 +31,30 @@ It tests whether .I wc is a wide character belonging to the wide-character class "alpha". -.PP +.P The wide-character class "alpha" is a subclass of the wide-character class "alnum", and therefore also a subclass of the wide-character class "graph" and of the wide-character class "print". -.PP +.P Being a subclass of the wide-character class "print", the wide-character class "alpha" is disjoint from the wide-character class "cntrl". -.PP +.P Being a subclass of the wide-character class "graph", the wide-character class "alpha" is disjoint from the wide-character class "space" and its subclass "blank". -.PP +.P Being a subclass of the wide-character class "alnum", the wide-character class "alpha" is disjoint from the wide-character class "punct". -.PP +.P The wide-character class "alpha" is disjoint from the wide-character class "digit". -.PP +.P The wide-character class "alpha" contains the wide-character classes "upper" and "lower". -.PP +.P The wide-character class "alpha" always contains at least the letters \[aq]A\[aq] to \[aq]Z\[aq] and \[aq]a\[aq] to \[aq]z\[aq]. .SH RETURN VALUE @@ -80,7 +80,6 @@ T{ .BR iswalpha () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/iswblank.3 b/upstream/opensuse-tumbleweed/man3/iswblank.3 index 84599abe..81e39536 100644 --- a/upstream/opensuse-tumbleweed/man3/iswblank.3 +++ b/upstream/opensuse-tumbleweed/man3/iswblank.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH iswblank 3 2023-07-20 "Linux man-pages 6.05.01" +.TH iswblank 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME iswblank \- test for whitespace wide character .SH LIBRARY @@ -18,15 +18,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int iswblank(wint_t " wc ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR iswblank (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -39,16 +39,16 @@ function is the wide-character equivalent of the function. It tests whether \fIwc\fP is a wide character belonging to the wide-character class "blank". -.PP +.P The wide-character class "blank" is a subclass of the wide-character class "space". -.PP +.P Being a subclass of the wide-character class "space", the wide-character class "blank" is disjoint from the wide-character class "graph" and therefore also disjoint from its subclasses "alnum", "alpha", "upper", "lower", "digit", "xdigit", "punct". -.PP +.P The wide-character class "blank" always contains at least the space character and the control character \[aq]\et\[aq]. @@ -73,7 +73,6 @@ T{ .BR iswblank () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/iswcntrl.3 b/upstream/opensuse-tumbleweed/man3/iswcntrl.3 index 40d78e8b..424fb9d4 100644 --- a/upstream/opensuse-tumbleweed/man3/iswcntrl.3 +++ b/upstream/opensuse-tumbleweed/man3/iswcntrl.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH iswcntrl 3 2023-07-20 "Linux man-pages 6.05.01" +.TH iswcntrl 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME iswcntrl \- test for control wide character .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int iswcntrl(wint_t " wc ); .fi .SH DESCRIPTION @@ -31,11 +31,11 @@ It tests whether .I wc is a wide character belonging to the wide-character class "cntrl". -.PP +.P The wide-character class "cntrl" is disjoint from the wide-character class "print" and therefore also disjoint from its subclasses "graph", "alpha", "upper", "lower", "digit", "xdigit", "punct". -.PP +.P For an unsigned char .IR c , .I iscntrl(c) @@ -64,7 +64,6 @@ T{ .BR iswcntrl () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/iswctype.3 b/upstream/opensuse-tumbleweed/man3/iswctype.3 index 63263458..f49aff2e 100644 --- a/upstream/opensuse-tumbleweed/man3/iswctype.3 +++ b/upstream/opensuse-tumbleweed/man3/iswctype.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH iswctype 3 2023-07-20 "Linux man-pages 6.05.01" +.TH iswctype 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME iswctype \- wide-character classification .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int iswctype(wint_t " wc ", wctype_t " desc ); .fi .SH DESCRIPTION @@ -38,7 +38,7 @@ If is .BR WEOF , zero is returned. -.PP +.P .I desc must be a character property descriptor returned by the @@ -67,7 +67,6 @@ T{ .BR iswctype () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/iswdigit.3 b/upstream/opensuse-tumbleweed/man3/iswdigit.3 index b4d187d9..d6caa4f2 100644 --- a/upstream/opensuse-tumbleweed/man3/iswdigit.3 +++ b/upstream/opensuse-tumbleweed/man3/iswdigit.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH iswdigit 3 2023-07-20 "Linux man-pages 6.05.01" +.TH iswdigit 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME iswdigit \- test for decimal digit wide character .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int iswdigit(wint_t " wc ); .fi .SH DESCRIPTION @@ -31,29 +31,29 @@ It tests whether .I wc is a wide character belonging to the wide-character class "digit". -.PP +.P The wide-character class "digit" is a subclass of the wide-character class "xdigit", and therefore also a subclass of the wide-character class "alnum", of the wide-character class "graph" and of the wide-character class "print". -.PP +.P Being a subclass of the wide character class "print", the wide-character class "digit" is disjoint from the wide-character class "cntrl". -.PP +.P Being a subclass of the wide-character class "graph", the wide-character class "digit" is disjoint from the wide-character class "space" and its subclass "blank". -.PP +.P Being a subclass of the wide-character class "alnum", the wide-character class "digit" is disjoint from the wide-character class "punct". -.PP +.P The wide-character class "digit" is disjoint from the wide-character class "alpha" and therefore also disjoint from its subclasses "lower", "upper". -.PP +.P The wide-character class "digit" always contains exactly the digits \[aq]0\[aq] to \[aq]9\[aq]. .SH RETURN VALUE @@ -79,7 +79,6 @@ T{ .BR iswdigit () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/iswgraph.3 b/upstream/opensuse-tumbleweed/man3/iswgraph.3 index 3af1b76d..cedc72fd 100644 --- a/upstream/opensuse-tumbleweed/man3/iswgraph.3 +++ b/upstream/opensuse-tumbleweed/man3/iswgraph.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH iswgraph 3 2023-07-20 "Linux man-pages 6.05.01" +.TH iswgraph 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME iswgraph \- test for graphic wide character .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int iswgraph(wint_t " wc ); .fi .SH DESCRIPTION @@ -31,20 +31,20 @@ It tests whether .I wc is a wide character belonging to the wide-character class "graph". -.PP +.P The wide-character class "graph" is a subclass of the wide-character class "print". -.PP +.P Being a subclass of the wide-character class "print", the wide-character class "graph" is disjoint from the wide-character class "cntrl". -.PP +.P The wide-character class "graph" is disjoint from the wide-character class "space" and therefore also disjoint from its subclass "blank". .\" Note: UNIX98 (susv2/xbd/locale.html) says that "graph" and "space" may .\" have characters in common, except U+0020. But C99 (ISO/IEC 9899:1999 .\" section 7.25.2.1.10) says that "space" and "graph" are disjoint. -.PP +.P The wide-character class "graph" contains all the wide characters from the wide-character class "print" except the space character. It therefore contains @@ -72,7 +72,6 @@ T{ .BR iswgraph () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/iswlower.3 b/upstream/opensuse-tumbleweed/man3/iswlower.3 index 1115275c..41051b9a 100644 --- a/upstream/opensuse-tumbleweed/man3/iswlower.3 +++ b/upstream/opensuse-tumbleweed/man3/iswlower.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH iswlower 3 2023-07-20 "Linux man-pages 6.05.01" +.TH iswlower 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME iswlower \- test for lowercase wide character .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int iswlower(wint_t " wc ); .fi .SH DESCRIPTION @@ -31,28 +31,28 @@ It tests whether .I wc is a wide character belonging to the wide-character class "lower". -.PP +.P The wide-character class "lower" is a subclass of the wide-character class "alpha", and therefore also a subclass of the wide-character class "alnum", of the wide-character class "graph" and of the wide-character class "print". -.PP +.P Being a subclass of the wide-character class "print", the wide-character class "lower" is disjoint from the wide-character class "cntrl". -.PP +.P Being a subclass of the wide-character class "graph", the wide-character class "lower" is disjoint from the wide-character class "space" and its subclass "blank". -.PP +.P Being a subclass of the wide-character class "alnum", the wide-character class "lower" is disjoint from the wide-character class "punct". -.PP +.P Being a subclass of the wide-character class "alpha", the wide-character class "lower" is disjoint from the wide-character class "digit". -.PP +.P The wide-character class "lower" contains at least those characters .I wc @@ -60,7 +60,7 @@ which are equal to .I towlower(wc) and different from .IR towupper(wc) . -.PP +.P The wide-character class "lower" always contains at least the letters \[aq]a\[aq] to \[aq]z\[aq]. .SH RETURN VALUE @@ -86,7 +86,6 @@ T{ .BR iswlower () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -98,7 +97,7 @@ depends on the .B LC_CTYPE category of the current locale. -.PP +.P This function is not very appropriate for dealing with Unicode characters, because Unicode knows about three cases: upper, lower, and title case. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/iswprint.3 b/upstream/opensuse-tumbleweed/man3/iswprint.3 index cfd1e944..e570b0bf 100644 --- a/upstream/opensuse-tumbleweed/man3/iswprint.3 +++ b/upstream/opensuse-tumbleweed/man3/iswprint.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH iswprint 3 2023-07-20 "Linux man-pages 6.05.01" +.TH iswprint 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME iswprint \- test for printing wide character .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int iswprint(wint_t " wc ); .fi .SH DESCRIPTION @@ -31,10 +31,10 @@ It tests whether .I wc is a wide character belonging to the wide-character class "print". -.PP +.P The wide-character class "print" is disjoint from the wide-character class "cntrl". -.PP +.P The wide-character class "print" contains the wide-character class "graph". .SH RETURN VALUE The @@ -58,7 +58,6 @@ T{ .BR iswprint () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/iswpunct.3 b/upstream/opensuse-tumbleweed/man3/iswpunct.3 index b3b9f57b..426bd2d8 100644 --- a/upstream/opensuse-tumbleweed/man3/iswpunct.3 +++ b/upstream/opensuse-tumbleweed/man3/iswpunct.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH iswpunct 3 2023-07-20 "Linux man-pages 6.05.01" +.TH iswpunct 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME iswpunct \- test for punctuation or symbolic wide character .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int iswpunct(wint_t " wc ); .fi .SH DESCRIPTION @@ -31,18 +31,18 @@ It tests whether .I wc is a wide character belonging to the wide-character class "punct". -.PP +.P The wide-character class "punct" is a subclass of the wide-character class "graph", and therefore also a subclass of the wide-character class "print". -.PP +.P The wide-character class "punct" is disjoint from the wide-character class "alnum" and therefore also disjoint from its subclasses "alpha", "upper", "lower", "digit", "xdigit". -.PP +.P Being a subclass of the wide-character class "print", the wide-character class "punct" is disjoint from the wide-character class "cntrl". -.PP +.P Being a subclass of the wide-character class "graph", the wide-character class "punct" is disjoint from the wide-character class "space" and its subclass @@ -70,7 +70,6 @@ T{ .BR iswpunct () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -82,7 +81,7 @@ depends on the .B LC_CTYPE category of the current locale. -.PP +.P This function's name is a misnomer when dealing with Unicode characters, because the wide-character class "punct" contains both punctuation characters and symbol (math, currency, etc.) characters. diff --git a/upstream/opensuse-tumbleweed/man3/iswspace.3 b/upstream/opensuse-tumbleweed/man3/iswspace.3 index fce481d2..fdddacb0 100644 --- a/upstream/opensuse-tumbleweed/man3/iswspace.3 +++ b/upstream/opensuse-tumbleweed/man3/iswspace.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH iswspace 3 2023-07-20 "Linux man-pages 6.05.01" +.TH iswspace 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME iswspace \- test for whitespace wide character .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int iswspace(wint_t " wc ); .fi .SH DESCRIPTION @@ -31,16 +31,16 @@ It tests whether .I wc is a wide character belonging to the wide-character class "space". -.PP +.P The wide-character class "space" is disjoint from the wide-character class "graph" and therefore also disjoint from its subclasses "alnum", "alpha", "upper", "lower", "digit", "xdigit", "punct". .\" Note: UNIX98 (susv2/xbd/locale.html) says that "space" and "graph" may .\" have characters in common, except U+0020. But C99 (ISO/IEC 9899:1999 .\" section 7.25.2.1.10) says that "space" and "graph" are disjoint. -.PP +.P The wide-character class "space" contains the wide-character class "blank". -.PP +.P The wide-character class "space" always contains at least the space character and the control characters @@ -67,7 +67,6 @@ T{ .BR iswspace () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/iswupper.3 b/upstream/opensuse-tumbleweed/man3/iswupper.3 index 64bc4f05..27371e9e 100644 --- a/upstream/opensuse-tumbleweed/man3/iswupper.3 +++ b/upstream/opensuse-tumbleweed/man3/iswupper.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH iswupper 3 2023-07-20 "Linux man-pages 6.05.01" +.TH iswupper 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME iswupper \- test for uppercase wide character .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int iswupper(wint_t " wc ); .fi .SH DESCRIPTION @@ -31,31 +31,31 @@ It tests whether .I wc is a wide character belonging to the wide-character class "upper". -.PP +.P The wide-character class "upper" is a subclass of the wide-character class "alpha", and therefore also a subclass of the wide-character class "alnum", of the wide-character class "graph" and of the wide-character class "print". -.PP +.P Being a subclass of the wide-character class "print", the wide-character class "upper" is disjoint from the wide-character class "cntrl". -.PP +.P Being a subclass of the wide-character class "graph", the wide-character class "upper" is disjoint from the wide-character class "space" and its subclass "blank". -.PP +.P Being a subclass of the wide-character class "alnum", the wide-character class "upper" is disjoint from the wide-character class "punct". -.PP +.P Being a subclass of the wide-character class "alpha", the wide-character class "upper" is disjoint from the wide-character class "digit". -.PP +.P The wide-character class "upper" contains at least those characters .I wc which are equal to .I towupper(wc) and different from .IR towlower(wc) . -.PP +.P The wide-character class "upper" always contains at least the letters \[aq]A\[aq] to \[aq]Z\[aq]. .SH RETURN VALUE @@ -80,7 +80,6 @@ T{ .BR iswupper () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -92,7 +91,7 @@ depends on the .B LC_CTYPE category of the current locale. -.PP +.P This function is not very appropriate for dealing with Unicode characters, because Unicode knows about three cases: upper, lower, and title case. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/iswxdigit.3 b/upstream/opensuse-tumbleweed/man3/iswxdigit.3 index 7be65b5a..063743b9 100644 --- a/upstream/opensuse-tumbleweed/man3/iswxdigit.3 +++ b/upstream/opensuse-tumbleweed/man3/iswxdigit.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH iswxdigit 3 2023-07-20 "Linux man-pages 6.05.01" +.TH iswxdigit 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME iswxdigit \- test for hexadecimal digit wide character .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int iswxdigit(wint_t " wc ); .fi .SH DESCRIPTION @@ -31,21 +31,21 @@ It tests whether .I wc is a wide character belonging to the wide-character class "xdigit". -.PP +.P The wide-character class "xdigit" is a subclass of the wide-character class "alnum", and therefore also a subclass of the wide-character class "graph" and of the wide-character class "print". -.PP +.P Being a subclass of the wide-character class "print", the wide-character class "xdigit" is disjoint from the wide-character class "cntrl". -.PP +.P Being a subclass of the wide-character class "graph", the wide-character class "xdigit" is disjoint from the wide-character class "space" and its subclass "blank". -.PP +.P Being a subclass of the wide-character class "alnum", the wide-character class "xdigit" is disjoint from the wide-character class "punct". -.PP +.P The wide-character class "xdigit" always contains at least the letters \[aq]A\[aq] to \[aq]F\[aq], \[aq]a\[aq] to \[aq]f\[aq] and the digits \[aq]0\[aq] to \[aq]9\[aq]. @@ -71,7 +71,6 @@ T{ .BR iswxdigit () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/items.3menu b/upstream/opensuse-tumbleweed/man3/items.3menu index 4735fa13..a1986996 100644 --- a/upstream/opensuse-tumbleweed/man3/items.3menu +++ b/upstream/opensuse-tumbleweed/man3/items.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2012,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: menu_items.3x,v 1.32 2023/11/25 13:58:47 tom Exp $ -.TH items 3MENU 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: menu_items.3x,v 1.34 2024/03/16 15:35:01 tom Exp $ +.TH items 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBset_menu_items\fP, \fBmenu_items\fP, diff --git a/upstream/opensuse-tumbleweed/man3/j0.3 b/upstream/opensuse-tumbleweed/man3/j0.3 index 1ca739b9..4a97b3fa 100644 --- a/upstream/opensuse-tumbleweed/man3/j0.3 +++ b/upstream/opensuse-tumbleweed/man3/j0.3 @@ -14,7 +14,7 @@ .\" Modified 2004-11-12 as per suggestion by Fabian Kreutz/AEB .\" 2008-07-24, mtk, moved yxx() material into separate y0.3 page .\" -.TH j0 3 2023-07-20 "Linux man-pages 6.05.01" +.TH j0 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME j0, j0f, j0l, j1, j1f, j1l, jn, jnf, jnl \- Bessel functions of the first kind @@ -24,25 +24,25 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double j0(double " x ); .BI "double j1(double " x ); .BI "double jn(int " n ", double " x ); -.PP +.P .BI "float j0f(float " x ); .BI "float j1f(float " x ); .BI "float jnf(int " n ", float " x ); -.PP +.P .BI "long double j0l(long double " x ); .BI "long double j1l(long double " x ); .BI "long double jnl(int " n ", long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR j0 (), .BR j1 (), .BR jn (): @@ -51,7 +51,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE .fi -.PP +.P .BR j0f (), .BR j0l (), .BR j1f (), @@ -79,7 +79,7 @@ returns the Bessel function of .I x of the first kind of order .IR n . -.PP +.P The .BR j0f (), .BR j1f (), @@ -100,11 +100,11 @@ values. On success, these functions return the appropriate Bessel value of the first kind for .IR x . -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is too large in magnitude, @@ -116,14 +116,14 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Range error: result underflow, or \fIx\fP is too large in magnitude .I errno is set to .BR ERANGE . -.PP +.P These functions do not raise exceptions for .BR fetestexcept (3). .\" e.g., j0(1.5e16) @@ -159,7 +159,6 @@ T{ .BR jnl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR j0 () diff --git a/upstream/opensuse-tumbleweed/man3/kernel.3ncurses b/upstream/opensuse-tumbleweed/man3/kernel.3ncurses index f3a28c9b..9b31a869 100644 --- a/upstream/opensuse-tumbleweed/man3/kernel.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/kernel.3ncurses @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_kernel.3x,v 1.54 2024/02/24 19:57:34 tom Exp $ -.TH kernel 3NCURSES 2024-02-24 "ncurses 6.4" "Library calls" +.\" $Id: curs_kernel.3x,v 1.61 2024/04/20 21:24:19 tom Exp $ +.TH kernel 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -132,9 +132,9 @@ at the beginning, do its manipulation of its own windows, do a Few applications will use this feature, most use \fBwmove\fP instead. .SS ripoffline -The \fBripoffline\fP routine provides access to the same facility that -\fBslk_init\fP [see \fB\%slk\fP(3NCURSES)] uses to reduce the size of the -screen. +.B \%ripoffline +provides access to the same facility that \fB\%slk_init\fP(3NCURSES) uses to +reduce the size of the screen. \fB\%ripoffline\fP must be called before \fBinitscr\fP or \fBnewterm\fP is called, to prepare these initial actions: .bP @@ -166,8 +166,13 @@ If the terminal supports the \fIvisibility\fP requested, the previous \fIcursor\fP state is returned; otherwise, \fBERR\fP is returned. .SS napms -The \fBnapms\fP routine is used to sleep for \fIms\fP milliseconds. -If the value of \fIms\fP exceeds 30,000 +.B \%napms +sleeps for +.I ms +milliseconds. +If +.I ms +exceeds 30,000 (thirty seconds), it is capped at that value. .SH RETURN VALUE @@ -205,8 +210,8 @@ There is no way for \fI\%ncurses\fP to determine the initial cursor state to restore that. .SH PORTABILITY The \fIvirtual screen\fP functions \fBsetsyx\fP and \fBgetsyx\fP -are not described in the XSI Curses standard, Issue 4. -All other functions are as described in XSI Curses. +are not described in X/Open Curses, Issue 4. +All other functions are as described in X/Open Curses. .PP The SVr4 documentation describes \fBsetsyx\fP and \fBgetsyx\fP as having return type int. diff --git a/upstream/opensuse-tumbleweed/man3/key_defined.3ncurses b/upstream/opensuse-tumbleweed/man3/key_defined.3ncurses index 28936326..560c9391 100644 --- a/upstream/opensuse-tumbleweed/man3/key_defined.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/key_defined.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 2003-2006,2010 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -29,8 +29,8 @@ .\" .\" Author: Thomas E. Dickey 2003 .\" -.\" $Id: key_defined.3x,v 1.32 2023/12/16 20:32:22 tom Exp $ -.TH key_defined 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: key_defined.3x,v 1.34 2024/03/16 15:35:01 tom Exp $ +.TH key_defined 3NCURSES 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fB\%key_defined\fP \- test whether a \fIcurses\fR keycode is defined diff --git a/upstream/opensuse-tumbleweed/man3/key_setsecret.3 b/upstream/opensuse-tumbleweed/man3/key_setsecret.3 index 13e8051f..5ea22c96 100644 --- a/upstream/opensuse-tumbleweed/man3/key_setsecret.3 +++ b/upstream/opensuse-tumbleweed/man3/key_setsecret.3 @@ -5,7 +5,7 @@ .\" .\" I had no way the check the functions out .\" be careful -.TH key_setsecret 3 2023-07-20 "Linux man-pages 6.05.01" +.TH key_setsecret 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME key_decryptsession, key_encryptsession, key_setsecret, key_gendes, key_secretkey_is_set \- interfaces to rpc keyserver daemon @@ -15,12 +15,12 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int key_decryptsession(char *" remotename ", des_block *" deskey ); .BI "int key_encryptsession(char *" remotename ", des_block *" deskey ); -.PP +.P .BI "int key_gendes(des_block *" deskey ); -.PP +.P .BI "int key_setsecret(char *" key ); .B int key_secretkey_is_set(void); .fi @@ -29,29 +29,29 @@ The functions here are used within the RPC's secure authentication mechanism (AUTH_DES). There should be no need for user programs to use this functions. -.PP +.P The function .BR key_decryptsession () uses the (remote) server netname and takes the DES key for decrypting. It uses the public key of the server and the secret key associated with the effective UID of the calling process. -.PP +.P The function .BR key_encryptsession () is the inverse of .BR key_decryptsession (). It encrypts the DES keys with the public key of the server and the secret key associated with the effective UID of the calling process. -.PP +.P The function .BR key_gendes () is used to ask the keyserver for a secure conversation key. -.PP +.P The function .BR key_setsecret () is used to set the key for the effective UID of the calling process. -.PP +.P The function .BR key_secretkey_is_set () can be used to determine whether a key has been @@ -76,13 +76,12 @@ T{ .BR key_secretkey_is_set () T} Thread safety MT-Safe .TE -.sp 1 .SH NOTES Note that we talk about two types of encryption here. One is asymmetric using a public and secret key. The other is symmetric, the 64-bit DES. -.PP +.P These routines were part of the Linux/Doors-project, abandoned by now. .SH SEE ALSO .BR crypt (3) diff --git a/upstream/opensuse-tumbleweed/man3/keybound.3ncurses b/upstream/opensuse-tumbleweed/man3/keybound.3ncurses index fa49b707..10a9c6af 100644 --- a/upstream/opensuse-tumbleweed/man3/keybound.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/keybound.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1999-2008,2010 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -29,8 +29,8 @@ .\" .\" Author: Thomas E. Dickey 1999 .\" -.\" $Id: keybound.3x,v 1.34 2023/12/16 20:32:22 tom Exp $ -.TH keybound 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: keybound.3x,v 1.36 2024/03/16 15:35:01 tom Exp $ +.TH keybound 3NCURSES 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fB\%keybound\fP \- get definition of \fIcurses\fR keycode diff --git a/upstream/opensuse-tumbleweed/man3/keyok.3ncurses b/upstream/opensuse-tumbleweed/man3/keyok.3ncurses index 9ebc45aa..d5711747 100644 --- a/upstream/opensuse-tumbleweed/man3/keyok.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/keyok.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -29,8 +29,8 @@ .\" .\" Author: Thomas E. Dickey 1997 .\" -.\" $Id: keyok.3x,v 1.38 2023/12/16 20:32:22 tom Exp $ -.TH keyok 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: keyok.3x,v 1.40 2024/03/16 15:35:01 tom Exp $ +.TH keyok 3NCURSES 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fB\%keyok\fP \- enable or disable a \fIcurses\fR keycode diff --git a/upstream/opensuse-tumbleweed/man3/killpg.3 b/upstream/opensuse-tumbleweed/man3/killpg.3 index a1463167..35edc0e8 100644 --- a/upstream/opensuse-tumbleweed/man3/killpg.3 +++ b/upstream/opensuse-tumbleweed/man3/killpg.3 @@ -11,7 +11,7 @@ .\" Added notes on CAP_KILL .\" Modified 2004-06-21 by aeb .\" -.TH killpg 3 2023-03-30 "Linux man-pages 6.05.01" +.TH killpg 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME killpg \- send signal to a process group .SH LIBRARY @@ -20,15 +20,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int killpg(int " pgrp ", int " sig ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR killpg (): .nf _XOPEN_SOURCE >= 500 @@ -45,7 +45,7 @@ to the process group See .BR signal (7) for a list of signals. -.PP +.P If .I pgrp is 0, @@ -54,7 +54,7 @@ sends the signal to the calling process's process group. (POSIX says: if .I pgrp is less than or equal to 1, the behavior is undefined.) -.PP +.P For the permissions required to send a signal to another process, see .BR kill (2). .SH RETURN VALUE diff --git a/upstream/opensuse-tumbleweed/man3/ldexp.3 b/upstream/opensuse-tumbleweed/man3/ldexp.3 index e1fb88cd..5e002702 100644 --- a/upstream/opensuse-tumbleweed/man3/ldexp.3 +++ b/upstream/opensuse-tumbleweed/man3/ldexp.3 @@ -12,7 +12,7 @@ .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu) .\" Modified 2004-10-31 by aeb .\" -.TH ldexp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ldexp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ldexp, ldexpf, ldexpl \- multiply floating-point number by integral power of 2 .SH LIBRARY @@ -21,17 +21,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double ldexp(double " x ", int " exp ); .BI "float ldexpf(float " x ", int " exp ); .BI "long double ldexpl(long double " x ", int " exp ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR ldexpf (), .BR ldexpl (): .nf @@ -47,27 +47,27 @@ by 2 raised to the power .SH RETURN VALUE On success, these functions return .IR "x * (2\[ha]exp)" . -.PP +.P If .I exp is zero, then .I x is returned. -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is positive infinity (negative infinity), positive infinity (negative infinity) is returned. -.PP +.P If the result underflows, a range error occurs, and zero is returned. -.PP +.P If the result overflows, a range error occurs, and the functions return @@ -82,7 +82,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Range error, overflow @@ -116,12 +116,11 @@ T{ .BR ldexpl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/legacy.3ncurses b/upstream/opensuse-tumbleweed/man3/legacy.3ncurses index 210410c7..373c14a8 100644 --- a/upstream/opensuse-tumbleweed/man3/legacy.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/legacy.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2019-2022,2023 Thomas E. Dickey * +.\" Copyright 2019-2023,2024 Thomas E. Dickey * .\" Copyright 2007-2015,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_legacy.3x,v 1.30 2023/12/23 16:40:10 tom Exp $ -.TH legacy 3NCURSES 2023-12-23 "ncurses 6.4" "Library calls" +.\" $Id: curs_legacy.3x,v 1.32 2024/03/16 15:35:01 tom Exp $ +.TH legacy 3NCURSES 2024-03-16 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq diff --git a/upstream/opensuse-tumbleweed/man3/legacy_coding.3ncurses b/upstream/opensuse-tumbleweed/man3/legacy_coding.3ncurses index 3ba41b88..f33962d5 100644 --- a/upstream/opensuse-tumbleweed/man3/legacy_coding.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/legacy_coding.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2020-2022,2023 Thomas E. Dickey * +.\" Copyright 2020-2023,2024 Thomas E. Dickey * .\" Copyright 2005-2016,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -29,8 +29,8 @@ .\" .\" Author: Thomas E. Dickey .\" -.\" $Id: legacy_coding.3x,v 1.24 2023/12/16 20:32:22 tom Exp $ -.TH legacy_coding 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: legacy_coding.3x,v 1.28 2024/04/20 19:13:50 tom Exp $ +.TH legacy_coding 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .SH NAME \fB\%use_legacy_coding\fP \- override \fIcurses\fR locale encoding checks @@ -41,38 +41,63 @@ override \fIcurses\fR locale encoding checks \fBint use_legacy_coding(int \fIlevel\fP); .fi .SH DESCRIPTION -The \fBuse_legacy_coding\fP function is an extension to the curses library. -It allows the caller to change the result of \fBunctrl\fP, -and suppress related checks within the library that would normally -cause nonprinting characters to be rendered in visible form. -This affects only 8-bit characters. +.B \%use_legacy_coding +is an extension to the +.I curses +library. +It allows the caller to change the result of \fB\%unctrl\fP(3NCURSES), +suppressing \fI\%isprint\fP(3)-based checks within the library that +would normally cause nonprinting characters to be rendered in visible +form. +The alteration affects only eight-bit characters. .PP -The \fIlevel\fP parameter controls the result: +The +.I level +parameter controls the result. .RS .TP 5 -0 -the library functions normally, -rendering nonprinting characters as described in \fBunctrl\fP. +.B 0 +The library functions normally, +rendering nonprinting characters as described in \fB\%unctrl\fP(3NCURSES), .TP -1 -the library ignores \fBisprintf\fP for codes in the range 160-255. +.B 1 +the library ignores +.I \%isprint +for codes in the range 160-255. .TP -2 -the library ignores \fBisprintf\fP for codes in the range 128-255. -It also modifies the output of \fBunctrl\fP, showing codes in the -range 128-159 as is. +.B 2 +the library ignores +.I \%isprint +for codes in the range 128-255. +It also modifies the output of \fB\%unctrl\fP(3NCURSES), +showing codes in the range 128-159 as is. .RE .SH RETURN VALUE If the screen has not been initialized, -or the \fIlevel\fP parameter is out of range, -the function returns \fBERR\fP. -Otherwise, it returns the previous level: \fB0\fP, \fB1\fP or \fB2\fP. +or the +.I level +parameter is out of range, +.B \%use_legacy_coding +returns +.BR ERR . +Otherwise, +it returns the previous level: +.BR 0 , +.BR 1 , +or +.BR 2 . .SH PORTABILITY -This routine is specific to \fI\%ncurses\fP. +.B \%use_legacy_coding +is specific to +.IR \%ncurses . It was not supported on Version 7, BSD or System V implementations. -It is recommended that any code depending on \fI\%ncurses\fP extensions -be conditioned using NCURSES_VERSION. +Applications employing +.I \%ncurses +extensions should condition their use on the visibility of the +.B \%NCURSES_VERSION +preprocessor macro. .SH AUTHORS -Thomas Dickey (to support lynx's font-switching feature). +Thomas Dickey +(to support \fI\%lynx\fP(1)'s font-switching feature). .SH SEE ALSO \fB\%unctrl\fP(3NCURSES) diff --git a/upstream/opensuse-tumbleweed/man3/lgamma.3 b/upstream/opensuse-tumbleweed/man3/lgamma.3 index cbcf363a..8b1381b7 100644 --- a/upstream/opensuse-tumbleweed/man3/lgamma.3 +++ b/upstream/opensuse-tumbleweed/man3/lgamma.3 @@ -6,7 +6,7 @@ .\" .\" based on glibc infopages .\" -.TH lgamma 3 2023-03-30 "Linux man-pages 6.05.01" +.TH lgamma 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME lgamma, lgammaf, lgammal, lgamma_r, lgammaf_r, lgammal_r, signgam \- log gamma function @@ -16,30 +16,30 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double lgamma(double " x ); .BI "float lgammaf(float " x ); .BI "long double lgammal(long double " x ); -.PP +.P .BI "double lgamma_r(double " x ", int *" signp ); .BI "float lgammaf_r(float " x ", int *" signp ); .BI "long double lgammal_r(long double " x ", int *" signp ); -.PP +.P .BI "extern int " signgam ; .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .nf .BR lgamma (): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR lgammaf (), .BR lgammal (): .nf @@ -47,7 +47,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR lgamma_r (), .BR lgammaf_r (), .BR lgammal_r (): @@ -55,7 +55,7 @@ Feature Test Macro Requirements for glibc (see /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .IR signgam : .nf _XOPEN_SOURCE @@ -65,7 +65,7 @@ Feature Test Macro Requirements for glibc (see .SH DESCRIPTION For the definition of the Gamma function, see .BR tgamma (3). -.PP +.P The .BR lgamma (), .BR lgammaf (), @@ -80,7 +80,7 @@ declared in .IR . It is 1 when the Gamma function is positive or zero, \-1 when it is negative. -.PP +.P Since using a constant location .I signgam is not thread-safe, the functions @@ -92,20 +92,20 @@ have been introduced; they return the sign via the argument .IR signp . .SH RETURN VALUE On success, these functions return the natural logarithm of Gamma(x). -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is 1 or 2, +0 is returned. -.PP +.P If .I x is positive infinity or negative infinity, positive infinity is returned. -.PP +.P If .I x is a nonpositive integer, @@ -116,7 +116,7 @@ and the functions return or .RB + HUGE_VALL , respectively. -.PP +.P If the result overflows, a range error occurs, .\" e.g., lgamma(DBL_MAX) @@ -131,7 +131,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Pole error: \fIx\fP is a nonpositive integer diff --git a/upstream/opensuse-tumbleweed/man3/libsystemd.3 b/upstream/opensuse-tumbleweed/man3/libsystemd.3 deleted file mode 100644 index 8c701887..00000000 --- a/upstream/opensuse-tumbleweed/man3/libsystemd.3 +++ /dev/null @@ -1,89 +0,0 @@ -'\" t -.TH "LIBSYSTEMD" "3" "" "systemd 254" "libsystemd" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -libsystemd \- Functions for implementing services and interacting with systemd -.SH "SYNOPSIS" -.sp -.nf -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -.fi -.HP \w'\fBpkg\-config\ \-\-cflags\ \-\-libs\ libsystemd\fR\ 'u -\fBpkg\-config \-\-cflags \-\-libs libsystemd\fR -.SH "DESCRIPTION" -.PP -The -libsystemd -library provides functions that allow interacting with various interfaces provided by the -\fBsystemd\fR(1) -service manager, as well as various other functions and constants useful for implementing services in general\&. -.PP -See -\fBsd-bus\fR(3), -\fBsd-bus-errors\fR(3), -\fBsd-daemon\fR(3), -\fBsd-device\fR(3), -\fBsd-event\fR(3), -\fBsd-hwdb\fR(3), -\fBsd-id128\fR(3), -\fBsd-journal\fR(3), and -\fBsd-login\fR(3) -for information about different parts of the library interface\&. -.SH "INTERFACE STABILITY" -.PP -Strict backwards\-compatibility is maintained for the API (application programming interface) and ABI (application binary interface)\&. Symbol versioning is used, with symbols only added and never removed\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBlibudev\fR(1), -\fBpkg-config\fR(1), -\m[blue]\fBInterface Portability and Stability Promise\fR\m[]\&\s-2\u[1]\d\s+2 -.SH "NOTES" -.IP " 1." 4 -Interface Portability and Stability Promise -.RS 4 -\%https://systemd.io/PORTABILITY_AND_STABILITY/ -.RE diff --git a/upstream/opensuse-tumbleweed/man3/libudev.3 b/upstream/opensuse-tumbleweed/man3/libudev.3 deleted file mode 100644 index 857e61d4..00000000 --- a/upstream/opensuse-tumbleweed/man3/libudev.3 +++ /dev/null @@ -1,83 +0,0 @@ -'\" t -.TH "LIBUDEV" "3" "" "systemd 254" "libudev" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -libudev \- API for enumerating and introspecting local devices -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'\fBpkg\-config\ \-\-cflags\ \-\-libs\ libudev\fR\ 'u -\fBpkg\-config \-\-cflags \-\-libs libudev\fR -.SH "DESCRIPTION" -.PP -libudev\&.h -provides an API to introspect and enumerate devices on the local system\&. This library is supported, but should not be used in new projects\&. Please see -\fBsd-device\fR(3) -for an equivalent replacement with a more modern API\&. -.PP -All functions require a libudev context to operate\&. This context can be created via -\fBudev_new\fR(3)\&. It is used to track library state and link objects together\&. No global state is used by libudev, everything is always linked to a udev context\&. -.PP -All functions listed here are thread\-agnostic and only a single specific thread may operate on a given object during its entire lifetime\&. It\*(Aqs safe to allocate multiple independent objects and use each from a specific thread in parallel\&. However, it\*(Aqs not safe to allocate such an object in one thread, and operate or free it from any other, even if locking is used to ensure these threads don\*(Aqt operate on it at the very same time\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.PP -To introspect a local device on a system, a udev device object can be created via -\fBudev_device_new_from_syspath\fR(3) -and friends\&. The device object allows one to query current state, read and write attributes and lookup properties of the device in question\&. -.PP -To enumerate local devices on the system, an enumeration object can be created via -\fBudev_enumerate_new\fR(3)\&. -.PP -To monitor the local system for hotplugged or unplugged devices, a monitor can be created via -\fBudev_monitor_new_from_netlink\fR(3)\&. -.PP -Whenever libudev returns a list of objects, the -\fBudev_list_entry\fR(3) -API should be used to iterate, access and modify those lists\&. -.PP -Furthermore, libudev also exports legacy APIs that should not be used by new software (and as such are not documented as part of this manual)\&. This includes the hardware database known as -\fBudev_hwdb\fR -(please use the new -\fBsd-hwdb\fR(3) -API instead) and the -\fBudev_queue\fR -object to query the udev daemon (which should not be used by new software at all)\&. -.SH "SEE ALSO" -.PP -\fBudev_new\fR(3), -\fBudev_device_new_from_syspath\fR(3), -\fBudev_enumerate_new\fR(3), -\fBudev_monitor_new_from_netlink\fR(3), -\fBudev_list_entry\fR(3), -\fBsystemd\fR(1), -\fBsd-device\fR(3), -\fBsd-hwdb\fR(3), -\fBpkg-config\fR(1) diff --git a/upstream/opensuse-tumbleweed/man3/lio_listio.3 b/upstream/opensuse-tumbleweed/man3/lio_listio.3 index 0cca6e43..2e38492b 100644 --- a/upstream/opensuse-tumbleweed/man3/lio_listio.3 +++ b/upstream/opensuse-tumbleweed/man3/lio_listio.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH lio_listio 3 2023-07-20 "Linux man-pages 6.05.01" +.TH lio_listio 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME lio_listio \- initiate a list of I/O requests .SH LIBRARY @@ -12,7 +12,7 @@ Real-time library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "int lio_listio(int " mode , .BI " struct aiocb *restrict const " aiocb_list [restrict], .BI " int " nitems ", struct sigevent *restrict " sevp ); @@ -22,7 +22,7 @@ The .BR lio_listio () function initiates the list of I/O operations described by the array .IR aiocb_list . -.PP +.P The .I mode operation has one of the following values: @@ -39,12 +39,12 @@ When all of the I/O operations complete, asynchronous notification occurs, as specified by the .I sevp argument; see -.BR sigevent (7) +.BR sigevent (3type) for details. If .I sevp is NULL, no asynchronous notification occurs. -.PP +.P The .I aiocb_list argument is an array of pointers to @@ -58,7 +58,7 @@ argument specifies the size of the array Null pointers in .I aiocb_list are ignored. -.PP +.P In each control block in .IR aiocb_list , the @@ -79,7 +79,7 @@ specifying this control block. .TP .B LIO_NOP Ignore this control block. -.PP +.P The remaining fields in each control block have the same meanings as for .BR aio_read (3) and @@ -99,7 +99,7 @@ returns 0 if all I/O operations are successfully queued. Otherwise, \-1 is returned, and .I errno is set to indicate the error. -.PP +.P If .I mode is @@ -109,7 +109,7 @@ returns 0 when all of the I/O operations have completed successfully. Otherwise, \-1 is returned, and .I errno is set to indicate the error. -.PP +.P The return status from .BR lio_listio () provides information only about the call itself, @@ -168,7 +168,7 @@ failed. .\" e.g., ioa_reqprio or aio_lio_opcode was invalid The application can check the status of each operation using .BR aio_return (3). -.PP +.P If .BR lio_listio () fails with the error @@ -197,7 +197,6 @@ T{ .BR lio_listio () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -211,7 +210,7 @@ The buffer areas being read into or written from .\" or the control block of the operation must not be accessed during the operations or undefined results may occur. The memory areas involved must remain valid. -.PP +.P Simultaneous I/O operations specifying the same .I aiocb structure produce undefined results. diff --git a/upstream/opensuse-tumbleweed/man3/list.3 b/upstream/opensuse-tumbleweed/man3/list.3 index 270d5e6f..bab95a05 100644 --- a/upstream/opensuse-tumbleweed/man3/list.3 +++ b/upstream/opensuse-tumbleweed/man3/list.3 @@ -5,7 +5,7 @@ .\" SPDX-License-Identifier: BSD-3-Clause .\" .\" -.TH LIST 3 2023-05-03 "Linux man-pages 6.05.01" +.TH LIST 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME LIST_EMPTY, LIST_ENTRY, @@ -31,43 +31,43 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B LIST_ENTRY(TYPE); -.PP +.P .B LIST_HEAD(HEADNAME, TYPE); .BI "LIST_HEAD LIST_HEAD_INITIALIZER(LIST_HEAD " head ); .BI "void LIST_INIT(LIST_HEAD *" head ); -.PP +.P .BI "int LIST_EMPTY(LIST_HEAD *" head ); -.PP +.P .BI "void LIST_INSERT_HEAD(LIST_HEAD *" head , .BI " struct TYPE *" elm ", LIST_ENTRY " NAME ); .BI "void LIST_INSERT_BEFORE(struct TYPE *" listelm , .BI " struct TYPE *" elm ", LIST_ENTRY " NAME ); .BI "void LIST_INSERT_AFTER(struct TYPE *" listelm , .BI " struct TYPE *" elm ", LIST_ENTRY " NAME ); -.PP +.P .BI "struct TYPE *LIST_FIRST(LIST_HEAD *" head ); .\" .BI "struct TYPE *LIST_PREV(struct TYPE *" elm ", LIST_HEAD *" head , .\" .BI " struct TYPE, LIST_ENTRY " NAME ); .BI "struct TYPE *LIST_NEXT(struct TYPE *" elm ", LIST_ENTRY " NAME ); -.PP +.P .BI "LIST_FOREACH(struct TYPE *" var ", LIST_HEAD *" head ", LIST_ENTRY " NAME ); .\" .BI "LIST_FOREACH_FROM(struct TYPE *" var ", LIST_HEAD *" head ", LIST_ENTRY " NAME ); -.\" .PP +.\" .P .\" .BI "LIST_FOREACH_SAFE(struct TYPE *" var ", LIST_HEAD *" head , .\" .BI " LIST_ENTRY " NAME ", struct TYPE *" temp_var ); .\" .BI "LIST_FOREACH_FROM_SAFE(struct TYPE *" var ", LIST_HEAD *" head , .\" .BI " LIST_ENTRY " NAME ", struct TYPE *" temp_var ); -.PP +.P .BI "void LIST_REMOVE(struct TYPE *" elm ", LIST_ENTRY " NAME ); -.\" .PP +.\" .P .\" .BI "void LIST_SWAP(LIST_HEAD *" head1 ", LIST_HEAD *" head2 , .\" .BI " struct TYPE, LIST_ENTRY " NAME ); .fi .SH DESCRIPTION These macros define and operate on doubly linked lists. -.PP +.P In the macro definitions, .I TYPE is the name of a user-defined structure, @@ -94,43 +94,43 @@ or at the head of the list. A .I LIST_HEAD structure is declared as follows: -.PP +.P .in +4 .EX LIST_HEAD(HEADNAME, TYPE) head; .EE .in -.PP +.P where .I struct HEADNAME is the structure to be defined, and .I struct TYPE is the type of the elements to be linked into the list. A pointer to the head of the list can later be declared as: -.PP +.P .in +4 .EX struct HEADNAME *headp; .EE .in -.PP +.P (The names .I head and .I headp are user selectable.) -.PP +.P .BR LIST_ENTRY () declares a structure that connects the elements in the list. -.PP +.P .BR LIST_HEAD_INITIALIZER () evaluates to an initializer for the list .IR head . -.PP +.P .BR LIST_INIT () initializes the list referenced by .IR head . -.PP +.P .BR LIST_EMPTY () evaluates to true if there are no elements in the list. .SS Insertion @@ -138,13 +138,13 @@ evaluates to true if there are no elements in the list. inserts the new element .I elm at the head of the list. -.PP +.P .BR LIST_INSERT_BEFORE () inserts the new element .I elm before the element .IR listelm . -.PP +.P .BR LIST_INSERT_AFTER () inserts the new element .I elm @@ -153,24 +153,24 @@ after the element .SS Traversal .BR LIST_FIRST () returns the first element in the list, or NULL if the list is empty. -.\" .PP +.\" .P .\" .BR LIST_PREV () .\" returns the previous element in the list, or NULL if this is the first. .\" List .\" .I head .\" must contain element .\" .IR elm . -.PP +.P .BR LIST_NEXT () returns the next element in the list, or NULL if this is the last. -.PP +.P .BR LIST_FOREACH () traverses the list referenced by .I head in the forward direction, assigning each element in turn to .IR var . -.\" .PP +.\" .P .\" .BR LIST_FOREACH_FROM () .\" behaves identically to .\" .BR LIST_FOREACH () @@ -182,7 +182,7 @@ assigning each element in turn to .\" .I var .\" instead of the first element in the LIST referenced by .\" .IR head . -.\" .PP +.\" .P .\" .BR LIST_FOREACH_SAFE () .\" traverses the list referenced by .\" .I head @@ -194,7 +194,7 @@ assigning each element in turn to .\" .I var .\" as well as free it from within the loop safely without interfering with the .\" traversal. -.\" .PP +.\" .P .\" .BR LIST_FOREACH_FROM_SAFE () .\" behaves identically to .\" .BR LIST_FOREACH_SAFE () @@ -221,14 +221,14 @@ from the list. .BR LIST_EMPTY () returns nonzero if the list is empty, and zero if the list contains at least one entry. -.PP +.P .BR LIST_FIRST (), and .BR LIST_NEXT () return a pointer to the first or next .I TYPE structure, respectively. -.PP +.P .BR LIST_HEAD_INITIALIZER () returns an initializer that can be assigned to the list .IR head . diff --git a/upstream/opensuse-tumbleweed/man3/localeconv.3 b/upstream/opensuse-tumbleweed/man3/localeconv.3 index 063fe114..00777149 100644 --- a/upstream/opensuse-tumbleweed/man3/localeconv.3 +++ b/upstream/opensuse-tumbleweed/man3/localeconv.3 @@ -4,7 +4,7 @@ .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" Modified Sat Jul 24 19:01:20 1993 by Rik Faith (faith@cs.unc.edu) -.TH localeconv 3 2023-07-20 "Linux man-pages 6.05.01" +.TH localeconv 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME localeconv \- get numeric formatting information .SH LIBRARY @@ -13,7 +13,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B struct lconv *localeconv(void); .fi .SH DESCRIPTION @@ -64,7 +64,6 @@ T} Thread safety T{ MT-Unsafe race:localeconv locale T} .TE -.sp 1 .SH STANDARDS C11. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/lockf.3 b/upstream/opensuse-tumbleweed/man3/lockf.3 index a4043ba5..c86895a4 100644 --- a/upstream/opensuse-tumbleweed/man3/lockf.3 +++ b/upstream/opensuse-tumbleweed/man3/lockf.3 @@ -7,7 +7,7 @@ .\" Added section stuff, aeb, 2002-04-22. .\" Corrected include file, drepper, 2003-06-15. .\" -.TH lockf 3 2023-07-20 "Linux man-pages 6.05.01" +.TH lockf 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME lockf \- apply, test or remove a POSIX lock on an open file .SH LIBRARY @@ -16,15 +16,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP -.BI "int lockf(int " fd ", int " cmd ", off_t " len ); +.P +.BI "int lockf(int " fd ", int " op ", off_t " len ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR lockf (): .nf _XOPEN_SOURCE >= 500 @@ -37,7 +37,7 @@ Apply, test, or remove a POSIX lock on a section of an open file. The file is specified by .IR fd , a file descriptor open for writing, the action by -.IR cmd , +.IR op , and the section consists of byte positions .IR pos .. pos + len \-1 if @@ -53,7 +53,7 @@ is the current file position, and if is zero, the section extends from the current file position to infinity, encompassing the present and future end-of-file positions. In all cases, the section may extend past current end-of-file. -.PP +.P On Linux, .BR lockf () is just an interface on top of @@ -68,7 +68,7 @@ and locks unspecified. A portable application should probably avoid mixing calls to these interfaces. -.PP +.P Valid operations are given below: .TP .B F_LOCK @@ -118,7 +118,7 @@ been memory-mapped by another process. .B EBADF .I fd is not an open file descriptor; or -.I cmd +.I op is .B F_LOCK or @@ -128,7 +128,8 @@ and is not a writable file descriptor. .TP .B EDEADLK -The command was +.I op +was .B F_LOCK and this lock operation would cause a deadlock. .TP @@ -139,7 +140,7 @@ delivery of a signal caught by a handler; see .TP .B EINVAL An invalid operation was specified in -.IR cmd . +.IR op . .TP .B ENOLCK Too many segment locks open, lock table is full. @@ -157,7 +158,6 @@ T{ .BR lockf () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -165,7 +165,7 @@ POSIX.1-2001, SVr4. .SH SEE ALSO .BR fcntl (2), .BR flock (2) -.PP +.P .I locks.txt and .I mandatory\-locking.txt diff --git a/upstream/opensuse-tumbleweed/man3/log.3 b/upstream/opensuse-tumbleweed/man3/log.3 index 23ad8f9b..29ec3507 100644 --- a/upstream/opensuse-tumbleweed/man3/log.3 +++ b/upstream/opensuse-tumbleweed/man3/log.3 @@ -14,7 +14,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH log 3 2023-07-20 "Linux man-pages 6.05.01" +.TH log 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME log, logf, logl \- natural logarithmic function .SH LIBRARY @@ -23,17 +23,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double log(double " x ); .BI "float logf(float " x ); .BI "long double logl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR logf (), .BR logl (): .nf @@ -47,21 +47,21 @@ These functions return the natural logarithm of .SH RETURN VALUE On success, these functions return the natural logarithm of .IR x . -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is 1, the result is +0. -.PP +.P If .I x is positive infinity, positive infinity is returned. -.PP +.P If .I x is zero, @@ -71,7 +71,7 @@ then a pole error occurs, and the functions return or .RB \- HUGE_VALL , respectively. -.PP +.P If .I x is negative (including negative infinity), then @@ -81,7 +81,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP is negative @@ -115,12 +115,11 @@ T{ .BR logl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/log10.3 b/upstream/opensuse-tumbleweed/man3/log10.3 index 9d3a0bb4..33bdaf08 100644 --- a/upstream/opensuse-tumbleweed/man3/log10.3 +++ b/upstream/opensuse-tumbleweed/man3/log10.3 @@ -14,7 +14,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH log10 3 2023-07-20 "Linux man-pages 6.05.01" +.TH log10 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME log10, log10f, log10l \- base-10 logarithmic function .SH LIBRARY @@ -23,17 +23,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double log10(double " x ); .BI "float log10f(float " x ); .BI "long double log10l(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR log10f (), .BR log10l (): .nf @@ -42,12 +42,12 @@ Feature Test Macro Requirements for glibc (see || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi .SH DESCRIPTION -These functions return the base 10 logarithm of +These functions return the base-10 logarithm of .IR x . .SH RETURN VALUE -On success, these functions return the base 10 logarithm of +On success, these functions return the base-10 logarithm of .IR x . -.PP +.P For special cases, including where .I x is 0, 1, negative, infinity, or NaN, see @@ -57,7 +57,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P For a discussion of the errors that can occur for these functions, see .BR log (3). .SH ATTRIBUTES @@ -76,12 +76,11 @@ T{ .BR log10l () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/log1p.3 b/upstream/opensuse-tumbleweed/man3/log1p.3 index c3285a9a..0eadb1f8 100644 --- a/upstream/opensuse-tumbleweed/man3/log1p.3 +++ b/upstream/opensuse-tumbleweed/man3/log1p.3 @@ -7,7 +7,7 @@ .\" .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) -.TH log1p 3 2023-07-20 "Linux man-pages 6.05.01" +.TH log1p 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME log1p, log1pf, log1pl \- logarithm of 1 plus argument .SH LIBRARY @@ -16,17 +16,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double log1p(double " x ); .BI "float log1pf(float " x ); .BI "long double log1pl(long double " x ); -.PP +.P .fi .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .nf .BR log1p (): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -35,7 +35,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR log1pf (), .BR log1pl (): .nf @@ -45,11 +45,11 @@ Feature Test Macro Requirements for glibc (see .fi .SH DESCRIPTION These functions return a value equivalent to -.PP +.P .nf log (1 + \fIx\fP) .fi -.PP +.P The result is computed in a way that is accurate even if the value of .I x @@ -57,16 +57,16 @@ is near zero. .SH RETURN VALUE On success, these functions return the natural logarithm of .IR "(1\ +\ x)" . -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is positive infinity, positive infinity is returned. -.PP +.P If .I x is \-1, a pole error occurs, @@ -76,7 +76,7 @@ and the functions return or .RB \- HUGE_VALL , respectively. -.PP +.P If .I x is less than \-1 (including negative infinity), @@ -89,7 +89,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP is less than \-1 @@ -125,7 +125,6 @@ T{ .BR log1pl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -138,7 +137,7 @@ Before glibc 2.22, the glibc implementation did not set to .B EDOM when a domain error occurred. -.PP +.P Before glibc 2.22, the glibc implementation did not set .\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=6792 .I errno diff --git a/upstream/opensuse-tumbleweed/man3/log2.3 b/upstream/opensuse-tumbleweed/man3/log2.3 index 223ac999..64ea6d3f 100644 --- a/upstream/opensuse-tumbleweed/man3/log2.3 +++ b/upstream/opensuse-tumbleweed/man3/log2.3 @@ -14,7 +14,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH log2 3 2023-07-20 "Linux man-pages 6.05.01" +.TH log2 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME log2, log2f, log2l \- base-2 logarithmic function .SH LIBRARY @@ -23,17 +23,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double log2(double " x ); .BI "float log2f(float " x ); .BI "long double log2l(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR log2 (), .BR log2f (), .BR log2l (): @@ -41,12 +41,12 @@ Feature Test Macro Requirements for glibc (see _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L .fi .SH DESCRIPTION -These functions return the base 2 logarithm of +These functions return the base-2 logarithm of .IR x . .SH RETURN VALUE -On success, these functions return the base 2 logarithm of +On success, these functions return the base-2 logarithm of .IR x . -.PP +.P For special cases, including where .I x is 0, 1, negative, infinity, or NaN, see @@ -56,7 +56,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P For a discussion of the errors that can occur for these functions, see .BR log (3). .SH ATTRIBUTES @@ -75,13 +75,12 @@ T{ .BR log2l () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY glibc 2.1. C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/logb.3 b/upstream/opensuse-tumbleweed/man3/logb.3 index 1bde61bb..92059053 100644 --- a/upstream/opensuse-tumbleweed/man3/logb.3 +++ b/upstream/opensuse-tumbleweed/man3/logb.3 @@ -7,7 +7,7 @@ .\" .\" Inspired by a page by Walter Harms created 2002-08-10 .\" -.TH logb 3 2023-07-20 "Linux man-pages 6.05.01" +.TH logb 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME logb, logbf, logbl \- get exponent of a floating-point value .SH LIBRARY @@ -16,17 +16,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double logb(double " x ); .BI "float logbf(float " x ); .BI "long double logbl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR logb (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -35,7 +35,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR logbf (), .BR logbl (): .nf @@ -57,10 +57,11 @@ If .B FLT_RADIX is 2, .BI logb( x ) -is equal to -.BI floor(log2( x ))\fR, -except that it is probably faster. -.PP +is similar to +.BI floor(log2(fabs( x )))\f[R],\f[] +except that the latter may give an incorrect integer +due to intermediate rounding. +.P If .I x is subnormal, @@ -71,12 +72,12 @@ would have if it were normalized. .SH RETURN VALUE On success, these functions return the exponent of .IR x . -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is zero, then a pole error occurs, and the functions return @@ -85,7 +86,7 @@ is zero, then a pole error occurs, and the functions return or .RB \- HUGE_VALL , respectively. -.PP +.P If .I x is negative infinity or positive infinity, then @@ -95,7 +96,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Pole error: \fIx\fP is 0 @@ -105,7 +106,7 @@ Pole error: \fIx\fP is 0 A divide-by-zero floating-point exception .RB ( FE_DIVBYZERO ) is raised. -.PP +.P These functions do not set .IR errno . .\" FIXME . Is it intentional that these functions do not set errno? @@ -128,7 +129,6 @@ T{ .BR logbl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/login.3 b/upstream/opensuse-tumbleweed/man3/login.3 index b6fa4ae0..b0df3ad6 100644 --- a/upstream/opensuse-tumbleweed/man3/login.3 +++ b/upstream/opensuse-tumbleweed/man3/login.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH login 3 2023-07-20 "Linux man-pages 6.05.01" +.TH login 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME login, logout \- write utmp and wtmp entries .SH LIBRARY @@ -13,7 +13,7 @@ System utilities library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void login(const struct utmp *" ut ); .BI "int logout(const char *" ut_line ); .fi @@ -22,14 +22,14 @@ The utmp file records who is currently using the system. The wtmp file records all logins and logouts. See .BR utmp (5). -.PP +.P The function .BR login () takes the supplied .IR "struct utmp" , .IR ut , and writes it to both the utmp and the wtmp file. -.PP +.P The function .BR logout () clears the entry in the utmp file again. @@ -59,7 +59,7 @@ On the other hand, if no terminal name was found, this field is filled with "???" and the struct is not written to the utmp file. After this, the struct is written to the wtmp file. -.PP +.P The .BR logout () function searches the utmp file for an entry matching the @@ -113,7 +113,7 @@ MT-Unsafe race:utent sig:ALRM timer T} .TE -.sp 1 +.P In the above table, .I utent in diff --git a/upstream/opensuse-tumbleweed/man3/lrint.3 b/upstream/opensuse-tumbleweed/man3/lrint.3 index 66f8598e..990b8d15 100644 --- a/upstream/opensuse-tumbleweed/man3/lrint.3 +++ b/upstream/opensuse-tumbleweed/man3/lrint.3 @@ -5,7 +5,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH lrint 3 2023-07-20 "Linux man-pages 6.05.01" +.TH lrint 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME lrint, lrintf, lrintl, llrint, llrintf, llrintl \- round to nearest integer .SH LIBRARY @@ -14,21 +14,21 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "long lrint(double " x ); .BI "long lrintf(float " x ); .BI "long lrintl(long double " x ); -.PP +.P .BI "long long llrint(double " x ); .BI "long long llrintf(float " x ); .BI "long long llrintl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P All functions shown above: .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -37,7 +37,7 @@ All functions shown above: These functions round their argument to the nearest integer value, using the current rounding direction (see .BR fesetround (3)). -.PP +.P Note that unlike the .BR rint (3) family of functions, @@ -45,7 +45,7 @@ the return type of these functions differs from that of their arguments. .SH RETURN VALUE These functions return the rounded integer value. -.PP +.P If .I x is a NaN or an infinity, @@ -62,7 +62,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP is a NaN or infinite, or the rounded value is too large @@ -72,7 +72,7 @@ Domain error: \fIx\fP is a NaN or infinite, or the rounded value is too large An invalid floating-point exception .RB ( FE_INVALID ) is raised. -.PP +.P These functions do not set .IR errno . .\" FIXME . Is it intentional that these functions do not set errno? @@ -96,7 +96,6 @@ T{ .BR llrintl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/lround.3 b/upstream/opensuse-tumbleweed/man3/lround.3 index e48f71ae..24533f75 100644 --- a/upstream/opensuse-tumbleweed/man3/lround.3 +++ b/upstream/opensuse-tumbleweed/man3/lround.3 @@ -5,7 +5,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH lround 3 2023-07-20 "Linux man-pages 6.05.01" +.TH lround 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME lround, lroundf, lroundl, llround, llroundf, llroundl \- round to nearest integer @@ -15,21 +15,21 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "long lround(double " x ); .BI "long lroundf(float " x ); .BI "long lroundl(long double " x ); -.PP +.P .BI "long long llround(double " x ); .BI "long long llroundf(float " x ); .BI "long long llroundl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P All functions shown above: .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -39,7 +39,7 @@ These functions round their argument to the nearest integer value, rounding halfway cases away from zero, regardless of the current rounding direction (see .BR fenv (3)). -.PP +.P Note that unlike the .BR round (3) and @@ -48,7 +48,7 @@ functions, the return type of these functions differs from that of their arguments. .SH RETURN VALUE These functions return the rounded integer value. -.PP +.P If .I x is a NaN or an infinity, @@ -65,7 +65,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP is a NaN or infinite, or the rounded value is too large @@ -75,7 +75,7 @@ Domain error: \fIx\fP is a NaN or infinite, or the rounded value is too large An invalid floating-point exception .RB ( FE_INVALID ) is raised. -.PP +.P These functions do not set .IR errno . .\" FIXME . Is it intentional that these functions do not set errno? @@ -99,7 +99,6 @@ T{ .BR llroundl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/lsearch.3 b/upstream/opensuse-tumbleweed/man3/lsearch.3 index a4194351..ea25d5fd 100644 --- a/upstream/opensuse-tumbleweed/man3/lsearch.3 +++ b/upstream/opensuse-tumbleweed/man3/lsearch.3 @@ -4,7 +4,7 @@ .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" Corrected prototype and include, aeb, 990927 -.TH lsearch 3 2023-07-20 "Linux man-pages 6.05.01" +.TH lsearch 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME lfind, lsearch \- linear search of an array .SH LIBRARY @@ -13,7 +13,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void *lfind(const void " key [. size "], \ const void " base [. size " * ." nmemb ], .BI " size_t *" nmemb ", size_t " size , @@ -47,7 +47,7 @@ returns zero if the .I key object matches the array member, and nonzero otherwise. -.PP +.P If .BR lsearch () does not find a matching element, then the @@ -81,7 +81,6 @@ T{ .BR lsearch () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/lseek64.3 b/upstream/opensuse-tumbleweed/man3/lseek64.3 index aee84ed9..2e1d7eca 100644 --- a/upstream/opensuse-tumbleweed/man3/lseek64.3 +++ b/upstream/opensuse-tumbleweed/man3/lseek64.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH lseek64 3 2023-07-20 "Linux man-pages 6.05.01" +.TH lseek64 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME lseek64 \- reposition 64-bit read/write file offset .SH LIBRARY @@ -15,7 +15,7 @@ Standard C library .BR "#define _LARGEFILE64_SOURCE" " /* See feature_test_macros(7) */" .B #include .B #include -.PP +.P .BI "off64_t lseek64(int " fd ", off64_t " offset ", int " whence ); .fi .SH DESCRIPTION @@ -35,10 +35,10 @@ has the value or .BR SEEK_END , respectively. -.PP +.P For more details, return value, and errors, see .BR lseek (2). -.PP +.P Four interfaces are available: .BR lseek (), .BR lseek64 (), @@ -51,36 +51,36 @@ and .\" .SS lseek() Prototype: -.PP +.P .in +4n .EX .BI "off_t lseek(int " fd ", off_t " offset ", int " whence ); .EE .in -.PP +.P The C library's .BR lseek () wrapper function uses the type .IR off_t . This is a 32-bit signed type on 32-bit architectures, unless one compiles with -.PP +.P .in +4n .EX #define _FILE_OFFSET_BITS 64 .EE .in -.PP +.P in which case it is a 64-bit signed type. .SS lseek64() Prototype: -.PP +.P .in +4n .EX .BI "off64_t lseek64(int " fd ", off64_t " offset ", int " whence ); .EE .in -.PP +.P The .BR lseek64 () library function uses a 64-bit type even when @@ -89,13 +89,13 @@ is a 32-bit type. Its prototype (and the type .IR off64_t ) is available only when one compiles with -.PP +.P .in +4n .EX #define _LARGEFILE64_SOURCE .EE .in -.PP +.P The function .BR lseek64 () .\" in glibc 2.0.94, not in glibc 2.0.6 @@ -103,13 +103,13 @@ is available since glibc 2.1. .\" .SS llseek() Prototype: -.PP +.P .in +4n .EX .BI "loff_t llseek(int " fd ", loff_t " offset ", int " whence ); .EE .in -.PP +.P The type .I loff_t is a 64-bit signed type. @@ -122,14 +122,14 @@ the above prototype, or something equivalent, to their own source. When users complained about data loss caused by a miscompilation of .BR e2fsck (8), glibc 2.1.3 added the link-time warning -.PP +.P .in +4n "the \`llseek\' function may be dangerous; use \`lseek64\' instead." .in -.PP +.P This makes this function unusable if one desires a warning-free compilation. -.PP +.P Since glibc 2.28, .\" glibc commit 5c5c0dd747070db624c8e2c43691cec854f114ef this function symbol is no longer available to newly linked applications. @@ -139,17 +139,17 @@ On 32-bit architectures, this is the system call that is used (by the C library wrapper functions) to implement all of the above functions. The prototype is: -.PP +.P .in +4n .EX .BI "int _llseek(int " fd ", off_t " offset_hi ", off_t " offset_lo , .BI " loff_t *" result ", int " whence ); .EE .in -.PP +.P For more details, see .BR llseek (2). -.PP +.P 64-bit systems don't need an .BR _llseek () system call. @@ -182,7 +182,6 @@ T{ .BR lseek64 () T} Thread safety MT-Safe .TE -.sp 1 .SH NOTES .BR lseek64 () is one of the functions that was specified in the Large File Summit (LFS) diff --git a/upstream/opensuse-tumbleweed/man3/makecontext.3 b/upstream/opensuse-tumbleweed/man3/makecontext.3 index c4e23782..a478fd9f 100644 --- a/upstream/opensuse-tumbleweed/man3/makecontext.3 +++ b/upstream/opensuse-tumbleweed/man3/makecontext.3 @@ -6,7 +6,7 @@ .\" .\" 2006-08-02, mtk, Added example program .\" -.TH makecontext 3 2023-07-20 "Linux man-pages 6.05.01" +.TH makecontext 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME makecontext, swapcontext \- manipulate user context .SH LIBRARY @@ -15,7 +15,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void makecontext(ucontext_t *" ucp ", void (*" func ")(), int " argc \ ", ...);" .BI "int swapcontext(ucontext_t *restrict " oucp , @@ -36,7 +36,7 @@ and .BR swapcontext () that allow user-level context switching between multiple threads of control within a process. -.PP +.P The .BR makecontext () function modifies the context pointed to @@ -48,7 +48,7 @@ the caller must allocate a new stack for this context and assign its address to \fIucp\->uc_stack\fP, and define a successor context and assign its address to \fIucp\->uc_link\fP. -.PP +.P When this context is later activated (using .BR setcontext (3) or @@ -62,7 +62,7 @@ the caller must specify the number of these arguments in .IR argc . When this function returns, the successor context is activated. If the successor context pointer is NULL, the thread exits. -.PP +.P The .BR swapcontext () function saves the current context in @@ -112,7 +112,6 @@ T} Thread safety T{ MT-Safe race:oucp race:ucp T} .TE -.sp 1 .SH STANDARDS None. .SH HISTORY @@ -129,7 +128,7 @@ to be used as the stack, regardless of the direction of growth of the stack. Thus, it is not necessary for the user program to worry about this direction. -.PP +.P On architectures where .I int and pointer types are the same size @@ -152,7 +151,7 @@ The example program below demonstrates the use of and .BR swapcontext (). Running the program produces the following output: -.PP +.P .in +4n .EX .RB "$" " ./a.out" diff --git a/upstream/opensuse-tumbleweed/man3/makedev.3 b/upstream/opensuse-tumbleweed/man3/makedev.3 index af44a792..019ac093 100644 --- a/upstream/opensuse-tumbleweed/man3/makedev.3 +++ b/upstream/opensuse-tumbleweed/man3/makedev.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH makedev 3 2023-07-20 "Linux man-pages 6.05.01" +.TH makedev 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME makedev, major, minor \- manage a device number .SH LIBRARY @@ -13,9 +13,9 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "dev_t makedev(unsigned int " maj ", unsigned int " min ); -.PP +.P .BI "unsigned int major(dev_t " dev ); .BI "unsigned int minor(dev_t " dev ); .fi @@ -25,14 +25,14 @@ a major ID, identifying the class of the device, and a minor ID, identifying a specific instance of a device in that class. A device ID is represented using the type .IR dev_t . -.PP +.P Given major and minor device IDs, .BR makedev () combines these to produce a device ID, returned as the function result. This device ID can be given to .BR mknod (2), for example. -.PP +.P The .BR major () and @@ -58,7 +58,6 @@ T{ .BR minor () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS The BSDs expose the definitions for these macros via .IR . @@ -68,7 +67,7 @@ None. BSD, HP-UX, Solaris, AIX, Irix. .\" The header location is inconsistent: .\" Could be sys/mkdev.h, sys/sysmacros.h, or sys/types.h. -.PP +.P These interfaces are defined as macros. Since glibc 2.3.3, they have been aliases for three GNU-specific functions: @@ -77,7 +76,7 @@ they have been aliases for three GNU-specific functions: and .BR gnu_dev_minor (). The latter names are exported, but the traditional names are more portable. -.PP +.P Depending on the version, glibc also exposes definitions for these macros from .I diff --git a/upstream/opensuse-tumbleweed/man3/mallinfo.3 b/upstream/opensuse-tumbleweed/man3/mallinfo.3 index af081377..aa4b2ccd 100644 --- a/upstream/opensuse-tumbleweed/man3/mallinfo.3 +++ b/upstream/opensuse-tumbleweed/man3/mallinfo.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH mallinfo 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mallinfo 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mallinfo, mallinfo2 \- obtain memory allocation information .SH LIBRARY @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B struct mallinfo mallinfo(void); .B struct mallinfo2 mallinfo2(void); .fi @@ -25,18 +25,18 @@ The structure returned by each function contains the same fields. However, the older function, .BR mallinfo (), is deprecated since the type used for the fields is too small (see BUGS). -.PP +.P Note that not all allocations are visible to these functions; see BUGS and consider using .BR malloc_info (3) instead. -.PP +.P The .I mallinfo2 structure returned by .BR mallinfo2 () is defined as follows: -.PP +.P .in +4n .EX struct mallinfo2 { @@ -54,14 +54,14 @@ struct mallinfo2 { }; .EE .in -.PP +.P The .I mallinfo structure returned by the deprecated .BR mallinfo () function is exactly the same, except that the fields are typed as .IR int . -.PP +.P The structure fields contain the following information: .TP 10 .I arena @@ -134,7 +134,7 @@ T} Thread safety T{ MT-Unsafe init const:mallopt T} .TE -.sp 1 +.P .BR mallinfo ()/ .BR mallinfo2 () would access some global internal objects. @@ -173,7 +173,7 @@ See and .BR malloc_info (3) for alternatives that include information about other arenas. -.PP +.P The fields of the .I mallinfo structure that is returned by the older @@ -189,11 +189,11 @@ The program below employs to retrieve memory allocation statistics before and after allocating and freeing some blocks of memory. The statistics are displayed on standard output. -.PP +.P The first two command-line arguments specify the number and size of blocks to be allocated with .BR malloc (3). -.PP +.P The remaining three arguments specify which of the allocated blocks should be freed with .BR free (3). @@ -207,11 +207,11 @@ of the last block to be freed (default is one greater than the maximum block number). If these three arguments are omitted, then the defaults cause all allocated blocks to be freed. -.PP +.P In the following example run of the program, 1000 allocations of 100 bytes are performed, and then every second allocated block is freed: -.PP +.P .in +4n .EX $ \fB./a.out 1000 100 2\fP diff --git a/upstream/opensuse-tumbleweed/man3/malloc.3 b/upstream/opensuse-tumbleweed/man3/malloc.3 index eee0b306..5edae40f 100644 --- a/upstream/opensuse-tumbleweed/man3/malloc.3 +++ b/upstream/opensuse-tumbleweed/man3/malloc.3 @@ -12,7 +12,7 @@ .\" FIXME . Review http://austingroupbugs.net/view.php?id=374 .\" to see what changes are required on this page. .\" -.TH malloc 3 2023-07-20 "Linux man-pages 6.05.01" +.TH malloc 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME malloc, free, calloc, realloc, reallocarray \- allocate and free dynamic memory .SH LIBRARY @@ -21,19 +21,19 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void *malloc(size_t " size ); .BI "void free(void *_Nullable " ptr ); .BI "void *calloc(size_t " nmemb ", size_t " size ); .BI "void *realloc(void *_Nullable " ptr ", size_t " size ); .BI "void *reallocarray(void *_Nullable " ptr ", size_t " nmemb ", size_t " size ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR reallocarray (): .nf Since glibc 2.29: @@ -87,7 +87,7 @@ is 0, then .BR calloc () returns a unique pointer value that can later be successfully passed to .BR free (). -.PP +.P If the multiplication of .I nmemb and @@ -99,7 +99,7 @@ By contrast, an integer overflow would not be detected in the following call to .BR malloc (), with the result that an incorrectly sized block of memory would be allocated: -.PP +.P .in +4n .EX malloc(nmemb * size); @@ -119,14 +119,14 @@ up to the minimum of the old and new sizes. If the new size is larger than the old size, the added memory will .I not be initialized. -.PP +.P If .I ptr is NULL, then the call is equivalent to .IR malloc(size) , for all values of .IR size . -.PP +.P If .I size is equal to zero, @@ -135,7 +135,7 @@ and is not NULL, then the call is equivalent to .I free(ptr) (but see "Nonportable behavior" for portability issues). -.PP +.P Unless .I ptr is NULL, it must have been returned by an earlier call to @@ -156,13 +156,13 @@ elements, each of which is .I size bytes. It is equivalent to the call -.PP +.P .in +4n .EX realloc(ptr, nmemb * size); .EE .in -.PP +.P However, unlike that .BR realloc () call, @@ -187,12 +187,12 @@ Attempting to allocate more than .B PTRDIFF_MAX bytes is considered an error, as an object that large could cause later pointer subtraction to overflow. -.PP +.P The .BR free () function returns no value, and preserves .IR errno . -.PP +.P The .BR realloc () and @@ -247,7 +247,6 @@ T{ .BR realloc () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR malloc () @@ -275,12 +274,12 @@ POSIX.1-2001, C89. .BR reallocarray () glibc 2.26. OpenBSD 5.6, FreeBSD 11.0. -.PP +.P .BR malloc () and related functions rejected sizes greater than .B PTRDIFF_MAX starting in glibc 2.30. -.PP +.P .BR free () preserved .I errno @@ -301,7 +300,7 @@ in .BR proc (5), and the Linux kernel source file .IR Documentation/vm/overcommit\-accounting.rst . -.PP +.P Normally, .BR malloc () allocates memory from the heap, and adjusts the size of the heap @@ -324,7 +323,7 @@ were unaffected by the resource limit; since Linux 4.7, this limit is also enforced for allocations performed using .BR mmap (2). -.PP +.P To avoid corruption in multithreaded applications, mutexes are used internally to protect the memory-management data structures employed by these functions. @@ -342,7 +341,7 @@ by the system or .BR mmap (2)), and managed with its own mutexes. -.PP +.P If your program uses a private memory allocator, it should do so by replacing .BR malloc (), @@ -364,11 +363,11 @@ fail without having a valid reason in .IR errno . Private memory allocators may also need to replace other glibc functions; see "Replacing malloc" in the glibc manual for details. -.PP +.P Crashes in memory allocators are almost always related to heap corruption, such as overflowing an allocated chunk or freeing the same pointer twice. -.PP +.P The .BR malloc () implementation is tunable via environment variables; see @@ -383,14 +382,14 @@ other implementations may return NULL without setting and portable POSIX programs should tolerate such behavior. See .BR realloc (3p). -.PP +.P POSIX requires memory allocators to set .I errno upon failure. However, the C standard does not require this, and applications portable to non-POSIX platforms should not assume this. -.PP +.P Portable programs should not use private memory allocators, as POSIX and the C standard do not allow replacement of .BR malloc (), @@ -455,7 +454,7 @@ my_mallocarray(size_t nmemb, size_t size) .BR mcheck (3), .BR mtrace (3), .BR posix_memalign (3) -.PP +.P For details of the GNU C library implementation, see .UR https://sourceware.org/glibc/wiki/MallocInternals .UE . diff --git a/upstream/opensuse-tumbleweed/man3/malloc_get_state.3 b/upstream/opensuse-tumbleweed/man3/malloc_get_state.3 index 1577735a..8a24f855 100644 --- a/upstream/opensuse-tumbleweed/man3/malloc_get_state.3 +++ b/upstream/opensuse-tumbleweed/man3/malloc_get_state.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH malloc_get_state 3 2023-07-20 "Linux man-pages 6.05.01" +.TH malloc_get_state 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME malloc_get_state, malloc_set_state \- record and restore state of malloc implementation @@ -13,14 +13,14 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B void *malloc_get_state(void); .BI "int malloc_set_state(void *" state ); .fi .SH DESCRIPTION .IR Note : -these function are removed in glibc 2.25. -.PP +these functions are removed in glibc 2.25. +.P The .BR malloc_get_state () function records the current state of all @@ -37,7 +37,7 @@ and a pointer to that data structure is returned as the function result. (It is the caller's responsibility to .BR free (3) this memory.) -.PP +.P The .BR malloc_set_state () function restores the state of all @@ -52,7 +52,7 @@ returns a pointer to a newly allocated opaque data structure. On error (for example, memory could not be allocated for the data structure), .BR malloc_get_state () returns NULL. -.PP +.P On success, .BR malloc_set_state () returns 0. @@ -85,7 +85,6 @@ T{ .BR malloc_set_state () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH NOTES @@ -94,7 +93,7 @@ These functions are useful when using this implementation as part of a shared library, and the heap contents are saved/restored via some other method. This technique is used by GNU Emacs to implement its "dumping" function. -.PP +.P Hook function pointers are never saved or restored by these functions, with two exceptions: if malloc checking (see diff --git a/upstream/opensuse-tumbleweed/man3/malloc_hook.3 b/upstream/opensuse-tumbleweed/man3/malloc_hook.3 index 8ade1b1b..5b10cfdc 100644 --- a/upstream/opensuse-tumbleweed/man3/malloc_hook.3 +++ b/upstream/opensuse-tumbleweed/man3/malloc_hook.3 @@ -5,7 +5,7 @@ .\" Heavily based on glibc documentation .\" Polished, added docs, removed glibc doc bug, 2002-07-20, aeb .\" -.TH __malloc_hook 3 2023-05-03 "Linux man-pages 6.05.01" +.TH __malloc_hook 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME __malloc_hook, __malloc_initialize_hook, __memalign_hook, __free_hook, __realloc_hook, @@ -16,19 +16,19 @@ Standard C library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "void *(*volatile __malloc_hook)(size_t " size ", const void *" caller ); -.PP +.P .BI "void *(*volatile __realloc_hook)(void *" ptr ", size_t " size , .BI " const void *" caller ); -.PP +.P .BI "void *(*volatile __memalign_hook)(size_t " alignment ", size_t " size , .BI " const void *" caller ); -.PP +.P .BI "void (*volatile __free_hook)(void *" ptr ", const void *" caller ); -.PP +.P .B "void (*__malloc_initialize_hook)(void);" -.PP +.P .B "void (*volatile __after_morecore_hook)(void);" .fi .SH DESCRIPTION @@ -41,24 +41,24 @@ by specifying appropriate hook functions. You can use these hooks to help you debug programs that use dynamic memory allocation, for example. -.PP +.P The variable .B __malloc_initialize_hook points at a function that is called once when the malloc implementation is initialized. This is a weak variable, so it can be overridden in the application with a definition like the following: -.PP +.P .in +4n .EX void (*__malloc_initialize_hook)(void) = my_init_hook; .EE .in -.PP +.P Now the function .IR my_init_hook () can do the initialization of all hooks. -.PP +.P The four functions pointed to by .BR __malloc_hook , .BR __realloc_hook , @@ -74,7 +74,7 @@ respectively, except that they have a final argument that gives the address of the caller of .BR malloc (3), etc. -.PP +.P The variable .B __after_morecore_hook points at a function that is called each time after @@ -101,7 +101,7 @@ and .BR calloc (). .SH EXAMPLES Here is a short example of how to use these variables. -.PP +.P .EX #include #include diff --git a/upstream/opensuse-tumbleweed/man3/malloc_info.3 b/upstream/opensuse-tumbleweed/man3/malloc_info.3 index 045430b0..086b3b29 100644 --- a/upstream/opensuse-tumbleweed/man3/malloc_info.3 +++ b/upstream/opensuse-tumbleweed/man3/malloc_info.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH malloc_info 3 2023-07-20 "Linux man-pages 6.05.01" +.TH malloc_info 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME malloc_info \- export malloc state to a stream .SH LIBRARY @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int malloc_info(int " options ", FILE *" stream ); .fi .SH DESCRIPTION @@ -25,7 +25,7 @@ The string is printed on the file stream .IR stream . The exported string includes information about all arenas (see .BR malloc (3)). -.PP +.P As currently implemented, .I options must be zero. @@ -55,7 +55,6 @@ T{ .BR malloc_info () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH HISTORY @@ -66,13 +65,13 @@ The memory-allocation information is provided as an XML string because the information may change over time (according to changes in the underlying implementation). The output XML string includes a version field. -.PP +.P The .BR open_memstream (3) function can be used to send the output of .BR malloc_info () directly into a buffer in memory, rather than to a file. -.PP +.P The .BR malloc_info () function is designed to address deficiencies in @@ -90,14 +89,14 @@ The third argument controls the size of the blocks to be allocated. The main thread creates blocks of this size, the second thread created by the program allocates blocks of twice this size, the third thread allocates blocks of three times this size, and so on. -.PP +.P The program calls .BR malloc_info () twice to display the memory-allocation state. The first call takes place before any threads are created or memory allocated. The second call is performed after all threads have allocated memory. -.PP +.P In the following example, the command-line arguments specify the creation of one additional thread, and both the main thread and the additional thread @@ -105,7 +104,7 @@ allocate 10000 blocks of memory. After the blocks of memory have been allocated, .BR malloc_info () shows the state of two allocation arenas. -.PP +.P .in +4n .EX .RB "$ " "getconf GNU_LIBC_VERSION" diff --git a/upstream/opensuse-tumbleweed/man3/malloc_stats.3 b/upstream/opensuse-tumbleweed/man3/malloc_stats.3 index 7c17d2c1..30df458f 100644 --- a/upstream/opensuse-tumbleweed/man3/malloc_stats.3 +++ b/upstream/opensuse-tumbleweed/man3/malloc_stats.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH malloc_stats 3 2023-07-20 "Linux man-pages 6.05.01" +.TH malloc_stats 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME malloc_stats \- print memory allocation statistics .SH LIBRARY @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B void malloc_stats(void); .fi .SH DESCRIPTION @@ -49,7 +49,6 @@ T{ .BR malloc_stats () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/malloc_trim.3 b/upstream/opensuse-tumbleweed/man3/malloc_trim.3 index f57de447..4049b24f 100644 --- a/upstream/opensuse-tumbleweed/man3/malloc_trim.3 +++ b/upstream/opensuse-tumbleweed/man3/malloc_trim.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH malloc_trim 3 2023-07-20 "Linux man-pages 6.05.01" +.TH malloc_trim 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME malloc_trim \- release free memory from the heap .SH LIBRARY @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int malloc_trim(size_t " pad ); .fi .SH DESCRIPTION @@ -24,7 +24,7 @@ function attempts to release free memory from the heap or .BR madvise (2) with suitable arguments). -.PP +.P The .I pad argument specifies the amount of free space to leave untrimmed @@ -56,7 +56,6 @@ T{ .BR malloc_trim () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH VERSIONS @@ -67,13 +66,13 @@ Only the main heap (using honors the .I pad argument; thread heaps do not. -.PP +.P Since glibc 2.8 this function frees memory in all arenas and in all chunks with whole free pages. .\" See commit 68631c8eb92ff38d9da1ae34f6aa048539b199cc .\" (dated 2007-12-16) which adds iteration over all .\" arenas and frees all pages in chunks which are free. -.PP +.P Before glibc 2.8 this function only freed memory at the top of the heap in the main arena. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/malloc_usable_size.3 b/upstream/opensuse-tumbleweed/man3/malloc_usable_size.3 index 91d22d8d..c0aa6b8c 100644 --- a/upstream/opensuse-tumbleweed/man3/malloc_usable_size.3 +++ b/upstream/opensuse-tumbleweed/man3/malloc_usable_size.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH malloc_usable_size 3 2023-07-20 "Linux man-pages 6.05.01" +.TH malloc_usable_size 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME malloc_usable_size \- obtain size of block of memory allocated from heap .SH LIBRARY @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t malloc_usable_size(void *_Nullable " ptr ); .fi .SH DESCRIPTION @@ -42,7 +42,6 @@ T{ .BR malloc_usable_size () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH CAVEATS diff --git a/upstream/opensuse-tumbleweed/man3/mallopt.3 b/upstream/opensuse-tumbleweed/man3/mallopt.3 index 5fdda5cb..d684eb14 100644 --- a/upstream/opensuse-tumbleweed/man3/mallopt.3 +++ b/upstream/opensuse-tumbleweed/man3/mallopt.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH mallopt 3 2023-05-03 "Linux man-pages 6.05.01" +.TH mallopt 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mallopt \- set memory allocation parameters .SH LIBRARY @@ -11,7 +11,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int mallopt(int " param ", int " value ); .fi .SH DESCRIPTION @@ -25,7 +25,7 @@ The argument specifies the parameter to be modified, and .I value specifies the new value for that parameter. -.PP +.P The following values can be specified for .IR param : .TP @@ -355,7 +355,7 @@ then the settings take precedence.) For security reasons, these variables are ignored in set-user-ID and set-group-ID programs. -.PP +.P The environment variables are as follows (note the trailing underscore at the end of the name of some variables): .TP @@ -455,7 +455,7 @@ glibc 2.0. Specifying an invalid value for .I param does not generate an error. -.PP +.P A calculation error within the glibc implementation means that a call of the form: .\" FIXME . This looks buggy: @@ -463,13 +463,13 @@ a call of the form: .\" malloc requests are rounded up: .\" (req) + SIZE_SZ + MALLOC_ALIGN_MASK) & ~MALLOC_ALIGN_MASK .\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=12129 -.PP +.P .in +4n .EX mallopt(M_MXFAST, n) .EE .in -.PP +.P does not result in fastbins being employed for all allocations of size up to .IR n . To ensure desired results, @@ -480,7 +480,7 @@ where .I k is an integer. .\" Bins are multiples of 2 * sizeof(size_t) + sizeof(size_t) -.PP +.P If .BR mallopt () is used to set @@ -510,11 +510,11 @@ then that argument is used to set the parameter. The program then allocates a block of memory, and frees it twice (an error). -.PP +.P The following shell session shows what happens when we run this program under glibc, with the default value for .BR M_CHECK_ACTION : -.PP +.P .in +4n .EX $ \fB./a.out\fP @@ -536,10 +536,10 @@ bff53000\-bff74000 rw\-p 00000000 00:00 0 [stack] Aborted (core dumped) .EE .in -.PP +.P The following runs show the results when employing other values for .BR M_CHECK_ACTION : -.PP +.P .in +4n .EX $ \fB./a.out 1\fP # Diagnose error and continue @@ -554,11 +554,11 @@ main(): returned from first free() call main(): returned from second free() call .EE .in -.PP +.P The next run shows how to set the same parameter using the .B MALLOC_CHECK_ environment variable: -.PP +.P .in +4n .EX $ \fBMALLOC_CHECK_=1 ./a.out\fP diff --git a/upstream/opensuse-tumbleweed/man3/mark.3menu b/upstream/opensuse-tumbleweed/man3/mark.3menu index 2c807878..eb2d2502 100644 --- a/upstream/opensuse-tumbleweed/man3/mark.3menu +++ b/upstream/opensuse-tumbleweed/man3/mark.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: menu_mark.3x,v 1.33 2023/11/25 13:58:47 tom Exp $ -.TH mark 3MENU 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: menu_mark.3x,v 1.35 2024/03/16 15:35:01 tom Exp $ +.TH mark 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBset_menu_mark\fP, \fBmenu_mark\fP \- diff --git a/upstream/opensuse-tumbleweed/man3/matherr.3 b/upstream/opensuse-tumbleweed/man3/matherr.3 index 8e9a9738..4536e01e 100644 --- a/upstream/opensuse-tumbleweed/man3/matherr.3 +++ b/upstream/opensuse-tumbleweed/man3/matherr.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH matherr 3 2023-07-20 "Linux man-pages 6.05.01" +.TH matherr 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME matherr \- SVID math library exception handling .SH LIBRARY @@ -13,9 +13,9 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] int matherr(struct exception *" exc ); -.PP +.P .B [[deprecated]] extern _LIB_VERSION_TYPE _LIB_VERSION; .fi .SH DESCRIPTION @@ -32,7 +32,7 @@ and This page documents the .BR matherr () mechanism as an aid for maintaining and porting older applications. -.PP +.P The System V Interface Definition (SVID) specifies that various math functions should invoke a function called .BR matherr () @@ -42,7 +42,7 @@ after .BR matherr () returns, the system then returns to the math function, which in turn returns to the caller. -.PP +.P To employ .BR matherr (), the programmer must define the @@ -55,7 +55,7 @@ and assign the value .B _SVID_ to the external variable .BR _LIB_VERSION . -.PP +.P The system provides a default version of .BR matherr (). This version does nothing, and returns zero @@ -67,7 +67,7 @@ version, which will be invoked when an exception occurs. The function is invoked with one argument, a pointer to an .I exception structure, defined as follows: -.PP +.P .in +4n .EX struct exception { @@ -79,7 +79,7 @@ struct exception { } .EE .in -.PP +.P The .I type field has one of the following values: @@ -130,7 +130,7 @@ is set to Partial loss of significance. This value is unused on glibc (and many other systems). -.PP +.P The .I arg1 and @@ -138,7 +138,7 @@ and fields are the arguments supplied to the function .RI ( arg2 is undefined for functions that take only one argument). -.PP +.P The .I retval field specifies the return value that the math @@ -146,14 +146,14 @@ function will return to its caller. The programmer-defined .BR matherr () can modify this field to change the return value of the math function. -.PP +.P If the .BR matherr () function returns zero, then the system sets .I errno as described above, and may print an error message on standard error (see below). -.PP +.P If the .BR matherr () function returns a nonzero value, then the system does not set @@ -169,15 +169,15 @@ when calling .BR matherr (). The "Result" column is the default return value assigned to .IR exc\->retval . -.PP +.P The "Msg?" and "errno" columns describe the default behavior if .BR matherr () returns zero. If the "Msg?" columns contains "y", then the system prints an error message on standard error. -.PP +.P The table uses the following notations and abbreviations: -.PP +.P .RS .TS l l. @@ -270,7 +270,6 @@ T{ .BR matherr () T} Thread safety MT-Safe .TE -.sp 1 .SH EXAMPLES The example program demonstrates the use of .BR matherr () @@ -292,12 +291,12 @@ If the optional third command-line argument is supplied, then it specifies an alternative return value that .BR matherr () should assign as the return value of the math function. -.PP +.P The following example run, where .BR log (3) is given an argument of 0.0, does not use .BR matherr (): -.PP +.P .in +4n .EX .RB "$" " ./a.out 0.0" @@ -305,11 +304,11 @@ errno: Numerical result out of range x=\-inf .EE .in -.PP +.P In the following run, .BR matherr () is called, and returns 0: -.PP +.P .in +4n .EX .RB "$" " ./a.out 0.0 0" @@ -321,13 +320,13 @@ errno: Numerical argument out of domain x=\-340282346638528859811704183484516925440.000000 .EE .in -.PP +.P The message "log: SING error" was printed by the C library. -.PP +.P In the following run, .BR matherr () is called, and returns a nonzero value: -.PP +.P .in +4n .EX .RB "$" " ./a.out 0.0 1" @@ -337,16 +336,16 @@ matherr SING exception in log() function x=\-340282346638528859811704183484516925440.000000 .EE .in -.PP +.P In this case, the C library did not print a message, and .I errno was not set. -.PP +.P In the following run, .BR matherr () is called, changes the return value of the math function, and returns a nonzero value: -.PP +.P .in +4n .EX .RB "$" " ./a.out 0.0 1 12345.0" @@ -358,7 +357,7 @@ x=12345.000000 .in .SS Program source \& -.\" [[deprecated]] SRC BEGIN (matherr.c) +.\" SRC BEGIN (matherr.c) .EX #define _SVID_SOURCE #include diff --git a/upstream/opensuse-tumbleweed/man3/mblen.3 b/upstream/opensuse-tumbleweed/man3/mblen.3 index 0a8bbdeb..f2539658 100644 --- a/upstream/opensuse-tumbleweed/man3/mblen.3 +++ b/upstream/opensuse-tumbleweed/man3/mblen.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH mblen 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mblen 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mblen \- determine number of bytes in next multibyte character .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int mblen(const char " s [. n "], size_t " n ); .fi .SH DESCRIPTION @@ -39,7 +39,7 @@ If the multibyte character is not the null wide character, it returns the number of bytes that were consumed from .IR s . If the multibyte character is the null wide character, it returns 0. -.PP +.P If the .I n bytes starting at @@ -53,14 +53,14 @@ This can happen even if is greater than or equal to .IR MB_CUR_MAX , if the multibyte string contains redundant shift sequences. -.PP +.P If the multibyte string starting at .I s contains an invalid multibyte sequence before the next complete character, .BR mblen () also returns \-1. -.PP +.P If .I s is NULL, the @@ -97,7 +97,6 @@ T{ .BR mblen () T} Thread safety MT-Unsafe race .TE -.sp 1 .SH VERSIONS The function .BR mbrlen (3) diff --git a/upstream/opensuse-tumbleweed/man3/mbrlen.3 b/upstream/opensuse-tumbleweed/man3/mbrlen.3 index bf19f885..83d9d369 100644 --- a/upstream/opensuse-tumbleweed/man3/mbrlen.3 +++ b/upstream/opensuse-tumbleweed/man3/mbrlen.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH mbrlen 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mbrlen 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mbrlen \- determine number of bytes in next multibyte character .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t mbrlen(const char " s "[restrict ." n "], size_t " n , .BI " mbstate_t *restrict " ps ); .fi @@ -40,7 +40,7 @@ If the multibyte character is the null wide character, it resets the shift state .I *ps to the initial state and returns 0. -.PP +.P If the .I n bytes starting at @@ -56,7 +56,7 @@ This can happen even if .IR MB_CUR_MAX , if the multibyte string contains redundant shift sequences. -.PP +.P If the multibyte string starting at .I s contains an invalid multibyte @@ -72,7 +72,7 @@ In this case, the effects on .I *ps are undefined. -.PP +.P If .I ps is NULL, a static anonymous state known only to the @@ -115,7 +115,6 @@ T{ .BR mbrlen () T} Thread safety MT-Unsafe race:mbrlen/!ps .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/mbrtowc.3 b/upstream/opensuse-tumbleweed/man3/mbrtowc.3 index 2dc8f156..e0cc56ee 100644 --- a/upstream/opensuse-tumbleweed/man3/mbrtowc.3 +++ b/upstream/opensuse-tumbleweed/man3/mbrtowc.3 @@ -10,7 +10,7 @@ .\" http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH mbrtowc 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mbrtowc 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mbrtowc \- convert a multibyte sequence to a wide character .SH LIBRARY @@ -19,7 +19,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t mbrtowc(wchar_t *restrict " pwc ", const char " s "[restrict ." n ], .BI " size_t " n ", mbstate_t *restrict " ps ); .fi @@ -50,7 +50,7 @@ If the converted wide character is L\[aq]\e0\[aq], it resets the shift state .I *ps to the initial state and returns 0. -.PP +.P If the .I n bytes starting at @@ -66,7 +66,7 @@ This can happen even if .IR MB_CUR_MAX , if the multibyte string contains redundant shift sequences. -.PP +.P If the multibyte string starting at .I s contains an invalid multibyte @@ -82,7 +82,7 @@ In this case, the effects on .I *ps are undefined. -.PP +.P A different case is when .I s is not NULL but @@ -92,7 +92,7 @@ In this case, the .BR mbrtowc () function behaves as above, except that it does not store the converted wide character in memory. -.PP +.P A third case is when .I s is NULL. @@ -124,7 +124,7 @@ function puts .I *ps in the initial state and returns 0. -.PP +.P In all of the above cases, if .I ps is NULL, a static anonymous @@ -142,7 +142,7 @@ object .I a can be initialized to the initial state by zeroing it, for example using -.PP +.P .in +4n .EX memset(&a, 0, sizeof(a)); @@ -185,7 +185,6 @@ T{ .BR mbrtowc () T} Thread safety MT-Unsafe race:mbrtowc/!ps .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/mbsinit.3 b/upstream/opensuse-tumbleweed/man3/mbsinit.3 index 41a43a44..00049c59 100644 --- a/upstream/opensuse-tumbleweed/man3/mbsinit.3 +++ b/upstream/opensuse-tumbleweed/man3/mbsinit.3 @@ -1,5 +1,6 @@ '\" t -.\" Copyright (c) Bruno Haible +.\" Copyright, Bruno Haible +.\" Copyright 2024, Alejandro Colomar .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" @@ -9,67 +10,21 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH mbsinit 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mbsinit 3 2024-05-03 "Linux man-pages (unreleased)" .SH NAME -mbsinit \- test for initial shift state +mbsinit +\- +test for initial shift state .SH LIBRARY Standard C library .RI ( libc ", " \-lc ) .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int mbsinit(const mbstate_t *" ps ); .fi .SH DESCRIPTION -Character conversion between the multibyte representation and the wide -character representation uses conversion state, of type -.IR mbstate_t . -Conversion of a string uses a finite-state machine; when it is interrupted -after the complete conversion of a number of characters, it may need to -save a state for processing the remaining characters. -Such a conversion -state is needed for the sake of encodings such as ISO-2022 and UTF-7. -.PP -The initial state is the state at the beginning of conversion of a string. -There are two kinds of state: the one used by multibyte to wide character -conversion functions, such as -.BR mbsrtowcs (3), -and the one used by wide -character to multibyte conversion functions, such as -.BR wcsrtombs (3), -but they both fit in a -.IR mbstate_t , -and they both have the same -representation for an initial state. -.PP -For 8-bit encodings, all states are equivalent to the initial state. -For multibyte encodings like UTF-8, EUC-*, BIG5, or SJIS, the wide character -to multibyte conversion functions never produce non-initial states, but the -multibyte to wide-character conversion functions like -.BR mbrtowc (3) -do -produce non-initial states when interrupted in the middle of a character. -.PP -One possible way to create an -.I mbstate_t -in initial state is to set it to zero: -.PP -.in +4n -.EX -mbstate_t state; -memset(&state, 0, sizeof(state)); -.EE -.in -.PP -On Linux, the following works as well, but might generate compiler warnings: -.PP -.in +4n -.EX -mbstate_t state = { 0 }; -.EE -.in -.PP The function .BR mbsinit () tests whether @@ -98,7 +53,6 @@ T{ .BR mbsinit () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -111,6 +65,7 @@ depends on the category of the current locale. .SH SEE ALSO +.BR mbstate_t (3type), .BR mbrlen (3), .BR mbrtowc (3), .BR mbsrtowcs (3), diff --git a/upstream/opensuse-tumbleweed/man3/mbsnrtowcs.3 b/upstream/opensuse-tumbleweed/man3/mbsnrtowcs.3 index b9d00291..5b03f7c6 100644 --- a/upstream/opensuse-tumbleweed/man3/mbsnrtowcs.3 +++ b/upstream/opensuse-tumbleweed/man3/mbsnrtowcs.3 @@ -8,7 +8,7 @@ .\" Dinkumware C library reference http://www.dinkumware.com/ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" -.TH mbsnrtowcs 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mbsnrtowcs 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mbsnrtowcs \- convert a multibyte string to a wide-character string .SH LIBRARY @@ -17,17 +17,17 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t mbsnrtowcs(wchar_t " dest "[restrict ." len "], const char **restrict " src , .BI " size_t " nms ", size_t " len \ ", mbstate_t *restrict " ps ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR mbsnrtowcs (): .nf Since glibc 2.10: @@ -46,7 +46,7 @@ the number of bytes to be converted, starting at is limited to at most .I nms bytes. -.PP +.P If .I dest is not NULL, the @@ -120,13 +120,13 @@ characters written to .IR dest , excluding the terminating null wide character, is returned. -.PP +.P According to POSIX.1, if the input buffer ends with an incomplete character, it is unspecified whether conversion stops at the end of the previous character (if any), or at the end of the input buffer. The glibc implementation adopts the former behavior. -.PP +.P If .I dest is NULL, @@ -135,14 +135,14 @@ is ignored, and the conversion proceeds as above, except that the converted wide characters are not written out to memory, and that no destination length limit exists. -.PP +.P In both of the above cases, if .I ps is NULL, a static anonymous state known only to the .BR mbsnrtowcs () function is used instead. -.PP +.P The programmer must ensure that there is room for at least .I len wide @@ -179,7 +179,6 @@ T} Thread safety T{ MT-Unsafe race:mbsnrtowcs/!ps T} .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH NOTES @@ -189,7 +188,7 @@ depends on the .B LC_CTYPE category of the current locale. -.PP +.P Passing NULL as .I ps is not multithread safe. diff --git a/upstream/opensuse-tumbleweed/man3/mbsrtowcs.3 b/upstream/opensuse-tumbleweed/man3/mbsrtowcs.3 index e613a140..bf70295b 100644 --- a/upstream/opensuse-tumbleweed/man3/mbsrtowcs.3 +++ b/upstream/opensuse-tumbleweed/man3/mbsrtowcs.3 @@ -9,31 +9,31 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH mbsrtowcs 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mbsrtowcs 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME -mbsrtowcs \- convert a multibyte string to a wide-character string +mbsrtowcs \- convert a multibyte string to a wide-character string (restartable) .SH LIBRARY Standard C library .RI ( libc ", " \-lc ) .SH SYNOPSIS .nf .B #include -.PP -.BI "size_t mbsrtowcs(wchar_t " dest "[restrict ." len "], const char **restrict " src , -.BI " size_t " len ", mbstate_t *restrict " ps ); +.P +.BI "size_t mbsrtowcs(wchar_t " dest "[restrict ." dsize ], +.BI " const char **restrict " src , +.BI " size_t " dsize ", mbstate_t *restrict " ps ); .fi .SH DESCRIPTION If .I dest -is not NULL, the -.BR mbsrtowcs () -function converts the +is not NULL, +convert the multibyte string .I *src to a wide-character string starting at .IR dest . At most -.I len +.I dsize wide characters are written to .IR dest . The shift state @@ -63,7 +63,7 @@ and is set to .BR EILSEQ . .IP \[bu] -.I len +.I dsize non-L\[aq]\e0\[aq] wide characters have been stored at .IR dest . In this case, @@ -86,16 +86,16 @@ is set to NULL, and the number of wide characters written to .IR dest , excluding the terminating null wide character, is returned. -.PP +.P If .I dest is NULL, -.I len +.I dsize is ignored, and the conversion proceeds as above, except that the converted wide characters are not written out to memory, and that no length limit exists. -.PP +.P In both of the above cases, if .I ps @@ -103,16 +103,23 @@ is NULL, a static anonymous state known only to the .BR mbsrtowcs () function is used instead. -.PP +.P +In order to avoid the case 2 above, the programmer should make sure +.I dsize +is +greater than or equal to +.IR "mbsrtowcs(NULL,src,0,ps)+1" . +.P The programmer must ensure that there is room for at least -.I len +.I dsize wide characters at .IR dest . +.P +This function is a restartable version of +.BR mbstowcs (3). .SH RETURN VALUE -The -.BR mbsrtowcs () -function returns the number of wide characters that make +The number of wide characters that make up the converted part of the wide-character string, not including the terminating null wide character. If an invalid multibyte sequence was @@ -140,7 +147,6 @@ T} Thread safety T{ MT-Unsafe race:mbsrtowcs/!ps T} .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -152,7 +158,7 @@ depends on the .B LC_CTYPE category of the current locale. -.PP +.P Passing NULL as .I ps is not multithread safe. diff --git a/upstream/opensuse-tumbleweed/man3/mbstowcs.3 b/upstream/opensuse-tumbleweed/man3/mbstowcs.3 index c66b9c2d..f1c4ea58 100644 --- a/upstream/opensuse-tumbleweed/man3/mbstowcs.3 +++ b/upstream/opensuse-tumbleweed/man3/mbstowcs.3 @@ -10,7 +10,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH mbstowcs 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mbstowcs 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mbstowcs \- convert a multibyte string to a wide-character string .SH LIBRARY @@ -19,24 +19,22 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP -.BI "size_t mbstowcs(wchar_t " dest "[restrict ." n "], \ +.P +.BI "size_t mbstowcs(wchar_t " dest "[restrict ." dsize "], \ const char *restrict " src , -.BI " size_t " n ); +.BI " size_t " dsize ); .fi .SH DESCRIPTION If .I dest is not NULL, -the -.BR mbstowcs () -function converts the +convert the multibyte string .I src to a wide-character string starting at .IR dest . At most -.I n +.I dsize wide characters are written to .IR dest . The sequence of characters in the string @@ -49,7 +47,7 @@ In this case, .I (size_t)\ \-1 is returned. .IP \[bu] -.I n +.I dsize non-L\[aq]\e0\[aq] wide characters have been stored at .IR dest . In this case, the number of wide characters written to @@ -62,30 +60,28 @@ terminating null character (\[aq]\e0\[aq]). In this case, the number of wide characters written to .IR dest , excluding the terminating null wide character, is returned. -.PP -The programmer must ensure that there is room for at least -.I n -wide -characters at -.IR dest . -.PP +.P If .I dest is NULL, -.I n +.I dsize is ignored, and the conversion proceeds as above, except that the converted wide characters are not written out to memory, and that no length limit exists. -.PP +.P In order to avoid the case 2 above, the programmer should make sure -.I n +.I dsize is greater than or equal to .IR "mbstowcs(NULL,src,0)+1" . +.P +The programmer must ensure that there is room for at least +.I dsize +wide +characters at +.IR dest . .SH RETURN VALUE -The -.BR mbstowcs () -function returns the number of wide characters that make +The number of wide characters that make up the converted part of the wide-character string, not including the terminating null wide character. If an invalid multibyte sequence was @@ -106,7 +102,6 @@ T{ .BR mbstowcs () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS The function .BR mbsrtowcs (3) @@ -128,7 +123,7 @@ The program below illustrates the use of .BR mbstowcs (), as well as some of the wide character classification functions. An example run is the following: -.PP +.P .in +4n .EX $ ./t_mbstowcs de_DE.UTF\-8 Grüße! diff --git a/upstream/opensuse-tumbleweed/man3/mbtowc.3 b/upstream/opensuse-tumbleweed/man3/mbtowc.3 index 743e5a7c..4057959b 100644 --- a/upstream/opensuse-tumbleweed/man3/mbtowc.3 +++ b/upstream/opensuse-tumbleweed/man3/mbtowc.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH mbtowc 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mbtowc 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mbtowc \- convert a multibyte sequence to a wide character .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int mbtowc(wchar_t *restrict " pwc ", const char " s "[restrict ." n "], \ size_t " n ); .fi @@ -47,7 +47,7 @@ does not point to a null byte (\[aq]\e0\[aq]), it returns the number of bytes that were consumed from .IR s , otherwise it returns 0. -.PP +.P If the .I n bytes starting at @@ -61,7 +61,7 @@ This can happen even if >= .IR MB_CUR_MAX , if the multibyte string contains redundant shift sequences. -.PP +.P A different case is when .I s is not NULL but @@ -71,7 +71,7 @@ In this case, the .BR mbtowc () function behaves as above, except that it does not store the converted wide character in memory. -.PP +.P A third case is when .I s is NULL. @@ -102,7 +102,7 @@ or 0 if .I s points to a null byte, or \-1 upon failure. -.PP +.P If .I s is NULL, the @@ -124,7 +124,6 @@ T{ .BR mbtowc () T} Thread safety MT-Unsafe race .TE -.sp 1 .SH VERSIONS This function is not multithread safe. The function diff --git a/upstream/opensuse-tumbleweed/man3/mcheck.3 b/upstream/opensuse-tumbleweed/man3/mcheck.3 index 97f217ff..0d3a7dae 100644 --- a/upstream/opensuse-tumbleweed/man3/mcheck.3 +++ b/upstream/opensuse-tumbleweed/man3/mcheck.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH mcheck 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mcheck 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mcheck, mcheck_check_all, mcheck_pedantic, mprobe \- heap consistency checking .SH LIBRARY @@ -12,11 +12,11 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int mcheck(void (*" abortfunc ")(enum mcheck_status " mstatus )); .BI "int mcheck_pedantic(void (*" abortfunc ")(enum mcheck_status " mstatus )); .B void mcheck_check_all(void); -.PP +.P .BI "enum mcheck_status mprobe(void *" ptr ); .fi .SH DESCRIPTION @@ -30,7 +30,7 @@ on the state of the heap. The checks can detect application errors such as freeing a block of memory more than once or corrupting the bookkeeping data structures that immediately precede a block of allocated memory. -.PP +.P To be effective, the .BR mcheck () function must be called before the first call to @@ -42,7 +42,7 @@ inserts an implicit call to .BR mcheck () (with a NULL argument) before the first call to a memory-allocation function. -.PP +.P The .BR mcheck_pedantic () function is similar to @@ -50,14 +50,14 @@ function is similar to but performs checks on all allocated blocks whenever one of the memory-allocation functions is called. This can be very slow! -.PP +.P The .BR mcheck_check_all () function causes an immediate check on all allocated blocks. This call is effective only if .BR mcheck () is called beforehand. -.PP +.P If the system detects an inconsistency in the heap, the caller-supplied function pointed to by .I abortfunc @@ -70,7 +70,7 @@ is NULL, a default function prints an error message on .I stderr and calls .BR abort (3). -.PP +.P The .BR mprobe () function performs a consistency check on @@ -82,7 +82,7 @@ function should be called beforehand (otherwise .BR mprobe () returns .BR MCHECK_DISABLED ). -.PP +.P The following list describes the values returned by .BR mprobe () or passed as the @@ -135,7 +135,6 @@ MT-Unsafe race:mcheck const:malloc_hooks T} .TE -.sp 1 .SH STANDARDS GNU. .SH HISTORY @@ -167,7 +166,7 @@ The program below calls with a NULL argument and then frees the same block of memory twice. The following shell session demonstrates what happens when running the program: -.PP +.P .in +4n .EX .RB "$" " ./a.out" diff --git a/upstream/opensuse-tumbleweed/man3/memccpy.3 b/upstream/opensuse-tumbleweed/man3/memccpy.3 index 6d14698c..da4acf9e 100644 --- a/upstream/opensuse-tumbleweed/man3/memccpy.3 +++ b/upstream/opensuse-tumbleweed/man3/memccpy.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 18:57:24 1993 by Rik Faith (faith@cs.unc.edu) -.TH memccpy 3 2023-07-20 "Linux man-pages 6.05.01" +.TH memccpy 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME memccpy \- copy memory area .SH LIBRARY @@ -17,7 +17,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void *memccpy(void " dest "[restrict ." n "], const void " src "[restrict ." n ], .BI " int " c ", size_t " n ); .fi @@ -35,7 +35,7 @@ stopping when the character .I c is found. -.PP +.P If the memory areas overlap, the results are undefined. .SH RETURN VALUE The @@ -66,7 +66,6 @@ T{ .BR memccpy () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/memchr.3 b/upstream/opensuse-tumbleweed/man3/memchr.3 index 92708cdb..f8316253 100644 --- a/upstream/opensuse-tumbleweed/man3/memchr.3 +++ b/upstream/opensuse-tumbleweed/man3/memchr.3 @@ -10,7 +10,7 @@ .\" Modified Wed Feb 20 21:09:36 2002, Ian Redfern (redferni@logica.com) .\" 2008-07-09, mtk, add rawmemchr() .\" -.TH memchr 3 2023-07-20 "Linux man-pages 6.05.01" +.TH memchr 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME memchr, memrchr, rawmemchr \- scan memory for a character .SH LIBRARY @@ -19,18 +19,18 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void *memchr(const void " s [. n "], int " c ", size_t " n ); .BI "void *memrchr(const void " s [. n "], int " c ", size_t " n ); -.PP +.P .BI "[[deprecated]] void *rawmemchr(const void *" s ", int " c ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR memrchr (), .BR rawmemchr (): .nf @@ -52,7 +52,7 @@ and the bytes of the memory area pointed to by .I s are interpreted as .IR "unsigned char" . -.PP +.P The .BR memrchr () function is like the @@ -63,7 +63,7 @@ except that it searches backward from the end of the bytes pointed to by .I s instead of forward from the beginning. -.PP +.P The .BR rawmemchr () function is similar to @@ -90,7 +90,7 @@ and functions return a pointer to the matching byte or NULL if the character does not occur in the given memory area. -.PP +.P The .BR rawmemchr () function returns a pointer to the matching byte. @@ -110,7 +110,6 @@ T{ .BR rawmemchr () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR memchr () diff --git a/upstream/opensuse-tumbleweed/man3/memcmp.3 b/upstream/opensuse-tumbleweed/man3/memcmp.3 index f3d94ea7..efd362a5 100644 --- a/upstream/opensuse-tumbleweed/man3/memcmp.3 +++ b/upstream/opensuse-tumbleweed/man3/memcmp.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 18:55:27 1993 by Rik Faith (faith@cs.unc.edu) -.TH memcmp 3 2023-07-30 "Linux man-pages 6.05.01" +.TH memcmp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME memcmp \- compare memory areas .SH LIBRARY @@ -17,7 +17,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int memcmp(const void " s1 [. n "], const void " s2 [. n "], size_t " n ); .fi .SH DESCRIPTION @@ -33,7 +33,7 @@ function returns an integer less than, equal to, or greater than zero if the first \fIn\fP bytes of \fIs1\fP is found, respectively, to be less than, to match, or be greater than the first \fIn\fP bytes of \fIs2\fP. -.PP +.P For a nonzero return value, the sign is determined by the sign of the difference between the first pair of bytes (interpreted as .IR "unsigned char" ) @@ -41,7 +41,7 @@ that differ in .I s1 and .IR s2 . -.PP +.P If .I n is zero, the return value is zero. @@ -59,7 +59,6 @@ T{ .BR memcmp () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/memcpy.3 b/upstream/opensuse-tumbleweed/man3/memcpy.3 index ec8e3b42..0c1d8011 100644 --- a/upstream/opensuse-tumbleweed/man3/memcpy.3 +++ b/upstream/opensuse-tumbleweed/man3/memcpy.3 @@ -9,7 +9,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sun Jul 25 10:41:09 1993 by Rik Faith (faith@cs.unc.edu) -.TH memcpy 3 2023-07-20 "Linux man-pages 6.05.01" +.TH memcpy 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME memcpy \- copy memory area .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void *memcpy(void " dest "[restrict ." n "], const void " src "[restrict ." n ], .BI " size_t " n ); .fi @@ -49,7 +49,6 @@ T{ .BR memcpy () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -70,7 +69,7 @@ in which bytes were copied from .I src to .IR dest . -.PP +.P This change revealed breakages in a number of applications that performed copying with overlapping areas. .\" Adobe Flash player was the highest profile example: diff --git a/upstream/opensuse-tumbleweed/man3/memfrob.3 b/upstream/opensuse-tumbleweed/man3/memfrob.3 index 3f19845e..c6178e5e 100644 --- a/upstream/opensuse-tumbleweed/man3/memfrob.3 +++ b/upstream/opensuse-tumbleweed/man3/memfrob.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 18:54:45 1993 by Rik Faith (faith@cs.unc.edu) -.TH memfrob 3 2023-07-20 "Linux man-pages 6.05.01" +.TH memfrob 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME memfrob \- frobnicate (obfuscate) a memory area .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "void *memfrob(void " s [. n "], size_t " n ); .fi .SH DESCRIPTION @@ -31,7 +31,7 @@ The effect can be reversed by using .BR memfrob () on the obfuscated memory area. -.PP +.P Note that this function is not a proper encryption routine as the XOR constant is fixed, and is suitable only for hiding strings. .SH RETURN VALUE @@ -53,7 +53,6 @@ T{ .BR memfrob () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/memleaks.3ncurses b/upstream/opensuse-tumbleweed/man3/memleaks.3ncurses index a36cf372..b19926a6 100644 --- a/upstream/opensuse-tumbleweed/man3/memleaks.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/memleaks.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2019-2022,2023 Thomas E. Dickey * +.\" Copyright 2019-2023,2024 Thomas E. Dickey * .\" Copyright 2008-2010,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_memleaks.3x,v 1.33 2023/12/23 16:22:08 tom Exp $ -.TH memleaks 3NCURSES 2023-12-23 "ncurses 6.4" "Library calls" +.\" $Id: curs_memleaks.3x,v 1.35 2024/03/16 15:35:01 tom Exp $ +.TH memleaks 3NCURSES 2024-03-16 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq diff --git a/upstream/opensuse-tumbleweed/man3/memmem.3 b/upstream/opensuse-tumbleweed/man3/memmem.3 index f87203c5..825a0d4b 100644 --- a/upstream/opensuse-tumbleweed/man3/memmem.3 +++ b/upstream/opensuse-tumbleweed/man3/memmem.3 @@ -8,7 +8,7 @@ .\" 386BSD man pages .\" Modified Sat Jul 24 18:50:48 1993 by Rik Faith (faith@cs.unc.edu) .\" Interchanged 'needle' and 'haystack'; added history, aeb, 980113. -.TH memmem 3 2023-07-20 "Linux man-pages 6.05.01" +.TH memmem 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME memmem \- locate a substring .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "void *memmem(const void " haystack [. haystacklen "], size_t " haystacklen , .BI " const void " needle [. needlelen "], size_t " needlelen ); .fi @@ -54,7 +54,6 @@ T{ .BR memmem () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/memmove.3 b/upstream/opensuse-tumbleweed/man3/memmove.3 index 6b3b8f03..598fec72 100644 --- a/upstream/opensuse-tumbleweed/man3/memmove.3 +++ b/upstream/opensuse-tumbleweed/man3/memmove.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 18:49:59 1993 by Rik Faith (faith@cs.unc.edu) -.TH memmove 3 2023-07-20 "Linux man-pages 6.05.01" +.TH memmove 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME memmove \- copy memory area .SH LIBRARY @@ -17,7 +17,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void *memmove(void " dest [. n "], const void " src [. n "], size_t " n ); .fi .SH DESCRIPTION @@ -57,7 +57,6 @@ T{ .BR memmove () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/mempcpy.3 b/upstream/opensuse-tumbleweed/man3/mempcpy.3 index 46337c22..f685a743 100644 --- a/upstream/opensuse-tumbleweed/man3/mempcpy.3 +++ b/upstream/opensuse-tumbleweed/man3/mempcpy.3 @@ -6,7 +6,7 @@ .\" Heavily based on glibc infopages, copyright Free Software Foundation .\" .\" aeb, 2003, polished a little -.TH mempcpy 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mempcpy 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mempcpy, wmempcpy \- copy memory area .SH LIBRARY @@ -16,13 +16,13 @@ Standard C library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "void *mempcpy(void " dest "[restrict ." n "], const void " src "[restrict ." n ], .BI " size_t " n ); -.PP +.P .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "wchar_t *wmempcpy(wchar_t " dest "[restrict ." n ], .BI " const wchar_t " src "[restrict ." n ], .BI " size_t " n ); @@ -42,10 +42,10 @@ into the object pointed to by But instead of returning the value of .I dest it returns a pointer to the byte following the last written byte. -.PP +.P This function is useful in situations where a number of objects shall be copied to consecutive memory positions. -.PP +.P The .BR wmempcpy () function is identical but takes @@ -72,7 +72,6 @@ T{ .BR wmempcpy () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/memset.3 b/upstream/opensuse-tumbleweed/man3/memset.3 index b56ef467..cb3c143e 100644 --- a/upstream/opensuse-tumbleweed/man3/memset.3 +++ b/upstream/opensuse-tumbleweed/man3/memset.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 18:49:23 1993 by Rik Faith (faith@cs.unc.edu) -.TH memset 3 2023-07-20 "Linux man-pages 6.05.01" +.TH memset 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME memset \- fill memory with a constant byte .SH LIBRARY @@ -17,7 +17,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void *memset(void " s [. n "], int " c ", size_t " n ); .fi .SH DESCRIPTION @@ -49,7 +49,6 @@ T{ .BR memset () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/menu.3menu b/upstream/opensuse-tumbleweed/man3/menu.3menu index 2f833e6b..ebc09717 100644 --- a/upstream/opensuse-tumbleweed/man3/menu.3menu +++ b/upstream/opensuse-tumbleweed/man3/menu.3menu @@ -1,6 +1,6 @@ '\" t .\"*************************************************************************** -.\" Copyright 2018-2021,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2014,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -28,8 +28,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: menu.3x,v 1.43 2023/12/23 16:08:25 tom Exp $ -.TH menu 3MENU 2023-12-23 "ncurses 6.4" "Library calls" +.\" $Id: menu.3x,v 1.45 2024/03/16 15:35:01 tom Exp $ +.TH menu 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq diff --git a/upstream/opensuse-tumbleweed/man3/menu_current.3menu b/upstream/opensuse-tumbleweed/man3/menu_current.3menu index b68d8f58..617ff97c 100644 --- a/upstream/opensuse-tumbleweed/man3/menu_current.3menu +++ b/upstream/opensuse-tumbleweed/man3/menu_current.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2006,2010 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: mitem_current.3x,v 1.35 2023/11/25 13:58:47 tom Exp $ -.TH menu_current 3MENU 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: mitem_current.3x,v 1.37 2024/03/16 15:35:01 tom Exp $ +.TH menu_current 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBmitem_current\fP \- set and get current_menu_item diff --git a/upstream/opensuse-tumbleweed/man3/menu_name.3menu b/upstream/opensuse-tumbleweed/man3/menu_name.3menu index c69dbcc2..849e761b 100644 --- a/upstream/opensuse-tumbleweed/man3/menu_name.3menu +++ b/upstream/opensuse-tumbleweed/man3/menu_name.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: mitem_name.3x,v 1.29 2023/11/25 13:58:47 tom Exp $ -.TH menu_name 3MENU 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: mitem_name.3x,v 1.31 2024/03/16 15:35:01 tom Exp $ +.TH menu_name 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBitem_name\fP, \fBitem_description\fP \- diff --git a/upstream/opensuse-tumbleweed/man3/menu_new.3menu b/upstream/opensuse-tumbleweed/man3/menu_new.3menu index 8555406d..68f75ddb 100644 --- a/upstream/opensuse-tumbleweed/man3/menu_new.3menu +++ b/upstream/opensuse-tumbleweed/man3/menu_new.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: mitem_new.3x,v 1.34 2023/11/25 13:58:47 tom Exp $ -.TH menu_new 3MENU 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: mitem_new.3x,v 1.36 2024/03/16 15:35:01 tom Exp $ +.TH menu_new 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBnew_item\fP, \fBfree_item\fP \- diff --git a/upstream/opensuse-tumbleweed/man3/menu_opts.3menu b/upstream/opensuse-tumbleweed/man3/menu_opts.3menu index d3152200..ad1da574 100644 --- a/upstream/opensuse-tumbleweed/man3/menu_opts.3menu +++ b/upstream/opensuse-tumbleweed/man3/menu_opts.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: mitem_opts.3x,v 1.31 2023/11/25 13:58:47 tom Exp $ -.TH menu_opts 3MENU 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: mitem_opts.3x,v 1.33 2024/03/16 15:35:01 tom Exp $ +.TH menu_opts 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBset_item_opts\fP, \fBitem_opts_on\fP, diff --git a/upstream/opensuse-tumbleweed/man3/menu_userptr.3menu b/upstream/opensuse-tumbleweed/man3/menu_userptr.3menu index fceaf435..3949fa54 100644 --- a/upstream/opensuse-tumbleweed/man3/menu_userptr.3menu +++ b/upstream/opensuse-tumbleweed/man3/menu_userptr.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: mitem_userptr.3x,v 1.32 2023/11/25 13:58:47 tom Exp $ -.TH menu_userptr 3MENU 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: mitem_userptr.3x,v 1.34 2024/03/16 15:35:01 tom Exp $ +.TH menu_userptr 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBset_item_userptr\fP, \fBitem_userptr\fP \- diff --git a/upstream/opensuse-tumbleweed/man3/menu_value.3menu b/upstream/opensuse-tumbleweed/man3/menu_value.3menu index d615bac0..71c05d48 100644 --- a/upstream/opensuse-tumbleweed/man3/menu_value.3menu +++ b/upstream/opensuse-tumbleweed/man3/menu_value.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: mitem_value.3x,v 1.30 2023/11/25 13:58:47 tom Exp $ -.TH menu_value 3MENU 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: mitem_value.3x,v 1.32 2024/03/16 15:35:01 tom Exp $ +.TH menu_value 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBset_item_value\fP, \fBitem_value\fP \- diff --git a/upstream/opensuse-tumbleweed/man3/menu_visible.3menu b/upstream/opensuse-tumbleweed/man3/menu_visible.3menu index d2144cb8..7bbb137d 100644 --- a/upstream/opensuse-tumbleweed/man3/menu_visible.3menu +++ b/upstream/opensuse-tumbleweed/man3/menu_visible.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998,2010 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: mitem_visible.3x,v 1.25 2023/11/25 14:18:16 tom Exp $ -.TH menu_visible 3MENU 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: mitem_visible.3x,v 1.27 2024/03/16 15:35:01 tom Exp $ +.TH menu_visible 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBitem_visible\fP \- check visibility of a menu item diff --git a/upstream/opensuse-tumbleweed/man3/mkdtemp.3 b/upstream/opensuse-tumbleweed/man3/mkdtemp.3 index 4c552599..5a2332ac 100644 --- a/upstream/opensuse-tumbleweed/man3/mkdtemp.3 +++ b/upstream/opensuse-tumbleweed/man3/mkdtemp.3 @@ -4,7 +4,7 @@ .\" and GNU libc documentation .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft -.TH mkdtemp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mkdtemp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mkdtemp \- create a unique temporary directory .SH LIBRARY @@ -13,15 +13,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *mkdtemp(char *" template ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR mkdtemp (): .nf /* Since glibc 2.19: */ _DEFAULT_SOURCE @@ -53,7 +53,7 @@ is set to indicate the error. .B EINVAL The last six characters of \fItemplate\fP were not XXXXXX. Now \fItemplate\fP is unchanged. -.PP +.P Also see .BR mkdir (2) for other possible values for \fIerrno\fP. @@ -71,7 +71,6 @@ T{ .BR mkdtemp () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/mkfifo.3 b/upstream/opensuse-tumbleweed/man3/mkfifo.3 index f43f07da..46e1c149 100644 --- a/upstream/opensuse-tumbleweed/man3/mkfifo.3 +++ b/upstream/opensuse-tumbleweed/man3/mkfifo.3 @@ -6,7 +6,7 @@ .\" .\" changed section from 2 to 3, aeb, 950919 .\" -.TH mkfifo 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mkfifo 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mkfifo, mkfifoat \- make a FIFO special file (a named pipe) .SH LIBRARY @@ -16,20 +16,20 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "int mkfifo(const char *" pathname ", mode_t " mode ); -.PP +.P .BR "#include " "/* Definition of AT_* constants */" .B #include -.PP +.P .BI "int mkfifoat(int " dirfd ", const char *" pathname ", mode_t " mode ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR mkfifoat (): .nf Since glibc 2.10: @@ -44,14 +44,14 @@ makes a FIFO special file with name \fIpathname\fP. It is modified by the process's \fBumask\fP in the usual way: the permissions of the created file are \fB(\fP\fImode\fP\fB & \[ti]umask)\fP. -.PP +.P A FIFO special file is similar to a pipe, except that it is created in a different way. Instead of being an anonymous communications channel, a FIFO special file is entered into the filesystem by calling .BR mkfifo (). -.PP +.P Once you have created a FIFO special file in this way, any process can open it for reading or writing, in the same way as an ordinary file. However, it has to be open at both ends simultaneously before you can @@ -67,7 +67,7 @@ The function operates in exactly the same way as .BR mkfifo (), except for the differences described here. -.PP +.P If the pathname given in .I pathname is relative, then it is interpreted relative to the directory @@ -77,7 +77,7 @@ referred to by the file descriptor the calling process, as is done by .BR mkfifo () for a relative pathname). -.PP +.P If .I pathname is relative and @@ -89,13 +89,13 @@ then is interpreted relative to the current working directory of the calling process (like .BR mkfifo ()). -.PP +.P If .I pathname is absolute, then .I dirfd is ignored. -.PP +.P See .BR openat (2) for an explanation of the need for @@ -177,7 +177,6 @@ T{ .BR mkfifoat () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS It is implemented using .BR mknodat (2). diff --git a/upstream/opensuse-tumbleweed/man3/mkstemp.3 b/upstream/opensuse-tumbleweed/man3/mkstemp.3 index dbfa2521..8461aaee 100644 --- a/upstream/opensuse-tumbleweed/man3/mkstemp.3 +++ b/upstream/opensuse-tumbleweed/man3/mkstemp.3 @@ -13,7 +13,7 @@ .\" Modified 990328, aeb .\" 2008-06-19, mtk, Added mkostemp(); various other changes .\" -.TH mkstemp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mkstemp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mkstemp, mkostemp, mkstemps, mkostemps \- create a unique temporary file .SH LIBRARY @@ -22,18 +22,18 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int mkstemp(char *" template ); .BI "int mkostemp(char *" template ", int " flags ); .BI "int mkstemps(char *" template ", int " suffixlen ); .BI "int mkostemps(char *" template ", int " suffixlen ", int " flags ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR mkstemp (): .nf _XOPEN_SOURCE >= 500 @@ -41,18 +41,18 @@ Feature Test Macro Requirements for glibc (see || /* glibc >= 2.12: */ _POSIX_C_SOURCE >= 200809L || /* glibc <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE .fi -.PP +.P .BR mkostemp (): .nf _GNU_SOURCE .fi -.PP +.P .BR mkstemps (): .nf /* glibc >= 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE .fi -.PP +.P .BR mkostemps (): .nf _GNU_SOURCE @@ -64,7 +64,7 @@ function generates a unique temporary filename from .IR template , creates and opens the file, and returns an open file descriptor for the file. -.PP +.P The last six characters of .I template must be "XXXXXX" and these are replaced with a string that makes the @@ -72,7 +72,7 @@ filename unique. Since it will be modified, .I template must not be a string constant, but should be declared as a character array. -.PP +.P The file is created with permissions 0600, that is, read plus write for owner only. The returned file descriptor provides both read and write access to the file. @@ -80,7 +80,7 @@ The file is opened with the .BR open (2) .B O_EXCL flag, guaranteeing that the caller is the process that creates the file. -.PP +.P The .BR mkostemp () function is like @@ -111,7 +111,7 @@ argument given to is unnecessary, and produces errors on some .\" Reportedly, FreeBSD systems. -.PP +.P The .BR mkstemps () function is like @@ -127,7 +127,7 @@ is of the form .IR "prefixXXXXXXsuffix" , and the string XXXXXX is modified as for .BR mkstemp (). -.PP +.P The .BR mkostemps () function is to @@ -166,7 +166,7 @@ is less than characters long, or the last 6 characters before the suffix in .I template were not XXXXXX. -.PP +.P These functions may also fail with any of the errors described for .BR open (2). .SH ATTRIBUTES @@ -186,7 +186,6 @@ T{ .BR mkostemps () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR mkstemp () @@ -215,14 +214,14 @@ glibc 2.7. .TP .BR mkostemps () glibc 2.11. -.PP +.P In glibc versions 2.06 and earlier, the file is created with permissions 0666, that is, read and write for all users. This old behavior may be a security risk, especially since other UNIX flavors use 0600, and somebody might overlook this detail when porting programs. POSIX.1-2008 adds a requirement that the file be created with mode 0600. -.PP +.P More generally, the POSIX specification of .BR mkstemp () does not say anything diff --git a/upstream/opensuse-tumbleweed/man3/mktemp.3 b/upstream/opensuse-tumbleweed/man3/mktemp.3 index c925dd03..54e5b1f9 100644 --- a/upstream/opensuse-tumbleweed/man3/mktemp.3 +++ b/upstream/opensuse-tumbleweed/man3/mktemp.3 @@ -12,7 +12,7 @@ .\" (prompted by Scott Burkett ) .\" Modified Sun Mar 28 23:44:38 1999 by Andries Brouwer (aeb@cwi.nl) .\" -.TH mktemp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mktemp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mktemp \- make a unique temporary filename .SH LIBRARY @@ -21,15 +21,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *mktemp(char *" template ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR mktemp (): .nf Since glibc 2.12: @@ -43,7 +43,7 @@ Feature Test Macro Requirements for glibc (see .SH DESCRIPTION .IR "Never use this function" ; see BUGS. -.PP +.P The .BR mktemp () function generates a unique temporary filename @@ -83,7 +83,6 @@ T{ .BR mktemp () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/modf.3 b/upstream/opensuse-tumbleweed/man3/modf.3 index 118d2133..89db0534 100644 --- a/upstream/opensuse-tumbleweed/man3/modf.3 +++ b/upstream/opensuse-tumbleweed/man3/modf.3 @@ -11,7 +11,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH modf 3 2023-07-20 "Linux man-pages 6.05.01" +.TH modf 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME modf, modff, modfl \- extract signed integral and fractional values from floating-point number @@ -21,17 +21,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double modf(double " x ", double *" iptr ); .BI "float modff(float " x ", float *" iptr ); .BI "long double modfl(long double " x ", long double *" iptr ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR modff (), .BR modfl (): .nf @@ -50,13 +50,13 @@ The integral part is stored in the location pointed to by .SH RETURN VALUE These functions return the fractional part of .IR x . -.PP +.P If .I x is a NaN, a NaN is returned, and .I *iptr is set to a NaN. -.PP +.P If .I x is positive infinity (negative infinity), +0 (\-0) is returned, and @@ -80,12 +80,11 @@ T{ .BR modfl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/mouse.3ncurses b/upstream/opensuse-tumbleweed/man3/mouse.3ncurses index 8aa3e547..081686d9 100644 --- a/upstream/opensuse-tumbleweed/man3/mouse.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/mouse.3ncurses @@ -28,8 +28,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_mouse.3x,v 1.92 2024/02/24 19:54:30 tom Exp $ -.TH mouse 3NCURSES 2024-02-24 "ncurses 6.4" "Library calls" +.\" $Id: curs_mouse.3x,v 1.98 2024/04/20 19:02:07 tom Exp $ +.TH mouse 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -69,16 +69,17 @@ get mouse events in \fIcurses\fR .PP \fBbool has_mouse(void); .PP +\fBmmask_t mousemask(mmask_t \fInewmask\fP, mmask_t *\fIoldmask\fP); +.PP \fBint getmouse(MEVENT *\fIevent\fP); \fBint ungetmouse(MEVENT *\fIevent\fP); .PP -\fBmmask_t mousemask(mmask_t \fInewmask\fP, mmask_t *\fIoldmask\fP); -.PP \fBbool wenclose(const WINDOW *\fIwin\fP, int \fIy\fP, int \fIx\fP); .PP \fBbool mouse_trafo(int* \fIpY\fP, int* \fIpX\fP, bool \fIto_screen\fP); \fBbool wmouse_trafo(const WINDOW* \fIwin\fP, - \fBint* \fIpY\fB, int* \fIpX\fB, bool \fIto_screen\fB);\fR +.ti +18n \" "bool wmouse_trafo(" +\fBint* \fIpY\fB, int* \fIpX\fB, bool \fIto_screen\fB); .PP \fBint mouseinterval(int \fIerval\fB);\fR .fi @@ -87,6 +88,15 @@ These functions provide an interface to mouse events from \fB\%ncurses\fP(3NCURSES). Mouse events are represented by \fB\%KEY_MOUSE\fP pseudo-key values in the \fB\%wgetch\fP(3NCURSES) input stream. +.SS has_mouse +The \fB\%has_mouse\fP function returns \fBTRUE\fP if the mouse driver +has been successfully initialized, +and \fBFALSE\fP otherwise. +.PP +Mouse events are ignored when input is in cooked mode, and +cause an error beep when cooked mode is being simulated in a window by a +function such as \fB\%getstr\fP that expects a linefeed for input-loop +termination. .SS mousemask To make mouse events visible, use the \fB\%mousemask\fP function. This sets the mouse events to be reported. @@ -188,8 +198,8 @@ the screen windows enclose the location of a mouse event. If the parameter is a pad, \fB\%wenclose\fP uses the most recent screen coordinates used for this pad in -\fB\%prefresh\fP(3X) or -\fB\%pnoutrefresh\fP(3X). +\fB\%prefresh\fP(3NCURSES) or +\fB\%pnoutrefresh\fP(3NCURSES). .SS wmouse_trafo The \fB\%wmouse_trafo\fP function transforms a given pair of coordinates from \fB\%stdscr\fP-relative coordinates @@ -197,7 +207,7 @@ to coordinates relative to the given window or vice versa. The resulting \fB\%stdscr\fP-relative coordinates are not always identical to screen coordinates due to the mechanism to reserve lines on top or bottom of the screen for other purposes -(see the \fB\%ripoffline\fP(3X) and \fB\%slk_init\fP(3NCURSES) calls, for example). +(see the \fB\%ripoffline\fP(3NCURSES) and \fB\%slk_init\fP(3NCURSES) calls, for example). .bP If the parameter \fIto_screen\fP is \fBTRUE\fP, the pointers \fIpY, pX\fP must reference the coordinates of a location @@ -231,7 +241,7 @@ The \fB\%mouseinterval\fP function sets the maximum time (in thousands of a second) that can elapse between press and release events for them to be resolved as a -.I click. +.IR click . An application might interpret button press and release events separated by more than the mouse interval as a \*(``long press\*('', or, @@ -255,15 +265,6 @@ Use \fB\%mouseinterval(\-1)\fP to obtain the interval without altering it. The mouse interval is set to one sixth of a second when the corresponding screen is initialized, e.g., in \fB\%initscr\fP(3NCURSES) or \fB\%setupterm\fP(3NCURSES). -.SS has_mouse -The \fB\%has_mouse\fP function returns \fBTRUE\fP if the mouse driver -has been successfully initialized, -and \fBFALSE\fP otherwise. -.PP -Mouse events are ignored when input is in cooked mode, and -cause an error beep when cooked mode is being simulated in a window by a -function such as \fB\%getstr\fP that expects a linefeed for input-loop -termination. .SH RETURN VALUE \fB\%has_mouse\fP, \fB\%wenclose\fP, @@ -299,7 +300,7 @@ The order of the \fB\%MEVENT\fP structure members is not guaranteed. Additional fields may be added to the structure in the future. .PP Under -.I \%ncurses, +.IR \%ncurses , these calls are implemented using either .IR \%xterm 's built-in mouse-tracking API or @@ -352,7 +353,7 @@ include \fB\%REPORT_MOUSE_POSITION\fP. They are distinct. For example, in -.I \%xterm, +.IR \%xterm , wheel/scrolling mice send position reports as a sequence of presses of buttons 4 or 5 without matching button-releases. .SH EXTENSIONS @@ -456,9 +457,9 @@ where the mouse was using the \fB\%req_mouse_pos\fP capability. .IP Those features required a terminal program that had been modified to work with SVr4 -.I curses. +.IR curses . They were not part of the X Consortium's -.I \%xterm. +.IR \%xterm . .PP When developing the .I \%xterm @@ -470,7 +471,7 @@ lack of documentation. Later, in 1998, Mark Hesseling provided support in .I \%PDCurses 2.3 using the SVr4 interface. -.I \%PDCurses, +.IR \%PDCurses , however, does not use video terminals, making it unnecessary to be concerned about compatibility with the diff --git a/upstream/opensuse-tumbleweed/man3/move.3ncurses b/upstream/opensuse-tumbleweed/man3/move.3ncurses index 9118504d..586768ad 100644 --- a/upstream/opensuse-tumbleweed/man3/move.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/move.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,19 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_move.3x,v 1.33 2023/12/16 21:33:08 tom Exp $ -.TH move 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" -.ie \n(.g \{\ -.ds `` \(lq -.ds '' \(rq -.\} -.el \{\ -.ie t .ds `` `` -.el .ds `` "" -.ie t .ds '' '' -.el .ds '' "" -.\} -. +.\" $Id: curs_move.3x,v 1.40 2024/04/27 17:56:05 tom Exp $ +.TH move 3NCURSES 2024-04-27 "ncurses 6.5" "Library calls" .SH NAME \fB\%move\fP, \fB\%wmove\fP \- @@ -52,25 +41,48 @@ move cursor in a \fIcurses\fR window \fBint wmove(WINDOW *\fIwin\fP, int \fIy\fP, int \fIx\fP); .fi .SH DESCRIPTION -These routines move the cursor associated with the window to line \fIy\fP and -column \fIx\fP. -This routine does not move the physical cursor of the terminal -until \fB\%refresh\fP(3NCURSES) is called. -The position specified is relative to the upper -left-hand corner of the window, which is (0,0). +.B \%wmove +relocates the cursor associated with the +.I curses +window +.I win +to line +.I y +and column +.IR x . +The terminal's cursor does not move until \fB\%refresh\fP(3NCURSES) is called. +The position +.RI ( y , +.IR x ) +is relative to the upper left-hand corner of the window, +which has coordinates +(0,\ 0). +\fB\%ncurses\fP(3NCURSES) describes the +.B \%move +variant of this function. .SH RETURN VALUE -These routines return the integer \fBERR\fP upon failure and an \fBOK\fP -(SVr4 specifies only -\*(``an integer value other than \fBERR\fP\*('') -upon successful completion. +These functions return +.B OK +on success and +.B ERR +on failure. .PP -Specifically, they return an error -if the window pointer is null, or -if the position is outside the window. +They fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. +.PP +.B \%wmove +fails if its +.I \%WINDOW +pointer argument is +.BR NULL . .SH NOTES -Note that \fBmove\fP may be a macro. +.B \%move +may be implemented as a macro. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. +X/Open Curses, +Issue 4 describes these functions. .SH SEE ALSO \fB\%ncurses\fP(3NCURSES), \fB\%refresh\fP(3NCURSES) diff --git a/upstream/opensuse-tumbleweed/man3/mpool.3 b/upstream/opensuse-tumbleweed/man3/mpool.3 index 20dd313e..038be701 100644 --- a/upstream/opensuse-tumbleweed/man3/mpool.3 +++ b/upstream/opensuse-tumbleweed/man3/mpool.3 @@ -5,7 +5,7 @@ .\" .\" @(#)mpool.3 8.1 (Berkeley) 6/4/93 .\" -.TH mpool 3 2023-03-30 "Linux man-pages 6.05.01" +.TH mpool 3 2024-05-02 "Linux man-pages (unreleased)" .UC 7 .SH NAME mpool \- shared memory buffer pool @@ -16,18 +16,18 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "MPOOL *mpool_open(DBT *" key ", int " fd ", pgno_t " pagesize \ ", pgno_t " maxcache ); -.PP +.P .BI "void mpool_filter(MPOOL *" mp ", void (*pgin)(void *, pgno_t, void *)," .BI " void (*" pgout ")(void *, pgno_t, void *)," .BI " void *" pgcookie ); -.PP +.P .BI "void *mpool_new(MPOOL *" mp ", pgno_t *" pgnoaddr ); .BI "void *mpool_get(MPOOL *" mp ", pgno_t " pgno ", unsigned int " flags ); .BI "int mpool_put(MPOOL *" mp ", void *" pgaddr ", unsigned int " flags ); -.PP +.P .BI "int mpool_sync(MPOOL *" mp ); .BI "int mpool_close(MPOOL *" mp ); .fi @@ -38,12 +38,12 @@ Since glibc 2.2, glibc no longer provides these interfaces. Probably, you are looking for the APIs provided by the .I libdb library instead. -.PP +.P .I Mpool is the library interface intended to provide page oriented buffer management of files. The buffers may be shared between processes. -.PP +.P The function .BR mpool_open () initializes a memory pool. @@ -64,7 +64,7 @@ If is non-NULL and matches a file already being mapped, the .I fd argument is ignored. -.PP +.P The .I pagesize argument is the size, in bytes, of the pages into which the file is broken up. @@ -75,7 +75,7 @@ at any one time. This value is not relative to the number of processes which share a file's buffers, but will be the largest value specified by any of the processes sharing the file. -.PP +.P The .BR mpool_filter () function is intended to make transparent input and output processing of the @@ -91,7 +91,7 @@ backing file. Both functions are called with the .I pgcookie pointer, the page number and a pointer to the page to being read or written. -.PP +.P The function .BR mpool_new () takes an @@ -104,7 +104,7 @@ address. Otherwise, NULL is returned and .I errno is set. -.PP +.P The function .BR mpool_get () takes an @@ -117,7 +117,7 @@ is set. The .I flags argument is not currently used. -.PP +.P The function .BR mpool_put () unpins the page referenced by @@ -132,10 +132,10 @@ any of the following values: .TP .B MPOOL_DIRTY The page has been modified and needs to be written to the backing file. -.PP +.P .BR mpool_put () returns 0 on success and \-1 if an error occurs. -.PP +.P The function .BR mpool_sync () writes all modified pages associated with the @@ -144,7 +144,7 @@ pointer to the backing file. .BR mpool_sync () returns 0 on success and \-1 if an error occurs. -.PP +.P The .BR mpool_close () function free's up any allocated memory associated with the memory pool @@ -161,7 +161,7 @@ function may fail and set .I errno for any of the errors specified for the library routine .BR malloc (3). -.PP +.P The .BR mpool_get () function may fail and set @@ -170,7 +170,7 @@ for the following: .TP 15 .B EINVAL The requested record doesn't exist. -.PP +.P The .BR mpool_new () and @@ -182,14 +182,14 @@ for any of the errors specified for the library routines .BR write (2), and .BR malloc (3). -.PP +.P The .BR mpool_sync () function may fail and set .I errno for any of the errors specified for the library routine .BR write (2). -.PP +.P The .BR mpool_close () function may fail and set diff --git a/upstream/opensuse-tumbleweed/man3/mq_close.3 b/upstream/opensuse-tumbleweed/man3/mq_close.3 index 48346605..8ec220f0 100644 --- a/upstream/opensuse-tumbleweed/man3/mq_close.3 +++ b/upstream/opensuse-tumbleweed/man3/mq_close.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH mq_close 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mq_close 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mq_close \- close a message queue descriptor .SH LIBRARY @@ -12,14 +12,14 @@ Real-time library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int mq_close(mqd_t " mqdes ); .fi .SH DESCRIPTION .BR mq_close () closes the message queue descriptor .IR mqdes . -.PP +.P If the calling process has attached a notification request (see .BR mq_notify (3)) to this message queue via @@ -52,7 +52,6 @@ T{ .BR mq_close () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/mq_getattr.3 b/upstream/opensuse-tumbleweed/man3/mq_getattr.3 index 7c183e77..d6d5996e 100644 --- a/upstream/opensuse-tumbleweed/man3/mq_getattr.3 +++ b/upstream/opensuse-tumbleweed/man3/mq_getattr.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH mq_getattr 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mq_getattr 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mq_getattr, mq_setattr \- get/set message queue attributes .SH LIBRARY @@ -12,7 +12,7 @@ Real-time library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int mq_getattr(mqd_t " mqdes ", struct mq_attr *" attr ); .BI "int mq_setattr(mqd_t " mqdes ", const struct mq_attr *restrict " newattr , .BI " struct mq_attr *restrict " oldattr ); @@ -24,14 +24,14 @@ and respectively retrieve and modify attributes of the message queue referred to by the message queue descriptor .IR mqdes . -.PP +.P .BR mq_getattr () returns an .I mq_attr structure in the buffer pointed by .IR attr . This structure is defined as: -.PP +.P .in +4n .EX struct mq_attr { @@ -42,7 +42,7 @@ struct mq_attr { }; .EE .in -.PP +.P The .I mq_flags field contains flags associated with the open message queue description. @@ -50,7 +50,7 @@ This field is initialized when the queue is created by .BR mq_open (3). The only flag that can appear in this field is .BR O_NONBLOCK . -.PP +.P The .I mq_maxmsg and @@ -71,11 +71,11 @@ Two .I /proc files that place ceilings on the values for these fields are described in .BR mq_overview (7). -.PP +.P The .I mq_curmsgs field returns the number of messages currently held in the queue. -.PP +.P .BR mq_setattr () sets message queue attributes using information supplied in the .I mq_attr @@ -129,7 +129,6 @@ T{ .BR mq_setattr () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS On Linux, .BR mq_getattr () @@ -153,7 +152,7 @@ in which the .I attr argument is NULL. Here is an example run of the program: -.PP +.P .in +4n .EX $ \fB./a.out /testq\fP @@ -161,13 +160,13 @@ Maximum # of messages on queue: 10 Maximum message size: 8192 .EE .in -.PP +.P Since Linux 3.5, the following .I /proc files (described in .BR mq_overview (7)) can be used to control the defaults: -.PP +.P .in +4n .EX $ \fBuname \-sr\fP diff --git a/upstream/opensuse-tumbleweed/man3/mq_notify.3 b/upstream/opensuse-tumbleweed/man3/mq_notify.3 index bb0d5145..7c4dc501 100644 --- a/upstream/opensuse-tumbleweed/man3/mq_notify.3 +++ b/upstream/opensuse-tumbleweed/man3/mq_notify.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH mq_notify 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mq_notify 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mq_notify \- register for notification when a message is available .SH LIBRARY @@ -13,7 +13,7 @@ Real-time library .nf .B #include .BR "#include " "/* Definition of SIGEV_* constants */" -.PP +.P .BI "int mq_notify(mqd_t " mqdes ", const struct sigevent *" sevp ); .fi .SH DESCRIPTION @@ -22,15 +22,15 @@ allows the calling process to register or unregister for delivery of an asynchronous notification when a new message arrives on the empty message queue referred to by the message queue descriptor .IR mqdes . -.PP +.P The .I sevp argument is a pointer to a .I sigevent structure. For the definition and general details of this structure, see -.BR sigevent (7). -.PP +.BR sigevent (3type). +.P If .I sevp is a non-null pointer, then @@ -54,7 +54,7 @@ for notification, but when a message arrives, no notification is sent. Notify the process by sending the signal specified in .IR sigev_signo . See -.BR sigevent (7) +.BR sigevent (3type) for general details. The .I si_code @@ -75,26 +75,26 @@ Upon message delivery, invoke .I sigev_notify_function as if it were the start function of a new thread. See -.BR sigevent (7) +.BR sigevent (3type) for details. -.PP +.P Only one process can be registered to receive notification from a message queue. -.PP +.P If .I sevp is NULL, and the calling process is currently registered to receive notifications for this message queue, then the registration is removed; another process can then register to receive a message notification for this queue. -.PP +.P Message notification occurs only when a new message arrives and the queue was previously empty. If the queue was not empty at the time .BR mq_notify () was called, then a notification will occur only after the queue is emptied and a new message arrives. -.PP +.P If another process or thread is waiting to read a message from an empty queue using .BR mq_receive (3), @@ -102,7 +102,7 @@ then any message notification registration is ignored: the message is delivered to the process or thread calling .BR mq_receive (3), and the message notification registration remains in effect. -.PP +.P Notification occurs once: after a notification is delivered, the notification registration is removed, and another process can register for message notification. @@ -142,7 +142,7 @@ is not a valid signal number. .TP .B ENOMEM Insufficient memory. -.PP +.P POSIX.1-2008 says that an implementation .I may generate an @@ -167,7 +167,6 @@ T{ .BR mq_notify () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS .SS C library/kernel differences In the glibc implementation, the @@ -271,4 +270,4 @@ main(int argc, char *argv[]) .BR mq_send (3), .BR mq_unlink (3), .BR mq_overview (7), -.BR sigevent (7) +.BR sigevent (3type) diff --git a/upstream/opensuse-tumbleweed/man3/mq_open.3 b/upstream/opensuse-tumbleweed/man3/mq_open.3 index 32ff069c..8dde565e 100644 --- a/upstream/opensuse-tumbleweed/man3/mq_open.3 +++ b/upstream/opensuse-tumbleweed/man3/mq_open.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH mq_open 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mq_open 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mq_open \- open a message queue .SH LIBRARY @@ -14,7 +14,7 @@ Real-time library .BR "#include " " /* For O_* constants */" .BR "#include " " /* For mode constants */" .B #include -.PP +.P .BI "mqd_t mq_open(const char *" name ", int " oflag ); .BI "mqd_t mq_open(const char *" name ", int " oflag ", mode_t " mode , .BI " struct mq_attr *" attr ); @@ -28,7 +28,7 @@ For details of the construction of .IR name , see .BR mq_overview (7). -.PP +.P The .I oflag argument specifies flags that control the operation of the call. @@ -45,7 +45,7 @@ Open the queue to send messages only. .TP .B O_RDWR Open the queue to both send and receive messages. -.PP +.P Zero or more of the following flags can additionally be .IR OR ed in @@ -84,7 +84,7 @@ and .BR mq_send (3) would normally block, these functions instead fail with the error .BR EAGAIN . -.PP +.P If .B O_CREAT is specified in @@ -98,7 +98,7 @@ as for (Symbolic definitions for the permissions bits can be obtained by including .IR .) The permissions settings are masked against the process umask. -.PP +.P The fields of the .I struct mq_attr pointed to @@ -106,7 +106,7 @@ pointed to specify the maximum number of messages and the maximum size of messages that the queue will allow. This structure is defined as follows: -.PP +.P .in +4n .EX struct mq_attr { @@ -118,7 +118,7 @@ struct mq_attr { }; .EE .in -.PP +.P Only the .I mq_maxmsg and @@ -126,7 +126,7 @@ and fields are employed when calling .BR mq_open (); the values in the remaining fields are ignored. -.PP +.P If .I attr is NULL, then the queue is created with implementation-defined @@ -262,7 +262,6 @@ T{ .BR mq_open () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS .SS C library/kernel differences The diff --git a/upstream/opensuse-tumbleweed/man3/mq_receive.3 b/upstream/opensuse-tumbleweed/man3/mq_receive.3 index 40e99733..368177f5 100644 --- a/upstream/opensuse-tumbleweed/man3/mq_receive.3 +++ b/upstream/opensuse-tumbleweed/man3/mq_receive.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH mq_receive 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mq_receive 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mq_receive, mq_timedreceive \- receive a message from a message queue .SH LIBRARY @@ -12,25 +12,25 @@ Real-time library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "ssize_t mq_receive(mqd_t " mqdes ", char " msg_ptr [. msg_len ], .BI " size_t " msg_len ", unsigned int *" msg_prio ); -.PP +.P .B #include .B #include -.PP +.P .BI "ssize_t mq_timedreceive(mqd_t " mqdes ", \ char *restrict " msg_ptr [. msg_len ], .BI " size_t " msg_len ", unsigned int *restrict " msg_prio , .BI " const struct timespec *restrict " abs_timeout ); .fi -.PP +.P .ad l .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR mq_timedreceive (): .nf _POSIX_C_SOURCE >= 200112L @@ -54,7 +54,7 @@ If .I msg_prio is not NULL, then the buffer to which it points is used to return the priority associated with the received message. -.PP +.P If the queue is empty, then, by default, .BR mq_receive () blocks until a message becomes available, @@ -64,7 +64,7 @@ If the flag is enabled for the message queue description, then the call instead fails immediately with the error .BR EAGAIN . -.PP +.P .BR mq_timedreceive () behaves just like .BR mq_receive (), @@ -78,7 +78,7 @@ since the Epoch, 1970-01-01 00:00:00 +0000 (UTC), specified in a .BR timespec (3) structure. -.PP +.P If no message is available, and the timeout has already expired by the time of the call, .BR mq_timedreceive () @@ -141,7 +141,6 @@ T{ .BR mq_timedreceive () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS On Linux, .BR mq_timedreceive () diff --git a/upstream/opensuse-tumbleweed/man3/mq_send.3 b/upstream/opensuse-tumbleweed/man3/mq_send.3 index 7e1b6c6b..de182b9b 100644 --- a/upstream/opensuse-tumbleweed/man3/mq_send.3 +++ b/upstream/opensuse-tumbleweed/man3/mq_send.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH mq_send 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mq_send 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mq_send, mq_timedsend \- send a message to a message queue .SH LIBRARY @@ -12,24 +12,24 @@ Real-time library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int mq_send(mqd_t " mqdes ", const char " msg_ptr [. msg_len ], .BI " size_t " msg_len ", unsigned int " msg_prio ); -.PP +.P .B #include .B #include -.PP +.P .BI "int mq_timedsend(mqd_t " mqdes ", const char " msg_ptr [. msg_len ], .BI " size_t " msg_len ", unsigned int " msg_prio , .BI " const struct timespec *" abs_timeout ); .fi -.PP +.P .ad l .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR mq_timedsend (): .nf _POSIX_C_SOURCE >= 200112L @@ -48,7 +48,7 @@ this length must be less than or equal to the queue's .I mq_msgsize attribute. Zero-length messages are allowed. -.PP +.P The .I msg_prio argument is a nonnegative integer that specifies the priority @@ -59,7 +59,7 @@ older messages with the same priority. See .BR mq_overview (7) for details on the range for the message priority. -.PP +.P If the message queue is already full (i.e., the number of messages on the queue equals the queue's .I mq_maxmsg @@ -72,7 +72,7 @@ If the flag is enabled for the message queue description, then the call instead fails immediately with the error .BR EAGAIN . -.PP +.P .BR mq_timedsend () behaves just like .BR mq_send (), @@ -86,7 +86,7 @@ since the Epoch, 1970-01-01 00:00:00 +0000 (UTC), specified in a .BR timespec (3) structure. -.PP +.P If the message queue is full, and the timeout has already expired by the time of the call, .BR mq_timedsend () @@ -148,7 +148,6 @@ T{ .BR mq_timedsend () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS On Linux, .BR mq_timedsend () diff --git a/upstream/opensuse-tumbleweed/man3/mq_unlink.3 b/upstream/opensuse-tumbleweed/man3/mq_unlink.3 index 7564ccf7..4cdb6047 100644 --- a/upstream/opensuse-tumbleweed/man3/mq_unlink.3 +++ b/upstream/opensuse-tumbleweed/man3/mq_unlink.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH mq_unlink 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mq_unlink 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mq_unlink \- remove a message queue .SH LIBRARY @@ -12,7 +12,7 @@ Real-time library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int mq_unlink(const char *" name ); .fi .SH DESCRIPTION @@ -54,7 +54,6 @@ T{ .BR mq_unlink () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/mtrace.3 b/upstream/opensuse-tumbleweed/man3/mtrace.3 index 442da6fb..d332cc10 100644 --- a/upstream/opensuse-tumbleweed/man3/mtrace.3 +++ b/upstream/opensuse-tumbleweed/man3/mtrace.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH mtrace 3 2023-07-20 "Linux man-pages 6.05.01" +.TH mtrace 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME mtrace, muntrace \- malloc tracing .SH LIBRARY @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B "#include " -.PP +.P .B "void mtrace(void);" .B "void muntrace(void);" .fi @@ -28,7 +28,7 @@ These hook functions record tracing information about memory allocation and deallocation. The tracing information can be used to discover memory leaks and attempts to free nonallocated memory in a program. -.PP +.P The .BR muntrace () function disables the hook functions installed by @@ -39,7 +39,7 @@ If no hook functions were successfully installed by .BR mtrace (), .BR muntrace () does nothing. -.PP +.P When .BR mtrace () is called, it checks the value of the environment variable @@ -47,7 +47,7 @@ is called, it checks the value of the environment variable which should contain the pathname of a file in which the tracing information is to be recorded. If the pathname is successfully opened, it is truncated to zero length. -.PP +.P If .B MALLOC_TRACE is not set, @@ -75,7 +75,6 @@ T{ .BR muntrace () T} Thread safety MT-Unsafe .TE -.sp 1 .\" FIXME: The marking is different from that in the glibc manual, .\" markings in glibc manual are more detailed: .\" @@ -93,7 +92,7 @@ In normal usage, is called once at the start of execution of a program, and .BR muntrace () is never called. -.PP +.P The tracing output produced after a call to .BR mtrace () is textual, but not designed to be human readable. @@ -103,7 +102,7 @@ that interprets the trace log and produces human-readable output. For best results, the traced program should be compiled with debugging enabled, so that line-number information is recorded in the executable. -.PP +.P The tracing performed by .BR mtrace () incurs a performance penalty (if @@ -122,7 +121,7 @@ function and the .BR mtrace (1) command in a program that has memory leaks at two different locations. The demonstration uses the following program: -.PP +.P .in +4n .RB "$ " "cat t_mtrace.c" .\" SRC BEGIN (t_mtrace.c) @@ -145,11 +144,11 @@ main(void) .EE .\" SRC END .in -.PP +.P When we run the program as follows, we see that .BR mtrace () diagnosed memory leaks at two different locations in the program: -.PP +.P .in +4n .EX .RB "$ " "cc \-g t_mtrace.c \-o t_mtrace" @@ -164,7 +163,7 @@ Memory not freed: 0x084c9448 0x100 at /home/cecilia/t_mtrace.c:16 .EE .in -.PP +.P The first two messages about unfreed memory correspond to the two .BR malloc (3) calls inside the diff --git a/upstream/opensuse-tumbleweed/man3/nan.3 b/upstream/opensuse-tumbleweed/man3/nan.3 index 9fa95b6b..2fb8bc5b 100644 --- a/upstream/opensuse-tumbleweed/man3/nan.3 +++ b/upstream/opensuse-tumbleweed/man3/nan.3 @@ -7,7 +7,7 @@ .\" .\" Corrections by aeb .\" -.TH nan 3 2023-07-20 "Linux man-pages 6.05.01" +.TH nan 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME nan, nanf, nanl \- return 'Not a Number' .SH LIBRARY @@ -16,17 +16,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double nan(const char *" tagp ); .BI "float nanf(const char *" tagp ); .BI "long double nanl(const char *" tagp ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR nan (), .BR nanf (), .BR nanl (): @@ -39,17 +39,17 @@ These functions return a representation (determined by of a quiet NaN. If the implementation does not support quiet NaNs, these functions return zero. -.PP +.P The call .I nan("char\-sequence") is equivalent to: -.PP +.P .in +4n .EX strtod("NAN(char\-sequence)", NULL); .EE .in -.PP +.P Similarly, calls to .BR nanf () and @@ -58,7 +58,7 @@ are equivalent to analogous calls to .BR strtof (3) and .BR strtold (3). -.PP +.P The argument .I tagp is used in an unspecified manner. @@ -82,10 +82,9 @@ T{ .BR nanl () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. -.PP +.P See also IEC 559 and the appendix with recommended functions in IEEE 754/IEEE 854. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/ncurses.3ncurses b/upstream/opensuse-tumbleweed/man3/ncurses.3ncurses index 36f4f12b..2bfdc004 100644 --- a/upstream/opensuse-tumbleweed/man3/ncurses.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/ncurses.3ncurses @@ -28,8 +28,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: ncurses.3x,v 1.200 2024/02/24 20:03:50 tom Exp $ -.TH ncurses 3NCURSES 2024-02-24 "ncurses 6.4" "Library calls" +.\" $Id: ncurses.3x,v 1.214 2024/04/27 17:55:43 tom Exp $ +.TH ncurses 3NCURSES 2024-04-27 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -46,6 +46,14 @@ .el .IP \(bu 2 .. . +.\" Add supplementary paragraph tag on its own line after TP. +.\" Adapted from TQ (which would produce mandoc warnings). +.de tQ +. br +. ns +. TP +.. +. .ds d /usr/share/terminfo .SH NAME \fB\%ncurses\fP \- @@ -55,111 +63,170 @@ character-cell terminal interface with optimized output \fB#include .fi .SH DESCRIPTION -The \fI\%ncurses\fP library routines give the user a -terminal-independent method of updating character screens with -reasonable optimization. -This implementation is \*(``new curses\*('' (\fI\%ncurses\fP) and -is the approved replacement for -4.4BSD classic curses, which has been discontinued. -This describes \fI\%ncurses\fP -version 6.4 (patch 20240224). -.PP -The \fI\%ncurses\fP library emulates the curses library of -System V Release 4 Unix (\*(``SVr4\*(''), -and XPG4 (X/Open Portability Guide) curses (also known as XSI curses). -XSI stands for X/Open System Interfaces Extension. -The \fI\%ncurses\fP library is freely redistributable in source form. -.PP -\fI\%ncurses\fP man pages employ several sections to clarify matters of -usage and interoperability with other \fIcurses\fP implementations. +The \*(``new curses\*('' library offers the programmer a +terminal-independent means of reading keyboard and mouse input and +updating character-cell terminals with output optimized to minimize +screen updates. +.I \%ncurses +replaces the +.I curses +libraries from +System V Release 4 Unix (\*(``SVr4\*('') +and +4.4BSD Unix, +the development of which ceased in the 1990s. +This document describes +.I \%ncurses +version 6.5 +(patch 20240504). +.PP +.I \%ncurses +permits control of the terminal screen's contents; +abstraction and subdivision thereof with +.I windows +and +.IR pads ; +the reading of terminal input; +control of terminal input and output options; +environment query routines; +color manipulation; +the definition and use of +.I "soft label" +keys; +.I \%term\%info +capability access; +a +.I termcap +compatibility interface; +and an abstraction of the system's API for manipulating the terminal +(such as \fI\%termios\fP(3)). +.PP +.I \%ncurses +implements the standard interface described by +X/Open Curses Issue\ 7. +In many behavioral details not standardized by X/Open, +.I \%ncurses +emulates the +.I curses +library of SVr4 and provides numerous useful extensions. +.PP +.I \%ncurses +man pages employ several sections to clarify matters of usage and +interoperability with other +.I curses +implementations. .bP -\*(``NOTES\*('' describes matters and caveats of which any user of the -\fI\%ncurses\fP API should be aware, +\*(``NOTES\*('' describes issues and caveats of which any user of the +.I \%ncurses +API should be aware, such as limitations on the size of an underlying integral type or the availability of a preprocessor macro exclusive of a function definition (which prevents its address from being taken). This section also describes implementation details that will be significant to the programmer but which are not standardized. .bP -\*(``EXTENSIONS\*('' presents \fI\%ncurses\fP innovations beyond the -X/Open Curses standard and/or the SVr4 \fIcurses\fP implementation. -They are termed \fIextensions\fP to indicate that they cannot be -implemented solely by using the library API, but require access to the -library's internal state. +\*(``EXTENSIONS\*('' presents +.I \%ncurses +innovations beyond the X/Open Curses standard and/or the SVr4 +.I curses +implementation. +They are termed +.I extensions +to indicate that they cannot be implemented solely by using the library +API, +but require access to the library's internal state. .bP \*(``PORTABILITY\*('' discusses matters (beyond the exercise of extensions) -that should be considered when writing to a \fIcurses\fP standard, -or to multiple implementations. +that should be considered when writing to a +.I curses +standard, +or for multiple implementations. .bP -\*(``HISTORY\*('' examines points of detail in \fI\%ncurses\fP and other -\fIcurses\fP implementations over the decades of their development, +\*(``HISTORY\*('' examines points of detail in +.I \%ncurses +and other +.I curses +implementations over the decades of their development, particularly where precedent or inertia have frustrated better design (and, in a few cases, where such inertia has been overcome). .PP -A program using these routines must be linked with the \fB\-lncurses\fP option, -or (if it has been generated) with the debugging library \fB\-lncurses_g\fP. -(Your system integrator may also have installed these libraries under -the names \fB\-lcurses\fP and \fB\-lcurses_g\fP.) -The ncurses_g library generates trace logs -(in a file called \*(``trace\*('' in the current directory) -that describe curses actions. +A +.I curses +application must be linked with the library; +use the +.B \-lncurses +option to your compiler or linker. +A debugging version of the library may be available; +if so, +link with it using +.BR \-lncurses_g . +(Your system integrator may have installed these libraries such that you +can use the options +.B \-lcurses +and +.BR \-lcurses_g , +respectively.) +The +.I \%ncurses_g +library generates trace logs +(in a file called +.I \%trace +in the current directory) +that describe +.I \%ncurses +actions. See section \*(``ALTERNATE CONFIGURATIONS\*('' below. -.PP -The \fI\%ncurses\fP package supports: overall screen, window and pad -manipulation; output to windows and pads; reading terminal input; control over -terminal and \fBcurses\fP input and output options; environment query -routines; color manipulation; use of soft label keys; terminfo capabilities; -and access to low-level terminal-manipulation routines. -.SS Initialization -The library uses the locale which the calling program has initialized. -That is normally done with \fBsetlocale\fP(3): +.SS "Application Structure" +A +.I curses +application uses information from the system locale; +\fI\%setlocale\fP(3) prepares it for +.I curses +library calls. .PP .RS 4 .EX -\fBsetlocale(LC_ALL, "");\fP +setlocale(LC_ALL, ""); .EE .RE .PP -If the locale is not initialized, -the library assumes that characters are printable as in ISO\-8859\-1, +If the locale is not thus initialized, +the library assumes that characters are printable as in ISO\ 8859-1, to work with certain legacy programs. -You should initialize the locale and not rely on specific details of -the library when the locale has not been set up. +You should initialize the locale; +do not expect consistent behavior from the library when the locale has +not been set up. .PP -The function \fBinitscr\fP or \fBnewterm\fP -must be called to initialize the library -before any of the other routines that deal with windows -and screens are used. -The routine \fB\%endwin\fP(3NCURSES) must be called before exiting. +\fB\%initscr\fP(3NCURSES) or \fB\%newterm\fP(3NCURSES) +must be called to initialize +.I curses +before use of any functions that deal with windows and screens. .PP -To get character-at-a-time input without echoing (most -interactive, screen oriented programs want this), the following -sequence should be used: +To get character-at-a-time input without echoing\(emmost interactive, +screen-oriented programs want this\(emuse the following sequence. .PP .RS 4 .EX -\fBinitscr(); cbreak(); noecho();\fP +initscr(); cbreak(); noecho(); .EE .RE .PP -Most programs would additionally use the sequence: +Most applications perform further setup as follows. .PP .RS 4 .EX -\fBintrflush(stdscr, FALSE);\fP -\fBkeypad(stdscr, TRUE);\fP +intrflush(stdscr, FALSE); +keypad(stdscr, TRUE); .EE .RE .PP -Before a \fBcurses\fP program is run, the tab stops of the terminal -should be set and its initialization strings, if defined, must be output. -This can be done by executing the \fBtput init\fP command -after the shell environment variable \fITERM\fP has been exported. -(The BSD-style \fB\%tset\fP(1) utility also performs this function.) -See subsection \*(``Tabs and Initialization\*('' of \fB\%terminfo\fP(5). +A +.I curses +program then often enters an event loop of some sort. +Call \fB\%endwin\fP(3NCURSES) before exiting. .SS Overview A .I curses @@ -174,20 +241,23 @@ addressed by row and column coordinates .RI ( y , .IR x ), with the upper left corner as (0, 0). -A window called \fB\%stdscr\fP, +A window called +.BR \%stdscr , the same size as the terminal screen, is always available. Create others with \fB\%newwin\fP(3NCURSES). .PP A .I curses -library does not manage overlapping windows. -(See \fB\%panel\fP(3NCURSES) if you desire this.) -You can either use \fB\%stdscr\fP to manage one screen-filling window, +library does not manage overlapping windows +(but see below). +You can either use +.B \%stdscr +to manage one screen-filling window, or tile the screen into non-overlapping windows and not use -\fB\%stdscr\fP at all. -Mixing the two approaches will result in unpredictable, -and undesired, +.B \%stdscr +at all. +Mixing the two approaches will result in unpredictable and undesired effects. .PP Functions permit manipulation of a window and the @@ -199,41 +269,10 @@ the most basic are \fB\%move\fP(3NCURSES) and \fB\%addch\fP(3NCURSES): these place the cursor and write a character to .BR \%stdscr , respectively. -As a rule, -window-addressing functions feature names prefixed -(or infixed, -see below) -with \*(``w\*(''; -these allow the user to specify a pointer to a -.I \%WINDOW. -Counterparts not thus prefixed -(or infixed) -affect \fB\%stdscr\fP. -Because moving the cursor prior to another operation is so common, -.I curses -generally also provides functions with a \*(``mv\*('' prefix as a -convenience. -Thus, -the library defines all of -\fB\%addch\fP, -\fB\%waddch\fP, -\fB\%mvaddch\fP, -and -\fB\%mvwaddch\fP. -When both prefixes are present, -the order of arguments is a -.I \%WINDOW -pointer first, -then a -.I y -and -.I x -coordinate pair. .PP -Updating the terminal screen with every -.I curses -call can cause unpleasant flicker or inefficient use of the -communications channel to the device. +Frequent changes to the terminal screen can cause unpleasant flicker or +inefficient use of the communication channel to the device, +so the library does not generally update it automatically. Therefore, after using .I curses @@ -241,7 +280,7 @@ functions to accumulate a set of desired updates that make sense to present together, call \fB\%refresh\fP(3NCURSES) to tell the library to make the user's screen look like \fBstdscr\fP. -.I \%ncurses +The library .\" X/Open Curses Issue 7 assumes some optimization will be done, but .\" does not mandate it in any way. .I optimizes @@ -255,7 +294,9 @@ a feature of every standard .I curses implementation. .PP -Special windows called \fIpads\fP may also be manipulated. +Special windows called +.I pads +may also be manipulated. These are windows that are not constrained to the size of the terminal screen and whose contents need not be completely displayed. See \fB\%pad\fP(3NCURSES). @@ -268,12 +309,10 @@ or in color on terminals that support such display enhancements. See \fB\%attr\fP(3NCURSES). .PP .I curses -predefines constants for a small set of line-drawing and other graphics +predefines constants for a small set of forms-drawing graphics corresponding to the DEC Alternate Character Set (ACS), a feature of VT100 and other terminals. -See -\fB\%waddch\fP(3NCURSES) and -\fB\%wadd_wch\fP(3NCURSES). +See \fB\%waddch\fP(3NCURSES). .PP .I curses is implemented using the operating system's terminal driver; @@ -294,7 +333,13 @@ appears as a control character or a multibyte translates these into unique .I "key codes." See \fB\%getch\fP(3NCURSES). -.SS "Effects of GUIs and Environment Variables" +.PP +.I \%ncurses +provides reimplementations of the SVr4 \fB\%panel\fP(3NCURSES), \fB\%form\fP(3FORM), +and \fB\%menu\fP(3MENU) libraries to ease construction of user interfaces +with +.IR curses . +.SS "Initialization" Beware: the terminal your program is running may or may not have the features you expect. Ncurses makes no attempt to check available features in advance. This is upon the user. @@ -311,7 +356,20 @@ A well-configured system selects a correct value automatically; \fB\%tset\fP(1) may assist with troubleshooting exotic situations. .PP -If the environment variables \fILINES\fP and \fI\%COLUMNS\fP are set, +If you change the terminal type, +export the +.I TERM +environment variable in the shell, +then run \fB\%tset\fP(1) or the +.RB \*(`` "tput init" \*('' +command. +See subsection \*(``Tabs and Initialization\*('' of \fB\%terminfo\fP(5). +.PP +If the environment variables +.I \%LINES +and +.I \%COLUMNS +are set, or if the .I curses program is executing in a graphical windowing environment, @@ -322,23 +380,35 @@ An extension supports resizable terminals; see \fB\%wresize\fP(3NCURSES). .PP -If the environment variable \fI\%TERMINFO\fP is defined, +If the environment variable +.I \%TERMINFO +is defined, a .I curses program checks first for a terminal type description in the location it identifies. .I \%TERMINFO is useful for developing experimental type descriptions or when write -permission to \fI\*d\fP is not available. +permission to +.I \%\*d +is not available. .PP See section \*(``ENVIRONMENT\*('' below. .SS "Naming Conventions" -Many .I curses -functions have two or more versions. -Those prefixed with \*(``w\*('' require a window argument. +offers many functions in variant forms using a regular set of +alternatives to the name of an elemental one. +Those prefixed with \*(``w\*('' require a +.I \%WINDOW +pointer argument; +those with a \*(``mv\*('' prefix first perform cursor movement using +\fB\%wmove\fP(3NCURSES); +a \*(``mvw\*('' prefix indicates both. +The \*(``w\*('' function is typically the elemental one; +the removal of this prefix usually indicates operation on +.BR \%stdscr . +.PP Four functions prefixed with \*(``p\*('' require a pad argument. -Those without a prefix generally operate on \fB\%stdscr\fP. .PP In function synopses, .I \%ncurses @@ -348,8 +418,12 @@ man pages apply the following names to parameters. center; Li L. bf \fIbool\fP (\fBTRUE\fP or \fBFALSE\fP) -win pointer to \fIWINDOW\fP -pad pointer to \fIWINDOW\fP that is a pad +c a \fIchar\fP or \fIint\fP +ch a \fIchtype\fP +wc a \fIwchar_t\fP or \fIwint_t\fP +wch a \fIcchar_t\fP +win pointer to a \fIWINDOW\fP +pad pointer to a \fIWINDOW\fP that is a pad .TE .SS "Wide and Non-wide Character Configurations" This manual page describes functions that appear in any configuration @@ -364,7 +438,7 @@ It stores a character combined with attributes in a .I \%chtype datum, which is often an alias of -.I int. +.IR int . .IP Attributes alone (with no corresponding character) @@ -379,7 +453,7 @@ they are represented as an integral bit mask. Each cell of a .I \%WINDOW is stored as a -.I \%chtype. +.IR \%chtype . .TP 10 .I \%ncursesw is the library in its \*(``wide\*('' configuration, @@ -395,32 +469,32 @@ characters. .TP 9 \" "cchar_t" + 2n .I \%cchar_t corresponds to the non-wide configuration's -.I \%chtype. +.IR \%chtype . It always a structure type, -because it stores more data than fits into an integral type. +because it stores more data than fit into a standard scalar type. A character code may not be representable as a -.I \%char, +.IR \%char , and moreover more than one character may occupy a cell (as with accent marks and other diacritics). Each character is of type -.I \%wchar_t; +.IR \%wchar_t ; a complex character contains one spacing character and zero or more non-spacing characters (see below). Attributes and color data are stored in separate fields of the structure, not combined as in -.I \%chtype. +.IR \%chtype . .PP Each cell of a .I \%WINDOW is stored as a -.I \%cchar_t. +.IR \%cchar_t . .PP -The \fB\%setcchar\fP(3NCURSES) and \fB\%getcchar\fP(3NCURSES) -functions store and retrieve the data from a +\fB\%setcchar\fP(3NCURSES) and \fB\%getcchar\fP(3NCURSES) +store and retrieve .I \%cchar_t -structure. +data. The wide library API of .I \%ncurses depends on two data types standardized by ISO C95. @@ -428,16 +502,16 @@ depends on two data types standardized by ISO C95. .I \%wchar_t stores a wide character. Like -.I \%chtype, +.IR \%chtype , it may be an alias of -.I int. +.IR int . Depending on the character encoding, a wide character may be -.I spacing, +.IR spacing , meaning that it occupies a character cell by itself and typically accompanies cursor advancement, or -.I non-spacing, +.IR non-spacing , meaning that it occupies the same cell as a spacing character, is often regarded as a \*(``modifier\*('' of the base glyph with which it combines, @@ -463,13 +537,19 @@ where a non-wide function name contains \*(``ch\*('' or \*(``str\*('', prefix it with \*(``_w\*('' to obtain the wide counterpart. For example, \fB\%waddch\fP becomes \fB\%wadd_wch\fP. +(Exceptions that add only \*(``w\*('' comprise +.BR \%addwstr , +.BR \%inwstr , +and their variants.) .IP This convention is inapplicable to some non-wide function names, so other transformations are used for the wide configuration: -in the window background management functions, -\*(``bkgd\*('' becomes \*(``bkgrnd\*(''; +the window background management function \*(``bkgd\*('' becomes +\*(``bkgrnd\*(''; the window border-drawing and -clearing functions are suffixed with -\*(``_set\*(''. +\*(``_set\*(''; +and character attribute manipulation functions like +\*(``attron\*('' become \*(``attr_on\*(''. .\" .SS "Function Name Index" The following table lists the @@ -478,7 +558,7 @@ functions provided in the non-wide and wide APIs and the corresponding man pages that describe them. Those flagged with \*(``*\*('' are -.IR \%ncurses -specific, +.IR \%ncurses "-specific," neither described by X/Open Curses nor present in SVr4. .PP .TS @@ -559,6 +639,7 @@ find_pair/\fB\%new_pair\fP(3NCURSES)* flash/\fB\%beep\fP(3NCURSES) flushinp/\fB\%util\fP(3NCURSES) free_pair/\fB\%new_pair\fP(3NCURSES)* +get_escdelay/\fB\%threads\fP(3NCURSES)* get_wch/\fB\%get_wch\fP(3NCURSES) get_wstr/\fB\%get_wstr\fP(3NCURSES) getattrs/\fB\%attr\fP(3NCURSES) @@ -783,6 +864,8 @@ scrl/\fB\%scroll\fP(3NCURSES) scroll/\fB\%scroll\fP(3NCURSES) scrollok/\fB\%outopts\fP(3NCURSES) set_curterm/\fB\%terminfo\fP(3NCURSES) +set_escdelay/\fB\%threads\fP(3NCURSES)* +set_tabsize/\fB\%threads\fP(3NCURSES)* set_term/\fB\%initscr\fP(3NCURSES) setcchar/\fB\%getcchar\fP(3NCURSES) setscrreg/\fB\%outopts\fP(3NCURSES) @@ -842,7 +925,9 @@ use_default_colors/\fB\%default_colors\fP(3NCURSES)* use_env/\fB\%util\fP(3NCURSES) use_extended_names/\fB\%extensions\fP(3NCURSES)* use_legacy_coding/\fB\%legacy_coding\fP(3NCURSES)* +use_screen/\fB\%threads\fP(3NCURSES)* use_tioctl/\fB\%util\fP(3NCURSES)* +use_window/\fB\%threads\fP(3NCURSES)* vid_attr/\fB\%terminfo\fP(3NCURSES) vid_puts/\fB\%terminfo\fP(3NCURSES) vidattr/\fB\%terminfo\fP(3NCURSES) @@ -939,275 +1024,404 @@ wvline/\fB\%border\fP(3NCURSES) wvline_set/\fB\%border_set\fP(3NCURSES) .TE .PP -Depending on the configuration, -additional sets of functions may be available: -.RS 3 -.TP 5 -\fB\%memleaks\fP(3NCURSES) - curses memory-leak checking -.TP 5 -\fB\%sp_funcs\fP(3NCURSES) - curses screen-pointer extension -.TP 5 -\fB\%threads\fP(3NCURSES) - curses thread support -.TP 5 -\fB\%trace\fP(3NCURSES) - curses debugging routines -.RE +.IR \%ncurses 's +.I "screen-pointer extension" +adds additional functions corresponding to many of the above, +each with an \*(``_sp\*('' suffix; +see \fB\%sp_funcs\fP(3NCURSES). +.PP +The availability of some extensions is configurable when +.I \%ncurses +is compiled; +see sections \*(``ALTERNATE CONFIGURATIONS\*('' and \*(``EXTENSIONS\*('' +below. .SH RETURN VALUE Unless otherwise noted, -functions that return an integer return \fBOK\fP on success and -\fBERR\fP on failure. -Functions that return pointers return \fBNULL\fP on failure. +functions that return an integer return +.B OK +on success and +.B ERR +on failure. +Functions that return pointers return +.B NULL +on failure. Typically, .I \%ncurses treats a null pointer passed as a function parameter as a failure. -.PP -Functions with a \*(``mv\*('' prefix first perform cursor movement using -\fB\%wmove\fP and fail if the position is outside the window, -or -(for \*(``mvw\*('' functions) -if the -.I \%WINDOW -pointer is null. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH ENVIRONMENT -The following environment symbols are useful for customizing the -runtime behavior of the \fI\%ncurses\fP library. -The most important ones have been already discussed in detail. +The following symbols from the process environment customize the +runtime behavior of +.I \%ncurses +applications. +The library may be configured to disregard the variables +.IR \%TERMINFO , +.IR \%TERMINFO_DIRS , +.IR \%TERMPATH , +and +.IR HOME , +if the user is the superuser (root), +or the application uses \fI\%setuid\fP(2) or \fI\%setgid\fP(2). +.SS "\fIBAUDRATE\fP" +The debugging library checks this variable when the application has +redirected output to a file. +Its integral value is used for the baud rate. +If that value is absent or invalid, +.I \%ncurses +uses 9600. +This feature allows testers to construct repeatable test cases +that take into account optimization decisions that depend on baud rate. .SS "\fICC\fP (command character)" When set, -change the +the .B \%command_character .RB ( \%cmdch ) capability value of loaded .I \%term\%info -entries to the value of this variable. +entries changes to the value of this variable. Very few .I \%term\%info entries provide this feature. .PP Because this name is also used in development environments to represent the C compiler's name, -\fI\%ncurses\fP ignores it if it does not happen to be a single -character. -.SS "\fIBAUDRATE\fP" -The debugging library checks this environment variable when the application -has redirected output to a file. -The variable's numeric value is used for the baud rate. -If no value is found, \fI\%ncurses\fP uses 9600. -This allows testers to construct repeatable test-cases -that take into account costs that depend on baud rate. +.I \%ncurses +ignores its value if it is not one character in length. .SS "\fICOLUMNS\fP" -Specify the width of the screen in characters. +This variable specifies the width of the screen in characters. Applications running in a windowing environment usually are able to obtain the width of the window in which they are executing. -If neither the \fI\%COLUMNS\fP value -nor the terminal's screen size is available, -\fI\%ncurses\fP uses the size which may be specified in the terminfo -database -(i.e., the \fBcols\fP capability). +If +.I \%COLUMNS +is not defined and the terminal's screen size is not available from the +terminal driver, +.I \%ncurses +uses the size specified by the +.B \%columns +.RB ( \%cols ) +capability of the terminal type's entry in the +.I \%term\%info +database, +if any. +.PP +It is important that your application use the correct screen size. +Automatic detection thereof is not always possible because an +application may be running on a host that does not honor NAWS +(Negotiations About Window Size) +or as a different user ID than the owner of the terminal device file. +Setting +.I \%COLUMNS +and/or +.I \%LINES +overrides the library's use of the screen size obtained from the +operating system. +.PP +The +.I \%COLUMNS +and +.I \%LINES +variables may be specified independently. +This property is useful to circumvent misfeatures of legacy terminal +type descriptions; +\fI\%xterm\fP(1) descriptions specifying 65 lines were once notorious. +For best results, +avoid specifying +.B cols +and +.B lines +capability codes in +.I \%term\%info +descriptions of terminal emulators. .PP -It is important that your application use a correct size for the screen. -This is not always possible because your application may be -running on a host which does not honor NAWS (Negotiations About Window -Size), or because you are temporarily running as another user. -However, -setting \fI\%COLUMNS\fP and/or \fILINES\fP overrides the library's use -of the screen size obtained from the operating system. -.PP -Either \fI\%COLUMNS\fP or \fILINES\fP symbols may be specified -independently. -This is mainly useful to circumvent legacy misfeatures of terminal descriptions, -e.g., xterm which commonly specifies a 65 line screen. -For best results, \fBlines\fP and \fBcols\fP should not be specified in -a terminal description for terminals which are run as emulations. -.PP -Use the \fBuse_env\fP function to disable all use of external environment -(but not including system calls) to determine the screen size. -Use the \fBuse_tioctl\fP function to update \fI\%COLUMNS\fP or -\fILINES\fP to match the screen size obtained from system calls or the -terminal database. +\fB\%use_env\fP(3NCURSES) can disable use of the process environment +in determining the screen size. +\fB\%use_tioctl\fP(3NCURSES) can update +.I \%COLUMNS +and +.I \%LINES +to match the screen size obtained from system calls or the terminal +database. .SS "\fIESCDELAY\fP" -Specifies the total time, -in milliseconds, -for which \fI\%ncurses\fP will await a character sequence, -e.g., -a function key. -The default value, 1000 milliseconds, is enough for most uses. -However, it is made a variable to accommodate unusual applications. +For +.I curses +to distinguish the ESC character resulting from a user's press of the +\*(``Escape\*('' key on the input device from one beginning an +.I "escape sequence" +(as commonly produced by function keys), +it waits after receiving the escape character to see if further +characters are available on the input stream within a short interval. +A global variable +.B \%ESCDELAY +stores this interval in milliseconds. +The default value of 1000 +(one second) +is adequate for most uses. +This environment variable overrides it. .PP The most common instance where you may wish to change this value -is to work with slow hosts, e.g., running on a network. -If the host cannot read characters rapidly enough, it will have the same -effect as if the terminal did not send characters rapidly enough. -The library will still see a timeout. -.PP -Note that xterm mouse events are built up from character sequences -received from the xterm. -If your application makes heavy use of multiple-clicking, you may -wish to lengthen this default value because the timeout applies -to the composed multi-click event as well as the individual clicks. -.PP -In addition to the environment variable, -this implementation provides a global variable with the same name. -Portable applications should not rely upon the presence of \fB\%ESCDELAY\fP +is to work with a remote host over a slow communication channel. +If the host running a +.I curses +application does not receive the characters of an escape sequence in a +timely manner, +the library can interpret them as multiple key stroke events. +.PP +\fI\%xterm\fP(1) mouse events are a form of escape sequence; +therefore, +if your application makes heavy use of multiple-clicking, +you may wish to lengthen the default value because the delay applies +to the composite multi-click event as well as the individual clicks. +.PP +Portable applications should not rely upon the presence of +.B \%ESCDELAY in either form, but setting the environment variable rather than the global variable does not create problems when compiling an application. -.SS "\fIHOME\fP" -Tells \fI\%ncurses\fP where your home directory is. -That is where it may read and write auxiliary terminal descriptions: .PP -.RS 4 -.EX -$HOME/.termcap -$HOME/.terminfo -.EE -.RE +If \fB\%keypad\fP(3NCURSES) is disabled for the +.I curses +window receiving input, +a program must disambiguate escape sequences itself. +.SS "\fIHOME\fP" +.I \%ncurses +may read and write auxiliary terminal descriptions in +.I \%.termcap +and +.I \%.terminfo +files in the user's home directory. .SS "\fILINES\fP" -Like \fI\%COLUMNS\fP, specify the height of the screen in characters. -See \fI\%COLUMNS\fP for a detailed description. +This counterpart to +.I \%COLUMNS +specifies the height of the screen in characters. +The corresponding +.I \%term\%info +capability and code is +.BR \%lines . +See the description of the +.I \%COLUMNS +variable above. .SS "\fIMOUSE_BUTTONS_123\fP" -This applies only to the OS/2 EMX port. -It specifies the order of buttons on the mouse. -OS/2 numbers a 3-button mouse inconsistently from other -platforms: -.PP -.RS 4 -.EX -1 = left -2 = right -3 = middle. -.EE -.RE -.PP -This variable lets you customize the mouse. -The variable must be three numeric digits 1\-3 in any order, e.g., 123 or 321. -If it is not specified, \fI\%ncurses\fP uses 132. +(OS/2 EMX port only) +OS/2 numbers a three-button mouse inconsistently with other platforms, +such that 1 is the left button, +2 the right, +and 3 the middle. +This variable customizes the mouse button numbering. +Its value must be three digits 1\-3 in any order. +By default, +.I \%ncurses +assumes a numbering of \*(``132\*(''. .SS "\fINCURSES_ASSUMED_COLORS\fP" -Override the compiled-in assumption that the -terminal's default colors are white-on-black -(see \fB\%default_colors\fP(3NCURSES)). -You may set the foreground and background color values with this environment -variable by proving a 2-element list: foreground,background. -For example, to tell \fI\%ncurses\fP to not assume anything -about the colors, set this to "\-1,\-1". -To make it green-on-black, set it to "2,0". -Any positive value from zero to the terminfo \fBmax_colors\fP value is allowed. -.SS "\fINCURSES_CONSOLE2\fP" -This applies only to the MinGW port of \fI\%ncurses\fP. +If set, +this variable overrides the +.I \%ncurses +library's compiled-in assumption that the terminal's default colors are +white on black; +see \fB\%default_colors\fP(3NCURSES). +Set the foreground and background color values with this environment +variable by assigning it two integer values separated by a comma, +indicating foregound and background color numbers, +respectively. .PP -The \fBConsole2\fP program's handling of the Microsoft Console API call -\fBCreateConsoleScreenBuffer\fP is defective. -Applications which use this will hang. -However, it is possible to simulate the action of this call by -mapping coordinates, +For example, +to tell +.I \%ncurses +not to assume anything about the colors, +use a value of \*(``\-1,\-1\*(''. +To make the default color scheme green on black, +use \*(``2,0\*(''. +.I \%ncurses +accepts integral values from \-1 up to the value of the +.I \%term\%info +.B \%max_colors +.RB ( colors ) +capability. +.SS "\fINCURSES_CONSOLE2\fP" +(MinGW port only) +The +.I \%Console2 +.\" https://www.hanselman.com/blog/console2-a-better-windows-command-prompt +program defectively handles the Microsoft Console API call +.IR \%Create\%Console\%Screen\%Buffer . +Applications that use it will hang. +However, +it is possible to simulate the action of this call by mapping +coordinates, explicitly saving and restoring the original screen contents. -Setting the environment variable \fBNCGDB\fP has the same effect. +Setting the environment variable +.I \%NCGDB +has the same effect. .SS "\fINCURSES_GPM_TERMS\fP" -This applies only to \fI\%ncurses\fP configured to use the GPM -interface. -.PP -If present, -the environment variable is a list of one or more terminal names -against which the \fITERM\fP environment variable is matched. -Setting it to an empty value disables the GPM interface; -using the built-in support for xterm, etc. -.PP -If the environment variable is absent, -\fI\%ncurses\fP will attempt to open GPM if \fITERM\fP contains -\*(``linux\*(''. +(Linux only) +When +.I \%ncurses +is configured to use the GPM interface, +this variable may list one or more terminal names +against which the +.I TERM +variable +(see below) +is matched. +An empty value disables the GPM interface, +using +.IR \%ncurses 's +built-in support for \fIxterm\fP(1) mouse protocols instead. +If the variable is absent, +.I \%ncurses +attempts to open GPM if +.I TERM +contains \*(``linux\*(''. .SS "\fINCURSES_NO_HARD_TABS\fP" -\fI\%ncurses\fP may use tabs as part of cursor movement optimization. +.I \%ncurses +may use tab characters in cursor movement optimization. In some cases, -your terminal driver may not handle these properly. +your terminal driver may not handle them properly. Set this environment variable to any value to disable the feature. -You can also adjust your \fBstty\fP(1) settings to avoid the problem. +You can also adjust your \fI\%stty\fP(1) settings to avoid the problem. .SS "\fINCURSES_NO_MAGIC_COOKIE\fP" -Some terminals use a magic-cookie feature which requires special handling -to make highlighting and other video attributes display properly. -You can suppress the highlighting entirely for these terminals by -setting this environment variable to any value. +Many terminals store video attributes as a property of a character cell, +as +.I curses +does. +Historically, +some recorded changes in video attributes as data that logically +.I occupies +character cells on the display, +switching attributes on or off, +similarly to tags in a markup language; +these are termed \*(``magic cookies\*('', +and must be subsequently overprinted. +If the +.I \%term\%info +entry for your terminal type does not adequately describe its handling +of magic cookies, +set this variable to any value to instruct +.I \%ncurses +to disable attributes entirely. .SS "\fINCURSES_NO_PADDING\fP" -Most of the terminal descriptions in the terminfo database are written -for real \*(``hardware\*('' terminals. -Many people use terminal emulators -which run in a windowing environment and use curses-based applications. -Terminal emulators can duplicate -all of the important aspects of a hardware terminal, but they do not -have the same limitations. -The chief limitation of a hardware terminal from the standpoint -of your application is the management of dataflow, i.e., timing. +Most terminal type descriptions in the +.I \%term\%info +database detail hardware devices. +Many people use +.IR curses -based +applications in terminal emulator programs that run in a windowing +environment. +These programs can duplicate all of the important features of a hardware +terminal, +but often lack their limitations. +Chief among these absent drawbacks is the problem of data flow +management; +that is, +limiting the speed of communication to what the hardware could handle. Unless a hardware terminal is interfaced into a terminal concentrator (which does flow control), -it (or your application) must manage dataflow, preventing overruns. -The cheapest solution (no hardware cost) -is for your program to do this by pausing after -operations that the terminal does slowly, such as clearing the display. -.PP -As a result, many terminal descriptions (including the vt100) -have delay times embedded. -You may wish to use these descriptions, -but not want to pay the performance penalty. -.PP -Set the \fI\%NCURSES_NO_PADDING\fP environment variable -to disable all but mandatory padding. -Mandatory padding is used as a part of special control -sequences such as \fBflash\fP. +an application must manage flow control itself to prevent overruns and +data loss. +.PP +A solution that comes at no hardware cost is for an application to pause +after directing a terminal to execute an operation that it performs +slowly, +such as clearing the display. +Many terminal type descriptions, +including that for the VT100, +embed delay specifications in capabilities. +You may wish to use these terminal descriptions without paying the +performance penalty. +Set +.I \%NCURSES_NO_PADDING +to any value to disable all but mandatory padding. +Mandatory padding is used by such terminal capabilities as +.B \%flash_screen +.RB ( flash ). .SS "\fINCURSES_NO_SETBUF\fP" -This setting is obsolete. -Before changes -.RS 3 -.bP -started with 5.9 patch 20120825 -and -.bP -continued -though 5.9 patch 20130126 -.RE -.PP -\fI\%ncurses\fP enabled buffered output during terminal initialization. -This was done (as in SVr4 curses) for performance reasons. -For testing purposes, both of \fI\%ncurses\fP and certain applications, +(Obsolete) +Prior to internal changes developed in +.I \%ncurses +5.9 +(patches 20120825 through 20130126), +the library used \fI\%setbuf\fP(3) to enable fully buffered output when +initializing the terminal. +This was done, +as in SVr4 +.IR curses , +to increase performance. +For testing purposes, +both of +.I \%ncurses +and of certain applications, this feature was made optional. -Setting the \fI\%NCURSES_NO_SETBUF\fP variable -disabled output buffering, leaving the output in the original (usually -line buffered) mode. -.PP -In the current implementation, -\fI\%ncurses\fP performs its own buffering and does not require this -workaround. -It does not modify the buffering of the standard output. -.PP -The reason for the change was to make the behavior for interrupts and -other signals more robust. -One drawback is that certain nonconventional programs would mix -ordinary \fI\%stdio\fP(3) calls with \fI\%ncurses\fP calls and (usually) -work. -This is no longer possible since \fI\%ncurses\fP is not using -the buffered standard output but its own output (to the same file descriptor). -As a special case, the low-level calls such as \fBputp\fP still use the -standard output. -But high-level curses calls do not. +Setting this variable disabled output buffering, +leaving the output stream in the original +(usually line-buffered) +mode. +.PP +Nowadays, +.I \%ncurses +performs its own buffering and does not require this workaround; +it does not modify the buffering of the standard output stream. +This approach makes signal handling, +as for interrupts, +more robust. +A drawback is that certain unconventional programs mixed +\fI\%stdio\fP(3) calls with +.I \%ncurses +calls and (usually) +got the behavior they expected. +This is no longer the case; +.I \%ncurses +does not write to the standard output file descriptor through a +.IR stdio -buffered +stream. +.PP +As a special case, +low-level API calls such as \fB\%putp\fP(3NCURSES) still use the +standard output stream. +High-level +.I curses +calls such as \fB\%printw\fP(3NCURSES) do not. .SS "\fINCURSES_NO_UTF8_ACS\fP" -During initialization, the \fI\%ncurses\fP library -checks for special cases where VT100 line-drawing (and the corresponding -alternate character set capabilities) described in the terminfo are known -to be missing. -Specifically, when running in a UTF\-8 locale, -the Linux console emulator and the GNU screen program ignore these. -\fI\%ncurses checks the \fITERM\fP environment variable for these. -For other special cases, you should set this environment variable. -Doing this tells \fI\%ncurses\fP to use Unicode values which correspond -to the VT100 line-drawing glyphs. -That works for the special cases cited, -and is likely to work for terminal emulators. -.PP -When setting this variable, you should set it to a nonzero value. -Setting it to zero (or to a nonnumber) -disables the special check for \*(``linux\*('' and \*(``screen\*(''. -.PP -As an alternative to the environment variable, -\fI\%ncurses\fP checks for an extended terminfo capability \fBU8\fP. -This is a numeric capability which can be compiled using \fBtic\ \-x\fP. -For example +At initialization, +.I \%ncurses +inspects the +.I TERM +environment variable for special cases where VT100 forms-drawing +characters +(and the corresponding alternate character set +.I \%term\%info +capabilities) +are known to be unsupported by terminal types that otherwise claim VT100 +compatibility. +Specifically, +when running in a UTF-8 locale, +the Linux virtual console device and the GNU \fI\%screen\fP(1) +program ignore them. +Set this variable to a nonzero value to instruct +.I \%ncurses +that the terminal's ACS support is broken; +the library then outputs Unicode code points that correspond to the +forms-drawing +characters. +Set it to zero +(or a non-integer) +to disable the special check for terminal type names matching +\*(``linux\*('' or \*(``screen\*('', +directing +.I \%ncurses +to assume that the ACS feature works if the terminal type description +advertises it. +.PP +As an alternative to use of this variable, +.I \%ncurses +checks for an extended +.I \%term\%info +numeric capability \fBU8\fP +that can be compiled using +.RB \*(`` "tic \-x" \*(''. +Examples follow. .PP .RS 3 .EX @@ -1215,178 +1429,227 @@ For example # VT100 shift\-in/shift\-out, with corresponding font. linux\-vt100|linux console with VT100 line\-graphics, U8#0, use=linux, - +\& # uxterm with vt100Graphics resource set to false xterm\-utf8|xterm relying on UTF\-8 line\-graphics, U8#1, use=xterm, .EE .RE .PP -The name \*(``U8\*('' is chosen to be two characters, -to permit it to be used by applications that use \fI\%ncurses\fP' -termcap interface. +The two-character name \*(``U8\*('' was chosen to permit its use via +.IR \%ncurses 's +.I termcap +interface. .SS "\fINCURSES_TRACE\fP" -During initialization, the \fI\%ncurses\fP debugging library -checks the \fI\%NCURSES_TRACE\fP environment variable. -If it is defined, -to a numeric value, -\fI\%ncurses\fP calls the \fBtrace\fP function, -using that value as the argument. -.PP -The argument values, which are defined in \fBcurses.h\fP, provide several -types of information. -When running with traces enabled, your application will write the -file \fBtrace\fP to the current directory. -.PP -See \fB\%trace\fP(3NCURSES) for more information. +At initialization, +.I \%ncurses +(in its debugging configuration) +checks for this variable's presence. +If defined with an integral value, +the library calls \fB\%curses_trace\fP(3NCURSES) with that value as the +argument. .SS "\fITERM\fP" -Denotes your terminal type. -Each terminal type is distinct, though many are similar. -.PP -\fITERM\fP is commonly set by terminal emulators to help -applications find a workable terminal description. -Some of those choose a popular approximation, e.g., -\*(``ansi\*('', \*(``vt100\*('', \*(``xterm\*('' rather than an exact fit. -Not infrequently, your application will have problems with that approach, -e.g., incorrect function-key definitions. -.PP -If you set \fITERM\fP in your environment, -it has no effect on the operation of the terminal emulator. -It only affects the way applications work within the terminal. -Likewise, as a general rule (\fBxterm\fP(1) being a rare exception), -terminal emulators which allow you to -specify \fITERM\fP as a parameter or configuration value do -not change their behavior to match that setting. +The +.I TERM +variable denotes the terminal type. +Each is distinct, +though many are similar. +It is commonly set by terminal emulators to help applications find a +workable terminal description. +Some choose a popular approximation such as \*(``ansi\*('', +\*(``vt100\*('', or \*(``xterm\*('' rather than an exact fit to their +capabilities. +Not infrequently, +an application will have problems with that approach; +for example, +a key stroke may not operate correctly, +or produce no effect but seeming garbage characters on the screen. +.PP +Setting +.I TERM +has no effect on hardware operation; +it affects the way applications communicate with the terminal. +Likewise, +as a general rule +(\fIxterm\fP(1) being a rare exception), +terminal emulators that allow you to specify +.I TERM +as a parameter or configuration value do not change their behavior to +match that setting. .SS "\fITERMCAP\fP" -If the \fI\%ncurses\fP library has been configured with \fItermcap\fP -support, \fI\%ncurses\fP will check for a terminal's description in -termcap form if it is not available in the terminfo database. -.PP -The \fI\%TERMCAP\fP environment variable contains -either a terminal description (with newlines stripped out), -or a file name telling where the information denoted by -the \fITERM\fP environment variable exists. -In either case, setting it directs \fI\%ncurses\fP to ignore -the usual place for this information, e.g., /etc/termcap. +If +.I \%ncurses +is configured with +.I termcap +support, +it checks for a terminal type description in +.I termcap +format if one in +.I \%term\%info +format is not available. +Setting this variable directs +.I \%ncurses +to ignore the usual +.I termcap +database location, +.IR \%/etc/termcap ; +see +.I \%TERMPATH +below. +.I \%TERMCAP +should contain either a terminal description +(with newlines stripped out), +or a file name indicating where the information required by the +.I TERM +environment variable is stored. .SS "\fITERMINFO\fP" -\fI\%ncurses\fP can be configured to read from multiple terminal -databases. -The \fI\%TERMINFO\fP variable overrides the location for -the default terminal database. -Terminal descriptions (in terminal format) are stored in terminal databases: +.I \%ncurses +can be configured to read terminal type description databases in various +locations using different formats. +This variable overrides the default location. .bP -Normally these are stored in a directory tree, -using subdirectories named by the first letter of the terminal names therein. -.IP -This is the scheme used in System V, which legacy Unix systems use, -and the \fI\%TERMINFO\fP variable is used by \fIcurses\fP applications -on those -systems to override the default location of the terminal database. -.IP \(bu 4 -If \fI\%ncurses\fP is built to use hashed databases, -then each entry in this list may be the path of a hashed database file, e.g., -.RS 4 -.PP -.RS 4 -.EX -/usr/share/terminfo.db -.EE -.RE -.PP +Descriptions in +.I \%term\%info +format are normally stored in a directory tree using subdirectories +named by the common first letters of the terminal types named therein. +This is the scheme used in System\ V. +.bP +If +.I \%ncurses +is configured to use hashed databases, +then +.I \%TERM\%INFO +may name its location, +such as +.IR \%/usr/share/terminfo.db , rather than +.IR \%/usr/share/terminfo/ . .PP -.RS 4 -.EX -/usr/share/terminfo/ -.EE -.RE -.PP -The hashed database uses less disk-space and is a little faster than the +The hashed database uses less disk space and is a little faster than the directory tree. However, some applications assume the existence of the directory tree, -reading it directly -rather than using the terminfo library calls. -.RE +and read it directly +rather than using the +.I \%term\%info +API. .bP -If \fI\%ncurses\fP is built with a support for reading termcap files -directly, then an entry in this list may be the path of a termcap file. -.IP \(bu 4 -If the \fI\%TERMINFO\fP variable begins with -\*(``hex:\*('' or \*(``b64:\*('', -\fI\%ncurses\fP uses the remainder of that variable as a compiled -terminal description. -You might produce the base64 format using \fB\%infocmp\fP(1): -.RS 4 -.PP +If +.I \%ncurses +is configured with +.I termcap +support, +this variable may contain the location of a +.I \%termcap +file. +.bP +If the value of +.I \%TERM\%INFO +begins with \*(``hex:\*('' or \*(``b64:\*('', +.I \%ncurses +uses the remainder of the value as a compiled +.I \%term\%info +description. +You might produce the base64 format using \fB\%infocmp\fP(1). .RS 4 +.IP .EX -TERMINFO="$(infocmp \-0 \-Q2 \-q)" +TERMINFO=$(infocmp \-0 \-Q2 \-q) export TERMINFO .EE .RE -.PP -The compiled description is used if it corresponds to the terminal identified -by the \fITERM\fP variable. -.RE -.PP -Setting \fI\%TERMINFO\fP is the simplest, -but not the only way to set location of the default terminal database. -The complete list of database locations in order follows: -.RS 3 +.IP +The compiled description is used only if it corresponds to the terminal +type identified by +.IR TERM . +.PP +Setting +.I \%TERM\%INFO +is the simplest, +but not the only, +way to direct +.I \%ncurses +to a terminal database. +The search path is as follows. .bP -the last terminal database to which \fI\%ncurses\fP wrote, -if any, is searched first +the last terminal database to which the running +.I \%ncurses +application wrote, +if any .bP -the location specified by the \fI\%TERMINFO\fP environment variable +the location specified by the +.I \%TERM\%INFO +environment variable .bP -$HOME/.terminfo +.I $HOME/.terminfo .bP -locations listed in the \fI\%TERMINFO_DIRS\fP environment variable +locations listed in the +.I \%TERMINFO_DIRS +environment variable +.ds td \" empty +.if !'/etc/terminfo:/usr/share/terminfo'no default value' .as td /etc/terminfo:/usr/share/terminfo +.if !'/usr/share/terminfo\*(td'' \{\ .bP -one or more locations whose names are configured and compiled into the -\fI\%ncurses\fP library, i.e., +location(s) configured and compiled into +.I \%ncurses .RS 3 +.if !'\*(td'' \{\ .bP -/etc/terminfo:/usr/share/terminfo (corresponding to the \fI\%TERMINFO_DIRS\fP variable) +.I \%/etc/terminfo:/usr/share/terminfo +.\} +.if !'@TERMINFO'' .if !'\*(td'/usr/share/terminfo' \{\ .bP -/usr/share/terminfo (corresponding to the \fITERMINFO\fP variable) -.RE +.I \%/usr/share/terminfo +.\} +.\} .RE .SS "\fITERMINFO_DIRS\fP" -Specifies a list of locations to search for terminal descriptions. -Each location in the list is a terminal database as described in -the section on the \fI\%TERMINFO\fP variable. -The list is separated by colons (i.e., ":") on Unix, semicolons on OS/2 EMX. -.PP -There is no corresponding feature in System V terminfo; -it is an extension developed for \fI\%ncurses\fP. +This variable specifies a list of locations, +akin to +.IR PATH , +in which +.I \%ncurses +searches for the terminal type descriptions described by +.I \%TERMINFO +above. +The list items are separated by colons on Unix +and semicolons on OS/2 EMX. +System\ V +.I \%term\%info +lacks a corresponding feature; +.I \%TERMINFO_DIRS +is an +.I \%ncurses +extension. .SS "\fITERMPATH\fP" -If \fI\%TERMCAP\fP does not hold a file name then \fI\%ncurses\fP checks -the \fI\%TERMPATH\fP environment variable. -This is a list of filenames separated by spaces or colons (i.e., ":") on Unix, -semicolons on OS/2 EMX. -.PP -If the \fI\%TERMPATH\fP environment variable is not set, -\fI\%ncurses\fP looks in the files -.PP -.RS 4 -.EX -/etc/termcap, /usr/share/misc/termcap and $HOME/.termcap, -.EE -.RE +If +.I \%TERMCAP +does not hold a terminal type description or file name, +then +.I \%ncurses +checks the contents of +.IR \%TERMPATH , +a list of locations, +akin to +.IR PATH , +in which it searches for +.I termcap +terminal type descriptions. +The list items are separated by colons on Unix +and semicolons on OS/2 EMX. .PP +If both +.I \%TERMCAP +and +.I \%TERMPATH +are unset or invalid, +.I \%ncurses +searches for the files +.IR \%/etc/termcap , +.IR \%/usr/share/misc/termcap , +and +.IR \%$HOME/.termcap , in that order. -.PP -The library may be configured to disregard the following variables when the -current user is the superuser (root), or if the application uses setuid or -setgid permissions: -.PP -.RS 4 -.EX -$TERMINFO, $TERMINFO_DIRS, $TERMPATH, as well as $HOME. -.EE -.RE .SH "ALTERNATE CONFIGURATIONS" Many different .I \%ncurses @@ -1399,9 +1662,9 @@ Run the script with the option to peruse them all. A few are of particular significance to the application developer employing -.I \%ncurses. +.IR \%ncurses . .TP 5 -\-\-disable\-overwrite +.B \-\-disable\-overwrite The standard include for \fI\%ncurses\fP is as noted in \fBSYNOPSIS\fP: .RS 5 .PP @@ -1427,7 +1690,7 @@ It also omits a symbolic link which would allow you to use \fB\-lcurses\fP to build executables. .RE .TP 5 -\-\-enable\-widec +.B \-\-enable\-widec The configure script renames the library and (if the \fB\-\-disable\-overwrite\fP option is used) puts the header files in a different subdirectory. @@ -1452,7 +1715,8 @@ you link with You must also enable the wide-character features in the header file when compiling for the wide-character library to use the extended (wide-character) functions. -The symbol which enables these features has changed since XSI Curses, Issue 4: +The symbol which enables these features has changed +since X/Open Curses, Issue 4: .bP Originally, the wide-character feature required the symbol \fB_XOPEN_SOURCE_EXTENDED\fP @@ -1481,7 +1745,7 @@ to allow applications to be built using either library from the same set of headers. .RE .TP 5 -\-\-with\-pthread +.B \-\-with\-pthread The configure script renames the library. All of the library names have a \*(``t\*('' appended to them (before any \*(``w\*('' added by \fB\-\-enable\-widec\fP). @@ -1491,20 +1755,20 @@ allow read-only access. At the same time, setter-functions are provided to set these values. Some applications (very few) may require changes to work with this convention. .TP 5 -\-\-with\-shared -.TP -\-\-with\-normal -.TP -\-\-with\-debug -.TP -\-\-with\-profile +.B \-\-with\-shared +.tQ +.B \-\-with\-normal +.tQ +.B \-\-with\-debug +.tQ +.B \-\-with\-profile The shared and normal (static) library names differ by their suffixes, e.g., \fBlibncurses.so\fP and \fBlibncurses.a\fP. The debug and profiling libraries add a \*(``_g\*('' and a \*(``_p\*('' to the root names respectively, e.g., \fBlibncurses_g.a\fP and \fBlibncurses_p.a\fP. .TP 5 -\-\-with\-termlib +.B \-\-with\-termlib Low-level functions which do not depend upon whether the library supports wide-characters, are provided in the tinfo library. .IP @@ -1531,7 +1795,7 @@ database \fB\%util\fP(3NCURSES) \- miscellaneous \fIcurses\fP utility routines .RE .TP 5 -\-\-with\-trace +.B \-\-with\-trace The \fBtrace\fP function normally resides in the debug library, but it is sometimes useful to configure this in the shared library. Configure scripts should check for the function's existence rather @@ -1565,21 +1829,21 @@ If the standard output file descriptor of an .I \%ncurses program is redirected to something that is not a terminal device, the library writes screen updates to the standard error file descriptor. -This was an undocumented feature of SVr3. +This was an undocumented feature of SVr3 +.IR curses . .PP -See subsection \*(``Header files\*('' below regarding symbols exposed by +See subsection \*(``Header Files\*('' below regarding symbols exposed by inclusion of \fI\%curses.h\fP. .SH EXTENSIONS .I \%ncurses enables an application to capture mouse events on certain terminals, -including -.I \%xterm; +including \fI\%xterm\fP(1); see \fB\%mouse\fP(3NCURSES). .PP .I \%ncurses provides a means of responding to window resizing events, as when running in a GUI terminal emulator application such as -.I \%xterm; +.IR \%xterm ; see \fB\%resizeterm\fP(3NCURSES) and \fB\%wresize\fP(3NCURSES). .PP .I \%ncurses @@ -1590,10 +1854,11 @@ see \fB\%has_key\fP(3NCURSES). .I \%ncurses extends the fixed set of function key capabilities specified by X/Open Curses by allowing the application programmer to define additional key -sequences at runtime; +events at runtime; see \fB\%define_key\fP(3NCURSES), \fB\%key_defined\fP(3NCURSES), +\fB\%keybound\fP(3NCURSES), and \fB\%keyok\fP(3NCURSES). .PP @@ -1610,9 +1875,9 @@ See \fB\%default_colors\fP(3NCURSES). .PP An .I \%ncurses -application can choose to hide the internal details of +application can eschew knowledge of .I \%WINDOW -structures, +structure internals, instead using accessor functions such as \fB\%is_scrollok\fP(3NCURSES). .PP @@ -1628,10 +1893,13 @@ and \fB\%extended_slk_color\fP(3NCURSES) as a form of \fB\%slk_color\fP(3NCURSES that can gather color information from them when many colors are supported. .PP -Some extensions are only available if +Some extensions are available only if +.I \%ncurses +permits modification of \fB\%unctrl\fP(3NCURSES)'s behavior; +see \fB\%use_legacy_coding\fP(3NCURSES). .I \%ncurses is compiled to support them; -see section \*(``ALTERNATE CONFIGURATIONS\*('' above. +section \*(``ALTERNATE CONFIGURATIONS\*('' describes how. .bP Rudimentary support for multi-threaded applications may be available; see \fB\%threads\fP(3NCURSES). @@ -1639,6 +1907,15 @@ see \fB\%threads\fP(3NCURSES). Functions that ease the management of multiple screens can be exposed; see \fB\%sp_funcs\fP(3NCURSES). .bP +To aid applications to debug their memory usage, +.I ncurses +optionally offers functions to more aggressively free memory it +dynamically allocates itself; +see \fB\%memleaks\fP(3NCURSES). +.bP +The library facilitates auditing and troubleshooting of its behavior; +see \fB\%trace\fP(3NCURSES). +.bP The compiler option .B \%\-DUSE_GETCAP causes the library to fall back to reading @@ -1646,7 +1923,7 @@ causes the library to fall back to reading if the terminal setup code cannot find a .I \%term\%info entry corresponding to -.I TERM. +.IR TERM . Use of this feature is not recommended, as it essentially includes an entire .I termcap @@ -1669,8 +1946,8 @@ The latter includes several additional features, such as wide-character and color support. .I \%ncurses intends base-level conformance with X/Open Curses, -and supports nearly all its enhanced features. -.\" XXX: What's missing? GBR counts untic(1), and that's all. +and supports all features of its enhanced level +except the \fB\%untic\fP utility. .PP Differences between X/Open Curses and .I \%ncurses @@ -1680,125 +1957,308 @@ pages. In many cases, X/Open Curses is vague about error conditions, omitting some of the SVr4 documentation. .PP -Unlike other implementations, this one checks parameters such as pointers -to \fI\%WINDOW\fP structures to ensure they are not null. -The main reason for providing this behavior is to guard against programmer -error. +Unlike other implementations, +.I \%ncurses +checks pointer parameters, +such as those to +.I \%WINDOW +structures, +to ensure that they are not null. +This is done primarily to guard against programmer error. The standard interface does not provide a way for the library -to tell an application which of several possible errors were detected. -Relying on this (or some other) extension will adversely affect the -portability of curses applications. +to tell an application which of several possible errors occurred. +Relying on this +(or some other) +extension adversely affects the portability of +.I curses +applications. .SS "Padding Differences" -In historic curses versions, delays embedded in the capabilities \fBcr\fP, -\fBind\fP, \fBcub1\fP, \fBff\fP and \fBtab\fP activated corresponding delay -bits in the Unix tty driver. -In this implementation, all padding is done by sending NUL bytes. -This method is slightly more expensive, but narrows the interface -to the Unix kernel significantly and increases the package's portability -correspondingly. +In historical +.I curses +implementations, +delays embedded in the +.I \%term\%info +capabilities +.B \%carriage_return +.RB ( cr ), +.B \%scroll_forward +.RB ( ind ), +.B \%cursor_left +.RB ( cub1 ), +.B \%form_feed +.RB ( ff ), +and +.B \%tab +.RB ( ht ) +activated corresponding delay bits in the Unix terminal driver. +.I \%ncurses +performs all padding by sending NUL bytes to the device. +This method is slightly more expensive, +but narrows the interface to the Unix kernel significantly and +correspondingly increases the package's portability. .SS "Header Files" -The header file \fI\%curses.h\fP itself includes the header files -\fI\%stdio.h\fP and \fI\%unctrl.h\fP. +The header file +.I \%curses.h +itself includes the header files +.I \%stdio.h +and +.IR \%unctrl.h . .PP X/Open Curses has more to say, -but does not finish the story: .RS 4 .PP -The inclusion of may make visible all symbols -from the headers , , , and . +The inclusion of +.I \%curses.h +may make visible all symbols from the headers +.IR \%stdio.h , +.IR \%term.h , +.IR \%termios.h , +and +.IR \%wchar.h . .RE .PP -Here is a more complete story: +but does not finish the story. +A more complete account follows. .bP -Starting with BSD curses, all implementations have included . +Starting with 4BSD +.I curses +(1980) +all implementations have provided a +.I \%curses.h +file. .IP -BSD curses included and from an internal header -file -.I \%curses.ext -(\*(``ext\*('' abbreviated \*(``externs\*(''). +BSD +.I curses +code included +.I \%curses.h +and +.I \%unctrl.h +from an internal header file +.IR \%curses.ext , +where +\*(``ext\*('' abbreviated \*(``externs\*(''. .IP -BSD curses used internally (for \fBprintw\fP and \fBscanw\fP), -but nothing in itself relied upon . +The implementations of +.I \%printw +and +.I \%scanw +used undocumented internal functions of the standard I/O library +.RI ( _doprnt +and +.IR _doscan ), +but nothing in +.I \%curses.h +itself relied upon +.IR \%stdio.h . .bP -SVr2 curses added \fB\%newterm\fP(3NCURSES), which relies upon . -That is, the function prototype uses \fBFILE\fP. +SVr2 +.I curses +added +.IR \%newterm , +which relies upon +.I \%stdio.h +because its function prototype employs the +.I FILE +type. .IP -SVr4 curses added \fBputwin\fP and \fBgetwin\fP, which also use . +SVr4 +.I curses +added +.I \%putwin +and +.IR \%getwin , +which also use +.IR \%stdio.h . .IP -X/Open Curses documents all three of these functions. +X/Open Curses specifies all three of these functions. .IP -SVr4 curses and X/Open Curses do not require the developer to -include before including . -Both document curses showing as the only required header. +SVr4 +.I curses +and X/Open Curses do not require the developer to include +.I \%stdio.h +before +.IR \%curses.h . +Both document use of +.I curses +as requiring only +.IR \%curses.h . .IP -As a result, standard will always include . +As a result, +standard +.I \%curses.h +always includes +.IR \%stdio.h . .bP -X/Open Curses is inconsistent with respect to SVr4 regarding . +X/Open Curses and SVr4 +.I curses +are inconsistent with respect to +.IR \%unctrl.h . .IP As noted in \fB\%util\fP(3NCURSES), -\fI\%ncurses\fP includes from -(like SVr4). +.I \%ncurses +includes +.I \%unctrl.h +from +.I \%curses.h +(as SVr4 does). .bP -X/Open's comments about and may refer to HP-UX and AIX: +X/Open Curses's comments about +.I \%term.h +and +.I \%termios.h +may refer to HP-UX and AIX. .IP -HP-UX curses includes from -to declare \fBsetupterm\fP in curses.h, -but \fI\%ncurses\fP (and Solaris curses) do not. +HP-UX +.I curses +includes +.I \%term.h +from +.I \%curses.h +to declare +.I \%setupterm +in +.IR \%curses.h , +but +.I \%ncurses +and Solaris +.I curses +do not. .IP -AIX curses includes and . -Again, \fI\%ncurses\fP (and Solaris curses) do not. +AIX +.I curses +includes +.I \%term.h +and +.IR \% termios.h . +Again, +.I \%ncurses +and Solaris +.I curses +do not. .bP -X/Open says that \fImay\fP include , -but there is no requirement that it do that. +X/Open Curses says that +.I \%curses.h +.B may +include +.IR \%term.h , +but does not require it to do so. .IP -Some programs use functions declared in both and , -and must include both headers in the same module. -Very old versions of AIX curses required including -before including . +Some programs use functions declared in both +.I \%curses.h +and +.IR \%term.h , +and must include both header files in the same module. +Very old versions of AIX +.I curses +required inclusion of +.I \%curses.h +before +.IR \%term.h . .IP -Because \fI\%ncurses\fP header files include the headers needed to -define datatypes used in the headers, -\fI\%ncurses\fP header files can be included in any order. -But for portability, you should include before . +The header files supplied by +.I \%ncurses +include the standard library headers required for its declarations, +so +.IR \%ncurses 's +own header files can be included in any order. +But for portability, +you should include +.I \%curses.h +before +.IR \%term.h . .bP -X/Open Curses says \fI"may make visible"\fP -because including a header file does not necessarily make all symbols -in it visible (there are ifdef's to consider). +X/Open Curses says \*(``may make visible\*('' because including a header +file does not necessarily make visible all of the symbols in it +(consider +.B \%#ifdef +and similar). .IP -For instance, in \fI\%ncurses\fP \fImay\fP be included if -the proper symbol is defined, and if \fI\%ncurses\fP is configured for -wide-character support. -If the header is included, its symbols may be made visible. -That depends on the value used for \fB_XOPEN_SOURCE\fP +For instance, +.IR \%ncurses 's +.I \%curses.h +.B may \" bold to contrast with preceding italic +include +.I \%wchar.h +if the proper symbol is defined, +and if +.I \%ncurses +is configured for wide-character support. +If +.I \%wchar.h +is included, +its symbols +.B may \" bold for consistency in this paragraph +be made visible depending on the value of the +.B _XOPEN_SOURCE feature test macro. .bP -X/Open Curses documents one required header, -in a special case: before to prototype -the \fBvw_printw\fP and \fBvw_scanw\fP functions +X/Open Curses mandates an application's inclusion of one standard C +library header in a special case: +.I \%stdarg.h +before +.I \%curses.h +to prototype the functions +.I \%vw_printw +and +.I \%vw_scanw (as well as the obsolete -the \fBvwprintw\fP and \fBvwscanw\fP functions). -Each of those uses a \fBva_list\fP parameter. +.I \%vwprintw +and +.IR \%vwscanw ). +Each of these takes a variadic argument list, +a +.I \%va_list +parameter, +like that of \fI\%printf\fP(3). .IP -The two obsolete functions were introduced in SVr3. -The other functions were introduced in X/Open Curses. -In between, SVr4 curses provided for the possibility that -an application might include either or . -Initially, that was done by using \fBvoid*\fP for the \fBva_list\fP +SVr3 +.I curses +introduced +the two obsolete functions, +and X/Open Curses the others. +In between, +SVr4 +.I curses +provided for the possibility that an application might include either +.I \%varargs.h +or +.IR \%stdarg.h . +These represented contrasting approaches to handling variadic +argument lists. +The older interface, +.IR \%varargs.h , +used a pointer to +.I char \" V7, 32V, System III, 3BSD +for variadic functions' +.I \%va_list parameter. -Later, a special type (defined in ) was introduced, -to allow for compiler type-checking. -That special type is always available, -because is always included by . +Later, +the list acquired its own standard data type, +.IR \%va_list , +defined in +.IR \%stdarg.h , +empowering the compiler to check the types of a function call's actual +parameters against the formal ones declared in its prototype. .IP -None of the X/Open Curses implementations require an application -to include before because they either -have allowed for a special type, -or -(like \fI\%ncurses\fP) -include directly to provide a portable interface. +No conforming implementations of X/Open Curses require an application +to include +.I \%stdarg.h +before +.I \%curses.h +because they either have allowed for a special type, +or, +like +.IR \%ncurses , +they include +.I \%stdarg.h +themselves to provide a portable interface. .SH AUTHORS -Zeyd M. Ben-Halim, Eric S. Raymond, Thomas E. Dickey. -Based on \fIpcurses\fP by Pavel Curtis. +Zeyd M. Ben-Halim, +Eric S. Raymond, +Thomas E. Dickey. +Based on +.I \%pcurses +by Pavel Curtis. .SH SEE ALSO \fB\%curses_variables\fP(3NCURSES), \fB\%terminfo\fP(5), diff --git a/upstream/opensuse-tumbleweed/man3/netlink.3 b/upstream/opensuse-tumbleweed/man3/netlink.3 index eeb88754..07225680 100644 --- a/upstream/opensuse-tumbleweed/man3/netlink.3 +++ b/upstream/opensuse-tumbleweed/man3/netlink.3 @@ -5,7 +5,7 @@ .\" Based on the original comments from Alexey Kuznetsov .\" $Id: netlink.3,v 1.1 1999/05/14 17:17:24 freitag Exp $ .\" -.TH netlink 3 2023-03-30 "Linux man-pages 6.05.01" +.TH netlink 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME netlink \- Netlink macros .SH LIBRARY @@ -15,7 +15,7 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "int NLMSG_ALIGN(size_t " len ); .BI "int NLMSG_LENGTH(size_t " len ); .BI "int NLMSG_SPACE(size_t " len ); diff --git a/upstream/opensuse-tumbleweed/man3/new.3form b/upstream/opensuse-tumbleweed/man3/new.3form index 278c3436..a7f46d51 100644 --- a/upstream/opensuse-tumbleweed/man3/new.3form +++ b/upstream/opensuse-tumbleweed/man3/new.3form @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_new.3x,v 1.30 2023/11/25 13:58:47 tom Exp $ -.TH new 3FORM 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: form_new.3x,v 1.32 2024/03/16 15:35:01 tom Exp $ +.TH new 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBnew_form\fP, \fBfree_form\fP \- diff --git a/upstream/opensuse-tumbleweed/man3/new.3menu b/upstream/opensuse-tumbleweed/man3/new.3menu index f11a4c98..1b722bf5 100644 --- a/upstream/opensuse-tumbleweed/man3/new.3menu +++ b/upstream/opensuse-tumbleweed/man3/new.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: menu_new.3x,v 1.33 2023/11/25 13:58:47 tom Exp $ -.TH new 3MENU 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: menu_new.3x,v 1.35 2024/03/16 15:35:01 tom Exp $ +.TH new 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBnew_menu\fP, \fBfree_menu\fP \- diff --git a/upstream/opensuse-tumbleweed/man3/new_page.3form b/upstream/opensuse-tumbleweed/man3/new_page.3form index 8df19623..4ebf89d1 100644 --- a/upstream/opensuse-tumbleweed/man3/new_page.3form +++ b/upstream/opensuse-tumbleweed/man3/new_page.3form @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_new_page.3x,v 1.32 2023/11/25 13:58:47 tom Exp $ -.TH new_page 3FORM 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: form_new_page.3x,v 1.34 2024/03/16 15:35:01 tom Exp $ +.TH new_page 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq diff --git a/upstream/opensuse-tumbleweed/man3/new_pair.3ncurses b/upstream/opensuse-tumbleweed/man3/new_pair.3ncurses index a91d4ae4..91f87cc8 100644 --- a/upstream/opensuse-tumbleweed/man3/new_pair.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/new_pair.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -29,8 +29,8 @@ .\" .\" Author: Thomas E. Dickey .\" -.\" $Id: new_pair.3x,v 1.44 2023/12/16 20:32:22 tom Exp $ -.TH new_pair 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: new_pair.3x,v 1.46 2024/03/16 15:35:01 tom Exp $ +.TH new_pair 3NCURSES 2024-03-16 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq diff --git a/upstream/opensuse-tumbleweed/man3/newlocale.3 b/upstream/opensuse-tumbleweed/man3/newlocale.3 index 2c602a4a..198120f1 100644 --- a/upstream/opensuse-tumbleweed/man3/newlocale.3 +++ b/upstream/opensuse-tumbleweed/man3/newlocale.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH newlocale 3 2023-05-03 "Linux man-pages 6.05.01" +.TH newlocale 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME newlocale, freelocale \- create, modify, and free a locale object .SH LIBRARY @@ -11,17 +11,17 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "locale_t newlocale(int " category_mask ", const char *" locale , .BI " locale_t " base ); .BI "void freelocale(locale_t " locobj ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR newlocale (), .BR freelocale (): .nf @@ -67,7 +67,7 @@ reference returned as the function result. If the call fails, the contents of .I base remain valid and unchanged. -.PP +.P If .I base is the special locale object @@ -78,7 +78,7 @@ or is not .I (locale_t)\ 0 and is not a valid locale object handle, the behavior is undefined. -.PP +.P The .I category_mask argument is a bit mask that specifies the locale categories @@ -101,7 +101,7 @@ and Alternatively, the mask can be specified as .BR LC_ALL_MASK , which is equivalent to ORing all of the preceding constants. -.PP +.P For each category specified in .IR category_mask , the locale data from @@ -112,7 +112,7 @@ If a new locale object is being created, data for all categories not specified in .I category_mask is taken from the default ("POSIX") locale. -.PP +.P The following preset values of .I locale are defined for all categories that can be specified in @@ -146,7 +146,7 @@ If is .B LC_GLOBAL_LOCALE or is not valid locale object handle, the results are undefined. -.PP +.P Once a locale object has been freed, the program should make no further use of it. .SH RETURN VALUE @@ -202,7 +202,7 @@ The second command-line argument is optional; if it is present, it is used to set the .B LC_TIME category of the locale object. -.PP +.P Having created and initialized the locale object, the program then applies it using .BR uselocale (3), @@ -220,15 +220,15 @@ Displaying the date. The format and language of the output will be affected by the .B LC_TIME setting. -.PP +.P The following shell sessions show some example runs of this program. -.PP +.P Set the .B LC_NUMERIC category to .I fr_FR (French): -.PP +.P .in +4n .EX $ \fB./a.out fr_FR\fP @@ -236,7 +236,7 @@ $ \fB./a.out fr_FR\fP Fri Mar 7 00:25:08 2014 .EE .in -.PP +.P Set the .B LC_NUMERIC category to @@ -247,7 +247,7 @@ and the category to .I it_IT (Italian): -.PP +.P .in +4n .EX $ \fB./a.out fr_FR it_IT\fP @@ -255,7 +255,7 @@ $ \fB./a.out fr_FR it_IT\fP ven 07 mar 2014 00:26:01 CET .EE .in -.PP +.P Specify the .B LC_TIME setting as an empty string, @@ -263,7 +263,7 @@ which causes the value to be taken from environment variable settings (which, here, specify .IR mi_NZ , New Zealand Māori): -.PP +.P .in +4n .EX $ LC_ALL=mi_NZ ./a.out fr_FR "" diff --git a/upstream/opensuse-tumbleweed/man3/nextafter.3 b/upstream/opensuse-tumbleweed/man3/nextafter.3 index 3636b550..a48fa437 100644 --- a/upstream/opensuse-tumbleweed/man3/nextafter.3 +++ b/upstream/opensuse-tumbleweed/man3/nextafter.3 @@ -7,7 +7,7 @@ .\" .\" Based on glibc infopages .\" -.TH nextafter 3 2023-07-20 "Linux man-pages 6.05.01" +.TH nextafter 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME nextafter, nextafterf, nextafterl, nexttoward, nexttowardf, nexttowardl \- floating-point number manipulation @@ -17,21 +17,21 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double nextafter(double " x ", double " y ); .BI "float nextafterf(float " x ", float " y ); .BI "long double nextafterl(long double " x ", long double " y ); -.PP +.P .BI "double nexttoward(double " x ", long double " y ); .BI "float nexttowardf(float " x ", long double " y ); .BI "long double nexttowardl(long double " x ", long double " y ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR nextafter (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -40,7 +40,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR nextafterf (), .BR nextafterl (): .nf @@ -48,7 +48,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR nexttoward (), .BR nexttowardf (), .BR nexttowardl (): @@ -72,14 +72,14 @@ is less than .IR x , these functions will return the largest representable number less than .IR x . -.PP +.P If .I x equals .IR y , the functions return .IR y . -.PP +.P The .BR nexttoward (), .BR nexttowardf (), @@ -96,7 +96,7 @@ these functions return the next representable floating-point value after .I x in the direction of .IR y . -.PP +.P If .I x equals @@ -106,14 +106,14 @@ then (cast to the same type as .IR x ) is returned. -.PP +.P If .I x or .I y is a NaN, a NaN is returned. -.PP +.P If .I x is finite, @@ -126,7 +126,7 @@ and the functions return or .BR HUGE_VALL , respectively, with the correct mathematical sign. -.PP +.P If .I x is not equal to @@ -140,7 +140,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Range error: result overflow @@ -179,10 +179,9 @@ T{ .BR nexttowardl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. -.PP +.P This function is defined in IEC 559 (and the appendix with recommended functions in IEEE 754/IEEE 854). .SH HISTORY @@ -192,7 +191,7 @@ In glibc 2.5 and earlier, these functions do not raise an underflow floating-point .RB ( FE_UNDERFLOW ) exception when an underflow occurs. -.PP +.P Before glibc 2.23 .\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=6799 these functions did not set diff --git a/upstream/opensuse-tumbleweed/man3/nextup.3 b/upstream/opensuse-tumbleweed/man3/nextup.3 index 7a0eaaae..6c74a36c 100644 --- a/upstream/opensuse-tumbleweed/man3/nextup.3 +++ b/upstream/opensuse-tumbleweed/man3/nextup.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH nextup 3 2023-07-20 "Linux man-pages 6.05.01" +.TH nextup 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME nextup, nextupf, nextupl, nextdown, nextdownf, nextdownl \- return next floating-point number toward positive/negative infinity @@ -14,11 +14,11 @@ Math library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "double nextup(double " x ); .BI "float nextupf(float " x ); .BI "long double nextupl(long double " x ); -.PP +.P .BI "double nextdown(double " x ); .BI "float nextdownf(float " x ); .BI "long double nextdownl(long double " x ); @@ -31,7 +31,7 @@ and .BR nextupl () functions return the next representable floating-point number greater than .IR x . -.PP +.P If .I x is the smallest representable negative number in the corresponding type, @@ -40,7 +40,7 @@ If .I x is 0, the returned value is the smallest representable positive number of the corresponding type. -.PP +.P If .I x is positive infinity, the returned value is positive infinity. @@ -49,12 +49,12 @@ If is negative infinity, the returned value is the largest representable finite negative number of the corresponding type. -.PP +.P If .I x is Nan, the returned value is NaN. -.PP +.P The value returned by .I nextdown(x) is @@ -82,7 +82,6 @@ T{ .BR nextdownl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS These functions are described in .I IEEE Std 754-2008 - Standard for Floating-Point Arithmetic diff --git a/upstream/opensuse-tumbleweed/man3/ngettext.3 b/upstream/opensuse-tumbleweed/man3/ngettext.3 index d2c72301..d6f9283f 100644 --- a/upstream/opensuse-tumbleweed/man3/ngettext.3 +++ b/upstream/opensuse-tumbleweed/man3/ngettext.3 @@ -10,7 +10,7 @@ .\" GNU gettext source code and manual .\" LI18NUX 2000 Globalization Specification .\" -.TH NGETTEXT 3 "May 2001" "GNU gettext 20220912" +.TH NGETTEXT 3 "May 2001" "GNU gettext 0.22.5" .SH NAME ngettext, dngettext, dcngettext \- translate message and choose plural form .SH SYNOPSIS diff --git a/upstream/opensuse-tumbleweed/man3/nl_langinfo.3 b/upstream/opensuse-tumbleweed/man3/nl_langinfo.3 index 2726c296..fb1be16c 100644 --- a/upstream/opensuse-tumbleweed/man3/nl_langinfo.3 +++ b/upstream/opensuse-tumbleweed/man3/nl_langinfo.3 @@ -11,7 +11,7 @@ .\" .\" Corrected prototype, 2002-10-18, aeb .\" -.TH nl_langinfo 3 2023-07-20 "Linux man-pages 6.05.01" +.TH nl_langinfo 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME nl_langinfo, nl_langinfo_l \- query language and locale information .SH LIBRARY @@ -20,16 +20,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *nl_langinfo(nl_item " item ); .BI "char *nl_langinfo_l(nl_item " item ", locale_t " locale ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR nl_langinfo_l (): .nf Since glibc 2.24: @@ -56,13 +56,13 @@ which was previously created by .BR newlocale (3). Individual and additional elements of the locale categories can be queried. -.PP +.P Examples for the locale elements that can be specified in \fIitem\fP using the constants defined in \fI\fP are: .TP .BR CODESET \ (LC_CTYPE) Return a string with the name of the character encoding used in the -selected locale, such as "UTF-8", "ISO-8859-1", or "ANSI_X3.4-1968" +selected locale, such as "UTF\-8", "ISO\-8859\-1", or "ANSI_X3.4\-1968" (better known as US-ASCII). This is the same string that you get with "locale charmap". @@ -202,7 +202,7 @@ conversion specification). Return name of the \fIn\fP-th day of the week. [Warning: this follows the US convention DAY_1 = Sunday, not the international convention -(ISO 8601) that Monday is the first day of the week.] +(ISO\~8601) that Monday is the first day of the week.] (Used in .B %A .BR strftime (3) @@ -249,7 +249,7 @@ function to recognize a negative response to a yes/no question. Return the currency symbol, preceded by "\-" if the symbol should appear before the value, "+" if the symbol should appear after the value, or "." if the symbol should replace the radix character. -.PP +.P The above list covers just some examples of items that can be requested. For a more detailed list, consult .IR "The GNU C Library Reference Manual" . @@ -258,7 +258,7 @@ On success, these functions return a pointer to a string which is the value corresponding to .I item in the specified locale. -.PP +.P If no locale has been selected by .BR setlocale (3) for the appropriate category, @@ -271,9 +271,9 @@ if specifies a locale where .I langinfo data is not defined. -.PP +.P If \fIitem\fP is not valid, a pointer to an empty string is returned. -.PP +.P The pointer returned by these functions may point to static data that may be overwritten, or the pointer itself may be invalidated, by a subsequent call to @@ -289,7 +289,7 @@ is freed or modified by .BR freelocale (3) or .BR newlocale (3). -.PP +.P POSIX specifies that the application may not modify the string returned by these functions. .SH ATTRIBUTES @@ -306,7 +306,6 @@ T{ .BR nl_langinfo () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -323,7 +322,7 @@ or is not a valid locale object handle. The following program sets the character type and the numeric locale according to the environment and queries the terminal character set and the radix character. -.PP +.P .\" SRC BEGIN (nl_langinfo.c) .EX #include @@ -350,5 +349,5 @@ main(void) .BR setlocale (3), .BR charsets (7), .BR locale (7) -.PP +.P The GNU C Library Reference Manual diff --git a/upstream/opensuse-tumbleweed/man3/ntp_gettime.3 b/upstream/opensuse-tumbleweed/man3/ntp_gettime.3 index 30ec3ce6..96ac8177 100644 --- a/upstream/opensuse-tumbleweed/man3/ntp_gettime.3 +++ b/upstream/opensuse-tumbleweed/man3/ntp_gettime.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH ntp_gettime 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ntp_gettime 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ntp_gettime, ntp_gettimex \- get time parameters (NTP daemon interface) .SH LIBRARY @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int ntp_gettime(struct ntptimeval *" ntv ); .BI "int ntp_gettimex(struct ntptimeval *" ntv ); .fi @@ -20,7 +20,7 @@ Standard C library Both of these APIs return information to the caller via the .I ntv argument, a structure of the following type: -.PP +.P .in +4n .EX struct ntptimeval { @@ -33,7 +33,7 @@ struct ntptimeval { }; .EE .in -.PP +.P The fields of this structure are as follows: .TP .I time @@ -69,7 +69,7 @@ This value is not used inside the kernel. .TP .I tai TAI (Atomic International Time) offset. -.PP +.P .BR ntp_gettime () returns an .I ntptimeval @@ -79,7 +79,7 @@ structure in which the and .I esterror fields are filled in. -.PP +.P .BR ntp_gettimex () performs the same task as .BR ntp_gettime (), @@ -110,7 +110,6 @@ T{ .BR ntp_gettimex () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR ntp_gettime () @@ -129,7 +128,7 @@ glibc 2.12. .BR adjtimex (2), .BR ntp_adjtime (3), .BR time (7) -.PP +.P .ad l .UR http://www.slac.stanford.edu/comp/unix/\:package/\:rtems/\:src/\:ssrlApps/\:ntpNanoclock/\:api.htm NTP "Kernel Application Program Interface" diff --git a/upstream/opensuse-tumbleweed/man3/offsetof.3 b/upstream/opensuse-tumbleweed/man3/offsetof.3 index 5dbccc85..e9ce5903 100644 --- a/upstream/opensuse-tumbleweed/man3/offsetof.3 +++ b/upstream/opensuse-tumbleweed/man3/offsetof.3 @@ -25,7 +25,7 @@ .\" References: .\" /usr/lib/gcc/i486-linux-gnu/4.1.1/include/stddef.h .\" glibc-doc -.TH offsetof 3 2023-05-03 "Linux man-pages 6.05.01" +.TH offsetof 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME offsetof \- offset of a structure member .SH LIBRARY @@ -34,7 +34,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t offsetof(" type ", " member ); .fi .SH DESCRIPTION @@ -44,14 +44,14 @@ returns the offset of the field .I member from the start of the structure .IR type . -.PP +.P This macro is useful because the sizes of the fields that compose a structure can vary across implementations, and compilers may insert different numbers of padding bytes between fields. Consequently, an element's offset is not necessarily given by the sum of the sizes of the previous elements. -.PP +.P A compiler error will result if .I member is not aligned to a byte boundary @@ -71,7 +71,7 @@ POSIX.1-2001, C89. On a Linux/i386 system, when compiled using the default .BR gcc (1) options, the program below produces the following output: -.PP +.P .in +4n .EX .RB "$" " ./a.out" diff --git a/upstream/opensuse-tumbleweed/man3/on_exit.3 b/upstream/opensuse-tumbleweed/man3/on_exit.3 index 4ab7aa1b..517c6e2e 100644 --- a/upstream/opensuse-tumbleweed/man3/on_exit.3 +++ b/upstream/opensuse-tumbleweed/man3/on_exit.3 @@ -9,7 +9,7 @@ .\" 386BSD man pages .\" Modified 1993-04-02, David Metcalfe .\" Modified 1993-07-25, Rik Faith (faith@cs.unc.edu) -.TH on_exit 3 2023-07-20 "Linux man-pages 6.05.01" +.TH on_exit 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME on_exit \- register a function to be called at normal process termination .SH LIBRARY @@ -18,15 +18,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int on_exit(void (*" function ")(int, void *), void *" arg ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR on_exit (): .nf Since glibc 2.19: @@ -52,10 +52,10 @@ and the .I arg argument from .BR on_exit (). -.PP +.P The same function may be registered multiple times: it is called once for each registration. -.PP +.P When a child process is created via .BR fork (2), it inherits copies of its parent's registrations. @@ -81,7 +81,6 @@ T{ .BR on_exit () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/opaque.3ncurses b/upstream/opensuse-tumbleweed/man3/opaque.3ncurses index 8c221a55..7f0eda43 100644 --- a/upstream/opensuse-tumbleweed/man3/opaque.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/opaque.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2020-2022,2023 Thomas E. Dickey * +.\" Copyright 2020-2023,2024 Thomas E. Dickey * .\" Copyright 2007-2014,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_opaque.3x,v 1.41 2023/12/16 20:32:22 tom Exp $ -.TH opaque 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: curs_opaque.3x,v 1.43 2024/03/16 15:35:01 tom Exp $ +.TH opaque 3NCURSES 2024-03-16 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq diff --git a/upstream/opensuse-tumbleweed/man3/open_memstream.3 b/upstream/opensuse-tumbleweed/man3/open_memstream.3 index ce9da197..d2a18ec4 100644 --- a/upstream/opensuse-tumbleweed/man3/open_memstream.3 +++ b/upstream/opensuse-tumbleweed/man3/open_memstream.3 @@ -5,28 +5,28 @@ .\" .\" 2008-12-04, Petr Baudis : Document open_wmemstream() .\" -.TH open_memstream 3 2023-07-20 "Linux man-pages 6.05.01" +.TH open_memstream 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME -open_memstream, open_wmemstream \- open a dynamic memory buffer stream +open_memstream, open_wmemstream \- open a dynamic memory buffer stream .SH LIBRARY Standard C library .RI ( libc ", " \-lc ) .SH SYNOPSIS .nf .B #include -.PP +.P .BI "FILE *open_memstream(char **" ptr ", size_t *" sizeloc ); -.PP +.P .B #include -.PP +.P .BI "FILE *open_wmemstream(wchar_t **" ptr ", size_t *" sizeloc ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR open_memstream (), .BR open_wmemstream (): .nf @@ -45,7 +45,7 @@ Initially, the buffer has a size of zero. After closing the stream, the caller should .BR free (3) this buffer. -.PP +.P The locations pointed to by .I ptr and @@ -61,13 +61,13 @@ These values remain valid only as long as the caller performs no further output on the stream. If further output is performed, then the stream must again be flushed before trying to access these values. -.PP +.P A null byte is maintained at the end of the buffer. This byte is .I not included in the size value stored at .IR sizeloc . -.PP +.P The stream maintains the notion of a current position, which is initially zero (the start of the buffer). Each write operation implicitly adjusts the buffer position. @@ -78,7 +78,7 @@ or Moving the buffer position past the end of the data already written fills the intervening space with null characters. -.PP +.P The .BR open_wmemstream () is similar to @@ -110,7 +110,6 @@ T{ .BR open_wmemstream () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/opendir.3 b/upstream/opensuse-tumbleweed/man3/opendir.3 index 4ecbd62f..9a558e4d 100644 --- a/upstream/opensuse-tumbleweed/man3/opendir.3 +++ b/upstream/opensuse-tumbleweed/man3/opendir.3 @@ -10,7 +10,7 @@ .\" Modified Sat Jul 24 18:46:01 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified 11 June 1995 by Andries Brouwer (aeb@cwi.nl) .\" 2007-07-30 Ulrich Drepper : document fdopendir(). -.TH opendir 3 2023-07-20 "Linux man-pages 6.05.01" +.TH opendir 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME opendir, fdopendir \- open a directory .SH LIBRARY @@ -20,16 +20,16 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "DIR *opendir(const char *" name ); .BI "DIR *fdopendir(int " fd ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR fdopendir (): .nf Since glibc 2.10: @@ -43,7 +43,7 @@ The function opens a directory stream corresponding to the directory \fIname\fP, and returns a pointer to the directory stream. The stream is positioned at the first entry in the directory. -.PP +.P The .BR fdopendir () function @@ -104,7 +104,6 @@ T{ .BR fdopendir () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH STANDARDS @@ -118,10 +117,10 @@ glibc 2.4. .SH NOTES Filename entries can be read from a directory stream using .BR readdir (3). -.PP +.P The underlying file descriptor of the directory stream can be obtained using .BR dirfd (3). -.PP +.P The .BR opendir () function sets the close-on-exec flag for the file descriptor underlying the diff --git a/upstream/opensuse-tumbleweed/man3/openpty.3 b/upstream/opensuse-tumbleweed/man3/openpty.3 index 9bdcb142..09eb223c 100644 --- a/upstream/opensuse-tumbleweed/man3/openpty.3 +++ b/upstream/opensuse-tumbleweed/man3/openpty.3 @@ -8,7 +8,7 @@ .\" .\" Added -lutil remark, 030718 .\" -.TH openpty 3 2023-07-20 "Linux man-pages 6.05.01" +.TH openpty 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME openpty, login_tty, forkpty \- terminal utility functions .SH LIBRARY @@ -17,16 +17,16 @@ System utilities library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int openpty(int *" amaster ", int *" aslave ", char *" name , .BI " const struct termios *" termp , .BI " const struct winsize *" winp ); .BI "pid_t forkpty(int *" amaster ", char *" name , .BI " const struct termios *" termp , .BI " const struct winsize *" winp ); -.PP +.P .B #include -.PP +.P .BI "int login_tty(int " fd ); .fi .SH DESCRIPTION @@ -50,7 +50,7 @@ If .I winp is not NULL, the window size of the slave will be set to the values in .IR winp . -.PP +.P The .BR login_tty () function prepares for a login on the terminal @@ -66,7 +66,7 @@ the controlling terminal for the calling process, setting to be the standard input, output, and error streams of the current process, and closing .IR fd . -.PP +.P The .BR forkpty () function combines @@ -112,14 +112,14 @@ fails if: .TP .B ENOENT There are no available terminals. -.PP +.P .BR login_tty () fails if .BR ioctl (2) fails to set .I fd to the controlling terminal of the calling process. -.PP +.P .BR forkpty () fails if either .BR openpty () @@ -146,7 +146,6 @@ T{ .BR login_tty () T} Thread safety MT-Unsafe race:ttyname .TE -.sp 1 .SH STANDARDS BSD. .SH HISTORY @@ -157,7 +156,7 @@ modifiers were added to the structure pointer arguments of and .BR forkpty () in glibc 2.8. -.PP +.P Before glibc 2.0.92, .BR openpty () returns file descriptors for a BSD pseudoterminal pair; diff --git a/upstream/opensuse-tumbleweed/man3/opts.3form b/upstream/opensuse-tumbleweed/man3/opts.3form index 7256495f..821f7d9f 100644 --- a/upstream/opensuse-tumbleweed/man3/opts.3form +++ b/upstream/opensuse-tumbleweed/man3/opts.3form @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_opts.3x,v 1.32 2023/11/25 13:58:47 tom Exp $ -.TH opts 3FORM 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: form_opts.3x,v 1.34 2024/03/16 15:35:01 tom Exp $ +.TH opts 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBset_form_opts\fP, \fBform_opts_on\fP, diff --git a/upstream/opensuse-tumbleweed/man3/opts.3menu b/upstream/opensuse-tumbleweed/man3/opts.3menu index 0d250d82..842bc6ff 100644 --- a/upstream/opensuse-tumbleweed/man3/opts.3menu +++ b/upstream/opensuse-tumbleweed/man3/opts.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2015,2016 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: menu_opts.3x,v 1.33 2023/11/25 13:58:47 tom Exp $ -.TH opts 3MENU 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: menu_opts.3x,v 1.35 2024/03/16 15:35:01 tom Exp $ +.TH opts 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBset_menu_opts\fP, \fBmenu_opts_on\fP, diff --git a/upstream/opensuse-tumbleweed/man3/outopts.3ncurses b/upstream/opensuse-tumbleweed/man3/outopts.3ncurses index fd04fb36..5d71bf9a 100644 --- a/upstream/opensuse-tumbleweed/man3/outopts.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/outopts.3ncurses @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_outopts.3x,v 1.56 2024/01/05 21:46:58 tom Exp $ -.TH outopts 3NCURSES 2024-01-05 "ncurses 6.4" "Library calls" +.\" $Id: curs_outopts.3x,v 1.64 2024/04/20 21:24:19 tom Exp $ +.TH outopts 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .de bP .ie n .IP \(bu 4 .el .IP \(bu 2 @@ -143,7 +143,7 @@ and \fBERR\fP upon failure. All other routines that return an integer always return \fBOK\fP. .PP -X/Open Curses does not define any error conditions. +X/Open Curses does not specify any error conditions. .PP In this implementation, .bP @@ -151,11 +151,8 @@ those functions that have a window pointer will return an error if the window pointer is null .bP \fBwsetscrreg\fP -returns an error if the scrolling region limits extend outside the window. -.PP -X/Open does not define any error conditions. -This implementation returns an error -if the window pointer is null. +returns an error if the scrolling region limits extend outside the +window boundaries. .SH NOTES Note that \fBclearok\fP, @@ -167,21 +164,7 @@ Note that The \fBimmedok\fP routine is useful for windows that are used as terminal emulators. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4. -.PP -From the outset, -\fI\%ncurses\fP used \fBnl\fP/\fBnonl\fP to control the conversion of -newlines to carriage return/line-feed on output as well as input. -XSI Curses documents only the use of these functions for input. -This difference arose from converting the \fIpcurses\fP source -(which used \fBioctl\fP calls with the \fBsgttyb\fP structure) -to termios (i.e., the POSIX terminal interface). -In the former, both input and output were controlled via a single -option \fBCRMOD\fP, -while the latter separates these features. -Because that conversion interferes with output optimization, -\fBnl\fP/\fBnonl\fP were amended after \fI\%ncurses\fP 6.2 -to eliminate their effect on output. +These functions are described in X/Open Curses, Issue 4. .PP Some historic curses implementations had, as an undocumented feature, the ability to do the equivalent of \fBclearok(..., 1)\fP by saying @@ -191,14 +174,21 @@ This will not work under \fI\%ncurses\fP. Earlier System V curses implementations specified that with \fBscrollok\fP enabled, any window modification triggering a scroll also forced a physical refresh. -XSI Curses does not require this, and \fI\%ncurses\fP avoids doing +X/Open Curses does not require this, and \fI\%ncurses\fP avoids doing it to perform better vertical-motion optimization at \fBwrefresh\fP time. .PP -The XSI Curses standard does not mention that the cursor should be +X/Open Curses does not mention that the cursor should be made invisible as a side-effect of \fBleaveok\fP. SVr4 curses documentation does this, but the code does not. Use \fBcurs_set\fP to make the cursor invisible. +.SH HISTORY +.I \%ncurses +formerly treated \fB\%nl\fP(3NCURSES) and \fB\%nonl\fP(3NCURSES) as both input +.I and +output options, +but no longer; +see \fB\%inopts\fP(3NCURSES). .SH SEE ALSO \fB\%ncurses\fP(3NCURSES), \fB\%addch\fP(3NCURSES), diff --git a/upstream/opensuse-tumbleweed/man3/overlay.3ncurses b/upstream/opensuse-tumbleweed/man3/overlay.3ncurses index 30ff6cc2..c4986b28 100644 --- a/upstream/opensuse-tumbleweed/man3/overlay.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/overlay.3ncurses @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_overlay.3x,v 1.39 2024/01/05 21:46:58 tom Exp $ -.TH overlay 3NCURSES 2024-01-05 "ncurses 6.4" "Library calls" +.\" $Id: curs_overlay.3x,v 1.43 2024/04/20 21:20:07 tom Exp $ +.TH overlay 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -88,7 +88,7 @@ if some part of the window would be placed off-screen. .SH NOTES Note that \fBoverlay\fP and \fBoverwrite\fP may be macros. .SH PORTABILITY -These functions are described in the XSI Curses standard, Issue 4, +These functions are described in X/Open Curses, Issue 4, which adds \fI\%const\fP qualifiers to the arguments. It further specifies their behavior in the presence of characters with multibyte renditions (not yet supported in this implementation). diff --git a/upstream/opensuse-tumbleweed/man3/pad.3ncurses b/upstream/opensuse-tumbleweed/man3/pad.3ncurses index 58ba43e2..a41c30ff 100644 --- a/upstream/opensuse-tumbleweed/man3/pad.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/pad.3ncurses @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_pad.3x,v 1.53 2024/01/05 21:46:58 tom Exp $ -.TH pad 3NCURSES 2024-01-05 "ncurses 6.4" "Library calls" +.\" $Id: curs_pad.3x,v 1.61 2024/04/27 17:55:43 tom Exp $ +.TH pad 3NCURSES 2024-04-27 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -57,88 +57,116 @@ create and display \fIcurses\fR pads \fB#include .PP \fBWINDOW *newpad(int \fInlines\fP, int \fIncols\fP); -\fBWINDOW *subpad(WINDOW *\fIorig\fP, int \fInlines\fP, int \fIncols\fP, +\fBWINDOW *subpad(WINDOW *\fIparent\fP, int \fInlines\fP, int \fIncols\fP, \fBint \fIbegin_y\fB, int \fIbegin_x\fB);\fR +.PP \fBint prefresh(WINDOW *\fIpad\fB, int \fIpminrow\fB, int \fIpmincol\fB,\fR \fBint \fIsminrow\fB, int \fIsmincol\fB, int \fIsmaxrow\fB, int \fIsmaxcol\fB);\fR \fBint pnoutrefresh(WINDOW *\fIpad\fB, int \fIpminrow\fB, int \fIpmincol\fB,\fR \fBint \fIsminrow\fB, int \fIsmincol\fB, int \fIsmaxrow\fB, int \fIsmaxcol\fB);\fR +.PP \fBint pechochar(WINDOW *\fIpad\fB, chtype \fIch\fB);\fR \fBint pecho_wchar(WINDOW *\fIpad\fB, const cchar_t *\fIwch\fB);\fR .fi .SH DESCRIPTION -.SS newpad -\fB\%newpad\fP creates and returns a pointer to a new pad data structure -with the given number of lines, -\fInlines\fP, -and columns, -\fIncols\fP. -A pad is like a window, +A +.I curses +.I pad +is like a window, except that it is not restricted by the screen size, and is not necessarily associated with a particular part of the screen. Pads can be used when a large window is needed, -and only a part of the window will be on the screen at one time. -Automatic refreshes of pads -(as from scrolling or echoing of input) -do not occur. +only part of which is to be visible on the screen. +Pads are not automatically refreshed by scrolling or input-echoing +operations. .PP -It is not valid to call \fB\%wrefresh\fP with a \fIpad\fP argument; -call \fB\%prefresh\fP or \fB\%pnoutrefresh\fP instead. -They require additional parameters to specify the part of the pad to be -displayed and the location on the screen to be used for the display. +Pads cannot be refreshed with \fB\%wrefresh\fP(3NCURSES); +use +.B \%prefresh +or +.B \%pnoutrefresh +instead. +.SS newpad +\fB\%newpad\fP creates and returns a pointer to a new pad data structure +with the given number of lines, +.IR nlines , +and columns, +.IR ncols . .SS subpad -The \fB\%subpad\fP routine creates and returns a pointer to a subwindow within a -pad with the given number of lines, \fInlines\fP, and columns, \fIncols\fP. -Unlike \fB\%subwin\fP, which uses screen coordinates, the window is at position -(\fIbegin\fR_\fIx\fB,\fR \fIbegin\fR_\fIy\fR) on the pad. -The window is -made in the middle of the window \fIorig\fP, so that changes made to one window -affect both windows. -During the use of this routine, it will often be -necessary to call \fB\%touchwin\fP or \fB\%touchline\fP on \fIorig\fP before -calling \fB\%prefresh\fP. +.B \%subpad +creates and returns a pointer to a subwindow within a pad +with the given number of lines, +.IR nlines , +and columns, +.IR ncols . +Unlike \fB\%subwin\fP(3NCURSES), +which uses screen coordinates, +the new pad is placed at position +.RI ( begin_y , +.IR begin_x ) +relative to its parent. +Thus, +changes made to one pad can affect both. +When operating on a subpad, +it is often necessary to call \fB\%touchwin\fP(3NCURSES) or +\fB\%touchline\fP(3NCURSES) on +.I parent +before calling +.BR \%prefresh . .SS "prefresh, pnoutrefresh" -The \fB\%prefresh\fP and \fB\%pnoutrefresh\fP routines are analogous to -\fB\%wrefresh\fP and \fB\%wnoutrefresh\fP except that they relate to pads instead -of windows. -The additional parameters are needed to indicate what part of the -pad and screen are involved. +.B \%prefresh\fP +and +.B \%pnoutrefresh +are analogous to \fB\%wrefresh\fP(3NCURSES) and \fB\%wnoutrefresh\fP(3NCURSES) +except that they operate on pads rather than windows. +They require additional parameters are needed to indicate what portions +of the pad and screen are involved. .bP -The \fIpminrow\fP and \fIpmincol\fP parameters specify the upper -left-hand corner of the rectangle to be displayed in the pad. +.I pminrow +and +.I pmincol +specify the upper left-hand corner of a rectangular view of the pad. .bP -The \fIsminrow\fP, -\fIsmincol\fP, \fIsmaxrow\fP, and \fIsmaxcol\fP -parameters specify the edges of the -rectangle to be displayed on the screen. +.IR sminrow , +.IR smincol , +.IR smaxrow , +and +.I smaxcol +specify the vertices of the rectangle to be displayed on the screen. .PP -The lower right-hand corner of the -rectangle to be displayed in the pad is calculated from the screen coordinates, +The lower right-hand corner +of the rectangle to be displayed in the pad +is calculated from the screen coordinates, since the rectangles must be the same size. -Both rectangles must be entirely -contained within their respective structures. -Negative values of -\fIpminrow\fP, \fIpmincol\fP, \fIsminrow\fP, or \fIsmincol\fP are treated as if -they were zero. +Both rectangles must be entirely contained +within their respective structures. +.I curses +treats +negative values of any of these parameters as zero. .SS pechochar -The \fB\%pechochar\fP routine is functionally equivalent -to a call to \fB\%addch\fP -followed by a call to \fB\%refresh\fP(3NCURSES), -a call to \fB\%waddch\fP followed by a call -to \fB\%wrefresh\fP, or a call to \fB\%waddch\fP followed by a call to -\fB\%prefresh\fP. -The knowledge that only a single character is being output is -taken into consideration and, for non-control characters, a considerable -performance gain might be seen by using these routines instead of their -equivalents. -In the case of \fB\%pechochar\fP, the last location of the pad on -the screen is reused for the arguments to \fB\%prefresh\fP. +.B \%pechochar +is functionally equivalent to calling \fB\%waddch\fP(3NCURSES) followed by +.BR \%prefresh . +It suggests to the +.I curses +optimizer that only a single character is being output; +a considerable performance benefit may be thus enjoyed. +The location of the character +.I ch +written to the pad is used to populate the arguments to +.BR \%prefresh . .SS pecho_wchar -The \fB\%pecho_wchar\fP function is the analogous wide-character -form of \fB\%pechochar\fP. -It outputs one character to a pad and immediately refreshes the pad. -It does this by a call to \fB\%wadd_wch\fP followed by a call -to \fB\%prefresh\fP. +.B \%pecho_wchar\fP +is functionally equivalent to calling \fB\%wadd_wch\fP(3NCURSES) followed by +.BR \%prefresh . +It suggests to the +.I curses +optimizer that only a single wide character is being output; +a considerable performance benefit may be thus enjoyed. +The location of the character +.I wch +written to the pad is used to populate the arguments to +.BR \%prefresh . .SH RETURN VALUE Functions that return an integer return \fBERR\fP upon failure and \fBOK\fP @@ -149,7 +177,7 @@ upon successful completion. Functions that return pointers return \fBNULL\fP on error, and set \fB\%errno\fP to \fB\%ENOMEM\fP. .PP -X/Open Curses does not define any error conditions. +X/Open Curses does not specify any error conditions. In this implementation .RS 3 .TP 5 @@ -190,7 +218,7 @@ and select text from the pad. .PP The two uses may be related. .PP -The XSI Curses standard, Issue 4 describes these functions, +X/Open Curses, Issue 4 describes these functions, without significant change from the SVr3 documentation. It describes no error conditions. The behavior of \fB\%subpad\fP if the parent window is not diff --git a/upstream/opensuse-tumbleweed/man3/page.3form b/upstream/opensuse-tumbleweed/man3/page.3form index cabe3f22..cbb95744 100644 --- a/upstream/opensuse-tumbleweed/man3/page.3form +++ b/upstream/opensuse-tumbleweed/man3/page.3form @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2016 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_page.3x,v 1.35 2023/12/16 20:32:22 tom Exp $ -.TH page 3FORM 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: form_page.3x,v 1.37 2024/03/16 15:35:01 tom Exp $ +.TH page 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBform_page\fP \- set and get form page number diff --git a/upstream/opensuse-tumbleweed/man3/panel.3ncurses b/upstream/opensuse-tumbleweed/man3/panel.3ncurses index 69e6a8c6..7c4349b7 100644 --- a/upstream/opensuse-tumbleweed/man3/panel.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/panel.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2016,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: panel.3x,v 1.61 2023/12/23 16:22:25 tom Exp $ -.TH panel 3NCURSES 2023-12-23 "ncurses 6.4" "Library calls" +.\" $Id: panel.3x,v 1.63 2024/03/16 15:35:01 tom Exp $ +.TH panel 3NCURSES 2024-03-16 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq diff --git a/upstream/opensuse-tumbleweed/man3/pattern.3menu b/upstream/opensuse-tumbleweed/man3/pattern.3menu index b38b90af..0c301f35 100644 --- a/upstream/opensuse-tumbleweed/man3/pattern.3menu +++ b/upstream/opensuse-tumbleweed/man3/pattern.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: menu_pattern.3x,v 1.36 2023/11/25 13:58:47 tom Exp $ -.TH pattern 3MENU 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: menu_pattern.3x,v 1.38 2024/03/16 15:35:01 tom Exp $ +.TH pattern 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBset_menu_pattern\fP, \fBmenu_pattern\fP \- diff --git a/upstream/opensuse-tumbleweed/man3/perror.3 b/upstream/opensuse-tumbleweed/man3/perror.3 index efb3e6f5..4ad088bd 100644 --- a/upstream/opensuse-tumbleweed/man3/perror.3 +++ b/upstream/opensuse-tumbleweed/man3/perror.3 @@ -10,7 +10,7 @@ .\" (msmith@falcon.mercer.peachnet.edu) and various other changes. .\" Modified 1996-05-16 by Martin Schulze (joey@infodrom.north.de) .\" -.TH perror 3 2023-07-20 "Linux man-pages 6.05.01" +.TH perror 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME perror \- print a system error message .SH LIBRARY @@ -19,22 +19,22 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void perror(const char *" s ); -.PP +.P .B #include -.PP +.P .BI "int " errno "; \fR/* Not really declared this way; see errno(3) */" -.PP +.P .BI "[[deprecated]] const char *const " sys_errlist []; .BI "[[deprecated]] int " sys_nerr ; .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .IR sys_errlist , .IR sys_nerr : .nf @@ -48,7 +48,7 @@ The .BR perror () function produces a message on standard error describing the last error encountered during a call to a system or library function. -.PP +.P First (if .I s is not NULL and @@ -59,10 +59,10 @@ is printed, followed by a colon and a blank. Then an error message corresponding to the current value of .I errno and a new-line. -.PP +.P To be of most use, the argument string should include the name of the function that incurred the error. -.PP +.P The global error list .IR sys_errlist "[]," which can be indexed by @@ -78,7 +78,7 @@ The use of is nowadays deprecated; use .BR strerror (3) instead. -.PP +.P When a system call fails, it usually returns \-1 and sets the variable .I errno @@ -113,7 +113,6 @@ T{ .BR perror () T} Thread safety MT-Safe race:stderr .TE -.sp 1 .SH STANDARDS .TP .I errno diff --git a/upstream/opensuse-tumbleweed/man3/popen.3 b/upstream/opensuse-tumbleweed/man3/popen.3 index 698fe283..9467e068 100644 --- a/upstream/opensuse-tumbleweed/man3/popen.3 +++ b/upstream/opensuse-tumbleweed/man3/popen.3 @@ -10,7 +10,7 @@ .\" Modified Sat May 18 20:37:44 1996 by Martin Schulze (joey@linux.de) .\" Modified 7 May 1998 by Joseph S. Myers (jsm28@cam.ac.uk) .\" -.TH popen 3 2023-07-20 "Linux man-pages 6.05.01" +.TH popen 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME popen, pclose \- pipe stream to or from a process .SH LIBRARY @@ -19,16 +19,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "FILE *popen(const char *" command ", const char *" type ); .BI "int pclose(FILE *" stream ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR popen (), .BR pclose (): .nf @@ -44,7 +44,7 @@ Since a pipe is by definition unidirectional, the .I type argument may specify only reading or writing, not both; the resulting stream is correspondingly read-only or write-only. -.PP +.P The .I command argument is a pointer to a null-terminated string containing a shell @@ -54,7 +54,7 @@ This command is passed to using the .B \-c flag; interpretation, if any, is performed by the shell. -.PP +.P The .I type argument is a pointer to a null-terminated string which must contain @@ -69,7 +69,7 @@ see the description of the flag in .BR open (2) for reasons why this may be useful. -.PP +.P The return value from .BR popen () is a normal standard I/O stream in all respects save that it must be closed @@ -85,11 +85,11 @@ Conversely, reading from the stream reads the command's standard output, and the command's standard input is the same as that of the process that called .BR popen (). -.PP +.P Note that output .BR popen () streams are block buffered by default. -.PP +.P The .BR pclose () function waits for the associated process to terminate and returns the exit @@ -105,7 +105,7 @@ or .BR pipe (2) calls fail, or if the function cannot allocate memory, NULL is returned. -.PP +.P .BR pclose (): on success, returns the exit status of the command; if .\" These conditions actually give undefined results, so I commented @@ -117,7 +117,7 @@ on success, returns the exit status of the command; if .BR wait4 (2) returns an error, or some other error is detected, \-1 is returned. -.PP +.P On failure, both functions set .I errno to indicate the error. @@ -140,7 +140,7 @@ argument is invalid, and this condition is detected, .I errno is set to .BR EINVAL . -.PP +.P If .BR pclose () cannot obtain the child status, @@ -162,7 +162,6 @@ T{ .BR pclose () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS The \[aq]e\[aq] value for .I type @@ -187,9 +186,9 @@ The latter can be avoided by calling .BR fflush (3) before .BR popen (). -.PP +.P Failure to execute the shell is indistinguishable from the shell's failure -to execute command, or an immediate exit of the command. +to execute the command, or an immediate exit of the command. The only hint is an exit status of 127. .\" .SH HISTORY .\" A diff --git a/upstream/opensuse-tumbleweed/man3/posix_fallocate.3 b/upstream/opensuse-tumbleweed/man3/posix_fallocate.3 index 1c5c1890..8736f74c 100644 --- a/upstream/opensuse-tumbleweed/man3/posix_fallocate.3 +++ b/upstream/opensuse-tumbleweed/man3/posix_fallocate.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH posix_fallocate 3 2023-07-20 "Linux man-pages 6.05.01" +.TH posix_fallocate 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME posix_fallocate \- allocate file space .SH LIBRARY @@ -12,16 +12,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int posix_fallocate(int " fd ", off_t " offset ", off_t " len ); .fi -.PP +.P .ad l .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR posix_fallocate (): .nf _POSIX_C_SOURCE >= 200112L @@ -41,7 +41,7 @@ After a successful call to .BR posix_fallocate (), subsequent writes to bytes in the specified range are guaranteed not to fail because of lack of disk space. -.PP +.P If the size of the file is less than .IR offset + len , then the file is increased to this size; @@ -109,13 +109,12 @@ T} Thread safety T{ MT-Safe (but see NOTES) T} .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY glibc 2.1.94. POSIX.1-2001 -.PP +.P POSIX.1-2008 says that an implementation .I shall give the @@ -165,7 +164,7 @@ or .B O_WRONLY flags, the function fails with the error .BR EBADF . -.PP +.P In general, the emulation is not MT-safe. On Linux, applications may use .BR fallocate (2) diff --git a/upstream/opensuse-tumbleweed/man3/posix_madvise.3 b/upstream/opensuse-tumbleweed/man3/posix_madvise.3 index 25ab37d1..383f4f56 100644 --- a/upstream/opensuse-tumbleweed/man3/posix_madvise.3 +++ b/upstream/opensuse-tumbleweed/man3/posix_madvise.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH posix_madvise 3 2023-03-30 "Linux man-pages 6.05.01" +.TH posix_madvise 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME posix_madvise \- give advice about patterns of memory usage .SH LIBRARY @@ -11,15 +11,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int posix_madvise(void " addr [. len "], size_t " len ", int " advice ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR posix_madvise (): .nf _POSIX_C_SOURCE >= 200112L @@ -37,7 +37,7 @@ The system is free to use this advice in order to improve the performance of memory accesses (or to ignore the advice altogether), but calling .BR posix_madvise () shall not affect the semantics of access to memory in the specified range. -.PP +.P The .I advice argument is one of the following: @@ -92,7 +92,7 @@ is 0. On Linux, specifying .I len as 0 is permitted (as a successful no-op). -.PP +.P In glibc, this function is implemented using .BR madvise (2). However, since glibc 2.6, diff --git a/upstream/opensuse-tumbleweed/man3/posix_memalign.3 b/upstream/opensuse-tumbleweed/man3/posix_memalign.3 index f0c1f6f0..e89e1f9f 100644 --- a/upstream/opensuse-tumbleweed/man3/posix_memalign.3 +++ b/upstream/opensuse-tumbleweed/man3/posix_memalign.3 @@ -7,7 +7,7 @@ .\" 2001-10-11, 2003-08-22, aeb, added some details .\" 2012-03-23, Michael Kerrisk .\" Document pvalloc() and aligned_alloc() -.TH posix_memalign 3 2023-07-20 "Linux man-pages 6.05.01" +.TH posix_memalign 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME posix_memalign, aligned_alloc, memalign, valloc, pvalloc \- allocate aligned memory @@ -17,32 +17,32 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int posix_memalign(void **" memptr ", size_t " alignment ", size_t " size ); .BI "void *aligned_alloc(size_t " alignment ", size_t " size ); .BI "[[deprecated]] void *valloc(size_t " size ); -.PP +.P .B #include -.PP +.P .BI "[[deprecated]] void *memalign(size_t " alignment ", size_t " size ); .BI "[[deprecated]] void *pvalloc(size_t " size ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR posix_memalign (): .nf _POSIX_C_SOURCE >= 200112L .fi -.PP +.P .BR aligned_alloc (): .nf _ISOC11_SOURCE .fi -.PP +.P .BR valloc (): .nf Since glibc 2.12: @@ -54,7 +54,6 @@ Feature Test Macro Requirements for glibc (see .\" || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED .fi .SH DESCRIPTION -The function .BR posix_memalign () allocates .I size @@ -74,7 +73,7 @@ the value placed in is either NULL .\" glibc does this: or a unique pointer value. -.PP +.P The obsolete function .BR memalign () allocates @@ -85,15 +84,14 @@ The memory address will be a multiple of which must be a power of two. .\" The behavior of memalign() for size==0 is as for posix_memalign() .\" but no standards govern this. -.PP -The function +.P .BR aligned_alloc () is the same as .BR memalign (), except for the added restriction that .I alignment must be a power of two. -.PP +.P The obsolete function .BR valloc () allocates @@ -102,14 +100,14 @@ bytes and returns a pointer to the allocated memory. The memory address will be a multiple of the page size. It is equivalent to .IR "memalign(sysconf(_SC_PAGESIZE),size)" . -.PP +.P The obsolete function .BR pvalloc () is similar to .BR valloc (), but rounds the size of the allocation up to the next multiple of the system page size. -.PP +.P For all of these functions, the memory is not zeroed. .SH RETURN VALUE .BR aligned_alloc (), @@ -120,7 +118,7 @@ and return a pointer to the allocated memory on success. On error, NULL is returned, and \fIerrno\fP is set to indicate the error. -.PP +.P .BR posix_memalign () returns zero on success, or one of the error values listed in the next section on failure. @@ -143,7 +141,7 @@ argument was not a power of two, or was not a multiple of .IR "sizeof(void\ *)" . .TP .B ENOMEM -There was insufficient memory to fulfill the allocation request. +Out of memory. .SH ATTRIBUTES For an explanation of the terms used in this section, see .BR attributes (7). @@ -166,7 +164,6 @@ T{ .BR pvalloc () T} Thread safety MT-Unsafe init .TE -.sp 1 .SH STANDARDS .TP .BR aligned_alloc () @@ -209,11 +206,11 @@ glibc 2.0. Everybody agrees that .BR posix_memalign () is declared in \fI\fP. -.PP +.P On some systems .BR memalign () is declared in \fI\fP instead of \fI\fP. -.PP +.P According to SUSv2, .BR valloc () is declared in \fI\fP. @@ -230,7 +227,7 @@ call that tells what alignment is needed. Now one can use .BR posix_memalign () to satisfy this requirement. -.PP +.P .BR posix_memalign () verifies that .I alignment @@ -239,7 +236,7 @@ matches the requirements detailed above. may not check that the .I alignment argument is correct. -.PP +.P POSIX requires that memory obtained from .BR posix_memalign () can be freed using @@ -267,7 +264,7 @@ The glibc implementation allows memory obtained from any of these functions to be reclaimed with .BR free (3). -.PP +.P The glibc .BR malloc (3) always returns 8-byte aligned memory addresses, so these functions are diff --git a/upstream/opensuse-tumbleweed/man3/posix_openpt.3 b/upstream/opensuse-tumbleweed/man3/posix_openpt.3 index 09733d0a..04abebec 100644 --- a/upstream/opensuse-tumbleweed/man3/posix_openpt.3 +++ b/upstream/opensuse-tumbleweed/man3/posix_openpt.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH posix_openpt 3 2023-07-20 "Linux man-pages 6.05.01" +.TH posix_openpt 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME posix_openpt \- open a pseudoterminal device .SH LIBRARY @@ -13,15 +13,15 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "int posix_openpt(int " flags ");" .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR posix_openpt (): .nf _XOPEN_SOURCE >= 600 @@ -31,7 +31,7 @@ The .BR posix_openpt () function opens an unused pseudoterminal master device, returning a file descriptor that can be used to refer to that device. -.PP +.P The .I flags argument is a bit mask that ORs together zero or more of @@ -68,20 +68,19 @@ T{ .BR posix_openpt () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY glibc 2.2.1. POSIX.1-2001. -.PP +.P It is part of the UNIX 98 pseudoterminal support (see .BR pts (4)). .SH NOTES Some older UNIX implementations that support System V (aka UNIX 98) pseudoterminals don't have this function, but it can be easily implemented by opening the pseudoterminal multiplexor device: -.PP +.P .in +4n .EX int @@ -91,7 +90,7 @@ posix_openpt(int flags) } .EE .in -.PP +.P Calling .BR posix_openpt () creates a pathname for the corresponding pseudoterminal slave device. diff --git a/upstream/opensuse-tumbleweed/man3/posix_spawn.3 b/upstream/opensuse-tumbleweed/man3/posix_spawn.3 index 32fa8b37..71a5b84c 100644 --- a/upstream/opensuse-tumbleweed/man3/posix_spawn.3 +++ b/upstream/opensuse-tumbleweed/man3/posix_spawn.3 @@ -8,7 +8,7 @@ .\" POSIX 1003.1-2004 documentation .\" (http://www.opengroup.org/onlinepubs/009695399) .\" -.TH posix_spawn 3 2023-05-03 "Linux man-pages 6.05.01" +.TH posix_spawn 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME posix_spawn, posix_spawnp \- spawn a process .SH LIBRARY @@ -17,7 +17,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int posix_spawn(pid_t *restrict " pid ", const char *restrict " path , .BI " const posix_spawn_file_actions_t *restrict " file_actions , .BI " const posix_spawnattr_t *restrict " attrp , @@ -42,7 +42,7 @@ to support the .BR fork (2) system call. These machines are generally small, embedded systems lacking MMU support. -.PP +.P The .BR posix_spawn () and @@ -60,7 +60,7 @@ and system calls. In fact, they provide only a subset of the functionality that can be achieved by using the system calls. -.PP +.P The only difference between .BR posix_spawn () and @@ -83,7 +83,7 @@ For the remainder of this page, the discussion is phrased in terms of with the understanding that .BR posix_spawnp () differs only on the point just described. -.PP +.P The remaining arguments to these two functions are as follows: .TP .I pid @@ -125,7 +125,7 @@ functions. specify the argument list and environment for the program that is executed in the child process, as for .BR execve (2). -.PP +.P Below, the functions are described in terms of a three-step process: the .BR fork () step, the @@ -149,20 +149,20 @@ Older implementations use or possibly .BR vfork (2) (see below). -.PP +.P The PID of the new child process is placed in .IR *pid . The .BR posix_spawn () function then returns control to the parent process. -.PP +.P Subsequently, the parent can use one of the system calls described in .BR wait (2) to check the status of the child process. If the child fails in any of the housekeeping steps described below, or fails to execute the desired file, it exits with a status of 127. -.PP +.P Before glibc 2.24, the child process is created using .BR vfork (2) instead of @@ -190,7 +190,7 @@ does \fInot\fP contain .BR POSIX_SPAWN_SETPGROUP , or .BR POSIX_SPAWN_RESETIDS . -.PP +.P In other words, .BR vfork (2) is used if the caller requests it, @@ -231,7 +231,7 @@ functions. File descriptors with the .B FD_CLOEXEC flag set are closed. -.PP +.P All process attributes in the child, other than those affected by attributes specified in the object pointed to by @@ -242,7 +242,7 @@ will be affected as though the child was created with .BR fork (2) and it executed the program with .BR execve (2). -.PP +.P The process attributes actions are defined by the attributes object pointed to by .IR attrp . @@ -253,7 +253,7 @@ attribute (set using controls the general actions that occur, and other attributes in the object specify values to be used during those actions. -.PP +.P The effects of the flags that may be specified in .I spawn-flags are as follows: @@ -325,7 +325,7 @@ attribute of the object pointed to by .I attrp (but see BUGS). -.PP +.P If the .B POSIX_SPAWN_SETSCHEDPARAM and @@ -387,7 +387,7 @@ feature test macro must be defined to obtain the definition of this constant. .\" http://austingroupbugs.net/view.php?id=1044 .\" and has been implemented since glibc 2.26 .\" commit daeb1fa2e1b33323e719015f5f546988bd4cc73b -.PP +.P If .I attrp is NULL, then the default behaviors described above for each flag apply. @@ -398,7 +398,7 @@ is NULL, then the default behaviors described above for each flag apply. .\" .I attrp .\" when you are done with it; .\" however, on Linux systems this operation is a no-op. -.PP +.P The .I file_actions argument specifies a sequence of file operations @@ -415,7 +415,7 @@ except those for which the .B FD_CLOEXEC flag has been set. File locks remain in place. -.PP +.P If .I file_actions is not NULL, then it contains an ordered set of requests to @@ -444,7 +444,7 @@ The requested operations are performed in the order they were added to .\" closed by the earlier operations .\" added to .\" .I file_actions . -.PP +.P If any of the housekeeping actions fails (due to bogus values being passed or other reasons why signal handling, process scheduling, process group ID functions, @@ -454,7 +454,7 @@ the child process exits with exit value 127. Once the child has successfully forked and performed all requested pre-exec steps, the child runs the requested executable. -.PP +.P The child process takes its environment from the .I envp argument, which is interpreted as if it had been passed to @@ -479,7 +479,7 @@ the contents of .I *pid are unspecified, and these functions return an error number as described below. -.PP +.P Even when these functions return a success status, the child process may still fail for a plethora of reasons related to its pre-\fBexec\fR() initialization. @@ -503,7 +503,7 @@ which will be one of the errors described for .BR vfork (2), or .BR clone (2). -.PP +.P In addition, these functions fail if: .TP .B ENOSYS @@ -537,7 +537,7 @@ only the POSIX-specified functions. (In other words, although these objects may be implemented as structures containing fields, portable programs must avoid dependence on such implementation details.) -.PP +.P According to POSIX, it is unspecified whether fork handlers established with .BR pthread_atfork (3) are called when @@ -548,7 +548,7 @@ Since glibc 2.24, the fork handlers are not executed in any case. On older implementations, fork handlers are called only if the child is created using .BR fork (2). -.PP +.P There is no "posix_fspawn" function (i.e., a function that is to .BR posix_spawn () as @@ -582,13 +582,13 @@ The program accepts command-line attributes that can be used to create file actions and attributes objects. The remaining command-line arguments are used as the executable name and command-line arguments of the program that is executed in the child. -.PP +.P In the first run, the .BR date (1) command is executed in the child, and the .BR posix_spawn () call employs no file actions or attributes objects. -.PP +.P .in +4n .EX $ \fB./a.out date\fP @@ -597,7 +597,7 @@ Tue Feb 1 19:47:50 CEST 2011 Child status: exited, status=0 .EE .in -.PP +.P In the next run, the .I \-c command-line option is used to create a file actions object that closes @@ -605,7 +605,7 @@ standard output in the child. Consequently, .BR date (1) fails when trying to perform output and exits with a status of 1. -.PP +.P .in +4n .EX $ \fB./a.out \-c date\fP @@ -614,7 +614,7 @@ date: write error: Bad file descriptor Child status: exited, status=1 .EE .in -.PP +.P In the next run, the .I \-s command-line option is used to create an attributes object that @@ -629,24 +629,24 @@ Therefore, to kill the child, is necessary .RB ( SIGKILL can't be blocked). -.PP +.P .in +4n .EX $ \fB./a.out \-s sleep 60 &\fP [1] 7637 $ PID of child: 7638 -.PP +.P $ \fBkill 7638\fP $ \fBkill \-KILL 7638\fP $ Child status: killed by signal 9 [1]+ Done ./a.out \-s sleep 60 .EE .in -.PP +.P When we try to execute a nonexistent command in the child, the .BR exec (3) fails and the child exits with a status of 127. -.PP +.P .in +4n .EX $ \fB./a.out xxxxx diff --git a/upstream/opensuse-tumbleweed/man3/post.3form b/upstream/opensuse-tumbleweed/man3/post.3form index 9243e060..cbe4b3f6 100644 --- a/upstream/opensuse-tumbleweed/man3/post.3form +++ b/upstream/opensuse-tumbleweed/man3/post.3form @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2015,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_post.3x,v 1.31 2023/11/25 13:58:47 tom Exp $ -.TH post 3FORM 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: form_post.3x,v 1.33 2024/03/16 15:35:01 tom Exp $ +.TH post 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBpost_form\fP, \fBunpost_form\fP \- diff --git a/upstream/opensuse-tumbleweed/man3/post.3menu b/upstream/opensuse-tumbleweed/man3/post.3menu index be44434f..89269336 100644 --- a/upstream/opensuse-tumbleweed/man3/post.3menu +++ b/upstream/opensuse-tumbleweed/man3/post.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2016,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: menu_post.3x,v 1.34 2023/11/25 13:58:47 tom Exp $ -.TH post 3MENU 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: menu_post.3x,v 1.36 2024/03/16 15:35:01 tom Exp $ +.TH post 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBpost_menu\fP, \fBunpost_menu\fP \- diff --git a/upstream/opensuse-tumbleweed/man3/pow.3 b/upstream/opensuse-tumbleweed/man3/pow.3 index 3f0be5cc..6c252cda 100644 --- a/upstream/opensuse-tumbleweed/man3/pow.3 +++ b/upstream/opensuse-tumbleweed/man3/pow.3 @@ -13,7 +13,7 @@ .\" Modified 1995-08-14 by Arnt Gulbrandsen .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) -.TH pow 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pow 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pow, powf, powl \- power functions .SH LIBRARY @@ -22,17 +22,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double pow(double " x ", double " y ); .BI "float powf(float " x ", float " y ); .BI "long double powl(long double " x ", long double " y ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR powf (), .BR powl (): .nf @@ -51,7 +51,7 @@ On success, these functions return the value of .I x to the power of .IR y . -.PP +.P If the result overflows, a range error occurs, .\" The range error is generated at least as far back as glibc 2.4 @@ -61,14 +61,14 @@ and the functions return or .BR HUGE_VALL , respectively, with the mathematically correct sign. -.PP +.P If result underflows, and is not representable, a range error occurs, and 0.0 with the appropriate sign is returned. .\" POSIX.1 does not specify the sign of the zero, .\" but https://www.sourceware.org/bugzilla/show_bug.cgi?id=2678 .\" points out that the zero has the wrong sign in some cases. -.PP +.P .\" pow(\(+-0, <0 [[odd]]) = HUGE_VAL* If .I x @@ -84,7 +84,7 @@ or is returned, with the same sign as .IR x . -.PP +.P .\" pow(\(+-0, <0 [[!odd]]) = HUGE_VAL* If .I x @@ -99,7 +99,7 @@ a pole error occurs and or .RB + HUGE_VALL , is returned. -.PP +.P .\" pow(\(+-0, >0 [[odd]]) = \(+-0 If .I x @@ -108,7 +108,7 @@ and .I y is an odd integer greater than 0, the result is +0 (\-0). -.PP +.P .\" pow(\(+-0, >0 [[!odd]]) = +0 If .I x @@ -117,7 +117,7 @@ and .I y greater than 0 and not an odd integer, the result is +0. -.PP +.P .\" pow(-1, \(+-INFINITY) = 1.0 If .I x @@ -126,21 +126,21 @@ and .I y is positive infinity or negative infinity, the result is 1.0. -.PP +.P .\" pow(+1, y) = 1.0 If .I x is +1, the result is 1.0 (even if .I y is a NaN). -.PP +.P .\" pow(x, \(+-0) = 1.0 If .I y is 0, the result is 1.0 (even if .I x is a NaN). -.PP +.P .\" pow(<0, y) = NaN If .I x @@ -149,7 +149,7 @@ is a finite value less than 0, and is a finite noninteger, a domain error occurs, .\" The domain error is generated at least as far back as glibc 2.4 and a NaN is returned. -.PP +.P .\" pow(|x|<1, -INFINITY) = INFINITY If the absolute value of .I x @@ -158,7 +158,7 @@ and .I y is negative infinity, the result is positive infinity. -.PP +.P .\" pow(|x|>1, -INFINITY) = +0 If the absolute value of .I x @@ -167,7 +167,7 @@ and .I y is negative infinity, the result is +0. -.PP +.P .\" pow(|x|<1, INFINITY) = +0 If the absolute value of .I x @@ -176,7 +176,7 @@ and .I y is positive infinity, the result is +0. -.PP +.P .\" pow(|x|>1, INFINITY) = INFINITY If the absolute value of .I x @@ -185,7 +185,7 @@ and .I y is positive infinity, the result is positive infinity. -.PP +.P .\" pow(-INFINITY, <0 [[odd]]) = -0 If .I x @@ -194,7 +194,7 @@ and .I y is an odd integer less than 0, the result is \-0. -.PP +.P .\" pow(-INFINITY, <0 [[!odd]]) = +0 If .I x @@ -203,7 +203,7 @@ and .I y less than 0 and not an odd integer, the result is +0. -.PP +.P .\" pow(-INFINITY, >0 [[odd]]) = -INFINITY If .I x @@ -212,7 +212,7 @@ and .I y is an odd integer greater than 0, the result is negative infinity. -.PP +.P .\" pow(-INFINITY, >0 [[!odd]]) = INFINITY If .I x @@ -221,7 +221,7 @@ and .I y greater than 0 and not an odd integer, the result is positive infinity. -.PP +.P .\" pow(INFINITY, <0) = +0 If .I x @@ -230,7 +230,7 @@ and .I y less than 0, the result is +0. -.PP +.P .\" pow(INFINITY, >0) = INFINITY If .I x @@ -239,7 +239,7 @@ and .I y greater than 0, the result is positive infinity. -.PP +.P .\" pow(NaN, y) or pow(x, NaN) = NaN Except as specified above, if .I x @@ -271,7 +271,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP is negative, and \fIy\fP is a finite noninteger @@ -322,12 +322,11 @@ T{ .BR powl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to @@ -349,13 +348,13 @@ nor This problem was fixed .\" commit c3d466cba1692708a19c6ff829d0386c83a0c6e5 in glibc 2.28. -.PP +.P A number of bugs .\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=3866 in the glibc implementation of .BR pow () were fixed in glibc 2.16. -.PP +.P In glibc 2.9 and earlier, .\" .\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=6776 @@ -369,7 +368,7 @@ Since glibc 2.10, .\" or possibly 2.9, I haven't found the source code change .\" and I don't have a 2.9 system to test glibc does the right thing. -.PP +.P In glibc 2.3.2 and earlier, .\" Actually, glibc 2.3.2 is the earliest test result I have; so yet .\" to confirm if this error occurs only in glibc 2.3.2. diff --git a/upstream/opensuse-tumbleweed/man3/pow10.3 b/upstream/opensuse-tumbleweed/man3/pow10.3 index bbbac22a..b8c9bc65 100644 --- a/upstream/opensuse-tumbleweed/man3/pow10.3 +++ b/upstream/opensuse-tumbleweed/man3/pow10.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pow10 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pow10 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pow10, pow10f, pow10l \- base-10 power functions .SH LIBRARY @@ -13,7 +13,7 @@ Math library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "double pow10(double " x ); .BI "float pow10f(float " x ); .BI "long double pow10l(long double " x ); @@ -21,7 +21,7 @@ Math library .SH DESCRIPTION These functions return the value of 10 raised to the power .IR x . -.PP +.P .BR "Note well" : These functions perform exactly the same task as the functions described in .BR exp10 (3), @@ -45,7 +45,6 @@ T{ .BR pow10l () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH VERSIONS diff --git a/upstream/opensuse-tumbleweed/man3/powerof2.3 b/upstream/opensuse-tumbleweed/man3/powerof2.3 index fae024f1..c6e82d47 100644 --- a/upstream/opensuse-tumbleweed/man3/powerof2.3 +++ b/upstream/opensuse-tumbleweed/man3/powerof2.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH powerof2 3 2023-03-30 "Linux man-pages 6.05.01" +.TH powerof2 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME powerof2 \- test if a value is a power of 2 .SH LIBRARY @@ -11,7 +11,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int powerof2(" x ); .fi .SH DESCRIPTION @@ -19,7 +19,7 @@ This macro returns true if .I x is a power of 2, and false otherwise. -.PP +.P .B 0 is considered a power of 2. This can make sense considering wrapping of unsigned integers, @@ -34,7 +34,7 @@ respectively. BSD. .SH CAVEATS The arguments may be evaluated more than once. -.PP +.P Because this macro is implemented using bitwise operations, some negative values can invoke undefined behavior. For example, diff --git a/upstream/opensuse-tumbleweed/man3/print.3ncurses b/upstream/opensuse-tumbleweed/man3/print.3ncurses index 32605612..5da434d3 100644 --- a/upstream/opensuse-tumbleweed/man3/print.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/print.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_print.3x,v 1.36 2023/12/23 16:36:18 tom Exp $ -.TH print 3NCURSES 2023-12-23 "ncurses 6.4" "Library calls" +.\" $Id: curs_print.3x,v 1.38 2024/03/16 15:35:01 tom Exp $ +.TH print 3NCURSES 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fB\%mcprint\fP \- write binary data to printer using \fIterminfo\fR capabilities diff --git a/upstream/opensuse-tumbleweed/man3/printf.3 b/upstream/opensuse-tumbleweed/man3/printf.3 index edd6ba85..7023e2d1 100644 --- a/upstream/opensuse-tumbleweed/man3/printf.3 +++ b/upstream/opensuse-tumbleweed/man3/printf.3 @@ -13,7 +13,7 @@ .\" 2000-07-26 jsm28@hermes.cam.ac.uk - three small fixes .\" 2000-10-16 jsm28@hermes.cam.ac.uk - more fixes .\" -.TH printf 3 2023-07-20 "Linux man-pages 6.05.01" +.TH printf 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME printf, fprintf, dprintf, sprintf, snprintf, vprintf, vfprintf, vdprintf, vsprintf, vsnprintf \- formatted output conversion @@ -23,7 +23,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int printf(const char *restrict " format ", ...);" .BI "int fprintf(FILE *restrict " stream , .BI " const char *restrict " format ", ...);" @@ -33,7 +33,7 @@ Standard C library .BI " const char *restrict " format ", ...);" .BI "int snprintf(char " str "[restrict ." size "], size_t " size , .BI " const char *restrict " format ", ...);" -.PP +.P .BI "int vprintf(const char *restrict " format ", va_list " ap ); .BI "int vfprintf(FILE *restrict " stream , .BI " const char *restrict " format ", va_list " ap ); @@ -44,19 +44,19 @@ Standard C library .BI "int vsnprintf(char " str "[restrict ." size "], size_t " size , .BI " const char *restrict " format ", va_list " ap ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR snprintf (), .BR vsnprintf (): .nf _XOPEN_SOURCE >= 500 || _ISOC99_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE .fi -.PP +.P .BR dprintf (), .BR vdprintf (): .nf @@ -90,7 +90,7 @@ and .BR vsnprintf () write to the character string .IR str . -.PP +.P The function .BR dprintf () is the same as @@ -100,7 +100,7 @@ except that it outputs to a file descriptor, instead of to a .BR stdio (3) stream. -.PP +.P The functions .BR snprintf () and @@ -109,7 +109,7 @@ write at most .I size bytes (including the terminating null byte (\[aq]\e0\[aq])) to .IR str . -.PP +.P The functions .BR vprintf (), .BR vfprintf (), @@ -135,14 +135,14 @@ macro, the value of is undefined after the call. See .BR stdarg (3). -.PP +.P All of these functions write the output under the control of a .I format string that specifies how subsequent arguments (or arguments accessed via the variable-length argument facilities of .BR stdarg (3)) are converted for output. -.PP +.P C99 and POSIX.1-2001 specify that the results are undefined if a call to .BR sprintf (), .BR snprintf (), @@ -152,7 +152,7 @@ or would cause copying to take place between objects that overlap (e.g., if the target string array and one of the supplied input arguments refer to the same buffer). -See NOTES. +See CAVEATS. .SS Format of the format string The format string is a character string, beginning and ending in its initial shift state, if any. @@ -175,15 +175,15 @@ an optional .I precision and an optional .IR "length modifier" . -.PP +.P The overall syntax of a conversion specification is: -.PP +.P .in +4n .nf %[$][flags][width][.precision][length modifier]conversion .fi .in -.PP +.P The arguments must correspond properly (after type promotion) with the conversion specifier. By default, the arguments are used in the order @@ -200,21 +200,21 @@ where the decimal integer \fIm\fP denotes the position in the argument list of the desired argument, indexed starting from 1. Thus, -.PP +.P .in +4n .EX printf("%*d", width, num); .EE .in -.PP +.P and -.PP +.P .in +4n .EX printf("%2$*1$d", width, num); .EE .in -.PP +.P are equivalent. The second style allows repeated references to the same argument. @@ -228,7 +228,7 @@ There may be no gaps in the numbers of arguments specified using \[aq]$\[aq]; for example, if arguments 1 and 3 are specified, argument 2 must also be specified somewhere in the format string. -.PP +.P For some numeric conversions a radix character ("decimal point") or thousands' grouping character is used. The actual character used @@ -240,13 +240,13 @@ part of the locale. The POSIX locale uses \[aq].\[aq] as radix character, and does not have a grouping character. Thus, -.PP +.P .in +4n .EX printf("%\[aq].2f", 1234567.89); .EE .in -.PP +.P results in "1234567.89" in the POSIX locale, in "1234567,89" in the nl_NL locale, and in "1.234.567,89" in the da_DK locale. .SS Flag characters @@ -359,7 +359,7 @@ By default, a sign is used only for negative numbers. A .B + overrides a space if both are used. -.PP +.P The five flag characters above are defined in the C99 standard. The Single UNIX Specification specifies one further flag character. .TP @@ -386,7 +386,7 @@ whose locale information indicates no thousands' grouping character. Therefore, without a prior call to .BR setlocale (3), no thousands' grouping characters will be printed. -.PP +.P glibc 2.2 adds one further flag character. .TP .B I @@ -585,7 +585,7 @@ argument, or a following conversion corresponds to a pointer to a .I ptrdiff_t argument. -.PP +.P SUSv3 specifies all of the above, except for those modifiers explicitly noted as being nonstandard extensions. SUSv2 specified only the length modifiers @@ -616,7 +616,7 @@ and .BR Lf , .BR Lg , .BR LG ). -.PP +.P As a nonstandard extension, the GNU implementations treats .B ll and @@ -875,9 +875,9 @@ No argument is converted. The complete conversion specification is \[aq]%%\[aq]. .SH RETURN VALUE -Upon successful return, these functions return the number of characters +Upon successful return, these functions return the number of bytes printed (excluding the null byte used to end output to strings). -.PP +.P The functions .BR snprintf () and @@ -892,8 +892,8 @@ had been available. Thus, a return value of .I size or more means that the output was truncated. -(See also below under NOTES.) -.PP +(See also below under CAVEATS.) +.P If an output error is encountered, a negative value is returned. .SH ATTRIBUTES For an explanation of the terms used in this section, see @@ -916,7 +916,6 @@ T{ .BR vsnprintf () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS .TP .BR fprintf () @@ -980,7 +979,7 @@ with C99. .TQ .BR vdprintf () GNU, POSIX.1-2008. -.PP +.P .\" Linux libc4 knows about the five C standard flags. .\" It knows about the length modifiers \fBh\fP, \fBl\fP, \fBL\fP, .\" and the conversions @@ -994,7 +993,7 @@ GNU, POSIX.1-2008. .\" support for \fB%D\fP disappeared.) .\" No locale-dependent radix character, .\" no thousands' separator, no NaN or infinity, no "%m$" and "*m$". -.\" .PP +.\" .P .\" Linux libc5 knows about the five C standard flags and the \[aq] flag, .\" locale, "%m$" and "*m$". .\" It knows about the length modifiers \fBh\fP, \fBl\fP, \fBL\fP, @@ -1005,15 +1004,15 @@ GNU, POSIX.1-2008. .\" .BR m , .\" which outputs .\" .IR strerror(errno) . -.\" .PP +.\" .P .\" glibc 2.0 adds conversion characters \fBC\fP and \fBS\fP. -.\" .PP +.\" .P glibc 2.1 adds length modifiers \fBhh\fP, \fBj\fP, \fBt\fP, and \fBz\fP and conversion characters \fBa\fP and \fBA\fP. -.PP +.P glibc 2.2 adds the conversion character \fBF\fP with C99 semantics, and the flag character \fBI\fP. -.PP +.P glibc 2.35 gives a meaning to the alternate form .RB ( # ) of the @@ -1022,13 +1021,13 @@ conversion specifier, that is .IR %#m . .SH CAVEATS Some programs imprudently rely on code such as the following -.PP +.P .in +4n .EX sprintf(buf, "%s some further text", buf); .EE .in -.PP +.P to append text to .IR buf . However, the standards explicitly note that the results are undefined @@ -1044,7 +1043,7 @@ Depending on the version of used, and the compiler options employed, calls such as the above will .B not produce the expected results. -.PP +.P The glibc implementation of the functions .BR snprintf () and @@ -1103,7 +1102,7 @@ instead (or .BR asprintf (3) and .BR vasprintf (3)). -.\" .PP +.\" .P .\" Linux libc4.[45] does not have a .\" .BR snprintf (), .\" but provides a libbsd that contains an @@ -1116,7 +1115,7 @@ and .\" Thus, the use of .\" .BR snprintf () .\" with early libc4 leads to serious security problems. -.PP +.P Code such as .BI printf( foo ); often indicates a bug, since @@ -1127,14 +1126,14 @@ If comes from untrusted user input, it may contain \fB%n\fP, causing the .BR printf () call to write to memory and creating a security hole. -.\" .PP +.\" .P .\" Some floating-point conversions under early libc4 .\" caused memory leaks. .SH EXAMPLES To print .I Pi to five decimal places: -.PP +.P .in +4n .EX #include @@ -1142,14 +1141,14 @@ to five decimal places: fprintf(stdout, "pi = %.5f\en", 4 * atan(1.0)); .EE .in -.PP +.P To print a date and time in the form "Sunday, July 3, 10:02", where .I weekday and .I month are pointers to strings: -.PP +.P .in +4n .EX #include @@ -1157,11 +1156,11 @@ fprintf(stdout, "%s, %s %d, %.2d:%.2d\en", weekday, month, day, hour, min); .EE .in -.PP +.P Many countries use the day-month-year order. Hence, an internationalized version must be able to print the arguments in an order specified by the format: -.PP +.P .in +4n .EX #include @@ -1169,23 +1168,23 @@ fprintf(stdout, format, weekday, month, day, hour, min); .EE .in -.PP +.P where .I format depends on locale, and may permute the arguments. With the value: -.PP +.P .in +4n .EX "%1$s, %3$d. %2$s, %4$d:%5$.2d\en" .EE .in -.PP +.P one might obtain "Sonntag, 3. Juli, 10:02". -.PP +.P To allocate a sufficiently large string and print into it (code correct for both glibc 2.0 and glibc 2.1): -.PP +.P .EX #include #include @@ -1225,7 +1224,7 @@ make_message(const char *fmt, ...) return p; } .EE -.PP +.P If truncation occurs in glibc versions prior to glibc 2.0.6, this is treated as an error instead of being handled gracefully. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/printw.3ncurses b/upstream/opensuse-tumbleweed/man3/printw.3ncurses index c25762f9..cd320345 100644 --- a/upstream/opensuse-tumbleweed/man3/printw.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/printw.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_printw.3x,v 1.47 2023/12/23 14:41:07 tom Exp $ -.TH printw 3NCURSES 2023-12-23 "ncurses 6.4" "Library calls" +.\" $Id: curs_printw.3x,v 1.53 2024/04/20 19:18:18 tom Exp $ +.TH printw 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -96,16 +96,18 @@ upon failure and upon success. .PP In -.I \%ncurses, +.IR \%ncurses , failure occurs if the library cannot allocate enough memory for the buffer into which the output is formatted, or if the window pointer .I win is null. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement -using \fB\%wmove\fP, -and fail if the position is outside the window. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES No wide character counterpart functions are defined by the \*(``wide\*('' @@ -116,7 +118,8 @@ To format and write a wide-character string to a window, consider using \fI\%swprintf\fP(3) and \fB\%waddwstr\fP(3NCURSES) or similar. .SH PORTABILITY -X/Open Curses, Issue 4, describes these functions. +X/Open Curses, +Issue 4 describes these functions. It specifies no error conditions for them. .PP .I \%ncurses @@ -125,7 +128,8 @@ legacy applications. However, the latter is obsolete. .bP -X/Open Curses, Issue 4, Version 2 (1996), +X/Open Curses, +Issue 4 Version 2 (1996), marked \fB\%vwprintw\fP as requiring \fI\%varargs.h\fP and \*(``TO BE WITHDRAWN\*('', and specified \fB\%vw_printw\fP using the \fI\%stdarg.h\fP interface. @@ -160,7 +164,7 @@ In 1991 and after the C standard was published), other developers updated the library, using \fI\%stdarg.h\fP internally in 4.4BSD -.I curses. +.IR curses . Even with this improvement, BSD .I curses diff --git a/upstream/opensuse-tumbleweed/man3/profil.3 b/upstream/opensuse-tumbleweed/man3/profil.3 index caa5f489..d4773c30 100644 --- a/upstream/opensuse-tumbleweed/man3/profil.3 +++ b/upstream/opensuse-tumbleweed/man3/profil.3 @@ -6,7 +6,7 @@ .\" Modified Fri Jun 23 01:35:19 1995 Andries Brouwer .\" (prompted by Bas V. de Bakker ) .\" Corrected (and moved to man3), 980612, aeb -.TH profil 3 2023-07-20 "Linux man-pages 6.05.01" +.TH profil 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME profil \- execution time profile .SH LIBRARY @@ -15,16 +15,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int profil(unsigned short *" buf ", size_t " bufsiz , .BI " size_t " offset ", unsigned int " scale ); -.PP +.P .fi .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR profil (): .nf Since glibc 2.21: @@ -73,7 +73,6 @@ T{ .BR profil () T} Thread safety MT-Unsafe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY @@ -84,7 +83,7 @@ cannot be used on a program that also uses .B ITIMER_PROF interval timers (see .BR setitimer (2)). -.PP +.P True kernel profiling provides more accurate results. .\" Libc 4.4 contained a kernel patch providing a system call profil. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/program_invocation_name.3 b/upstream/opensuse-tumbleweed/man3/program_invocation_name.3 index 79bd2f77..874420dd 100644 --- a/upstream/opensuse-tumbleweed/man3/program_invocation_name.3 +++ b/upstream/opensuse-tumbleweed/man3/program_invocation_name.3 @@ -21,7 +21,7 @@ .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. .\" %%%LICENSE_END .\" -.TH program_invocation_name 3 2023-03-30 "Linux man-pages 6.05.01" +.TH program_invocation_name 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME program_invocation_name, program_invocation_short_name \- \ obtain name used to invoke calling program @@ -32,7 +32,7 @@ Standard C library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "extern char *" program_invocation_name ; .BI "extern char *" program_invocation_short_name ; .fi @@ -46,14 +46,14 @@ in with the difference that the scope of .I program_invocation_name is global. -.PP +.P .I program_invocation_short_name contains the basename component of name that was used to invoke the calling program. That is, it is the same value as .IR program_invocation_name , with all text up to and including the final slash (/), if any, removed. -.PP +.P These variables are automatically initialized by the glibc run-time startup code. .SH VERSIONS diff --git a/upstream/opensuse-tumbleweed/man3/psignal.3 b/upstream/opensuse-tumbleweed/man3/psignal.3 index e9c97280..b453ae77 100644 --- a/upstream/opensuse-tumbleweed/man3/psignal.3 +++ b/upstream/opensuse-tumbleweed/man3/psignal.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 18:45:17 1993 by Rik Faith (faith@cs.unc.edu) -.TH psignal 3 2023-07-20 "Linux man-pages 6.05.01" +.TH psignal 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME psignal, psiginfo \- print signal description .SH LIBRARY @@ -17,16 +17,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void psignal(int " sig ", const char *" s ); .BI "void psiginfo(const siginfo_t *" pinfo ", const char *" s ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR psignal (): .nf Since glibc 2.19: @@ -34,7 +34,7 @@ Feature Test Macro Requirements for glibc (see glibc 2.19 and earlier: _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR psiginfo (): .nf _POSIX_C_SOURCE >= 200809L @@ -48,7 +48,7 @@ describing the signal number \fIsig\fP, and a trailing newline. If the string \fIs\fP is NULL or empty, the colon and space are omitted. If \fIsig\fP is invalid, the message displayed will indicate an unknown signal. -.PP +.P The .BR psiginfo () function is like @@ -90,7 +90,6 @@ T{ .BR psiginfo () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/pthread_atfork.3 b/upstream/opensuse-tumbleweed/man3/pthread_atfork.3 index 1bcfc7e4..a5844ab3 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_atfork.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_atfork.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_atfork 3 2023-03-30 "Linux man-pages 6.05.01" +.TH pthread_atfork 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_atfork \- register fork handlers .SH LIBRARY @@ -11,7 +11,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_atfork(void (*" prepare ")(void), void (*" parent ")(void)," .BI " void (*" child ")(void));" .fi @@ -23,7 +23,7 @@ function registers fork handlers that are to be executed when is called by any thread in a process. The handlers are executed in the context of the thread that calls .BR fork (2). -.PP +.P Three kinds of handler can be registered: .IP \[bu] 3 .I prepare @@ -40,7 +40,7 @@ processing completes. specifies a handler that is executed in the child process after .BR fork (2) processing completes. -.PP +.P Any of the three arguments may be NULL if no handler is needed in the corresponding phase of .BR fork (2) @@ -88,7 +88,7 @@ was to provide a mechanism whereby the application (or a library) could ensure that mutexes and other process and thread state would be restored to a consistent state. In practice, this task is generally too difficult to be practicable. -.PP +.P After a .BR fork (2) in a multithreaded process returns in the child, @@ -97,7 +97,7 @@ the child should call only async-signal-safe functions (see until such time as it calls .BR execve (2) to execute a new program. -.PP +.P POSIX.1 specifies that .BR pthread_atfork () shall not fail with the error diff --git a/upstream/opensuse-tumbleweed/man3/pthread_attr_init.3 b/upstream/opensuse-tumbleweed/man3/pthread_attr_init.3 index 8792ab4c..0cb3a5a3 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_attr_init.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_attr_init.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_attr_init 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_attr_init 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_attr_init, pthread_attr_destroy \- initialize and destroy thread attributes object @@ -14,7 +14,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_attr_init(pthread_attr_t *" attr ); .BI "int pthread_attr_destroy(pthread_attr_t *" attr ); .fi @@ -29,19 +29,19 @@ using various related functions (listed under SEE ALSO), and then the object can be used in one or more .BR pthread_create (3) calls that create threads. -.PP +.P Calling .BR pthread_attr_init () on a thread attributes object that has already been initialized results in undefined behavior. -.PP +.P When a thread attributes object is no longer required, it should be destroyed using the .BR pthread_attr_destroy () function. Destroying a thread attributes object has no effect on threads that were created using that object. -.PP +.P Once a thread attributes object has been destroyed, it can be reinitialized using .BR pthread_attr_init (). @@ -73,7 +73,6 @@ T{ .BR pthread_attr_destroy () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -93,7 +92,7 @@ Once created, the thread uses the .BR pthread_getattr_np (3) function (a nonstandard GNU extension) to retrieve the thread's attributes, and then displays those attributes. -.PP +.P If the program is run with no command-line argument, then it passes NULL as the .I attr @@ -102,7 +101,7 @@ argument of so that the thread is created with default attributes. Running the program on Linux/x86-32 with the NPTL threading implementation, we see the following: -.PP +.P .in +4n .EX .\" Results from glibc 2.8, SUSE 11.0; Oct 2008 @@ -120,7 +119,7 @@ Thread attributes: Stack size = 0x201000 bytes .EE .in -.PP +.P When we supply a stack size as a command-line argument, the program initializes a thread attributes object, sets various attributes in that object, @@ -128,7 +127,7 @@ and passes a pointer to the object in the call to .BR pthread_create (3). Running the program on Linux/x86-32 with the NPTL threading implementation, we see the following: -.PP +.P .in +4n .EX .\" Results from glibc 2.8, SUSE 11.0; Oct 2008 diff --git a/upstream/opensuse-tumbleweed/man3/pthread_attr_setaffinity_np.3 b/upstream/opensuse-tumbleweed/man3/pthread_attr_setaffinity_np.3 index 923ee0ba..a7d104a3 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_attr_setaffinity_np.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_attr_setaffinity_np.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_attr_setaffinity_np 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_attr_setaffinity_np 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_attr_setaffinity_np, pthread_attr_getaffinity_np \- set/get CPU affinity attribute in thread attributes object @@ -15,7 +15,7 @@ POSIX threads library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "int pthread_attr_setaffinity_np(pthread_attr_t *" attr , .BI " size_t " cpusetsize ", const cpu_set_t *" cpuset ); .BI "int pthread_attr_getaffinity_np(const pthread_attr_t *" attr , @@ -33,7 +33,7 @@ to the value specified in This attribute determines the CPU affinity mask of a thread created using the thread attributes object .IR attr . -.PP +.P The .BR pthread_attr_getaffinity_np () function @@ -42,14 +42,14 @@ referred to by .I attr in the buffer pointed to by .IR cpuset . -.PP +.P The argument .I cpusetsize is the length (in bytes) of the buffer pointed to by .IR cpuset . Typically, this argument would be specified as .IR sizeof(cpu_set_t) . -.PP +.P For more details on CPU affinity masks, see .BR sched_setaffinity (2). For a description of a set of macros @@ -100,7 +100,6 @@ T{ .BR pthread_attr_getaffinity_np () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU; hence the suffix "_np" (nonportable) in the names. diff --git a/upstream/opensuse-tumbleweed/man3/pthread_attr_setdetachstate.3 b/upstream/opensuse-tumbleweed/man3/pthread_attr_setdetachstate.3 index c9849432..eeb5c030 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_attr_setdetachstate.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_attr_setdetachstate.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_attr_setdetachstate 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_attr_setdetachstate 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_attr_setdetachstate, pthread_attr_getdetachstate \- set/get detach state attribute in thread attributes object @@ -14,7 +14,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_attr_setdetachstate(pthread_attr_t *" attr \ ", int " detachstate ); .BI "int pthread_attr_getdetachstate(const pthread_attr_t *" attr , @@ -32,7 +32,7 @@ The detach state attribute determines whether a thread created using the thread attributes object .I attr will be created in a joinable or a detached state. -.PP +.P The following values may be specified in .IR detachstate : .TP @@ -45,11 +45,11 @@ will be created in a detached state. Threads that are created using .I attr will be created in a joinable state. -.PP +.P The default setting of the detach state attribute in a newly initialized thread attributes object is .BR PTHREAD_CREATE_JOINABLE . -.PP +.P The .BR pthread_attr_getdetachstate () returns the detach state attribute of the thread attributes object @@ -81,7 +81,6 @@ T{ .BR pthread_attr_getdetachstate () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -90,7 +89,7 @@ POSIX.1-2001. See .BR pthread_create (3) for more details on detached and joinable threads. -.PP +.P A thread that is created in a joinable state should eventually either be joined using .BR pthread_join (3) @@ -98,7 +97,7 @@ or detached using .BR pthread_detach (3); see .BR pthread_create (3). -.PP +.P It is an error to specify the thread ID of a thread that was created in a detached state in a later call to diff --git a/upstream/opensuse-tumbleweed/man3/pthread_attr_setguardsize.3 b/upstream/opensuse-tumbleweed/man3/pthread_attr_setguardsize.3 index 7d8d8cb2..00566509 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_attr_setguardsize.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_attr_setguardsize.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_attr_setguardsize 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_attr_setguardsize 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_attr_setguardsize, pthread_attr_getguardsize \- set/get guard size attribute in thread attributes object @@ -14,7 +14,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_attr_setguardsize(pthread_attr_t *" attr \ ", size_t " guardsize ); .BI "int pthread_attr_getguardsize(const pthread_attr_t *restrict " attr , @@ -28,7 +28,7 @@ thread attributes object referred to by .I attr to the value specified in .IR guardsize . -.PP +.P If .I guardsize is greater than 0, @@ -38,15 +38,15 @@ the system allocates an additional region of at least .I guardsize bytes at the end of the thread's stack to act as the guard area for the stack (but see BUGS). -.PP +.P If .I guardsize is 0, then new threads created with .I attr will not have a guard area. -.PP +.P The default guard size is the same as the system page size. -.PP +.P If the stack address attribute has been set in .I attr (using @@ -61,7 +61,7 @@ it is the application's responsibility to handle stack overflow .BR mprotect (2) to manually define a guard area at the end of the stack that it has allocated). -.PP +.P The .BR pthread_attr_getguardsize () function returns the guard size attribute of the @@ -98,7 +98,6 @@ T{ .BR pthread_attr_getguardsize () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -118,11 +117,11 @@ the system page size when creating a thread. .BR pthread_attr_getguardsize () returns the guard size that was set by .BR pthread_attr_setguardsize ().) -.PP +.P Setting a guard size of 0 may be useful to save memory in an application that creates many threads and knows that stack overflow can never occur. -.PP +.P Choosing a guard size larger than the default size may be necessary for detecting stack overflows if a thread allocates large data structures on the stack. @@ -137,7 +136,7 @@ error from .BR pthread_create (3) if the guard size value is too large, leaving no space for the actual stack.) -.PP +.P The obsolete LinuxThreads implementation did the right thing, allocating extra space at the end of the stack for the guard area. .\" glibc includes the guardsize within the allocated stack size, diff --git a/upstream/opensuse-tumbleweed/man3/pthread_attr_setinheritsched.3 b/upstream/opensuse-tumbleweed/man3/pthread_attr_setinheritsched.3 index aa062d1a..48406e2f 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_attr_setinheritsched.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_attr_setinheritsched.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_attr_setinheritsched 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_attr_setinheritsched 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_attr_setinheritsched, pthread_attr_getinheritsched \- set/get inherit-scheduler attribute in thread attributes object @@ -14,7 +14,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_attr_setinheritsched(pthread_attr_t *" attr , .BI " int " inheritsched ); .BI "int pthread_attr_getinheritsched(const pthread_attr_t *restrict " attr , @@ -34,7 +34,7 @@ the thread attributes object will inherit its scheduling attributes from the calling thread or whether it will take them from .IR attr . -.PP +.P The following scheduling attributes are affected by the inherit-scheduler attribute: scheduling policy @@ -43,7 +43,7 @@ scheduling priority .RB ( pthread_attr_setschedparam (3)), and contention scope .RB ( pthread_attr_setscope (3)). -.PP +.P The following values may be specified in .IR inheritsched : .TP @@ -61,11 +61,11 @@ Threads that are created using take their scheduling attributes from the values specified by the attributes object. .\" FIXME Document the defaults for scheduler settings -.PP +.P The default setting of the inherit-scheduler attribute in a newly initialized thread attributes object is .BR PTHREAD_INHERIT_SCHED . -.PP +.P The .BR pthread_attr_getinheritsched () returns the inherit-scheduler attribute of the thread attributes object @@ -82,7 +82,7 @@ can fail with the following error: .B EINVAL Invalid value in .IR inheritsched . -.PP +.P POSIX.1 also documents an optional .B ENOTSUP error ("attempt was made to set the attribute to an unsupported value") for @@ -102,7 +102,6 @@ T{ .BR pthread_attr_getinheritsched () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/pthread_attr_setschedparam.3 b/upstream/opensuse-tumbleweed/man3/pthread_attr_setschedparam.3 index 379f30c7..e3403b05 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_attr_setschedparam.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_attr_setschedparam.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_attr_setschedparam 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_attr_setschedparam 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_attr_setschedparam, pthread_attr_getschedparam \- set/get scheduling parameter attributes in thread attributes object @@ -14,7 +14,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_attr_setschedparam(pthread_attr_t *restrict " attr , .BI " const struct sched_param *restrict " param ); .BI "int pthread_attr_getschedparam(const pthread_attr_t *restrict " attr , @@ -31,16 +31,16 @@ to the values specified in the buffer pointed to by These attributes determine the scheduling parameters of a thread created using the thread attributes object .IR attr . -.PP +.P The .BR pthread_attr_getschedparam () returns the scheduling parameter attributes of the thread attributes object .I attr in the buffer pointed to by .IR param . -.PP +.P Scheduling parameters are maintained in the following structure: -.PP +.P .in +4n .EX struct sched_param { @@ -48,12 +48,12 @@ struct sched_param { }; .EE .in -.PP +.P As can be seen, only one scheduling parameter is supported. For details of the permitted ranges for scheduling priorities in each scheduling policy, see .BR sched (7). -.PP +.P In order for the parameter setting made by .BR pthread_attr_setschedparam () to have effect when calling @@ -76,7 +76,7 @@ The priority specified in .I param does not make sense for the current scheduling policy of .IR attr . -.PP +.P POSIX.1 also documents an .B ENOTSUP error for @@ -99,7 +99,6 @@ T{ .BR pthread_attr_getschedparam () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/pthread_attr_setschedpolicy.3 b/upstream/opensuse-tumbleweed/man3/pthread_attr_setschedpolicy.3 index 9311af6e..5217fe21 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_attr_setschedpolicy.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_attr_setschedpolicy.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_attr_setschedpolicy 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_attr_setschedpolicy 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_attr_setschedpolicy, pthread_attr_getschedpolicy \- set/get scheduling policy attribute in thread attributes object @@ -14,7 +14,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_attr_setschedpolicy(pthread_attr_t *" attr ", int " policy ); .BI "int pthread_attr_getschedpolicy(const pthread_attr_t *restrict " attr , .BI " int *restrict " policy ); @@ -30,7 +30,7 @@ to the value specified in This attribute determines the scheduling policy of a thread created using the thread attributes object .IR attr . -.PP +.P The supported values for .I policy are @@ -43,14 +43,14 @@ with the semantics described in .\" FIXME . pthread_setschedparam() places no restriction on the policy, .\" but pthread_attr_setschedpolicy() restricts policy to RR/FIFO/OTHER .\" http://sourceware.org/bugzilla/show_bug.cgi?id=7013 -.PP +.P The .BR pthread_attr_getschedpolicy () returns the scheduling policy attribute of the thread attributes object .I attr in the buffer pointed to by .IR policy . -.PP +.P In order for the policy setting made by .BR pthread_attr_setschedpolicy () to have effect when calling @@ -71,7 +71,7 @@ can fail with the following error: .B EINVAL Invalid value in .IR policy . -.PP +.P POSIX.1 also documents an optional .B ENOTSUP error ("attempt was made to set the attribute to an unsupported value") for @@ -91,7 +91,6 @@ T{ .BR pthread_attr_getschedpolicy () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/pthread_attr_setscope.3 b/upstream/opensuse-tumbleweed/man3/pthread_attr_setscope.3 index c9acfc47..6fc3fc04 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_attr_setscope.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_attr_setscope.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_attr_setscope 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_attr_setscope 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_attr_setscope, pthread_attr_getscope \- set/get contention scope attribute in thread attributes object @@ -14,7 +14,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_attr_setscope(pthread_attr_t *" attr ", int " scope ); .BI "int pthread_attr_getscope(const pthread_attr_t *restrict " attr , .BI " int *restrict " scope ); @@ -54,14 +54,14 @@ with other threads in the same process that were created with the .B PTHREAD_SCOPE_SYSTEM contention scope. -.PP +.P POSIX.1 requires that an implementation support at least one of these contention scopes. Linux supports .BR PTHREAD_SCOPE_SYSTEM , but not .BR PTHREAD_SCOPE_PROCESS . -.PP +.P On systems that support multiple contention scopes, then, in order for the parameter setting made by .BR pthread_attr_setscope () @@ -73,7 +73,7 @@ to set the inherit-scheduler attribute of the attributes object .I attr to .BR PTHREAD_EXPLICIT_SCHED . -.PP +.P The .BR pthread_attr_getscope () function returns the contention scope attribute of the @@ -112,7 +112,6 @@ T{ .BR pthread_attr_getscope () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -125,7 +124,7 @@ bound directly to a single kernel-scheduling entity. This is the case on Linux for the obsolete LinuxThreads implementation and the modern NPTL implementation, which are both 1:1 threading implementations. -.PP +.P POSIX.1 specifies that the default contention scope is implementation-defined. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/pthread_attr_setsigmask_np.3 b/upstream/opensuse-tumbleweed/man3/pthread_attr_setsigmask_np.3 index ee789a62..9b75a499 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_attr_setsigmask_np.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_attr_setsigmask_np.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_attr_setsigmask_np 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_attr_setsigmask_np 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_attr_setsigmask_np, pthread_attr_getsigmask_np \- set/get signal mask attribute in thread attributes object @@ -15,7 +15,7 @@ POSIX threads library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "int pthread_attr_setsigmask_np(pthread_attr_t *" attr , .BI " const sigset_t *" sigmask ); .BI "int pthread_attr_getsigmask_np(const pthread_attr_t *" attr , @@ -34,7 +34,7 @@ If is specified as NULL, then any existing signal mask attribute in .I attr is unset. -.PP +.P The .BR pthread_attr_getsigmask_np () function returns the signal mask attribute of the thread attributes object @@ -50,7 +50,7 @@ as its result. The .BR pthread_attr_setsigmask_np () function returns 0 on success, or a nonzero error number on failure. -.PP +.P the .BR pthread_attr_getsigmask_np () function returns either 0 or @@ -61,7 +61,7 @@ A return value of .B PTHREAD_ATTR_NO_SIGMASK_NP indicates that the signal mask attribute is not set in .IR attr . -.PP +.P On error, these functions return a positive error number. .SH ERRORS .TP @@ -83,7 +83,6 @@ T{ .BR pthread_attr_getsigmask_np () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU; hence the suffix "_np" (nonportable) in the names. @@ -96,13 +95,13 @@ a thread created using the thread attributes object If this attribute is not set, then a thread created using .I attr will inherit a copy of the creating thread's signal mask. -.PP +.P For more details on signal masks, see .BR sigprocmask (2). For a description of a set of macros that can be used to manipulate and inspect signal sets, see .BR sigsetops (3). -.PP +.P In the absence of .BR pthread_attr_setsigmask_np () it is possible to create a thread with a desired signal mask as follows: @@ -119,7 +118,7 @@ The new thread sets its signal mask to the desired value using .BR pthread_sigmask (3). .IP \[bu] The creating thread restores its signal mask to the original value. -.PP +.P Following the above steps, there is no possibility for the new thread to receive a signal before it has adjusted its signal mask to the desired value. diff --git a/upstream/opensuse-tumbleweed/man3/pthread_attr_setstack.3 b/upstream/opensuse-tumbleweed/man3/pthread_attr_setstack.3 index 78c2ff46..e060f430 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_attr_setstack.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_attr_setstack.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_attr_setstack 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_attr_setstack 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_attr_setstack, pthread_attr_getstack \- set/get stack attributes in thread attributes object @@ -14,7 +14,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_attr_setstack(pthread_attr_t *" attr , .BI " void " stackaddr [. stacksize ], .BI " size_t " stacksize ); @@ -22,12 +22,12 @@ POSIX threads library .BI " void **restrict " stackaddr , .BI " size_t *restrict " stacksize ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR pthread_attr_getstack (), .BR pthread_attr_setstack (): .nf @@ -47,13 +47,13 @@ respectively. These attributes specify the location and size of the stack that should be used by a thread that is created using the thread attributes object .IR attr . -.PP +.P .I stackaddr should point to the lowest addressable byte of a buffer of .I stacksize bytes that was allocated by the caller. The pages of the allocated buffer should be both readable and writable. -.PP +.P The .BR pthread_attr_getstack () function returns the stack address and stack size attributes of the @@ -81,7 +81,7 @@ On some systems, this error may also occur if or .I stackaddr\~+\~stacksize is not suitably aligned. -.PP +.P POSIX.1 also documents an .B EACCES error if the stack area described by @@ -104,7 +104,6 @@ T{ .BR pthread_attr_getstack () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -118,7 +117,7 @@ and the use of these functions should be avoided. (Use .BR pthread_attr_setstacksize (3) if an application simply requires a stack size other than the default.) -.PP +.P When an application employs .BR pthread_attr_setstack (), it takes over the responsibility of allocating the stack. @@ -129,7 +128,7 @@ If deemed necessary, it is the application's responsibility to allocate a guard area (one or more pages protected against reading and writing) to handle the possibility of stack overflow. -.PP +.P The address specified in .I stackaddr should be suitably aligned: @@ -140,7 +139,7 @@ may be useful for allocation. Probably, .I stacksize should also be a multiple of the system page size. -.PP +.P If .I attr is used to create multiple threads, then the caller must change the diff --git a/upstream/opensuse-tumbleweed/man3/pthread_attr_setstackaddr.3 b/upstream/opensuse-tumbleweed/man3/pthread_attr_setstackaddr.3 index 9ec2e9a7..9744a57d 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_attr_setstackaddr.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_attr_setstackaddr.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_attr_setstackaddr 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_attr_setstackaddr 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_attr_setstackaddr, pthread_attr_getstackaddr \- set/get stack address attribute in thread attributes object @@ -14,7 +14,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .B [[deprecated]] .BI "int pthread_attr_setstackaddr(pthread_attr_t *" attr \ ", void *" stackaddr ); @@ -30,7 +30,7 @@ Use and .BR pthread_attr_getstack (3) instead. -.PP +.P The .BR pthread_attr_setstackaddr () function sets the stack address attribute of the @@ -41,13 +41,13 @@ to the value specified in This attribute specifies the location of the stack that should be used by a thread that is created using the thread attributes object .IR attr . -.PP +.P .I stackaddr should point to a buffer of at least .B PTHREAD_STACK_MIN bytes that was allocated by the caller. The pages of the allocated buffer should be both readable and writable. -.PP +.P The .BR pthread_attr_getstackaddr () function returns the stack address attribute of the @@ -77,7 +77,6 @@ T{ .BR pthread_attr_getstackaddr () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/pthread_attr_setstacksize.3 b/upstream/opensuse-tumbleweed/man3/pthread_attr_setstacksize.3 index 278346e3..9c98ef0e 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_attr_setstacksize.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_attr_setstacksize.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_attr_setstacksize 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_attr_setstacksize 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_attr_setstacksize, pthread_attr_getstacksize \- set/get stack size attribute in thread attributes object @@ -14,7 +14,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_attr_setstacksize(pthread_attr_t *" attr \ ", size_t " stacksize ); .BI "int pthread_attr_getstacksize(const pthread_attr_t *restrict " attr , @@ -28,11 +28,11 @@ thread attributes object referred to by .I attr to the value specified in .IR stacksize . -.PP +.P The stack size attribute determines the minimum size (in bytes) that will be allocated for threads created using the thread attributes object .IR attr . -.PP +.P The .BR pthread_attr_getstacksize () function returns the stack size attribute of the @@ -51,7 +51,7 @@ can fail with the following error: The stack size is less than .B PTHREAD_STACK_MIN (16384) bytes. -.PP +.P On some systems, .\" e.g., MacOS .BR pthread_attr_setstacksize () @@ -75,7 +75,6 @@ T{ .BR pthread_attr_getstacksize () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS These functions are provided since glibc 2.1. .SH STANDARDS @@ -83,10 +82,10 @@ POSIX.1-2001, POSIX.1-2008. .SH NOTES For details on the default stack size of new threads, see .BR pthread_create (3). -.PP +.P A thread's stack size is fixed at the time of thread creation. Only the main thread can dynamically grow its stack. -.PP +.P The .BR pthread_attr_setstack (3) function allows an application to set both the size and location diff --git a/upstream/opensuse-tumbleweed/man3/pthread_cancel.3 b/upstream/opensuse-tumbleweed/man3/pthread_cancel.3 index 8230c803..99232b4f 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_cancel.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_cancel.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_cancel 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_cancel 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_cancel \- send a cancelation request to a thread .SH LIBRARY @@ -13,7 +13,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_cancel(pthread_t " thread ); .fi .SH DESCRIPTION @@ -28,7 +28,7 @@ its cancelability .I state and .IR type . -.PP +.P A thread's cancelability state, determined by .BR pthread_setcancelstate (3), can be @@ -40,7 +40,7 @@ then a cancelation request remains queued until the thread enables cancelation. If a thread has enabled cancelation, then its cancelability type determines when cancelation occurs. -.PP +.P A thread's cancelation type, determined by .BR pthread_setcanceltype (3), may be either @@ -56,7 +56,7 @@ the thread next calls a function that is a .IR "cancelation point" . A list of functions that are or may be cancelation points is provided in .BR pthreads (7). -.PP +.P When a cancelation requested is acted on, the following steps occur for .I thread (in this order): @@ -74,7 +74,7 @@ in an unspecified order. The thread is terminated. (See .BR pthread_exit (3).) -.PP +.P The above steps happen asynchronously with respect to the .BR pthread_cancel () call; @@ -82,7 +82,7 @@ the return status of .BR pthread_cancel () merely informs the caller whether the cancelation request was successfully queued. -.PP +.P After a canceled thread has terminated, a join with that thread using .BR pthread_join (3) @@ -116,7 +116,6 @@ T{ .BR pthread_cancel () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS On Linux, cancelation is implemented using signals. Under the NPTL threading implementation, @@ -136,7 +135,7 @@ The main thread joins with the canceled thread to check that its exit status was .BR PTHREAD_CANCELED . The following shell session shows what happens when we run the program: -.PP +.P .in +4n .EX $ ./a.out diff --git a/upstream/opensuse-tumbleweed/man3/pthread_cleanup_push.3 b/upstream/opensuse-tumbleweed/man3/pthread_cleanup_push.3 index 9fcccb38..729e0863 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_cleanup_push.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_cleanup_push.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_cleanup_push 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_cleanup_push 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_cleanup_push, pthread_cleanup_pop \- push and pop thread cancelation clean-up handlers @@ -14,7 +14,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void pthread_cleanup_push(void (*" routine ")(void *), void *" arg ); .BI "void pthread_cleanup_pop(int " execute ); .fi @@ -26,7 +26,7 @@ when a thread is canceled (or in various other circumstances described below); it might, for example, unlock a mutex so that it becomes available to other threads in the process. -.PP +.P The .BR pthread_cleanup_push () function pushes @@ -37,14 +37,14 @@ When is later invoked, it will be given .I arg as its argument. -.PP +.P The .BR pthread_cleanup_pop () function removes the routine at the top of the stack of clean-up handlers, and optionally executes it if .I execute is nonzero. -.PP +.P A cancelation clean-up handler is popped from the stack and executed in the following circumstances: .IP \[bu] 3 @@ -67,7 +67,7 @@ When a thread calls with a nonzero .I execute argument, the top-most clean-up handler is popped and executed. -.PP +.P POSIX.1 permits .BR pthread_cleanup_push () and @@ -79,7 +79,7 @@ functions are paired within the same function, and at the same lexical nesting level. (In other words, a clean-up handler is established only during the execution of a specified section of code.) -.PP +.P Calling .BR longjmp (3) .RB ( siglongjmp (3)) @@ -118,7 +118,6 @@ T{ .BR pthread_cleanup_pop () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS On glibc, the .BR pthread_cleanup_push () @@ -130,7 +129,7 @@ implemented as macros that expand to text containing \[aq]\fB{\fP\[aq] and \[aq]\fB}\fP\[aq], respectively. This means that variables declared within the scope of paired calls to these functions will be visible within only that scope. -.PP +.P POSIX.1 .\" The text was actually added in the 2004 TC2 says that the effect of using @@ -165,10 +164,10 @@ the main thread sends the other thread a cancelation request, or sets a global variable that causes the other thread to exit its loop and terminate normally (by doing a .IR return ). -.PP +.P In the following shell session, the main thread sends a cancelation request to the other thread: -.PP +.P .in +4n .EX $ \fB./a.out\fP @@ -180,16 +179,16 @@ Called clean\-up handler Thread was canceled; cnt = 0 .EE .in -.PP +.P From the above, we see that the thread was canceled, and that the cancelation clean-up handler was called and it reset the value of the global variable .I cnt to 0. -.PP +.P In the next run, the main program sets a global variable that causes other thread to terminate normally: -.PP +.P .in +4n .EX $ \fB./a.out x\fP @@ -199,18 +198,18 @@ cnt = 1 Thread terminated normally; cnt = 2 .EE .in -.PP +.P From the above, we see that the clean-up handler was not executed (because .I cleanup_pop_arg was 0), and therefore the value of .I cnt was not reset. -.PP +.P In the next run, the main program sets a global variable that causes the other thread to terminate normally, and supplies a nonzero value for .IR cleanup_pop_arg : -.PP +.P .in +4n .EX $ \fB./a.out x 1\fP @@ -221,7 +220,7 @@ Called clean\-up handler Thread terminated normally; cnt = 0 .EE .in -.PP +.P In the above, we see that although the thread was not canceled, the clean-up handler was executed, because the argument given to .BR pthread_cleanup_pop () diff --git a/upstream/opensuse-tumbleweed/man3/pthread_cleanup_push_defer_np.3 b/upstream/opensuse-tumbleweed/man3/pthread_cleanup_push_defer_np.3 index d72b3d25..d1d2792d 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_cleanup_push_defer_np.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_cleanup_push_defer_np.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_cleanup_push_defer_np 3 2023-05-03 "Linux man-pages 6.05.01" +.TH pthread_cleanup_push_defer_np 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_cleanup_push_defer_np, pthread_cleanup_pop_restore_np \- push and pop thread cancelation clean-up handlers while saving cancelability type @@ -13,16 +13,16 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void pthread_cleanup_push_defer_np(void (*" routine ")(void *), void *" arg ); .BI "void pthread_cleanup_pop_restore_np(int " execute ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR pthread_cleanup_push_defer_np (), .BR pthread_cleanup_pop_defer_np (): .nf @@ -34,7 +34,7 @@ These functions are the same as and .BR pthread_cleanup_pop (3), except for the differences noted on this page. -.PP +.P Like .BR pthread_cleanup_push (3), .BR pthread_cleanup_push_defer_np () @@ -47,7 +47,7 @@ and sets the cancelability type to "deferred" (see this ensures that cancelation clean-up will occur even if the thread's cancelability type was "asynchronous" before the call. -.PP +.P Like .BR pthread_cleanup_pop (3), .BR pthread_cleanup_pop_restore_np () @@ -56,24 +56,24 @@ stack of cancelation clean-up handlers. In addition, it restores the thread's cancelability type to its value at the time of the matching .BR pthread_cleanup_push_defer_np (). -.PP +.P The caller must ensure that calls to these functions are paired within the same function, and at the same lexical nesting level. Other restrictions apply, as described in .BR pthread_cleanup_push (3). -.PP +.P This sequence of calls: -.PP +.P .in +4n .EX pthread_cleanup_push_defer_np(routine, arg); pthread_cleanup_pop_restore_np(execute); .EE .in -.PP +.P is equivalent to (but shorter and more efficient than): -.PP +.P .\" As far as I can see, LinuxThreads reverses the two substeps .\" in the push and pop below. .in +4n diff --git a/upstream/opensuse-tumbleweed/man3/pthread_cond_init.3 b/upstream/opensuse-tumbleweed/man3/pthread_cond_init.3 new file mode 100644 index 00000000..0b7468df --- /dev/null +++ b/upstream/opensuse-tumbleweed/man3/pthread_cond_init.3 @@ -0,0 +1,268 @@ +.\" Copyright, Xavier Leroy +.\" Copyright 2023, Alejandro Colomar +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.TH pthread_cond_init 3 2024-05-19 "Linux man-pages (unreleased)" +. +. +.SH NAME +pthread_cond_init, +pthread_cond_signal, +pthread_cond_broadcast, +pthread_cond_wait, +pthread_cond_timedwait, +pthread_cond_destroy +\- +operations on conditions +. +. +.SH SYNOPSIS +.nf +.B #include +.P +.BI "pthread_cond_t " cond " = PTHREAD_COND_INITIALIZER;" +.P +.BI "int pthread_cond_init(pthread_cond_t *" cond , +.BI " pthread_condattr_t *" cond_attr ); +.BI "int pthread_cond_signal(pthread_cond_t *" cond ); +.BI "int pthread_cond_broadcast(pthread_cond_t *" cond ); +.BI "int pthread_cond_wait(pthread_cond_t *" cond ", pthread_mutex_t *" mutex ); +.BI "int pthread_cond_timedwait(pthread_cond_t *" cond ", pthread_mutex_t *" mutex , +.BI " const struct timespec *" abstime ); +.BI "int pthread_cond_destroy(pthread_cond_t *" cond ); +.fi +. +. +.SH DESCRIPTION +A condition (short for ``condition variable'') +is a synchronization device that allows threads +to suspend execution and relinquish the processors +until some predicate on shared data is satisfied. +The basic operations on conditions are: +signal the condition (when the predicate becomes true), +and wait for the condition, +suspending the thread execution until another thread signals the condition. +.P +A condition variable must always be associated with a mutex, +to avoid the race condition where +a thread prepares to wait on a condition variable +and another thread signals the condition +just before the first thread actually waits on it. +.P +\fBpthread_cond_init\fP initializes the condition variable \fIcond\fP, +using the condition attributes specified in \fIcond_attr\fP, +or default attributes if \fIcond_attr\fP is \fBNULL\fP. +The LinuxThreads implementation supports no attributes for conditions, +hence the \fIcond_attr\fP parameter is actually ignored. +.P +Variables of type \fBpthread_cond_t\fP can also be initialized statically, +using the constant \fBPTHREAD_COND_INITIALIZER\fP. +.P +\fBpthread_cond_signal\fP restarts one of the threads that +are waiting on the condition variable \fIcond\fP. +If no threads are waiting on \fIcond\fP, +nothing happens. +If several threads are waiting on \fIcond\fP, +exactly one is restarted, +but it is not specified which. +.P +\fBpthread_cond_broadcast\fP restarts all the threads that +are waiting on the condition variable \fIcond\fP. +Nothing happens if no threads are waiting on \fIcond\fP. +.P +\fBpthread_cond_wait\fP atomically unlocks the \fImutex\fP +(as per \fBpthread_unlock_mutex\fP) +and waits for the condition variable \fIcond\fP to be signaled. +The thread execution is suspended and does not consume any CPU time +until the condition variable is signaled. +The \fImutex\fP must be locked by the calling thread +on entrance to \fBpthread_cond_wait\fP. +Before returning to the calling thread, +\fBpthread_cond_wait\fP re-acquires \fImutex\fP +(as per \fBpthread_lock_mutex\fP). +.P +Unlocking the mutex and suspending on the condition variable is done atomically. +Thus, +if all threads always acquire the mutex before signaling the condition, +this guarantees that the condition cannot be signaled (and thus ignored) +between the time a thread locks the mutex +and the time it waits on the condition variable. +.P +\fBpthread_cond_timedwait\fP atomically unlocks \fImutex\fP +and waits on \fIcond\fP, +as \fBpthread_cond_wait\fP does, +but it also bounds the duration of the wait. +If \fIcond\fP has not been signaled +within the amount of time specified by \fIabstime\fP, +the mutex \fImutex\fP is re-acquired +and \fBpthread_cond_timedwait\fP returns the error \fBETIMEDOUT\fP. +The \fIabstime\fP parameter specifies an absolute time, +with the same origin as \fBtime\fP(2) and \fBgettimeofday\fP(2): +an \fIabstime\fP of 0 +corresponds to 00:00:00 GMT, January 1, 1970. +.P +\fBpthread_cond_destroy\fP destroys a condition variable, +freeing the resources it might hold. +No threads must be waiting on the condition variable +on entrance to \fBpthread_cond_destroy\fP. +In the LinuxThreads implementation, +no resources are associated with condition variables, +thus \fBpthread_cond_destroy\fP actually does nothing +except checking that the condition has no waiting threads. +. +. +.SH CANCELLATION +\fBpthread_cond_wait\fP and \fBpthread_cond_timedwait\fP +are cancelation points. +If a thread is cancelled while suspended in one of these functions, +the thread immediately resumes execution, +then locks again the \fImutex\fP +argument to \fBpthread_cond_wait\fP and \fBpthread_cond_timedwait\fP, +and finally executes the cancelation. +Consequently, +cleanup handlers are assured that \fImutex\fP is locked +when they are called. +. +. +.SH "ASYNC-SIGNAL SAFETY" +The condition functions are not async-signal safe, +and should not be called from a signal handler. +In particular, +calling \fBpthread_cond_signal\fP or \fBpthread_cond_broadcast\fP +from a signal handler +may deadlock the calling thread. +. +. +.SH "RETURN VALUE" +All condition variable functions return 0 on success +and a non-zero error code on error. +. +. +.SH ERRORS +\fBpthread_cond_init\fP, +\fBpthread_cond_signal\fP, +\fBpthread_cond_broadcast\fP, +and \fBpthread_cond_wait\fP +never return an error code. +.P +The \fBpthread_cond_timedwait\fP function returns +the following error codes on error: +.RS +.TP +\fBETIMEDOUT\fP +The condition variable was not signaled +until the timeout specified by \fIabstime\fP. +.TP +\fBEINTR\fP +\fBpthread_cond_timedwait\fP was interrupted by a signal. +.RE +.P +The \fBpthread_cond_destroy\fP function returns +the following error code on error: +.RS +.TP +\fBEBUSY\fP +Some threads are currently waiting on \fIcond\fP. +.RE +. +. +.SH "SEE ALSO" +\fBpthread_condattr_init\fP(3), +\fBpthread_mutex_lock\fP(3), +\fBpthread_mutex_unlock\fP(3), +\fBgettimeofday\fP(2), +\fBnanosleep\fP(2). +. +. +.SH EXAMPLE +Consider two shared variables \fIx\fP and \fIy\fP, +protected by the mutex \fImut\fP, +and a condition variable \fIcond\fP +that is to be signaled +whenever \fIx\fP becomes greater than \fIy\fP. +.P +.RS +.ft 3 +.nf +.sp +int x,y; +pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER; +pthread_cond_t cond = PTHREAD_COND_INITIALIZER; +.ft +.P +.RE +.fi +.P +Waiting until \fIx\fP is greater than \fIy\fP is performed as follows: +.P +.RS +.ft 3 +.nf +.sp +pthread_mutex_lock(&mut); +while (x <= y) { + pthread_cond_wait(&cond, &mut); +} +/* operate on x and y */ +pthread_mutex_unlock(&mut); +.ft +.P +.RE +.fi +.P +Modifications on \fIx\fP and \fIy\fP +that may cause \fIx\fP to become greater than \fIy\fP +should signal the condition if needed: +.P +.RS +.ft 3 +.nf +.sp +pthread_mutex_lock(&mut); +/* modify x and y */ +if (x > y) pthread_cond_broadcast(&cond); +pthread_mutex_unlock(&mut); +.ft +.P +.RE +.fi +.P +If it can be proved that at most one waiting thread needs to be waken up +(for instance, +if there are only two threads communicating through \fIx\fP and \fIy\fP), +\fBpthread_cond_signal\fP can be used as +a slightly more efficient alternative to \fBpthread_cond_broadcast\fP. +In doubt, +use \fBpthread_cond_broadcast\fP. +.P +To wait for \fIx\fP to become greater than \fIy\fP +with a timeout of 5 seconds, +do: +.P +.RS +.ft 3 +.nf +.sp +struct timeval now; +struct timespec timeout; +int retcode; +\& +pthread_mutex_lock(&mut); +gettimeofday(&now); +timeout.tv_sec = now.tv_sec + 5; +timeout.tv_nsec = now.tv_usec * 1000; +retcode = 0; +while (x <= y && retcode != ETIMEDOUT) { + retcode = pthread_cond_timedwait(&cond, &mut, &timeout); +} +if (retcode == ETIMEDOUT) { + /* timeout occurred */ +} else { + /* operate on x and y */ +} +pthread_mutex_unlock(&mut); +.ft +.P +.RE +.fi diff --git a/upstream/opensuse-tumbleweed/man3/pthread_condattr_init.3 b/upstream/opensuse-tumbleweed/man3/pthread_condattr_init.3 new file mode 100644 index 00000000..cf7fd332 --- /dev/null +++ b/upstream/opensuse-tumbleweed/man3/pthread_condattr_init.3 @@ -0,0 +1,48 @@ +.\" Copyright, Xavier Leroy +.\" Copyright 2023, Alejandro Colomar +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.TH pthread_condattr_init 3 2024-05-02 "Linux man-pages (unreleased)" +. +. +.SH NAME +pthread_condattr_init, +pthread_condattr_destroy +\- +condition creation attributes +. +. +.SH SYNOPSIS +.B #include +.P +.BI "int pthread_condattr_init(pthread_condattr_t *" attr ");" +.BI "int pthread_condattr_destroy(pthread_condattr_t *" attr ");" +. +. +.SH DESCRIPTION +Condition attributes can be specified at condition creation time, +by passing a condition attribute object +as second argument to \fBpthread_cond_init\fP(3). +Passing \fBNULL\fP is equivalent to +passing a condition attribute object +with all attributes set to their default values. +.P +The LinuxThreads implementation supports no attributes for conditions. +The functions on condition attributes are +included only for compliance with the POSIX standard. +.P +\fBpthread_condattr_init\fP +initializes the condition attribute object \fIattr\fP +and fills it with default values for the attributes. +\fBpthread_condattr_destroy\fP destroys a condition attribute object, +which must not be reused until it is reinitialized. +Both functions do nothing in the LinuxThreads implementation. +. +. +.SH "RETURN VALUE" +\fBpthread_condattr_init\fP and \fBpthread_condattr_destroy\fP always return 0. +. +. +.SH "SEE ALSO" +\fBpthread_cond_init\fP(3). diff --git a/upstream/opensuse-tumbleweed/man3/pthread_create.3 b/upstream/opensuse-tumbleweed/man3/pthread_create.3 index 268bfa06..a7f33de2 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_create.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_create.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_create 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_create 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_create \- create a new thread .SH LIBRARY @@ -13,7 +13,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_create(pthread_t *restrict " thread , .BI " const pthread_attr_t *restrict " attr , .BI " void *(*" start_routine ")(void *)," @@ -28,7 +28,7 @@ The new thread starts execution by invoking .I arg is passed as the sole argument of .IR start_routine (). -.PP +.P The new thread terminates in one of the following ways: .IP \[bu] 3 It calls @@ -53,7 +53,7 @@ Any of the threads in the process calls or the main thread performs a return from .IR main (). This causes the termination of all threads in the process. -.PP +.P The .I attr argument points to a @@ -67,14 +67,14 @@ If .I attr is NULL, then the thread is created with default attributes. -.PP +.P Before returning, a successful call to .BR pthread_create () stores the ID of the new thread in the buffer pointed to by .IR thread ; this identifier is used to refer to the thread in subsequent calls to other pthreads functions. -.PP +.P The new thread inherits a copy of the creating thread's signal mask .RB ( pthread_sigmask (3)). The set of pending signals for the new thread is empty @@ -82,10 +82,10 @@ The set of pending signals for the new thread is empty The new thread does not inherit the creating thread's alternate signal stack .RB ( sigaltstack (2)). -.PP +.P The new thread inherits the calling thread's floating-point environment .RB ( fenv (3)). -.PP +.P The initial value of the new thread's CPU-time clock is 0 (see .BR pthread_getcpuclockid (3)). @@ -148,7 +148,6 @@ T{ .BR pthread_create () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -165,7 +164,7 @@ after a call to .BR pthread_create (), it is indeterminate which thread\[em]the caller or the new thread\[em]will next execute. -.PP +.P A thread may either be .I joinable or @@ -185,7 +184,7 @@ By default, a new thread is created in a joinable state, unless .I attr was set to create the thread in a detached state (using .BR pthread_attr_setdetachstate (3)). -.PP +.P Under the NPTL threading implementation, if the .B RLIMIT_STACK soft resource limit @@ -201,23 +200,8 @@ in order to obtain a stack size other than the default. If the .B RLIMIT_STACK resource limit is set to "unlimited", -a per-architecture value is used for the stack size. -Here is the value for a few architectures: -.RS -.TS -allbox; -lb lb -l r. -Architecture Default stack size -i386 2 MB -IA-64 32 MB -PowerPC 4 MB -S/390 2 MB -Sparc-32 2 MB -Sparc-64 4 MB -x86_64 2 MB -.TE -.RE +a per-architecture value is used for the stack size: +2 MB on most architectures; 4 MB on POWER and Sparc-64. .SH BUGS In the obsolete LinuxThreads implementation, each of the threads in a process has a different process ID. @@ -228,12 +212,12 @@ and is the source of many other nonconformances to the standard; see The program below demonstrates the use of .BR pthread_create (), as well as a number of other functions in the pthreads API. -.PP +.P In the following run, on a system providing the NPTL threading implementation, the stack size defaults to the value given by the "stack size" resource limit: -.PP +.P .in +4n .EX .RB "$" " ulimit \-s" @@ -247,11 +231,11 @@ Joined with thread 2; returned value was SALUT Joined with thread 3; returned value was SERVUS .EE .in -.PP +.P In the next run, the program explicitly sets a stack size of 1\ MB (using .BR pthread_attr_setstacksize (3)) for the created threads: -.PP +.P .in +4n .EX .RB "$" " ./a.out \-s 0x100000 hola salut servus" @@ -273,6 +257,7 @@ Joined with thread 3; returned value was SERVUS #include #include #include +#include #include \& #define handle_error_en(en, msg) \e diff --git a/upstream/opensuse-tumbleweed/man3/pthread_detach.3 b/upstream/opensuse-tumbleweed/man3/pthread_detach.3 index aba9f05f..b3c924dd 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_detach.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_detach.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_detach 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_detach 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_detach \- detach a thread .SH LIBRARY @@ -13,7 +13,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_detach(pthread_t " thread ); .fi .SH DESCRIPTION @@ -25,7 +25,7 @@ as detached. When a detached thread terminates, its resources are automatically released back to the system without the need for another thread to join with the terminated thread. -.PP +.P Attempting to detach an already detached thread results in unspecified behavior. .SH RETURN VALUE @@ -57,7 +57,6 @@ T{ .BR pthread_detach () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -66,21 +65,21 @@ POSIX.1-2001. Once a thread has been detached, it can't be joined with .BR pthread_join (3) or be made joinable again. -.PP +.P A new thread can be created in a detached state using .BR pthread_attr_setdetachstate (3) to set the detached attribute of the .I attr argument of .BR pthread_create (3). -.PP +.P The detached attribute merely determines the behavior of the system when the thread terminates; it does not prevent the thread from being terminated if the process terminates using .BR exit (3) (or equivalently, if the main thread returns). -.PP +.P Either .BR pthread_join (3) or @@ -91,7 +90,7 @@ so that system resources for the thread can be released. actions has not been done will be freed when the process terminates.) .SH EXAMPLES The following statement detaches the calling thread: -.PP +.P .in +4n .EX pthread_detach(pthread_self()); diff --git a/upstream/opensuse-tumbleweed/man3/pthread_equal.3 b/upstream/opensuse-tumbleweed/man3/pthread_equal.3 index 976e2731..f8a861be 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_equal.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_equal.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_equal 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_equal 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_equal \- compare thread IDs .SH LIBRARY @@ -13,7 +13,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_equal(pthread_t " t1 ", pthread_t " t2 ); .fi .SH DESCRIPTION @@ -40,7 +40,6 @@ T{ .BR pthread_equal () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/pthread_exit.3 b/upstream/opensuse-tumbleweed/man3/pthread_exit.3 index 4f317a9c..479e40a4 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_exit.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_exit.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_exit 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_exit 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_exit \- terminate calling thread .SH LIBRARY @@ -13,7 +13,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[noreturn]] void pthread_exit(void *" retval ); .fi .SH DESCRIPTION @@ -24,7 +24,7 @@ function terminates the calling thread and returns a value via that (if the thread is joinable) is available to another thread in the same process that calls .BR pthread_join (3). -.PP +.P Any clean-up handlers established by .BR pthread_cleanup_push (3) that have not yet been popped, @@ -34,14 +34,14 @@ If the thread has any thread-specific data, then, after the clean-up handlers have been executed, the corresponding destructor functions are called, in an unspecified order. -.PP +.P When a thread terminates, process-shared resources (e.g., mutexes, condition variables, semaphores, and file descriptors) are not released, and functions registered using .BR atexit (3) are not called. -.PP +.P After the last thread in a process terminates, the process terminates as by calling .BR exit (3) @@ -68,7 +68,6 @@ T{ .BR pthread_exit () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -78,13 +77,13 @@ Performing a return from the start function of any thread other than the main thread results in an implicit call to .BR pthread_exit (), using the function's return value as the thread's exit status. -.PP +.P To allow other threads to continue execution, the main thread should terminate by calling .BR pthread_exit () rather than .BR exit (3). -.PP +.P The value pointed to by .I retval should not be located on the calling thread's stack, diff --git a/upstream/opensuse-tumbleweed/man3/pthread_getattr_default_np.3 b/upstream/opensuse-tumbleweed/man3/pthread_getattr_default_np.3 index a88961af..c185c961 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_getattr_default_np.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_getattr_default_np.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_getattr_default_np 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_getattr_default_np 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_getattr_default_np, pthread_setattr_default_np, \- get or set default thread-creation attributes @@ -14,7 +14,7 @@ POSIX threads library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "int pthread_getattr_default_np(pthread_attr_t *" attr ); .BI "int pthread_setattr_default_np(const pthread_attr_t *" attr ); .fi @@ -39,7 +39,7 @@ attribute must not be set in the object. Setting the .I stack size attribute to zero means leave the default stack size unchanged. -.PP +.P The .BR pthread_getattr_default_np () function initializes the thread attributes object referred to by @@ -73,7 +73,6 @@ T{ .BR pthread_setattr_default_np () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU; hence the suffix "_np" (nonportable) in their names. @@ -85,7 +84,7 @@ The program below uses to fetch the default thread-creation attributes and then displays various settings from the returned thread attributes object. When running the program, we see the following output: -.PP +.P .in +4n .EX $ \fB./a.out\fP @@ -122,12 +121,12 @@ display_pthread_attr(pthread_attr_t *attr) s = pthread_attr_getstacksize(attr, &stacksize); if (s != 0) errc(EXIT_FAILURE, s, "pthread_attr_getstacksize"); - printf("Stack size: %zd\en", stacksize); + printf("Stack size: %zu\en", stacksize); \& s = pthread_attr_getguardsize(attr, &guardsize); if (s != 0) errc(EXIT_FAILURE, s, "pthread_attr_getguardsize"); - printf("Guard size: %zd\en", guardsize); + printf("Guard size: %zu\en", guardsize); \& s = pthread_attr_getschedpolicy(attr, &policy); if (s != 0) diff --git a/upstream/opensuse-tumbleweed/man3/pthread_getattr_np.3 b/upstream/opensuse-tumbleweed/man3/pthread_getattr_np.3 index be1fb196..6135cc40 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_getattr_np.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_getattr_np.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_getattr_np 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_getattr_np 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_getattr_np \- get attributes of created thread .SH LIBRARY @@ -14,7 +14,7 @@ POSIX threads library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "int pthread_getattr_np(pthread_t " thread ", pthread_attr_t *" attr ); .fi .SH DESCRIPTION @@ -24,7 +24,7 @@ function initializes the thread attributes object referred to by .I attr so that it contains actual attribute values describing the running thread .IR thread . -.PP +.P The returned attribute values may differ from the corresponding attribute values passed in the .I attr @@ -42,12 +42,12 @@ and the guard size, which the implementation may round upward to a multiple of the page size, or ignore (i.e., treat as 0), if the application is allocating its own stack. -.PP +.P Furthermore, if the stack address attribute was not set in the thread attributes object used to create the thread, then the returned thread attributes object will report the actual stack address that the implementation selected for the thread. -.PP +.P When the thread attributes object returned by .BR pthread_getattr_np () is no longer required, it should be destroyed using @@ -60,7 +60,7 @@ on error, it returns a nonzero error number. .B ENOMEM .\" Can happen (but unlikely) while trying to allocate memory for cpuset Insufficient memory. -.PP +.P In addition, if .I thread refers to the main thread, then @@ -89,7 +89,6 @@ T{ .BR pthread_getattr_np () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU; hence the suffix "_np" (nonportable) in the name. @@ -105,10 +104,10 @@ and stack size attributes. Command-line arguments can be used to set these attributes to values other than the default when creating the thread. The shell sessions below demonstrate the use of the program. -.PP +.P In the first run, on an x86-32 system, a thread is created using default attributes: -.PP +.P .in +4n .EX .RB "$" " ulimit \-s" " # No stack limit ==> default stack size is 2 MB" @@ -120,11 +119,11 @@ Attributes of created thread: Stack size = 0x201000 (2101248) bytes .EE .in -.PP +.P In the following run, we see that if a guard size is specified, it is rounded up to the next multiple of the system page size (4096 bytes on x86-32): -.PP +.P .in +4n .EX .RB "$" " ./a.out \-g 4097" @@ -153,10 +152,10 @@ Attributes of created thread: .\" Stack size = 0x8000 (32768) bytes .\".fi .\".in -.PP +.P In the last run, the program manually allocates a stack for the thread. In this case, the guard size attribute is ignored. -.PP +.P .in +4n .EX .RB "$" " ./a.out \-g 4096 \-s 0x8000 \-a" @@ -273,7 +272,7 @@ get_thread_attributes_from_cl(int argc, char *argv[], if (argc > optind) usage(argv[0], "Extraneous command\-line arguments\en"); \& - if (stack_size >= 0 || guard_size > 0) { + if (stack_size != -1 || guard_size > 0) { ret_attrp = attrp; \& s = pthread_attr_init(attrp); @@ -281,7 +280,7 @@ get_thread_attributes_from_cl(int argc, char *argv[], errc(EXIT_FAILURE, s, "pthread_attr_init"); } \& - if (stack_size >= 0) { + if (stack_size != -1) { if (!allocate_stack) { s = pthread_attr_setstacksize(attrp, stack_size); if (s != 0) @@ -299,7 +298,7 @@ get_thread_attributes_from_cl(int argc, char *argv[], } } \& - if (guard_size >= 0) { + if (guard_size != -1) { s = pthread_attr_setguardsize(attrp, guard_size); if (s != 0) errc(EXIT_FAILURE, s, "pthread_attr_setstacksize"); diff --git a/upstream/opensuse-tumbleweed/man3/pthread_getcpuclockid.3 b/upstream/opensuse-tumbleweed/man3/pthread_getcpuclockid.3 index 127d662f..7ad000da 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_getcpuclockid.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_getcpuclockid.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_getcpuclockid 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_getcpuclockid 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_getcpuclockid \- retrieve ID of a thread's CPU time clock .SH LIBRARY @@ -14,7 +14,7 @@ POSIX threads library .nf .B #include .B #include -.PP +.P .BI "int pthread_getcpuclockid(pthread_t " thread ", clockid_t *" clockid ); .fi .SH DESCRIPTION @@ -59,7 +59,6 @@ T{ .BR pthread_getcpuclockid () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -82,7 +81,7 @@ The program below creates a thread and then uses to retrieve the total process CPU time, and the per-thread CPU time consumed by the two threads. The following shell session shows an example run: -.PP +.P .in +4n .EX $ \fB./a.out\fP diff --git a/upstream/opensuse-tumbleweed/man3/pthread_join.3 b/upstream/opensuse-tumbleweed/man3/pthread_join.3 index 9284d857..1d3fbb85 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_join.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_join.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_join 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_join 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_join \- join with a terminated thread .SH LIBRARY @@ -13,7 +13,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_join(pthread_t " thread ", void **" retval ); .fi .SH DESCRIPTION @@ -28,7 +28,7 @@ returns immediately. The thread specified by .I thread must be joinable. -.PP +.P If .I retval is not NULL, then @@ -42,7 +42,7 @@ If the target thread was canceled, then .B PTHREAD_CANCELED is placed in the location pointed to by .IR retval . -.PP +.P If multiple threads simultaneously try to join with the same thread, the results are undefined. If the thread calling @@ -91,7 +91,6 @@ T{ .BR pthread_join () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -103,10 +102,10 @@ the caller is guaranteed that the target thread has terminated. The caller may then choose to do any clean-up that is required after termination of the thread (e.g., freeing memory or other resources that were allocated to the target thread). -.PP +.P Joining with a thread that has previously been joined results in undefined behavior. -.PP +.P Failure to join with a thread that is joinable (i.e., one that is not detached), produces a "zombie thread". @@ -114,13 +113,13 @@ Avoid doing this, since each zombie thread consumes some system resources, and when enough zombie threads have accumulated, it will no longer be possible to create new threads (or processes). -.PP +.P There is no pthreads analog of .IR "waitpid(\-1,\ &status,\ 0)" , that is, "join with any terminated thread". If you believe you need this functionality, you probably need to rethink your application design. -.PP +.P All of the threads in a process are peers: any thread can join with any other thread in the process. .SH EXAMPLES diff --git a/upstream/opensuse-tumbleweed/man3/pthread_key_create.3 b/upstream/opensuse-tumbleweed/man3/pthread_key_create.3 new file mode 100644 index 00000000..f319426c --- /dev/null +++ b/upstream/opensuse-tumbleweed/man3/pthread_key_create.3 @@ -0,0 +1,181 @@ +.\" Copyright, Xavier Leroy +.\" Copyright 2023, Alejandro Colomar +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.TH pthread_key_create 3 2024-05-19 "Linux man-pages (unreleased)" +. +. +.SH NAME +pthread_key_create, +pthread_key_delete, +pthread_setspecific, +pthread_getspecific +\- +management of thread-specific data +. +. +.SH SYNOPSIS +.nf +.B #include +.P +.BI "int pthread_key_create(pthread_key_t *" key , +.BI " void (*" destr_function ") (void *));" +.BI "int pthread_key_delete(pthread_key_t " key ); +.BI "int pthread_setspecific(pthread_key_t " key ", const void *" pointer ); +.BI "void * pthread_getspecific(pthread_key_t " key ); +.fi +. +. +.SH DESCRIPTION +Programs often need global or static variables +that have different values in different threads. +Since threads share one memory space, +this cannot be achieved with regular variables. +Thread-specific data is the POSIX threads answer to this need. +.P +Each thread possesses a private memory block, +the thread-specific data area, +or TSD area for short. +This area is indexed by TSD keys. +The TSD area associates values of type \fBvoid *\fP to TSD keys. +TSD keys are common to all threads, +but the value associated with a given TSD key +can be different in each thread. +.P +For concreteness, +the TSD areas can be viewed as arrays of \fBvoid *\fP pointers, +TSD keys as integer indices into these arrays, +and the value of a TSD key +as the value of the corresponding array element in the calling thread. +.P +When a thread is created, +its TSD area initially associates \fBNULL\fP with all keys. +.P +\fBpthread_key_create\fP allocates a new TSD key. +The key is stored in the location pointed to by \fIkey\fP. +There is a limit of \fBPTHREAD_KEYS_MAX\fP +on the number of keys allocated at a given time. +The value initially associated with the returned key +is \fBNULL\fP in all currently executing threads. +.P +The \fIdestr_function\fP argument, +if not \fBNULL\fP, +specifies a destructor function associated with the key. +When a thread terminates via \fBpthread_exit\fP or by cancelation, +\fIdestr_function\fP is called with arguments +the value associated with the key in that thread. +The \fIdestr_function\fP is not called if that value is \fBNULL\fP. +The order in which destructor functions are called at thread termination time +is unspecified. +.P +Before the destructor function is called, +the \fBNULL\fP value is associated with the key in the current thread. +A destructor function might, +however, +re-associate non-\fBNULL\fP values to that key or some other key. +To deal with this, +if after all the destructors have been called +for all non-\fBNULL\fP values, +there are still some non-\fBNULL\fP values with associated destructors, +then the process is repeated. +The glibc implementation stops the process +after \fBPTHREAD_DESTRUCTOR_ITERATIONS\fP iterations, +even if some non-\fBNULL\fP values with associated descriptors remain. +Other implementations may loop indefinitely. +.P +\fBpthread_key_delete\fP deallocates a TSD key. +It does not check +whether non-\fBNULL\fP values are associated with that key +in the currently executing threads, +nor call the destructor function associated with the key. +.P +\fBpthread_setspecific\fP changes the value +associated with \fIkey\fP in the calling thread, +storing the given \fIpointer\fP instead. +.P +\fBpthread_getspecific\fP returns the value +currently associated with \fIkey\fP in the calling thread. +. +. +.SH "RETURN VALUE" +\fBpthread_key_create\fP, +\fBpthread_key_delete\fP, +and \fBpthread_setspecific\fP +return 0 on success and a non-zero error code on failure. +If successful, +\fBpthread_key_create\fP stores the newly allocated key +in the location pointed to by its \fIkey\fP argument. +.P +\fBpthread_getspecific\fP returns +the value associated with \fIkey\fP on success, +and \fBNULL\fP on error. +. +. +.SH ERRORS +\fBpthread_key_create\fP returns the following error code on error: +.RS +.TP +\fBEAGAIN\fP +\fBPTHREAD_KEYS_MAX\fP keys are already allocated. +.RE +.P +\fBpthread_key_delete\fP and \fBpthread_setspecific\fP return +the following error code on error: +.RS +.TP +\fBEINVAL\fP +\fIkey\fP is not a valid, allocated TSD key. +.RE +.P +\fBpthread_getspecific\fP returns \fBNULL\fP if \fIkey\fP is not a valid, +allocated TSD key. +. +. +.SH "SEE ALSO" +pthread_create(3), pthread_exit(3), pthread_testcancel(3). +. +. +.SH EXAMPLE +The following code fragment +allocates a thread-specific array of 100 characters, +with automatic reclamation at thread exit: +.P +.RS +.ft 3 +.nf +.sp +/* Key for the thread-specific buffer */ +static pthread_key_t buffer_key; +\& +/* Once-only initialisation of the key */ +static pthread_once_t buffer_key_once = PTHREAD_ONCE_INIT; +\& +/* Allocate the thread-specific buffer */ +void buffer_alloc(void) +{ + pthread_once(&buffer_key_once, buffer_key_alloc); + pthread_setspecific(buffer_key, malloc(100)); +} +\& +/* Return the thread-specific buffer */ +char * get_buffer(void) +{ + return (char *) pthread_getspecific(buffer_key); +} +\& +/* Allocate the key */ +static void buffer_key_alloc() +{ + pthread_key_create(&buffer_key, buffer_destroy); +} +\& +/* Free the thread-specific buffer */ +static void buffer_destroy(void * buf) +{ + free(buf); +} +.ft +.P +.RE +.fi diff --git a/upstream/opensuse-tumbleweed/man3/pthread_kill.3 b/upstream/opensuse-tumbleweed/man3/pthread_kill.3 index 0501c4fa..3d445eda 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_kill.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_kill.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_kill 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_kill 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_kill \- send a signal to a thread .SH LIBRARY @@ -13,15 +13,15 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_kill(pthread_t " thread ", int " sig ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR pthread_kill (): .nf _POSIX_C_SOURCE >= 199506L || _XOPEN_SOURCE >= 500 @@ -36,7 +36,7 @@ to a thread in the same process as the caller. The signal is asynchronously directed to .IR thread . -.PP +.P If .I sig is 0, then no signal is sent, but error checking is still performed. @@ -63,7 +63,6 @@ T{ .BR pthread_kill () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS The glibc implementation of .BR pthread_kill () @@ -74,7 +73,7 @@ used internally by the NPTL threading implementation. See .BR nptl (7) for details. -.PP +.P POSIX.1-2008 recommends that if an implementation detects the use of a thread ID after the end of its lifetime, .BR pthread_kill () diff --git a/upstream/opensuse-tumbleweed/man3/pthread_kill_other_threads_np.3 b/upstream/opensuse-tumbleweed/man3/pthread_kill_other_threads_np.3 index aec544dd..dea465f2 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_kill_other_threads_np.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_kill_other_threads_np.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_kill_other_threads_np 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_kill_other_threads_np 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_kill_other_threads_np \- terminate all other threads in process .SH LIBRARY @@ -13,7 +13,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .B void pthread_kill_other_threads_np(void); .fi .SH DESCRIPTION @@ -40,7 +40,6 @@ T{ .BR pthread_kill_other_threads_np () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS In the NPTL threading implementation, .BR pthread_kill_other_threads_np () diff --git a/upstream/opensuse-tumbleweed/man3/pthread_mutex_consistent.3 b/upstream/opensuse-tumbleweed/man3/pthread_mutex_consistent.3 index 0f9cda3a..d81b3645 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_mutex_consistent.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_mutex_consistent.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_mutex_consistent 3 2023-03-30 "Linux man-pages 6.05.01" +.TH pthread_mutex_consistent 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_mutex_consistent \- make a robust mutex consistent .SH LIBRARY @@ -12,15 +12,15 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_mutex_consistent(pthread_mutex_t *" mutex ");" .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR pthread_mutex_consistent (): .nf _POSIX_C_SOURCE >= 200809L @@ -49,19 +49,19 @@ POSIX.1-2008. .SH HISTORY glibc 2.12. POSIX.1-2008. -.PP +.P Before the addition of .BR pthread_mutex_consistent () to POSIX, glibc defined the following equivalent nonstandard function if .B _GNU_SOURCE was defined: -.PP +.P .nf .B [[deprecated]] .BI "int pthread_mutex_consistent_np(const pthread_mutex_t *" mutex ); .fi -.PP +.P This GNU-specific API, which first appeared in glibc 2.4, is nowadays obsolete and should not be used in new programs; since glibc 2.34 it has been marked as deprecated. diff --git a/upstream/opensuse-tumbleweed/man3/pthread_mutex_init.3 b/upstream/opensuse-tumbleweed/man3/pthread_mutex_init.3 new file mode 100644 index 00000000..0b054595 --- /dev/null +++ b/upstream/opensuse-tumbleweed/man3/pthread_mutex_init.3 @@ -0,0 +1,244 @@ +.\" Copyright, Xavier Leroy +.\" Copyright 2023, Alejandro Colomar +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.TH pthread_mutex_init 3 2024-05-19 "Linux man-pages (unreleased)" +. +. +.SH NAME +pthread_mutex_init, +pthread_mutex_lock, +pthread_mutex_trylock, +pthread_mutex_unlock, +pthread_mutex_destroy +\- +operations on mutexes +. +. +.SH SYNOPSIS +.nf +.B #include +.P +.BI "pthread_mutex_t " fastmutex " = PTHREAD_MUTEX_INITIALIZER;" +.BI "pthread_mutex_t " recmutex " = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;" +.BI "pthread_mutex_t " errchkmutex " = PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP;" +.P +.BI "int pthread_mutex_init(pthread_mutex_t *" mutex , +.BI " const pthread_mutexattr_t *" mutexattr ); +.BI "int pthread_mutex_lock(pthread_mutex_t *" mutex ); +.BI "int pthread_mutex_trylock(pthread_mutex_t *" mutex ); +.BI "int pthread_mutex_unlock(pthread_mutex_t *" mutex ); +.BI "int pthread_mutex_destroy(pthread_mutex_t *" mutex ); +.fi +. +. +.SH DESCRIPTION +A mutex is a MUTual EXclusion device, +and is useful for +protecting shared data structures from concurrent modifications, +and implementing critical sections and monitors. +.P +A mutex has two possible states: +unlocked (not owned by any thread), +and locked (owned by one thread). +A mutex can never be owned by two different threads simultaneously. +A thread attempting to lock a mutex +that is already locked by another thread +is suspended until the owning thread unlocks the mutex first. +.P +\fBpthread_mutex_init\fP initializes the mutex object pointed to by \fImutex\fP +according to the mutex attributes specified in \fImutexattr\fP. +If \fImutexattr\fP is \fBNULL\fP, +default attributes are used instead. +.P +The LinuxThreads implementation supports only one mutex attributes, +the \fImutex kind\fP, +which is either ``fast'', +``recursive'', +or ``error checking''. +The kind of a mutex determines +whether it can be locked again by a thread that already owns it. +The default kind is ``fast''. +See \fBpthread_mutexattr_init\fP(3) for more information on mutex attributes. +.P +Variables of type \fBpthread_mutex_t\fP can also be initialized statically, +using the constants +\fBPTHREAD_MUTEX_INITIALIZER\fP +(for fast mutexes), +\fBPTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP\fP +(for recursive mutexes), +and \fBPTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP\fP +(for error checking mutexes). +.P +\fBpthread_mutex_lock\fP locks the given mutex. +If the mutex is currently unlocked, +it becomes locked and owned by the calling thread, +and \fBpthread_mutex_lock\fP returns immediately. +If the mutex is already locked by another thread, +\fBpthread_mutex_lock\fP suspends the calling thread +until the mutex is unlocked. +.P +If the mutex is already locked by the calling thread, +the behavior of \fBpthread_mutex_lock\fP depends on the kind of the mutex. +If the mutex is of the ``fast'' kind, +the calling thread is suspended until the mutex is unlocked, +thus effectively causing the calling thread to deadlock. +If the mutex is of the ``error checking'' kind, +\fBpthread_mutex_lock\fP returns immediately with the error code \fBEDEADLK\fP. +If the mutex is of the ``recursive'' kind, +\fBpthread_mutex_lock\fP succeeds and returns immediately, +recording the number of times the calling thread has locked the mutex. +An equal number of \fBpthread_mutex_unlock\fP operations +must be performed before the mutex returns to the unlocked state. +.P +\fBpthread_mutex_trylock\fP behaves identically to \fBpthread_mutex_lock\fP, +except that it does not block the calling thread +if the mutex is already locked by another thread +(or by the calling thread in the case of a ``fast'' mutex). +Instead, +\fBpthread_mutex_trylock\fP returns immediately +with the error code \fBEBUSY\fP. +.P +\fBpthread_mutex_unlock\fP unlocks the given mutex. +The mutex is assumed to be locked and owned by the calling thread +on entrance to \fBpthread_mutex_unlock\fP. +If the mutex is of the ``fast'' kind, +\fBpthread_mutex_unlock\fP always returns it to the unlocked state. +If it is of the ``recursive'' kind, +it decrements the locking count of the mutex +(number of \fBpthread_mutex_lock\fP operations +performed on it by the calling thread), +and only when this count reaches zero is the mutex actually unlocked. +.P +On ``error checking'' and ``recursive'' mutexes, +\fBpthread_mutex_unlock\fP actually checks at run-time +that the mutex is locked on entrance, +and that it was locked by the same thread +that is now calling \fBpthread_mutex_unlock\fP. +If these conditions are not met, +an error code is returned and the mutex remains unchanged. +``Fast'' mutexes perform no such checks, +thus allowing a locked mutex to be +unlocked by a thread other than its owner. +This is non-portable behavior and must not be relied upon. +.P +\fBpthread_mutex_destroy\fP destroys a mutex object, +freeing the resources it might hold. +The mutex must be unlocked on entrance. +In the LinuxThreads implementation, +no resources are associated with mutex objects, +thus \fBpthread_mutex_destroy\fP actually does nothing +except checking that the mutex is unlocked. +. +. +.SH CANCELLATION +None of the mutex functions is a cancelation point, +not even \fBpthread_mutex_lock\fP, +in spite of the fact that it can suspend a thread for arbitrary durations. +This way, +the status of mutexes at cancelation points is predictable, +allowing cancelation handlers +to unlock precisely those mutexes that need to be unlocked +before the thread stops executing. +Consequently, +threads using deferred cancelation +should never hold a mutex for extended periods of time. +. +. +.SH "ASYNC-SIGNAL SAFETY" +The mutex functions are not async-signal safe. +What this means is that they should not be called from a signal handler. +In particular, +calling \fBpthread_mutex_lock\fP or \fBpthread_mutex_unlock\fP +from a signal handler +may deadlock the calling thread. +. +. +.SH "RETURN VALUE" +\fBpthread_mutex_init\fP always returns 0. +The other mutex functions +return 0 on success and a non-zero error code on error. +. +. +.SH ERRORS +The \fBpthread_mutex_lock\fP function returns +the following error code on error: +.RS +.TP +\fBEINVAL\fP +The mutex has not been properly initialized. +.TP +\fBEDEADLK\fP +The mutex is already locked by the calling thread +(``error checking'' mutexes only). +.RE +.P +The \fBpthread_mutex_trylock\fP function returns +the following error codes on error: +.RS +.TP +\fBEBUSY\fP +The mutex could not be acquired because it was currently locked. +.TP +\fBEINVAL\fP +The mutex has not been properly initialized. +.RE +.P +The \fBpthread_mutex_unlock\fP function returns +the following error code on error: +.RS +.TP +\fBEINVAL\fP +The mutex has not been properly initialized. +.TP +\fBEPERM\fP +The calling thread does not own the mutex +(``error checking'' mutexes only). +.RE +.P +The \fBpthread_mutex_destroy\fP function returns +the following error code on error: +.RS +.TP +\fBEBUSY\fP +The mutex is currently locked. +.RE +. +. +.SH "SEE ALSO" +\fBpthread_mutexattr_init\fP(3), +\fBpthread_mutexattr_setkind_np\fP(3), +\fBpthread_cancel\fP(3). +. +. +.SH EXAMPLE +A shared global variable \fIx\fP can be protected by a mutex as follows: +.P +.RS +.ft 3 +.nf +.sp +int x; +pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER; +.ft +.P +.RE +.fi +.P +All accesses and modifications to \fIx\fP +should be bracketed by calls to +\fBpthread_mutex_lock\fP and \fBpthread_mutex_unlock\fP +as follows: +.P +.RS +.ft 3 +.nf +.sp +pthread_mutex_lock(&mut); +/* operate on x */ +pthread_mutex_unlock(&mut); +.ft +.P +.RE +.fi diff --git a/upstream/opensuse-tumbleweed/man3/pthread_mutexattr_getpshared.3 b/upstream/opensuse-tumbleweed/man3/pthread_mutexattr_getpshared.3 index b2abac11..0d19e609 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_mutexattr_getpshared.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_mutexattr_getpshared.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_mutexattr_getpshared 3 2023-03-30 "Linux man-pages 6.05.01" +.TH pthread_mutexattr_getpshared 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_mutexattr_getpshared, pthread_mutexattr_setpshared \- get/set process-shared mutex attribute @@ -12,7 +12,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .B int pthread_mutexattr_getpshared( .BI " const pthread_mutexattr_t *restrict " attr , .BI " int *restrict " pshared ); @@ -24,7 +24,7 @@ These functions get and set the process-shared attribute in a mutex attributes object. This attribute must be appropriately set to ensure correct, efficient operation of a mutex created using this attributes object. -.PP +.P The process-shared attribute can have one of the following values: .TP .B PTHREAD_PROCESS_PRIVATE @@ -36,21 +36,21 @@ This is the default value for the process-shared mutex attribute. Mutexes created with this attributes object can be shared between any threads that have access to the memory containing the object, including threads in different processes. -.PP +.P .BR pthread_mutexattr_getpshared () places the value of the process-shared attribute of the mutex attributes object referred to by .I attr in the location pointed to by .IR pshared . -.PP +.P .BR pthread_mutexattr_setpshared () sets the value of the process-shared attribute of the mutex attributes object referred to by .I attr to the value specified in .BR pshared . -.PP +.P If .I attr does not refer to an initialized mutex attributes object, diff --git a/upstream/opensuse-tumbleweed/man3/pthread_mutexattr_init.3 b/upstream/opensuse-tumbleweed/man3/pthread_mutexattr_init.3 index 55d2530c..8b89bad0 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_mutexattr_init.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_mutexattr_init.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_mutexattr_init 3 2023-03-30 "Linux man-pages 6.05.01" +.TH pthread_mutexattr_init 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_mutexattr_init, pthread_mutexattr_destroy \- initialize and destroy a mutex attributes object @@ -12,7 +12,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_mutexattr_init(pthread_mutexattr_t *" attr ");" .BI "int pthread_mutexattr_destroy(pthread_mutexattr_t *" attr ");" .fi @@ -22,16 +22,16 @@ The function initializes the mutex attributes object pointed to by .I attr with default values for all attributes defined by the implementation. -.PP +.P The results of initializing an already initialized mutex attributes object are undefined. -.PP +.P The .BR pthread_mutexattr_destroy () function destroys a mutex attribute object (making it uninitialized). Once a mutex attributes object has been destroyed, it can be reinitialized with .BR pthread_mutexattr_init (). -.PP +.P The results of destroying an uninitialized mutex attributes object are undefined. .SH RETURN VALUE diff --git a/upstream/opensuse-tumbleweed/man3/pthread_mutexattr_setkind_np.3 b/upstream/opensuse-tumbleweed/man3/pthread_mutexattr_setkind_np.3 new file mode 100644 index 00000000..4480d88e --- /dev/null +++ b/upstream/opensuse-tumbleweed/man3/pthread_mutexattr_setkind_np.3 @@ -0,0 +1,55 @@ +.\" Copyright, Xavier Leroy +.\" Copyright 2023, Alejandro Colomar +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.TH pthread_mutexattr_setkind_np 3 2024-05-19 "Linux man-pages (unreleased)" +. +. +.SH NAME +pthread_mutexattr_setkind_np, +pthread_mutexattr_getkind_np +\- +deprecated mutex creation attributes +. +. +.SH SYNOPSIS +.nf +.B #include +.P +.BI "int pthread_mutexattr_setkind_np(pthread_mutexattr_t *" attr ", int " kind ); +.BI "int pthread_mutexattr_getkind_np(const pthread_mutexattr_t *" attr , +.BI " int *" kind ); +.fi +. +. +.SH DESCRIPTION +These functions are deprecated, +use \fBpthread_mutexattr_settype\fP(3) +and \fBpthread_mutexattr_gettype\fP(3) +instead. +. +. +.SH "RETURN VALUE" +\fBpthread_mutexattr_getkind_np\fP always returns 0. +.P +\fBpthread_mutexattr_setkind_np\fP +returns 0 on success and a non-zero error code on error. +. +. +.SH ERRORS +On error, +\fBpthread_mutexattr_setkind_np\fP returns the following error code: +.TP +\fBEINVAL\fP +\fIkind\fP is neither +\fBPTHREAD_MUTEX_FAST_NP\fP +nor +\fBPTHREAD_MUTEX_RECURSIVE_NP\fP +nor +\fBPTHREAD_MUTEX_ERRORCHECK_NP\fP. +. +. +.SH "SEE ALSO" +\fBpthread_mutexattr_settype\fP(3), +\fBpthread_mutexattr_gettype\fP(3). diff --git a/upstream/opensuse-tumbleweed/man3/pthread_mutexattr_setrobust.3 b/upstream/opensuse-tumbleweed/man3/pthread_mutexattr_setrobust.3 index 3612e15f..74677223 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_mutexattr_setrobust.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_mutexattr_setrobust.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_mutexattr_setrobust 3 2023-05-03 "Linux man-pages 6.05.01" +.TH pthread_mutexattr_setrobust 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_mutexattr_getrobust, pthread_mutexattr_setrobust \- get and set the robustness attribute of a mutex attributes object @@ -13,18 +13,18 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_mutexattr_getrobust(const pthread_mutexattr_t *" attr , .BI " int *" robustness ");" .BI "int pthread_mutexattr_setrobust(pthread_mutexattr_t *" attr , .BI " int " robustness ");" .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR pthread_mutexattr_getrobust (), .BR pthread_mutexattr_setrobust (): .nf @@ -47,7 +47,7 @@ the mutex attributes object referred to by .I attr to the value specified in .IR *robustness . -.PP +.P The robustness attribute specifies the behavior of the mutex when the owning thread dies without unlocking the mutex. The following values are valid for @@ -94,7 +94,7 @@ further .BR pthread_mutex_lock (3) operations on this mutex will still return .BR EOWNERDEAD . -.PP +.P Note that the .I attr argument of @@ -107,7 +107,7 @@ otherwise the behavior is undefined. .SH RETURN VALUE On success, these functions return 0. On error, they return a positive error number. -.PP +.P In the glibc implementation, .BR pthread_mutexattr_getrobust () always return zero. @@ -136,7 +136,7 @@ POSIX.1-2008. .SH HISTORY glibc 2.12. POSIX.1-2008. -.PP +.P Before the addition of .BR pthread_mutexattr_getrobust () and @@ -145,7 +145,7 @@ to POSIX, glibc defined the following equivalent nonstandard functions if .B _GNU_SOURCE was defined: -.PP +.P .nf .B [[deprecated]] .BI "int pthread_mutexattr_getrobust_np(const pthread_mutexattr_t *" attr , @@ -154,13 +154,13 @@ was defined: .BI "int pthread_mutexattr_setrobust_np(const pthread_mutexattr_t *" attr , .BI " int " robustness ");" .fi -.PP +.P Correspondingly, the constants .B PTHREAD_MUTEX_STALLED_NP and .B PTHREAD_MUTEX_ROBUST_NP were also defined. -.PP +.P These GNU-specific APIs, which first appeared in glibc 2.4, are nowadays obsolete and should not be used in new programs; since glibc 2.34 these APIs are marked as deprecated. @@ -173,9 +173,9 @@ The main thread subsequently acquires the mutex successfully and gets the error .BR EOWNERDEAD , after which it makes the mutex consistent. -.PP +.P The following shell session shows what we see when running this program: -.PP +.P .in +4n .EX $ \fB./a.out\fP diff --git a/upstream/opensuse-tumbleweed/man3/pthread_once.3 b/upstream/opensuse-tumbleweed/man3/pthread_once.3 new file mode 100644 index 00000000..86ecd848 --- /dev/null +++ b/upstream/opensuse-tumbleweed/man3/pthread_once.3 @@ -0,0 +1,44 @@ +.\" Copyright, Xavier Leroy +.\" Copyright 2023, Alejandro Colomar +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.TH pthread_once 3 2024-05-02 "Linux man-pages (unreleased)" +. +. +.SH NAME +pthread_once +\- +once-only initialization +. +. +.SH SYNOPSIS +.B #include +.P +.BI "pthread_once_t " once_control " = PTHREAD_ONCE_INIT;" +.P +.BI "int pthread_once(pthread_once_t *" once_control ", void (*" init_routine ") (void));" +. +. +.SH DESCRIPTION +The purpose of \fBpthread_once\fP is +to ensure that a piece of initialization code is executed at most once. +The \fIonce_control\fP argument points to a static or extern variable +statically initialized to \fBPTHREAD_ONCE_INIT\fP. +.P +The first time \fBpthread_once\fP is called +with a given \fIonce_control\fP argument, +it calls \fIinit_routine\fP with no argument +and changes the value of the \fIonce_control\fP variable +to record that initialization has been performed. +Subsequent calls to \fBpthread_once\fP +with the same \fBonce_control\fP argument +do nothing. +. +. +.SH "RETURN VALUE" +\fBpthread_once\fP always returns 0. +. +. +.SH ERRORS +None. diff --git a/upstream/opensuse-tumbleweed/man3/pthread_rwlockattr_setkind_np.3 b/upstream/opensuse-tumbleweed/man3/pthread_rwlockattr_setkind_np.3 index d068119d..ce6a14ce 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_rwlockattr_setkind_np.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_rwlockattr_setkind_np.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_rwlockattr_setkind_np 3 2023-03-30 "Linux man-pages 6.05.01" +.TH pthread_rwlockattr_setkind_np 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_rwlockattr_setkind_np, pthread_rwlockattr_getkind_np \- set/get the read-write lock kind of the thread read-write lock attribute object @@ -12,19 +12,19 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_rwlockattr_setkind_np(pthread_rwlockattr_t *" attr , .BI " int " pref ); .B int pthread_rwlockattr_getkind_np( .BI " const pthread_rwlockattr_t *restrict " attr , .BI " int *restrict " pref ); -.PP +.P .fi .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR pthread_rwlockattr_setkind_np (), .BR pthread_rwlockattr_getkind_np (): .nf @@ -89,7 +89,7 @@ read locks thus avoiding deadlocks. Setting the lock kind to this avoids writer starvation as long as any read locking is not done in a recursive fashion. -.PP +.P The .BR pthread_rwlockattr_getkind_np () function returns the value of the lock kind attribute of the diff --git a/upstream/opensuse-tumbleweed/man3/pthread_self.3 b/upstream/opensuse-tumbleweed/man3/pthread_self.3 index 6c2d58e5..1d2f5cef 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_self.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_self.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_self 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_self 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_self \- obtain ID of the calling thread .SH LIBRARY @@ -13,7 +13,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .B pthread_t pthread_self(void); .fi .SH DESCRIPTION @@ -43,7 +43,6 @@ T{ .BR pthread_self () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -59,15 +58,15 @@ can't portably be compared using the C equality operator (\fB==\fP); use .BR pthread_equal (3) instead. -.PP +.P Thread identifiers should be considered opaque: any attempt to use a thread ID other than in pthreads calls is nonportable and can lead to unspecified results. -.PP +.P Thread IDs are guaranteed to be unique only within a process. A thread ID may be reused after a terminated thread has been joined, or a detached thread has terminated. -.PP +.P The thread ID returned by .BR pthread_self () is not the same thing as the kernel thread ID returned by a call to diff --git a/upstream/opensuse-tumbleweed/man3/pthread_setaffinity_np.3 b/upstream/opensuse-tumbleweed/man3/pthread_setaffinity_np.3 index 112317de..779f3894 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_setaffinity_np.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_setaffinity_np.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_setaffinity_np 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_setaffinity_np 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_setaffinity_np, pthread_getaffinity_np \- set/get CPU affinity of a thread @@ -15,7 +15,7 @@ POSIX threads library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "int pthread_setaffinity_np(pthread_t " thread ", size_t " cpusetsize , .BI " const cpu_set_t *" cpuset ); .BI "int pthread_getaffinity_np(pthread_t " thread ", size_t " cpusetsize , @@ -33,20 +33,20 @@ If the call is successful, and the thread is not currently running on one of the CPUs in .IR cpuset , then it is migrated to one of those CPUs. -.PP +.P The .BR pthread_getaffinity_np () function returns the CPU affinity mask of the thread .I thread in the buffer pointed to by .IR cpuset . -.PP +.P For more details on CPU affinity masks, see .BR sched_setaffinity (2). For a description of a set of macros that can be used to manipulate and inspect CPU sets, see .BR CPU_SET (3). -.PP +.P The argument .I cpusetsize is the length (in bytes) of the buffer pointed to by @@ -109,13 +109,12 @@ T{ .BR pthread_getaffinity_np () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU; hence the suffix "_np" (nonportable) in the names. .SH HISTORY glibc 2.3.4. -.PP +.P In glibc 2.3.3 only, versions of these functions were provided that did not have a .I cpusetsize @@ -135,13 +134,13 @@ runs if the "cpuset" mechanism described in is being used. These restrictions on the actual set of CPUs on which the thread will run are silently imposed by the kernel. -.PP +.P These functions are implemented on top of the .BR sched_setaffinity (2) and .BR sched_getaffinity (2) system calls. -.PP +.P A new thread created by .BR pthread_create (3) inherits a copy of its creator's CPU affinity mask. @@ -153,7 +152,7 @@ to set its CPU affinity mask to include CPUs 0 to 7 and then calls .BR pthread_getaffinity_np () to check the resulting CPU affinity mask of the thread. -.PP +.P .\" SRC BEGIN (pthread_setaffinity_np.c) .EX #define _GNU_SOURCE diff --git a/upstream/opensuse-tumbleweed/man3/pthread_setcancelstate.3 b/upstream/opensuse-tumbleweed/man3/pthread_setcancelstate.3 index 5fd0d27a..6b65f0f2 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_setcancelstate.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_setcancelstate.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_setcancelstate 3 2023-07-30 "Linux man-pages 6.05.01" +.TH pthread_setcancelstate 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_setcancelstate, pthread_setcanceltype \- set cancelability state and type @@ -14,7 +14,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_setcancelstate(int " state ", int *" oldstate ); .BI "int pthread_setcanceltype(int " type ", int *" oldtype ); .fi @@ -42,7 +42,7 @@ will respond to a cancelation request. The thread is not cancelable. If a cancelation request is received, it is blocked until cancelability is enabled. -.PP +.P The .BR pthread_setcanceltype () sets the cancelability type of the calling thread to the value @@ -72,7 +72,7 @@ The thread can be canceled at any time. (Typically, it will be canceled immediately upon receiving a cancelation request, but the system doesn't guarantee this.) -.PP +.P The set-and-get operation performed by each of these functions is atomic with respect to other threads in the process calling the same function. @@ -87,7 +87,7 @@ can fail with the following error: .B EINVAL Invalid value for .IR state . -.PP +.P The .BR pthread_setcanceltype () can fail with the following error: @@ -124,7 +124,6 @@ T} Async-cancel safety T{ AC-Safe T} .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -133,7 +132,7 @@ POSIX.1-2001. .SH NOTES For details of what happens when a thread is canceled, see .BR \%pthread_cancel (3). -.PP +.P Briefly disabling cancelability is useful if a thread performs some critical action that must not be interrupted by a cancelation request. @@ -159,7 +158,7 @@ Furthermore, some internal data structures family of functions) may be left in an inconsistent state if cancelation occurs in the middle of the function call. Consequently, clean-up handlers cease to be useful. -.PP +.P Functions that can be safely asynchronously canceled are called .IR "async-cancel-safe functions" . POSIX.1-2001 and POSIX.1-2008 require only that @@ -170,7 +169,7 @@ and be async-cancel-safe. In general, other library functions can't be safely called from an asynchronously cancelable thread. -.PP +.P One of the few circumstances in which asynchronous cancelability is useful is for cancelation of a thread that is in a pure compute-bound loop. .SS Portability notes diff --git a/upstream/opensuse-tumbleweed/man3/pthread_setconcurrency.3 b/upstream/opensuse-tumbleweed/man3/pthread_setconcurrency.3 index 642208ff..cee31b66 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_setconcurrency.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_setconcurrency.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_setconcurrency 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_setconcurrency 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_setconcurrency, pthread_getconcurrency \- set/get the concurrency level @@ -13,7 +13,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_setconcurrency(int " new_level ); .BI "int pthread_getconcurrency(" void ); .fi @@ -27,12 +27,12 @@ The implementation takes this only as a hint: POSIX.1 does not specify the level of concurrency that should be provided as a result of calling .BR pthread_setconcurrency (). -.PP +.P Specifying .I new_level as 0 instructs the implementation to manage the concurrency level as it deems appropriate. -.PP +.P .BR pthread_getconcurrency () returns the current value of the concurrency level for this process. .SH RETURN VALUE @@ -40,7 +40,7 @@ On success, .BR pthread_setconcurrency () returns 0; on error, it returns a nonzero error number. -.PP +.P .BR pthread_getconcurrency () always succeeds, returning the concurrency level set by a previous call to .BR pthread_setconcurrency (), @@ -54,7 +54,7 @@ can fail with the following error: .B EINVAL .I new_level is negative. -.PP +.P POSIX.1 also documents an .B EAGAIN error ("the value specified by @@ -75,7 +75,6 @@ T{ .BR pthread_getconcurrency () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -83,14 +82,14 @@ glibc 2.1. POSIX.1-2001. .SH NOTES The default concurrency level is 0. -.PP +.P Concurrency levels are meaningful only for M:N threading implementations, where at any moment a subset of a process's set of user-level threads may be bound to a smaller number of kernel-scheduling entities. Setting the concurrency level allows the application to give the system a hint as to the number of kernel-scheduling entities that should be provided for efficient execution of the application. -.PP +.P Both LinuxThreads and NPTL are 1:1 threading implementations, so setting the concurrency level has no meaning. In other words, diff --git a/upstream/opensuse-tumbleweed/man3/pthread_setname_np.3 b/upstream/opensuse-tumbleweed/man3/pthread_setname_np.3 index 5d9a711b..b426d514 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_setname_np.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_setname_np.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_setname_np 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_setname_np 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_setname_np, pthread_getname_np \- set/get the name of a thread .SH LIBRARY @@ -14,7 +14,7 @@ POSIX threads library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "int pthread_setname_np(pthread_t " thread ", const char *" name ); .BI "int pthread_getname_np(pthread_t " thread ", char " name [. size "], \ size_t " size ); @@ -36,7 +36,7 @@ The argument specifies the thread whose name is to be changed; .I name specifies the new name. -.PP +.P The .BR pthread_getname_np () function can be used to retrieve the name of the thread. @@ -65,7 +65,7 @@ function can fail with the following error: The length of the string specified pointed to by .I name exceeds the allowed limit. -.PP +.P The .BR pthread_getname_np () function can fail with the following error: @@ -76,7 +76,7 @@ The buffer specified by and .I size is too small to hold the thread name. -.PP +.P If either of these functions fails to open .IR /proc/self/task/ tid /comm , then the call may fail with one of the errors described in @@ -96,7 +96,6 @@ T{ .BR pthread_getname_np () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU; hence the suffix "_np" (nonportable) in the names. @@ -117,9 +116,9 @@ The program below demonstrates the use of .BR pthread_setname_np () and .BR pthread_getname_np (). -.PP +.P The following shell session shows a sample run of the program: -.PP +.P .in +4n .EX .RB "$" " ./a.out" diff --git a/upstream/opensuse-tumbleweed/man3/pthread_setschedparam.3 b/upstream/opensuse-tumbleweed/man3/pthread_setschedparam.3 index 62a5832a..f212f331 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_setschedparam.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_setschedparam.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_setschedparam 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_setschedparam 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_setschedparam, pthread_getschedparam \- set/get scheduling policy and parameters of a thread @@ -14,7 +14,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_setschedparam(pthread_t " thread ", int " policy , .BI " const struct sched_param *" param ); .BI "int pthread_getschedparam(pthread_t " thread ", int *restrict " policy , @@ -25,7 +25,7 @@ The .BR pthread_setschedparam () function sets the scheduling policy and parameters of the thread .IR thread . -.PP +.P .I policy specifies the new scheduling policy for .IR thread . @@ -36,13 +36,13 @@ and their semantics, are described in .\" FIXME . pthread_setschedparam() places no restriction on the policy, .\" but pthread_attr_setschedpolicy() restricts policy to RR/FIFO/OTHER .\" http://sourceware.org/bugzilla/show_bug.cgi?id=7013 -.PP +.P The structure pointed to by .I param specifies the new scheduling parameters for .IR thread . Scheduling parameters are maintained in the following structure: -.PP +.P .in +4n .EX struct sched_param { @@ -50,12 +50,12 @@ struct sched_param { }; .EE .in -.PP +.P As can be seen, only one scheduling parameter is supported. For details of the permitted ranges for scheduling priorities in each scheduling policy, see .BR sched (7). -.PP +.P The .BR pthread_getschedparam () function returns the scheduling policy and parameters of the thread @@ -98,7 +98,7 @@ Both of these functions can fail with the following error: No thread with the ID .I thread could be found. -.PP +.P .BR pthread_setschedparam () may additionally fail with the following errors: .TP @@ -112,7 +112,7 @@ does not make sense for the .B EPERM The caller does not have appropriate privileges to set the specified scheduling policy and parameters. -.PP +.P POSIX.1 also documents an .B ENOTSUP ("attempt was made to set the policy or scheduling parameters @@ -133,7 +133,6 @@ T{ .BR pthread_getschedparam () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -152,7 +151,7 @@ and .BR pthread_getschedparam (), as well as the use of a number of other scheduling-related pthreads functions. -.PP +.P In the following run, the main thread sets its scheduling policy to .B SCHED_FIFO with a priority of 10, @@ -168,7 +167,7 @@ meaning that threads created using this attributes object should take their scheduling attributes from the thread attributes object. The program then creates a thread using the thread attributes object, and that thread displays its scheduling policy and priority. -.PP +.P .in +4n .EX $ \fBsu\fP # Need privilege to set real\-time scheduling policies @@ -185,17 +184,17 @@ Scheduler attributes of new thread policy=SCHED_RR, priority=20 .EE .in -.PP +.P In the above output, one can see that the scheduling policy and priority were taken from the values specified in the thread attributes object. -.PP +.P The next run is the same as the previous, except that the inherit scheduler attribute is set to .BR PTHREAD_INHERIT_SCHED , meaning that threads created using the thread attributes object should ignore the scheduling attributes specified in the attributes object and instead take their scheduling attributes from the creating thread. -.PP +.P .in +4n .EX # \fB./a.out \-mf10 \-ar20 \-i i\fP @@ -210,11 +209,11 @@ Scheduler attributes of new thread policy=SCHED_FIFO, priority=10 .EE .in -.PP +.P In the above output, one can see that the scheduling policy and priority were taken from the creating thread, rather than the thread attributes object. -.PP +.P Note that if we had omitted the .I \-i\~i option, the output would have been the same, since @@ -235,6 +234,7 @@ is the default for the inherit scheduler attribute. #define handle_error_en(en, msg) \e do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0) \& +[[noreturn]] static void usage(char *prog_name, char *msg) { @@ -270,7 +270,7 @@ get_policy(char p, int *policy) } \& static void -display_sched_attr(int policy, struct sched_param *param) +display_sched_attr(int policy, const struct sched_param *param) { printf(" policy=%s, priority=%d\en", (policy == SCHED_FIFO) ? "SCHED_FIFO" : diff --git a/upstream/opensuse-tumbleweed/man3/pthread_setschedprio.3 b/upstream/opensuse-tumbleweed/man3/pthread_setschedprio.3 index 64bcb573..668d1ec4 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_setschedprio.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_setschedprio.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_setschedprio 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_setschedprio 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_setschedprio \- set scheduling priority of a thread .SH LIBRARY @@ -13,7 +13,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_setschedprio(pthread_t " thread ", int " prio ); .fi .SH DESCRIPTION @@ -54,7 +54,7 @@ to set the specified priority. No thread with the ID .I thread could be found. -.PP +.P POSIX.1 also documents an .B ENOTSUP ("attempt was made to set the priority @@ -74,7 +74,6 @@ T{ .BR pthread_setschedprio () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/pthread_sigmask.3 b/upstream/opensuse-tumbleweed/man3/pthread_sigmask.3 index 724f1e95..810edf36 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_sigmask.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_sigmask.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_sigmask 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_sigmask 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_sigmask \- examine and change mask of blocked signals .SH LIBRARY @@ -13,16 +13,16 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_sigmask(int " how ", const sigset_t *" set \ ", sigset_t *" oldset ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR pthread_sigmask (): .nf _POSIX_C_SOURCE >= 199506L || _XOPEN_SOURCE >= 500 @@ -35,7 +35,7 @@ function is just like with the difference that its use in multithreaded programs is explicitly specified by POSIX.1. Other differences are noted in this page. -.PP +.P For a description of the arguments and operation of this function, see .BR sigprocmask (2). .SH RETURN VALUE @@ -60,14 +60,13 @@ T{ .BR pthread_sigmask () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY POSIX.1-2001. .SH NOTES A new thread inherits a copy of its creator's signal mask. -.PP +.P The glibc .BR pthread_sigmask () function silently ignores attempts to block the two real-time signals that @@ -80,7 +79,7 @@ The program below blocks some signals in the main thread, and then creates a dedicated thread to fetch those signals via .BR sigwait (3). The following shell session demonstrates its use: -.PP +.P .in +4n .EX .RB "$" " ./a.out &" diff --git a/upstream/opensuse-tumbleweed/man3/pthread_sigqueue.3 b/upstream/opensuse-tumbleweed/man3/pthread_sigqueue.3 index 58736965..32e234ab 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_sigqueue.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_sigqueue.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_sigqueue 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_sigqueue 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_sigqueue \- queue a signal and data to a thread .SH LIBRARY @@ -13,16 +13,16 @@ POSIX threads library .nf .B #include .B #include -.PP +.P .BI "int pthread_sigqueue(pthread_t " thread ", int " sig , .BI " const union sigval " value ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR pthread_sigqueue (): .nf _GNU_SOURCE @@ -35,7 +35,7 @@ function performs a similar task to but, rather than sending a signal to a process, it sends a signal to a thread in the same process as the calling thread. -.PP +.P The .I thread argument is the ID of a thread in the same process as the caller. @@ -85,7 +85,6 @@ T{ .BR pthread_sigqueue () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS The glibc implementation of .BR pthread_sigqueue () diff --git a/upstream/opensuse-tumbleweed/man3/pthread_spin_init.3 b/upstream/opensuse-tumbleweed/man3/pthread_spin_init.3 index 87ad2e8f..74b6414a 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_spin_init.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_spin_init.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_spin_init 3 2023-03-30 "Linux man-pages 6.05.01" +.TH pthread_spin_init 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_spin_init, pthread_spin_destroy \- initialize or destroy a spin lock .SH LIBRARY @@ -11,16 +11,16 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_spin_init(pthread_spinlock_t *" lock ", int " pshared ");" .BI "int pthread_spin_destroy(pthread_spinlock_t *" lock ");" .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR pthread_spin_init (), .BR pthread_spin_destroy (): .nf @@ -33,7 +33,7 @@ instead of spin locks. Spin locks are primarily useful in conjunction with real-time scheduling policies. See NOTES. -.PP +.P The .BR pthread_spin_init () function allocates any resources required for the use of @@ -56,12 +56,12 @@ The spin lock may be operated on by any thread in any process that has access to the memory containing the lock (i.e., the lock may be in a shared memory object that is shared among multiple processes). -.PP +.P Calling .BR pthread_spin_init () on a spin lock that has already been initialized results in undefined behavior. -.PP +.P The .BR pthread_spin_destroy () function destroys a previously initialized spin lock, @@ -69,13 +69,13 @@ freeing any resources that were allocated for that lock. Destroying a spin lock that has not been previously been initialized or destroying a spin lock while another thread holds the lock results in undefined behavior. -.PP +.P Once a spin lock has been destroyed, performing any operation on the lock other than once more initializing it with .BR pthread_spin_init () results in undefined behavior. -.PP +.P The result of performing operations such as .BR pthread_spin_lock (3), .BR pthread_spin_unlock (3), @@ -108,7 +108,7 @@ POSIX.1-2008. .SH HISTORY glibc 2.2. POSIX.1-2001. -.PP +.P Support for process-shared spin locks is a POSIX option. The option is supported in the glibc implementation. .SH NOTES @@ -124,10 +124,10 @@ The problem is that if a thread operating under such a policy is scheduled off the CPU while it holds a spin lock, then other threads will waste time spinning on the lock until the lock holder is once more rescheduled and releases the lock. -.PP +.P If threads create a deadlock situation while employing spin locks, those threads will spin forever consuming CPU time. -.PP +.P User-space spin locks are .I not applicable as a general locking solution. diff --git a/upstream/opensuse-tumbleweed/man3/pthread_spin_lock.3 b/upstream/opensuse-tumbleweed/man3/pthread_spin_lock.3 index 4c9bcf10..56c31da2 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_spin_lock.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_spin_lock.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_spin_lock 3 2023-03-30 "Linux man-pages 6.05.01" +.TH pthread_spin_lock 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock \- lock and unlock a spin lock @@ -12,17 +12,17 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int pthread_spin_lock(pthread_spinlock_t *" lock ); .BI "int pthread_spin_trylock(pthread_spinlock_t *" lock ); .BI "int pthread_spin_unlock(pthread_spinlock_t *" lock ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR pthread_spin_lock (), .BR pthread_spin_trylock (): .nf @@ -38,14 +38,14 @@ the calling thread acquires the lock immediately. If the spin lock is currently locked by another thread, the calling thread spins, testing the lock until it becomes available, at which point the calling thread acquires the lock. -.PP +.P Calling .BR pthread_spin_lock () on a lock that is already held by the caller or a lock that has not been initialized with .BR pthread_spin_init (3) results in undefined behavior. -.PP +.P The .BR pthread_spin_trylock () function is like @@ -55,14 +55,14 @@ except that if the spin lock referred to by is currently locked, then, instead of spinning, the call returns immediately with the error .BR EBUSY . -.PP +.P The .BR pthread_spin_unlock () function unlocks the spin lock referred to .IR lock . If any threads are spinning on the lock, one of those threads will then acquire the lock. -.PP +.P Calling .BR pthread_spin_unlock () on a lock that is not held by the caller results in undefined behavior. @@ -76,7 +76,7 @@ may fail with the following errors: .B EDEADLOCK .\" Not detected in glibc The system detected a deadlock condition. -.PP +.P .BR pthread_spin_trylock () fails with the following errors: .TP @@ -90,7 +90,7 @@ POSIX.1-2001. .SH CAVEATS Applying any of the functions described on this page to an uninitialized spin lock results in undefined behavior. -.PP +.P Carefully read NOTES in .BR pthread_spin_init (3). .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/pthread_testcancel.3 b/upstream/opensuse-tumbleweed/man3/pthread_testcancel.3 index 9188edeb..b1ce9fa4 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_testcancel.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_testcancel.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_testcancel 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_testcancel 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_testcancel \- request delivery of any pending cancelation request .SH LIBRARY @@ -13,7 +13,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .B void pthread_testcancel(void); .fi .SH DESCRIPTION @@ -22,7 +22,7 @@ Calling creates a cancelation point within the calling thread, so that a thread that is otherwise executing code that contains no cancelation points will respond to a cancelation request. -.PP +.P If cancelability is disabled (using .BR pthread_setcancelstate (3)), or no cancelation request is pending, @@ -49,7 +49,6 @@ T{ .BR pthread_testcancel () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/pthread_tryjoin_np.3 b/upstream/opensuse-tumbleweed/man3/pthread_tryjoin_np.3 index 1a0643db..3e2a32a6 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_tryjoin_np.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_tryjoin_np.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_tryjoin_np 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_tryjoin_np 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_tryjoin_np, pthread_timedjoin_np \- try to join with a terminated thread @@ -15,7 +15,7 @@ POSIX threads library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "int pthread_tryjoin_np(pthread_t " thread ", void **" retval ); .BI "int pthread_timedjoin_np(pthread_t " thread ", void **" retval , .BI " const struct timespec *" abstime ); @@ -24,7 +24,7 @@ POSIX threads library These functions operate in the same way as .BR pthread_join (3), except for the differences described on this page. -.PP +.P The .BR pthread_tryjoin_np () function performs a nonblocking join with the thread @@ -36,7 +36,7 @@ If has not yet terminated, then instead of blocking, as is done by .BR pthread_join (3), the call returns an error. -.PP +.P The .BR pthread_timedjoin_np () function performs a join-with-timeout. @@ -72,7 +72,7 @@ can in addition fail with the following error: .B EBUSY .I thread had not yet terminated at the time of the call. -.PP +.P .BR pthread_timedjoin_np () can in addition fail with the following errors: .TP @@ -88,7 +88,7 @@ is greater than 1e9). The call timed out before .I thread terminated. -.PP +.P .BR pthread_timedjoin_np () never returns the error .BR EINTR . @@ -107,7 +107,6 @@ T{ .BR pthread_timedjoin_np () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU; hence the suffix "_np" (nonportable) in the names. @@ -127,7 +126,7 @@ Consequently, the timeout is unaffected by discontinuous changes to the clock. .SH EXAMPLES The following code waits to join for up to 5 seconds: -.PP +.P .in +4n .EX struct timespec ts; diff --git a/upstream/opensuse-tumbleweed/man3/pthread_yield.3 b/upstream/opensuse-tumbleweed/man3/pthread_yield.3 index 95bb580f..14ff6b55 100644 --- a/upstream/opensuse-tumbleweed/man3/pthread_yield.3 +++ b/upstream/opensuse-tumbleweed/man3/pthread_yield.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_yield 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_yield 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME pthread_yield \- yield the processor .SH LIBRARY @@ -13,13 +13,13 @@ POSIX threads library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .B [[deprecated]] int pthread_yield(void); .fi .SH DESCRIPTION .BR Note : This function is deprecated; see below. -.PP +.P .BR pthread_yield () causes the calling thread to relinquish the CPU. The thread is placed at the end of the run queue for its static @@ -49,7 +49,6 @@ T{ .BR pthread_yield () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS On Linux, this function is implemented as a call to .BR sched_yield (2). diff --git a/upstream/opensuse-tumbleweed/man3/ptsname.3 b/upstream/opensuse-tumbleweed/man3/ptsname.3 index b57f0570..14cad011 100644 --- a/upstream/opensuse-tumbleweed/man3/ptsname.3 +++ b/upstream/opensuse-tumbleweed/man3/ptsname.3 @@ -5,7 +5,7 @@ .\" .\" 2004-12-17, mtk, added description of ptsname_r() + ERRORS .\" -.TH ptsname 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ptsname 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ptsname, ptsname_r \- get the name of the slave pseudoterminal .SH LIBRARY @@ -14,16 +14,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *ptsname(int " fd ); .BI "int ptsname_r(int " fd ", char " buf [. buflen "], size_t " buflen ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR ptsname (): .nf Since glibc 2.24: @@ -32,7 +32,7 @@ Feature Test Macro Requirements for glibc (see glibc 2.23 and earlier: _XOPEN_SOURCE .fi -.PP +.P .BR ptsname_r (): .nf _GNU_SOURCE @@ -43,7 +43,7 @@ The function returns the name of the slave pseudoterminal device corresponding to the master referred to by the file descriptor .IR fd . -.PP +.P The .BR ptsname_r () function is the reentrant equivalent of @@ -62,7 +62,7 @@ returns a pointer to a string in static storage which will be overwritten by subsequent calls. This pointer must not be freed. On failure, NULL is returned. -.PP +.P On success, .BR ptsname_r () returns 0. @@ -108,7 +108,6 @@ T{ .BR ptsname_r () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS A version of .BR ptsname_r () @@ -122,7 +121,7 @@ Avoid using this function in portable programs. .TP .BR ptsname (): POSIX.1-2008. -.PP +.P .BR ptsname_r () is a Linux extension, that is proposed for inclusion .\" FIXME . for later review when Issue 8 is one day released @@ -134,7 +133,7 @@ in the next major revision of POSIX.1 (Issue 8). .BR ptsname (): POSIX.1-2001. glibc 2.1. -.PP +.P .BR ptsname () is part of the UNIX 98 pseudoterminal support (see .BR pts (4)). diff --git a/upstream/opensuse-tumbleweed/man3/putenv.3 b/upstream/opensuse-tumbleweed/man3/putenv.3 index da15b2ef..fd6bc810 100644 --- a/upstream/opensuse-tumbleweed/man3/putenv.3 +++ b/upstream/opensuse-tumbleweed/man3/putenv.3 @@ -14,7 +14,7 @@ .\" Modified Mon Oct 11 11:11:11 1999 by Andries Brouwer (aeb@cwi.nl) .\" Modified Wed Nov 10 00:02:26 1999 by Andries Brouwer (aeb@cwi.nl) .\" Modified Sun May 20 22:17:20 2001 by Andries Brouwer (aeb@cwi.nl) -.TH putenv 3 2023-07-20 "Linux man-pages 6.05.01" +.TH putenv 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME putenv \- change or add an environment variable .SH LIBRARY @@ -23,16 +23,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int putenv(char *" string ); .\" Not: const char * .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR putenv (): .nf _XOPEN_SOURCE @@ -77,17 +77,16 @@ T{ .BR putenv () T} Thread safety MT-Unsafe const:env .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY POSIX.1-2001, SVr2, 4.3BSD-Reno. -.PP +.P The .BR putenv () function is not required to be reentrant, and the one in glibc 2.0 is not, but the glibc 2.1 version is. -.\" .LP +.\" .P .\" Description for libc4, libc5, glibc: .\" If the argument \fIstring\fP is of the form \fIname\fP, .\" and does not contain an \[aq]=\[aq] character, then the variable \fIname\fP @@ -100,7 +99,7 @@ one in glibc 2.0 is not, but the glibc 2.1 version is. .\" then it will be freed. .\" In no case will the old storage associated .\" to the environment variable itself be freed. -.PP +.P Since glibc 2.1.2, the glibc implementation conforms to SUSv2: the pointer \fIstring\fP given to .BR putenv () @@ -116,23 +115,23 @@ However, from glibc 2.0 to glibc 2.1.1, it differs: a copy of the string is used. On the one hand this causes a memory leak, and on the other hand it violates SUSv2. -.PP +.P The 4.3BSD-Reno version, like glibc 2.0, uses a copy; this is fixed in all modern BSDs. -.PP +.P SUSv2 removes the \fIconst\fP from the prototype, and so does glibc 2.1.3. -.PP +.P The GNU C library implementation provides a nonstandard extension. If .I string does not include an equal sign: -.PP +.P .in +4n .EX putenv("NAME"); .EE .in -.PP +.P then the named variable is removed from the caller's environment. .SH SEE ALSO .BR clearenv (3), diff --git a/upstream/opensuse-tumbleweed/man3/putgrent.3 b/upstream/opensuse-tumbleweed/man3/putgrent.3 index e1b955c4..6437698c 100644 --- a/upstream/opensuse-tumbleweed/man3/putgrent.3 +++ b/upstream/opensuse-tumbleweed/man3/putgrent.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH putgrent 3 2023-07-20 "Linux man-pages 6.05.01" +.TH putgrent 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME putgrent \- write a group database entry to a file .SH LIBRARY @@ -13,7 +13,7 @@ Standard C library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "int putgrent(const struct group *restrict " grp \ ", FILE *restrict " stream ); .fi @@ -27,11 +27,11 @@ The function writes the content of the provided into the .IR stream . The list of group members must be NULL-terminated or NULL-initialized. -.PP +.P The .I struct group is defined as follows: -.PP +.P .in +4n .EX struct group { @@ -58,7 +58,6 @@ T{ .BR putgrent () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/putpwent.3 b/upstream/opensuse-tumbleweed/man3/putpwent.3 index d1755f81..6742b793 100644 --- a/upstream/opensuse-tumbleweed/man3/putpwent.3 +++ b/upstream/opensuse-tumbleweed/man3/putpwent.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 18:43:46 1993 by Rik Faith (faith@cs.unc.edu) -.TH putpwent 3 2023-07-20 "Linux man-pages 6.05.01" +.TH putpwent 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME putpwent \- write a password file entry .SH LIBRARY @@ -19,16 +19,16 @@ Standard C library .B #include .B #include .B #include -.PP +.P .BI "int putpwent(const struct passwd *restrict " p \ ", FILE *restrict " stream ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR putpwent (): .nf Since glibc 2.19: @@ -41,9 +41,9 @@ The .BR putpwent () function writes a password entry from the structure \fIp\fP in the file associated with \fIstream\fP. -.PP +.P The \fIpasswd\fP structure is defined in \fI\fP as follows: -.PP +.P .in +4n .EX struct passwd { @@ -82,7 +82,6 @@ T{ .BR putpwent () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS None. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/puts.3 b/upstream/opensuse-tumbleweed/man3/puts.3 index a113df5d..5724f628 100644 --- a/upstream/opensuse-tumbleweed/man3/puts.3 +++ b/upstream/opensuse-tumbleweed/man3/puts.3 @@ -4,7 +4,7 @@ .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" Modified Sat Jul 24 18:42:59 1993 by Rik Faith (faith@cs.unc.edu) -.TH puts 3 2023-07-20 "Linux man-pages 6.05.01" +.TH puts 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME fputc, fputs, putc, putchar, puts \- output of characters and strings .SH LIBRARY @@ -13,11 +13,11 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int fputc(int " c ", FILE *" stream ); .BI "int putc(int " c ", FILE *" stream ); .BI "int putchar(int " c ); -.PP +.P .BI "int fputs(const char *restrict " s ", FILE *restrict " stream ); .BI "int puts(const char *" s ); .fi @@ -29,37 +29,37 @@ cast to an .IR "unsigned char" , to .IR stream . -.PP +.P .BR putc () is equivalent to .BR fputc () except that it may be implemented as a macro which evaluates .I stream more than once. -.PP +.P .BI "putchar(" c ) is equivalent to .BI "putc(" c ", " stdout ) \fR. -.PP +.P .BR fputs () writes the string .I s to .IR stream , without its terminating null byte (\[aq]\e0\[aq]). -.PP +.P .BR puts () writes the string .I s and a trailing newline to .IR stdout . -.PP +.P Calls to the functions described here can be mixed with each other and with calls to other output functions from the .I stdio library for the same output stream. -.PP +.P For nonlocking counterparts, see .BR unlocked_stdio (3). .SH RETURN VALUE @@ -74,7 +74,7 @@ cast to an or .B EOF on error. -.PP +.P .BR puts () and .BR fputs () @@ -99,7 +99,6 @@ T{ .BR puts () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/putwchar.3 b/upstream/opensuse-tumbleweed/man3/putwchar.3 index e5446812..14a01eab 100644 --- a/upstream/opensuse-tumbleweed/man3/putwchar.3 +++ b/upstream/opensuse-tumbleweed/man3/putwchar.3 @@ -10,7 +10,7 @@ .\" http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH putwchar 3 2023-07-20 "Linux man-pages 6.05.01" +.TH putwchar 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME putwchar \- write a wide character to standard output .SH LIBRARY @@ -19,7 +19,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wint_t putwchar(wchar_t " wc ); .fi .SH DESCRIPTION @@ -45,7 +45,7 @@ and returns .BR WEOF . Otherwise, it returns .IR wc . -.PP +.P For a nonlocking counterpart, see .BR unlocked_stdio (3). .SH RETURN VALUE @@ -70,7 +70,6 @@ T{ .BR putwchar () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -82,7 +81,7 @@ depends on the .B LC_CTYPE category of the current locale. -.PP +.P It is reasonable to expect that .BR putwchar () will actually write diff --git a/upstream/opensuse-tumbleweed/man3/qecvt.3 b/upstream/opensuse-tumbleweed/man3/qecvt.3 index aa19f81e..89b169b1 100644 --- a/upstream/opensuse-tumbleweed/man3/qecvt.3 +++ b/upstream/opensuse-tumbleweed/man3/qecvt.3 @@ -6,7 +6,7 @@ .\" This replaces an earlier man page written by Walter Harms .\" . .\" -.TH qecvt 3 2023-07-20 "Linux man-pages 6.05.01" +.TH qecvt 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME qecvt, qfcvt, qgcvt \- convert a floating-point number to a string .SH LIBRARY @@ -15,19 +15,19 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] char *qecvt(long double " number ", int " ndigits , .BI " int *restrict " decpt ", int *restrict " sign ); .BI "[[deprecated]] char *qfcvt(long double " number ", int " ndigits , .BI " int *restrict " decpt ", int *restrict " sign ); .BI "[[deprecated]] char *qgcvt(long double " number ", int " ndigit ", char *" buf ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR qecvt (), .BR qfcvt (), .BR qgcvt (): @@ -93,13 +93,12 @@ T{ .BR qgcvt () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY SVr4, SunOS, GNU. .\" Not supported by libc4 and libc5. -.PP +.P These functions are obsolete. Instead, .BR snprintf (3) diff --git a/upstream/opensuse-tumbleweed/man3/qsort.3 b/upstream/opensuse-tumbleweed/man3/qsort.3 index 09737a22..9cb493eb 100644 --- a/upstream/opensuse-tumbleweed/man3/qsort.3 +++ b/upstream/opensuse-tumbleweed/man3/qsort.3 @@ -15,7 +15,7 @@ .\" and Ben Bacarisse .\" Document qsort_r() .\" -.TH qsort 3 2023-07-20 "Linux man-pages 6.05.01" +.TH qsort 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME qsort, qsort_r \- sort an array .SH LIBRARY @@ -24,7 +24,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void qsort(void " base [. size " * ." nmemb "], size_t " nmemb ", \ size_t " size , .BI " int (*" compar ")(const void [." size "], \ @@ -35,12 +35,12 @@ size_t " size , const void [." size "], void *)," .BI " void *" arg ");" .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR qsort_r (): .nf _GNU_SOURCE @@ -52,17 +52,17 @@ function sorts an array with \fInmemb\fP elements of size \fIsize\fP. The \fIbase\fP argument points to the start of the array. -.PP +.P The contents of the array are sorted in ascending order according to a comparison function pointed to by \fIcompar\fP, which is called with two arguments that point to the objects being compared. -.PP +.P The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second. If two members compare as equal, their order in the sorted array is undefined. -.PP +.P The .BR qsort_r () function is identical to @@ -96,7 +96,6 @@ T{ .BR qsort_r () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR qsort () @@ -115,10 +114,10 @@ as shown in the example below. .SH EXAMPLES For one example of use, see the example under .BR bsearch (3). -.PP +.P Another example is the following program, which sorts the strings given in its command-line arguments: -.PP +.P .\" SRC BEGIN (qsort.c) .EX #include diff --git a/upstream/opensuse-tumbleweed/man3/raise.3 b/upstream/opensuse-tumbleweed/man3/raise.3 index 49d2d966..b4ac02d6 100644 --- a/upstream/opensuse-tumbleweed/man3/raise.3 +++ b/upstream/opensuse-tumbleweed/man3/raise.3 @@ -7,7 +7,7 @@ .\" Modified Sat Jul 24 18:40:56 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified 1995 by Mike Battersby (mib@deakin.edu.au) .\" -.TH raise 3 2023-07-20 "Linux man-pages 6.05.01" +.TH raise 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME raise \- send a signal to the caller .SH LIBRARY @@ -16,7 +16,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int raise(int " sig ); .fi .SH DESCRIPTION @@ -24,21 +24,21 @@ The .BR raise () function sends a signal to the calling process or thread. In a single-threaded program it is equivalent to -.PP +.P .in +4n .EX kill(getpid(), sig); .EE .in -.PP +.P In a multithreaded program it is equivalent to -.PP +.P .in +4n .EX pthread_kill(pthread_self(), sig); .EE .in -.PP +.P If the signal causes a handler to be called, .BR raise () will return only after the signal handler has returned. @@ -59,12 +59,11 @@ T{ .BR raise () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY POSIX.1-2001, C89. -.PP +.P Since glibc 2.3.3, .BR raise () is implemented by calling diff --git a/upstream/opensuse-tumbleweed/man3/rand.3 b/upstream/opensuse-tumbleweed/man3/rand.3 index 6146ce9f..d5357fbe 100644 --- a/upstream/opensuse-tumbleweed/man3/rand.3 +++ b/upstream/opensuse-tumbleweed/man3/rand.3 @@ -19,7 +19,7 @@ .\" Modified 2003-11-15, aeb, added rand_r .\" 2010-09-13, mtk, added example program .\" -.TH rand 3 2023-07-20 "Linux man-pages 6.05.01" +.TH rand 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME rand, rand_r, srand \- pseudo-random number generator .SH LIBRARY @@ -28,18 +28,18 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B int rand(void); .BI "void srand(unsigned int " seed ); -.PP +.P .BI "[[deprecated]] int rand_r(unsigned int *" seedp ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR rand_r (): .nf Since glibc 2.24: @@ -53,7 +53,7 @@ The function returns a pseudo-random integer in the range 0 to .B RAND_MAX inclusive (i.e., the mathematical range [0,\ \fBRAND_MAX\fR]). -.PP +.P The .BR srand () function sets its argument as the seed for a new @@ -62,11 +62,11 @@ sequence of pseudo-random integers to be returned by These sequences are repeatable by calling .BR srand () with the same seed value. -.PP +.P If no seed value is provided, the .BR rand () function is automatically seeded with a value of 1. -.PP +.P The function .BR rand () is not reentrant, since it @@ -77,7 +77,7 @@ In order to get reproducible behavior in a threaded application, this state must be made explicit; this can be done using the reentrant function .BR rand_r (). -.PP +.P Like .BR rand (), .BR rand_r () @@ -93,7 +93,7 @@ is called with the same initial value for the integer pointed to by .IR seedp , and that value is not modified between calls, then the same pseudo-random sequence will result. -.PP +.P The value pointed to by the .I seedp argument of @@ -130,7 +130,6 @@ T{ .BR srand () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS The versions of .BR rand () @@ -175,7 +174,7 @@ POSIX.1-2001 gives the following example of an implementation of and .BR srand (), possibly useful when one needs the same sequence on two different machines. -.PP +.P .in +4n .EX static unsigned long next = 1; @@ -191,7 +190,7 @@ void mysrand(unsigned int seed) { } .EE .in -.PP +.P The following program can be used to display the pseudo-random sequence produced by .BR rand () @@ -199,7 +198,7 @@ when given a particular seed. When the seed is .IR \-1 , the program uses a random seed. -.PP +.P .in +4n .\" SRC BEGIN (rand.c) .EX diff --git a/upstream/opensuse-tumbleweed/man3/random.3 b/upstream/opensuse-tumbleweed/man3/random.3 index 9c69344e..ff788e40 100644 --- a/upstream/opensuse-tumbleweed/man3/random.3 +++ b/upstream/opensuse-tumbleweed/man3/random.3 @@ -11,7 +11,7 @@ .\" Modified Sat Jul 24 18:13:39 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified Sun Aug 20 21:47:07 2000, aeb .\" -.TH random 3 2023-07-20 "Linux man-pages 6.05.01" +.TH random 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME random, srandom, initstate, setstate \- random number generator .SH LIBRARY @@ -20,19 +20,19 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B long random(void); .BI "void srandom(unsigned int " seed ); -.PP +.P .BI "char *initstate(unsigned int " seed ", char " state [. n "], size_t " n ); .BI "char *setstate(char *" state ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR random (), .BR srandom (), .BR initstate (), @@ -52,7 +52,7 @@ return successive pseudo-random numbers in the range from 0 to 2\[ha]31\ \-\ 1. The period of this random number generator is very large, approximately .IR "16\ *\ ((2\[ha]31)\ \-\ 1)" . -.PP +.P The .BR srandom () function sets its argument as the seed for a new @@ -66,7 +66,7 @@ If no seed value is provided, the .BR random () function is automatically seeded with a value of 1. -.PP +.P The .BR initstate () function allows a state array \fIstate\fP to @@ -85,7 +85,7 @@ Using less than 8 bytes results in an error. \fIseed\fP is the seed for the initialization, which specifies a starting point for the random number sequence, and provides for restarting at the same point. -.PP +.P The .BR setstate () function changes the state array used by the @@ -109,14 +109,14 @@ function returns a value between 0 and The .BR srandom () function returns no value. -.PP +.P The .BR initstate () function returns a pointer to the previous state array. On failure, it returns NULL, and .I errno is set to indicate the error. -.PP +.P On success, .BR setstate () returns a pointer to the previous state array. @@ -152,7 +152,6 @@ T{ .BR setstate () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -164,7 +163,7 @@ Random-number generation is a complex topic. William T.\& Vetterling; New York: Cambridge University Press, 2007, 3rd ed.) provides an excellent discussion of practical random-number generation issues in Chapter 7 (Random Numbers). -.PP +.P For a more theoretical discussion which also covers many practical issues in depth, see Chapter 3 (Random Numbers) in Donald E.\& Knuth's .IR "The Art of Computer Programming" , diff --git a/upstream/opensuse-tumbleweed/man3/random_r.3 b/upstream/opensuse-tumbleweed/man3/random_r.3 index c812c2f2..5215975f 100644 --- a/upstream/opensuse-tumbleweed/man3/random_r.3 +++ b/upstream/opensuse-tumbleweed/man3/random_r.3 @@ -4,7 +4,7 @@ .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" -.TH random_r 3 2023-07-20 "Linux man-pages 6.05.01" +.TH random_r 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME random_r, srandom_r, initstate_r, setstate_r \- reentrant random number generator @@ -14,23 +14,23 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int random_r(struct random_data *restrict " buf , .BI " int32_t *restrict " result ); .BI "int srandom_r(unsigned int " seed ", struct random_data *" buf ); -.PP +.P .BI "int initstate_r(unsigned int " seed ", \ char " statebuf "[restrict ." statelen ], .BI " size_t " statelen ", struct random_data *restrict " buf ); .BI "int setstate_r(char *restrict " statebuf , .BI " struct random_data *restrict " buf ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR random_r (), .BR srandom_r (), .BR initstate_r (), @@ -45,7 +45,7 @@ of the functions described in .BR random (3). They are suitable for use in multithreaded programs where each thread needs to obtain an independent, reproducible sequence of random numbers. -.PP +.P The .BR random_r () function is like @@ -58,7 +58,7 @@ which must have been previously initialized by .BR initstate_r (). The generated random number is returned in the argument .IR result . -.PP +.P The .BR srandom_r () function is like @@ -69,7 +69,7 @@ whose state is maintained in the object pointed to by which must have been previously initialized by .BR initstate_r (), instead of the seed associated with the global state variable. -.PP +.P The .BR initstate_r () function is like @@ -97,7 +97,7 @@ should typically be allocated as a static variable, or allocated on the heap using .BR malloc (3) or similar.) -.PP +.P The .BR setstate_r () function is like @@ -155,7 +155,6 @@ T{ .BR setstate_r () T} Thread safety MT-Safe race:buf .TE -.sp 1 .SH STANDARDS GNU. .\" These functions appear to be on Tru64, but don't seem to be on diff --git a/upstream/opensuse-tumbleweed/man3/rcmd.3 b/upstream/opensuse-tumbleweed/man3/rcmd.3 index 765e85ad..718a049a 100644 --- a/upstream/opensuse-tumbleweed/man3/rcmd.3 +++ b/upstream/opensuse-tumbleweed/man3/rcmd.3 @@ -13,7 +13,7 @@ .\" .\" 2007-12-08, mtk, Converted from mdoc to man macros .\" -.TH rcmd 3 2023-07-20 "Linux man-pages 6.05.01" +.TH rcmd 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME rcmd, rresvport, iruserok, ruserok, rcmd_af, rresvport_af, iruserok_af, ruserok_af \- routines for returning a @@ -24,27 +24,27 @@ Standard C library .SH SYNOPSIS .nf .BR "#include " "/* Or on some systems */" -.PP +.P .BI "int rcmd(char **restrict " ahost ", unsigned short " inport , .BI " const char *restrict " locuser , .BI " const char *restrict " remuser , .BI " const char *restrict " cmd ", int *restrict " fd2p ); -.PP +.P .BI "int rresvport(int *" port ); -.PP +.P .BI "int iruserok(uint32_t " raddr ", int " superuser , .BI " const char *" ruser ", const char *" luser ); .BI "int ruserok(const char *" rhost ", int " superuser , .BI " const char *" ruser ", const char *" luser ); -.PP +.P .BI "int rcmd_af(char **restrict " ahost ", unsigned short " inport , .BI " const char *restrict " locuser , .BI " const char *restrict " remuser , .BI " const char *restrict " cmd ", int *restrict " fd2p , .BI " sa_family_t " af ); -.PP +.P .BI "int rresvport_af(int *" port ", sa_family_t " af ); -.PP +.P .BI "int iruserok_af(const void *restrict " raddr ", int " superuser , .BI " const char *restrict " ruser ", const char *restrict " luser , .BI " sa_family_t " af ); @@ -52,13 +52,13 @@ Standard C library .BI " const char *" ruser ", const char *" luser , .BI " sa_family_t " af ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE .ad l -.PP +.P .BR rcmd (), .BR rcmd_af (), .BR rresvport (), @@ -110,7 +110,7 @@ is set to the standard name of the host and a connection is established to a server residing at the well-known Internet port .IR inport . -.PP +.P If the connection succeeds, a socket in the Internet domain of type .B SOCK_STREAM @@ -139,7 +139,7 @@ command) will be made the same as the and no provision is made for sending arbitrary signals to the remote process, although you may be able to get its attention by using out-of-band data. -.PP +.P The protocol is described in detail in .BR rshd (8). .SS rresvport() @@ -182,7 +182,7 @@ If that lookup is not done, or is unsuccessful, the .I .rhosts in the local user's home directory is checked to see if the request for service is allowed. -.PP +.P If this file does not exist, is not a regular file, is owned by anyone other than the user or the superuser, is writable by anyone other than the owner, or is hardlinked anywhere, the check automatically fails. @@ -198,7 +198,7 @@ return \-1. If the local domain (as obtained from .BR gethostname (2)) is the same as the remote domain, only the machine name need be specified. -.PP +.P If the IP address of the remote host is known, .BR iruserok () should be used in preference to @@ -226,7 +226,7 @@ The function returns a valid socket descriptor on success. It returns \-1 on error and prints a diagnostic message on the standard error. -.PP +.P The .BR rresvport () function @@ -237,7 +237,7 @@ to indicate the error. The error code .B EAGAIN is overloaded to mean: "All network ports in use". -.PP +.P For information on the return from .BR ruserok () and @@ -272,7 +272,6 @@ T{ .BR ruserok_af () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS BSD. .SH HISTORY @@ -285,7 +284,7 @@ BSD. .TQ .BR ruserok_af () glibc 2.2. -.PP +.P Solaris, 4.2BSD. The "_af" variants are more recent additions, and are not present on as wide a range of systems. diff --git a/upstream/opensuse-tumbleweed/man3/re_comp.3 b/upstream/opensuse-tumbleweed/man3/re_comp.3 index 3cb44501..16e0a5aa 100644 --- a/upstream/opensuse-tumbleweed/man3/re_comp.3 +++ b/upstream/opensuse-tumbleweed/man3/re_comp.3 @@ -5,7 +5,7 @@ .\" .\" Wed Jun 14 16:10:28 BST 1995 Wilf. (G.Wilford@@ee.surrey.ac.uk) .\" -.TH re_comp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH re_comp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME re_comp, re_exec \- BSD regex functions .SH LIBRARY @@ -16,7 +16,7 @@ Standard C library .B #define _REGEX_RE_COMP .B #include .B #include -.PP +.P .BI "[[deprecated]] char *re_comp(const char *" regex ); .BI "[[deprecated]] int re_exec(const char *" string ); .fi @@ -32,7 +32,7 @@ If is NULL, no operation is performed and the pattern buffer's contents are not altered. -.PP +.P .BR re_exec () is used to assess whether the null-terminated string pointed to by .I string @@ -43,7 +43,7 @@ matches the previously compiled returns NULL on successful compilation of .I regex otherwise it returns a pointer to an appropriate error message. -.PP +.P .BR re_exec () returns 1 for a successful match, zero for failure. .SH ATTRIBUTES @@ -61,12 +61,11 @@ T{ .BR re_exec () T} Thread safety MT-Unsafe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY 4.3BSD. -.PP +.P These functions are obsolete; the functions documented in .BR regcomp (3) should be used instead. diff --git a/upstream/opensuse-tumbleweed/man3/readdir.3 b/upstream/opensuse-tumbleweed/man3/readdir.3 index 2e0ea092..887dde8c 100644 --- a/upstream/opensuse-tumbleweed/man3/readdir.3 +++ b/upstream/opensuse-tumbleweed/man3/readdir.3 @@ -14,7 +14,7 @@ .\" 2007-07-30 Ulrich Drepper , mtk: .\" Rework discussion of nonstandard structure fields. .\" -.TH readdir 3 2023-07-20 "Linux man-pages 6.05.01" +.TH readdir 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME readdir \- read a directory .SH LIBRARY @@ -23,7 +23,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "struct dirent *readdir(DIR *" dirp ); .fi .SH DESCRIPTION @@ -34,11 +34,11 @@ representing the next directory entry in the directory stream pointed to by \fIdirp\fP. It returns NULL on reaching the end of the directory stream or if an error occurred. -.PP +.P In the glibc implementation, the .I dirent structure is defined as follows: -.PP +.P .in +4n .EX struct dirent { @@ -51,7 +51,7 @@ struct dirent { }; .EE .in -.PP +.P The only fields in the .I dirent structure that are mandated by POSIX.1 are @@ -60,7 +60,7 @@ and .IR d_ino . The other fields are unstandardized, and not present on all systems; see NOTES below for some further details. -.PP +.P The fields of the .I dirent structure are as follows: @@ -139,7 +139,7 @@ All applications must properly handle a return of .I d_name This field contains the null terminated filename. .IR "See NOTES" . -.PP +.P The data returned by .BR readdir () may be overwritten by subsequent calls to @@ -154,7 +154,7 @@ structure. (This structure may be statically allocated; do not attempt to .BR free (3) it.) -.PP +.P If the end of the directory stream is reached, NULL is returned and .I errno is not changed. @@ -186,8 +186,7 @@ T{ .BR readdir () T} Thread safety MT-Unsafe race:dirstream .TE -.sp 1 -.PP +.P In the current POSIX.1 specification (POSIX.1-2008), .BR readdir () is not required to be thread-safe. @@ -235,7 +234,7 @@ structure definition shown above is taken from the glibc headers, and shows the .I d_name field with a fixed size. -.PP +.P .IR Warning : applications should avoid any dependence on the size of the .I d_name @@ -245,7 +244,7 @@ POSIX defines it as a character array of unspecified size, with at most .B NAME_MAX characters preceding the terminating null byte (\[aq]\e0\[aq]). -.PP +.P POSIX.1 explicitly notes that this field should not be used as an lvalue. The standard also notes that the use of .I sizeof(d_name) @@ -259,15 +258,15 @@ By implication, the use to capture the size of the record including the size of .I d_name is also incorrect. -.PP +.P Note that while the call -.PP +.P .in +4n .EX fpathconf(fd, _PC_NAME_MAX) .EE .in -.PP +.P returns the value 255 for most filesystems, on some filesystems (e.g., CIFS, Windows SMB servers), the null-terminated filename that is (correctly) returned in @@ -285,7 +284,7 @@ POSIX.1-2001, SVr4, 4.3BSD. .SH NOTES A directory stream is opened using .BR opendir (3). -.PP +.P The order in which filenames are read by successive calls to .BR readdir () depends on the filesystem implementation; diff --git a/upstream/opensuse-tumbleweed/man3/readdir_r.3 b/upstream/opensuse-tumbleweed/man3/readdir_r.3 index f853e51b..a46c19c2 100644 --- a/upstream/opensuse-tumbleweed/man3/readdir_r.3 +++ b/upstream/opensuse-tumbleweed/man3/readdir_r.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH readdir_r 3 2023-07-20 "Linux man-pages 6.05.01" +.TH readdir_r 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME readdir_r \- read a directory .SH LIBRARY @@ -13,17 +13,17 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] int readdir_r(DIR *restrict " dirp , .BI " struct dirent *restrict " entry , .BI " struct dirent **restrict " result ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR readdir_r (): .nf _POSIX_C_SOURCE @@ -33,7 +33,7 @@ Feature Test Macro Requirements for glibc (see This function is deprecated; use .BR readdir (3) instead. -.PP +.P The .BR readdir_r () function was invented as a reentrant version of @@ -46,13 +46,13 @@ For details of the .I dirent structure, see .BR readdir (3). -.PP +.P A pointer to the returned buffer is placed in .IR *result ; if the end of the directory stream was encountered, then NULL is instead returned in .IR *result . -.PP +.P It is recommended that applications use .BR readdir (3) instead of @@ -137,7 +137,6 @@ T{ .BR readdir_r () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/realpath.3 b/upstream/opensuse-tumbleweed/man3/realpath.3 index 3f25e60b..581edf80 100644 --- a/upstream/opensuse-tumbleweed/man3/realpath.3 +++ b/upstream/opensuse-tumbleweed/man3/realpath.3 @@ -6,7 +6,7 @@ .\" Rewritten old page, 990824, aeb@cwi.nl .\" 2004-12-14, mtk, added discussion of resolved_path == NULL .\" -.TH realpath 3 2023-07-20 "Linux man-pages 6.05.01" +.TH realpath 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME realpath \- return the canonicalized absolute pathname .SH LIBRARY @@ -16,16 +16,16 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "char *realpath(const char *restrict " path , .BI " char *restrict " resolved_path ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR realpath (): .nf _XOPEN_SOURCE >= 500 @@ -53,7 +53,7 @@ The resulting path will have no symbolic link, or .I "/../" components. -.PP +.P If .I resolved_path is specified as NULL, then @@ -74,7 +74,7 @@ If there is no error, .BR realpath () returns a pointer to the .IR resolved_path . -.PP +.P Otherwise, it returns NULL, the contents of the array .I resolved_path @@ -130,7 +130,6 @@ T{ .BR realpath () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS .SS GNU extensions If the call fails with either @@ -147,12 +146,12 @@ that is not readable or does not exist is returned in POSIX.1-2008. .SH HISTORY 4.4BSD, POSIX.1-2001, Solaris. -.PP +.P POSIX.1-2001 says that the behavior if .I resolved_path is NULL is implementation-defined. POSIX.1-2008 specifies the behavior described in this page. -.PP +.P In 4.4BSD and Solaris, the limit on the pathname length is .B MAXPATHLEN (found in \fI\fP). @@ -164,7 +163,7 @@ as found in \fI\fP or provided by the .BR pathconf (3) function. A typical source fragment would be -.PP +.P .in +4n .EX #ifdef PATH_MAX @@ -176,9 +175,9 @@ A typical source fragment would be #endif .EE .in -.PP +.P (But see the BUGS section.) -.\".PP +.\".P .\" 2012-05-05, According to Casper Dik, the statement about .\" Solaris was not true at least as far back as 1997, and .\" may never have been true. @@ -217,7 +216,7 @@ The .I "resolved_path\ ==\ NULL" feature, not standardized in POSIX.1-2001, but standardized in POSIX.1-2008, allows this design problem to be avoided. -.\" .LP +.\" .P .\" The libc4 and libc5 implementation contained a buffer overflow .\" (fixed in libc-5.4.13). .\" Thus, set-user-ID programs like diff --git a/upstream/opensuse-tumbleweed/man3/recno.3 b/upstream/opensuse-tumbleweed/man3/recno.3 index a4a38d20..03bcf1c4 100644 --- a/upstream/opensuse-tumbleweed/man3/recno.3 +++ b/upstream/opensuse-tumbleweed/man3/recno.3 @@ -5,7 +5,7 @@ .\" .\" @(#)recno.3 8.5 (Berkeley) 8/18/94 .\" -.TH recno 3 2022-12-04 "Linux man-pages 6.05.01" +.TH recno 3 2024-05-02 "Linux man-pages (unreleased)" .UC 7 .SH NAME recno \- record number database access method @@ -26,7 +26,7 @@ Since glibc 2.2, glibc no longer provides these interfaces. Probably, you are looking for the APIs provided by the .I libdb library instead. -.PP +.P The routine .BR dbopen (3) is the library interface to database files. @@ -34,7 +34,7 @@ One of the supported file formats is record number files. The general description of the database access methods is in .BR dbopen (3), this manual page describes only the recno-specific information. -.PP +.P The record number data structure is either variable or fixed-length records stored in a flat-file format, accessed by the logical record number. @@ -43,13 +43,13 @@ one through four, and the deletion of record number one causes record number five to be renumbered to record number four, as well as the cursor, if positioned after record number one, to shift down one record. -.PP +.P The recno access-method-specific data structure provided to .BR dbopen (3) is defined in the .I include file as follows: -.PP +.P .in +4n .EX typedef struct { @@ -63,7 +63,7 @@ typedef struct { } RECNOINFO; .EE .in -.PP +.P The elements of this structure are defined as follows: .TP .I flags @@ -151,7 +151,7 @@ is non-NULL, it specifies the name of the btree file, as if specified as the filename for a .BR dbopen (3) of a btree file. -.PP +.P The data part of the key/data pair used by the .I recno access method @@ -169,12 +169,12 @@ the implementation. The .I size field of the key should be the size of that type. -.PP +.P Because there can be no metadata associated with the underlying recno access method files, any changes made to the default values (e.g., fixed record length or byte separator value) must be explicitly specified each time the file is opened. -.PP +.P In the interface specified by .BR dbopen (3), using the @@ -201,7 +201,7 @@ Only big and little endian byte order is supported. .BR dbopen (3), .BR hash (3), .BR mpool (3) -.PP +.P .IR "Document Processing in a Relational Database System" , Michael Stonebraker, Heidi Stettner, Joseph Kalash, Antonin Guttman, Nadene Lynn, Memorandum No. UCB/ERL M82/32, May 1982. diff --git a/upstream/opensuse-tumbleweed/man3/refresh.3ncurses b/upstream/opensuse-tumbleweed/man3/refresh.3ncurses index b09a7563..c7d5ec98 100644 --- a/upstream/opensuse-tumbleweed/man3/refresh.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/refresh.3ncurses @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_refresh.3x,v 1.42 2024/01/05 21:46:58 tom Exp $ -.TH refresh 3NCURSES 2024-01-05 "ncurses 6.4" "Library calls" +.\" $Id: curs_refresh.3x,v 1.46 2024/04/20 21:20:07 tom Exp $ +.TH refresh 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -133,7 +133,7 @@ These routines return the integer \fBERR\fP upon failure and \fBOK\fP \*(``an integer value other than \fBERR\fP\*('') upon successful completion. .PP -X/Open does not define any error conditions. +X/Open Curses does not specify any error conditions. In this implementation .RS 3 .TP 5 @@ -149,7 +149,7 @@ if the associated call to \fBtouchln\fP returns an error. .SH NOTES Note that \fBrefresh\fP and \fBredrawwin\fP may be macros. .SH PORTABILITY -The XSI Curses standard, Issue 4 describes these functions. +X/Open Curses, Issue 4 describes these functions. .PP Whether \fBwnoutrefresh\fP copies to the virtual screen the entire contents of a window or just its changed portions has never been well-documented in diff --git a/upstream/opensuse-tumbleweed/man3/regex.3 b/upstream/opensuse-tumbleweed/man3/regex.3 index fe6a6b34..2b3c7954 100644 --- a/upstream/opensuse-tumbleweed/man3/regex.3 +++ b/upstream/opensuse-tumbleweed/man3/regex.3 @@ -10,7 +10,7 @@ .\" Modified 8 May 1998 by Joseph S. Myers (jsm28@cam.ac.uk) .\" .\" show the synopsis section nicely -.TH regex 3 2023-07-20 "Linux man-pages 6.05.01" +.TH regex 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME regcomp, regexec, regerror, regfree \- POSIX regex functions .SH LIBRARY @@ -19,7 +19,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int regcomp(regex_t *restrict " preg ", const char *restrict " regex , .BI " int " cflags ); .BI "int regexec(const regex_t *restrict " preg \ @@ -27,21 +27,21 @@ Standard C library .BI " size_t " nmatch ", \ regmatch_t " pmatch "[_Nullable restrict ." nmatch ], .BI " int " eflags ); -.PP +.P .BI "size_t regerror(int " errcode ", const regex_t *_Nullable restrict " preg , .BI " char " errbuf "[_Nullable restrict ." errbuf_size ], .BI " size_t " errbuf_size ); .BI "void regfree(regex_t *" preg ); -.PP +.P .B typedef struct { .B " size_t re_nsub;" .B } regex_t; -.PP +.P .B typedef struct { .B " regoff_t rm_so;" .B " regoff_t rm_eo;" .B } regmatch_t; -.PP +.P .BR typedef " /* ... */ " regoff_t; .fi .SH DESCRIPTION @@ -51,7 +51,7 @@ is used to compile a regular expression into a form that is suitable for subsequent .BR regexec () searches. -.PP +.P On success, the pattern buffer at .I *preg is initialized. @@ -59,7 +59,7 @@ is initialized. is a null-terminated string. The locale must be the same when running .BR regexec (). -.PP +.P After .BR regcomp () succeeds, @@ -74,7 +74,7 @@ passed as to .BR regexec () is sufficient to capture all matches. -.PP +.P .I cflags is the bitwise OR @@ -205,12 +205,12 @@ unused elements of .I pmatch are filled with .BR \-1 s. -.PP +.P Each returned valid .RB (non- \-1 ) match corresponds to the range .RI [ "string + rm_so" , " string + rm_eo" ). -.PP +.P .I regoff_t is a signed integer type capable of storing the largest value that can be stored in either an @@ -225,14 +225,14 @@ is used to turn the error codes that can be returned by both and .BR regexec () into error message strings. -.PP +.P If .I preg isn't a null pointer, .I errcode must be the latest error returned from an operation on .IR preg . -.PP +.P If .I errbuf_size isn't 0, up to @@ -251,12 +251,12 @@ must have been initialized via .SH RETURN VALUE .BR regcomp () returns zero for a successful compilation or an error code for failure. -.PP +.P .BR regexec () returns zero for a successful match or .B REG_NOMATCH for failure. -.PP +.P .BR regerror () returns the size of the buffer required to hold the string. .SH ERRORS @@ -333,12 +333,11 @@ T{ .BR regfree () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY POSIX.1-2001. -.PP +.P Prior to POSIX.1-2008, .I regoff_t was required to be @@ -353,7 +352,7 @@ is only required to be initialized if .B REG_NOSUB wasn't specified, but all known implementations initialize it regardless. .\" glibc, musl, 4.4BSD, illumos -.PP +.P Both .I regex_t and @@ -407,6 +406,6 @@ int main(void) .SH SEE ALSO .BR grep (1), .BR regex (7) -.PP +.P The glibc manual section, .I "Regular Expressions" diff --git a/upstream/opensuse-tumbleweed/man3/remainder.3 b/upstream/opensuse-tumbleweed/man3/remainder.3 index df97879b..430e81c0 100644 --- a/upstream/opensuse-tumbleweed/man3/remainder.3 +++ b/upstream/opensuse-tumbleweed/man3/remainder.3 @@ -15,7 +15,7 @@ .\" (walter.harms@informatik.uni-oldenburg.de) .\" Modified 2003-11-18, 2004-10-05 aeb .\" -.TH remainder 3 2023-07-20 "Linux man-pages 6.05.01" +.TH remainder 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME drem, dremf, dreml, remainder, remainderf, remainderl \- \ floating-point remainder function @@ -25,22 +25,22 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double remainder(double " x ", double " y ); .BI "float remainderf(float " x ", float " y ); .BI "long double remainderl(long double " x ", long double " y ); -.PP +.P /* Obsolete synonyms */ .BI "[[deprecated]] double drem(double " x ", double " y ); .BI "[[deprecated]] float dremf(float " x ", float " y ); .BI "[[deprecated]] long double dreml(long double " x ", long double " y ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR remainder (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -49,7 +49,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR remainderf (), .BR remainderl (): .nf @@ -57,7 +57,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR drem (), .BR dremf (), .BR dreml (): @@ -83,10 +83,10 @@ If the absolute value of is 0.5, .I n is chosen to be even. -.PP +.P These functions are unaffected by the current rounding mode (see .BR fenv (3)). -.PP +.P The .BR drem () function does precisely the same thing. @@ -96,13 +96,13 @@ functions return the floating-point remainder, \fIx\fP\-\fIn\fP*\fIy\fP. If the return value is 0, it has the sign of .IR x . -.PP +.P If .I x or .I y is a NaN, a NaN is returned. -.PP +.P If .I x is an infinity, @@ -111,7 +111,7 @@ and is not a NaN, a domain error occurs, and a NaN is returned. -.PP +.P If .I y is zero, @@ -127,7 +127,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP is an infinity and \fIy\fP is not a NaN @@ -169,7 +169,6 @@ T{ .BR remainderl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .\" IEC 60559. .TP @@ -207,16 +206,16 @@ Tru64, glibc2. Before glibc 2.15, .\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=6779 the call -.PP +.P .in +4n .EX remainder(nan(""), 0); .EE .in -.PP +.P returned a NaN, as expected, but wrongly caused a domain error. Since glibc 2.15, a silent NaN (i.e., no domain error) is returned. -.PP +.P Before glibc 2.15, .\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=6783 .I errno diff --git a/upstream/opensuse-tumbleweed/man3/remove.3 b/upstream/opensuse-tumbleweed/man3/remove.3 index d814d719..b6bedf13 100644 --- a/upstream/opensuse-tumbleweed/man3/remove.3 +++ b/upstream/opensuse-tumbleweed/man3/remove.3 @@ -9,7 +9,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH remove 3 2023-07-20 "Linux man-pages 6.05.01" +.TH remove 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME remove \- remove a file or directory .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int remove(const char *" pathname ); .fi .SH DESCRIPTION @@ -29,18 +29,18 @@ It calls for files, and .BR rmdir (2) for directories. -.PP +.P If the removed name was the last link to a file and no processes have the file open, the file is deleted and the space it was using is made available for reuse. -.PP +.P If the name was the last link to a file, but any processes still have the file open, the file will remain in existence until the last file descriptor referring to it is closed. -.PP +.P If the name referred to a symbolic link, the link is removed. -.PP +.P If the name referred to a socket, FIFO, or device, the name is removed, but processes which have the object open may continue to use it. .SH RETURN VALUE @@ -67,7 +67,6 @@ T{ .BR remove () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/remquo.3 b/upstream/opensuse-tumbleweed/man3/remquo.3 index 4fd76eaa..4a78671b 100644 --- a/upstream/opensuse-tumbleweed/man3/remquo.3 +++ b/upstream/opensuse-tumbleweed/man3/remquo.3 @@ -8,7 +8,7 @@ .\" based on glibc infopages .\" polished, aeb .\" -.TH remquo 3 2023-07-20 "Linux man-pages 6.05.01" +.TH remquo 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME remquo, remquof, remquol \- remainder and part of quotient .SH LIBRARY @@ -17,17 +17,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double remquo(double " x ", double " y ", int *" quo ); .BI "float remquof(float " x ", float " y ", int *" quo ); .BI "long double remquol(long double " x ", long double " y ", int *" quo ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR remquo (), .BR remquof (), .BR remquol (): @@ -44,17 +44,17 @@ A few bits of the quotient are stored via the .I quo pointer. The remainder is returned as the function result. -.PP +.P The value of the remainder is the same as that computed by the .BR remainder (3) function. -.PP +.P The value stored via the .I quo pointer has the sign of .I x\~/\~y and agrees with the quotient in at least the low order 3 bits. -.PP +.P For example, \fIremquo(29.0,\ 3.0)\fP returns \-1.0 and might store 2. Note that the actual quotient might not fit in an integer. .\" A possible application of this function might be the computation @@ -66,13 +66,13 @@ Note that the actual quotient might not fit in an integer. On success, these functions return the same value as the analogous functions described in .BR remainder (3). -.PP +.P If .I x or .I y is a NaN, a NaN is returned. -.PP +.P If .I x is an infinity, @@ -81,7 +81,7 @@ and is not a NaN, a domain error occurs, and a NaN is returned. -.PP +.P If .I y is zero, @@ -95,7 +95,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP is an infinity or \fIy\fP is 0, \ @@ -106,7 +106,7 @@ and the other argument is not a NaN An invalid floating-point exception .RB ( FE_INVALID ) is raised. -.PP +.P These functions do not set .IR errno . .\" FIXME . Is it intentional that these functions do not set errno? @@ -127,7 +127,6 @@ T{ .BR remquol () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/requestname.3form b/upstream/opensuse-tumbleweed/man3/requestname.3form index 94151958..7fe481b7 100644 --- a/upstream/opensuse-tumbleweed/man3/requestname.3form +++ b/upstream/opensuse-tumbleweed/man3/requestname.3form @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_requestname.3x,v 1.33 2023/12/16 20:32:22 tom Exp $ -.TH requestname 3FORM 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: form_requestname.3x,v 1.35 2024/03/16 15:35:01 tom Exp $ +.TH requestname 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBform_request_by_name\fP, \fBform_request_name\fP \- diff --git a/upstream/opensuse-tumbleweed/man3/requestname.3menu b/upstream/opensuse-tumbleweed/man3/requestname.3menu index fe1fdd1c..ed34a60a 100644 --- a/upstream/opensuse-tumbleweed/man3/requestname.3menu +++ b/upstream/opensuse-tumbleweed/man3/requestname.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: menu_requestname.3x,v 1.31 2023/12/16 20:32:22 tom Exp $ -.TH requestname 3MENU 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: menu_requestname.3x,v 1.33 2024/03/16 15:35:01 tom Exp $ +.TH requestname 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBmenu_request_by_name\fP, \fBmenu_request_name\fP \- diff --git a/upstream/opensuse-tumbleweed/man3/resizeterm.3ncurses b/upstream/opensuse-tumbleweed/man3/resizeterm.3ncurses index d79428f0..4c163beb 100644 --- a/upstream/opensuse-tumbleweed/man3/resizeterm.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/resizeterm.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2015,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -29,8 +29,8 @@ .\" .\" Author: Thomas E. Dickey 1996-on .\" -.\" $Id: resizeterm.3x,v 1.54 2023/12/16 20:32:22 tom Exp $ -.TH resizeterm 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: resizeterm.3x,v 1.56 2024/03/16 15:35:01 tom Exp $ +.TH resizeterm 3NCURSES 2024-03-16 "ncurses 6.5" "Library calls" .de bP .ie n .IP \(bu 4 .el .IP \(bu 2 diff --git a/upstream/opensuse-tumbleweed/man3/resolver.3 b/upstream/opensuse-tumbleweed/man3/resolver.3 index 416951f1..cc5f404e 100644 --- a/upstream/opensuse-tumbleweed/man3/resolver.3 +++ b/upstream/opensuse-tumbleweed/man3/resolver.3 @@ -11,7 +11,7 @@ .\" Modified 1993-07-25 by Rik Faith (faith@cs.unc.edu) .\" Modified 2004-10-31 by aeb .\" -.TH resolver 3 2023-07-20 "Linux man-pages 6.05.01" +.TH resolver 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME res_ninit, res_nquery, res_nsearch, res_nquerydomain, res_nmkquery, res_nsend, res_nclose, @@ -26,71 +26,71 @@ Resolver library .B #include .B #include .B #include -.PP +.P .B struct __res_state; .B typedef struct __res_state *res_state; -.PP +.P .BI "int res_ninit(res_state " statep ); -.PP +.P .BI "void res_nclose(res_state " statep ); -.PP +.P .BI "int res_nquery(res_state " statep , .BI " const char *" dname ", int " class ", int " type , .BI " unsigned char " answer [. anslen "], int " anslen ); -.PP +.P .BI "int res_nsearch(res_state " statep , .BI " const char *" dname ", int " class ", int " type , .BI " unsigned char " answer [. anslen "], int " anslen ); -.PP +.P .BI "int res_nquerydomain(res_state " statep , .BI " const char *" name ", const char *" domain , .BI " int " class ", int " type ", unsigned char " answer [. anslen ], .BI " int " anslen ); -.PP +.P .BI "int res_nmkquery(res_state " statep , .BI " int " op ", const char *" dname ", int " class , .BI " int " type ", const unsigned char " data [. datalen "], \ int " datalen , .BI " const unsigned char *" newrr , .BI " unsigned char " buf [. buflen "], int " buflen ); -.PP +.P .BI "int res_nsend(res_state " statep , .BI " const unsigned char " msg [. msglen "], int " msglen , .BI " unsigned char " answer [. anslen "], int " anslen ); -.PP +.P .BI "int dn_comp(const char *" exp_dn ", unsigned char " comp_dn [. length ], .BI " int " length ", unsigned char **" dnptrs , .BI " unsigned char **" lastdnptr ); -.PP +.P .BI "int dn_expand(const unsigned char *" msg , .BI " const unsigned char *" eomorig , .BI " const unsigned char *" comp_dn ", char " exp_dn [. length ], .BI " int " length ); -.PP +.P .B [[deprecated]] extern struct __res_state _res; -.PP +.P .B [[deprecated]] int res_init(void); -.PP +.P .B [[deprecated]] .BI "int res_query(const char *" dname ", int " class ", int " type , .BI " unsigned char " answer [. anslen "], int " anslen ); -.PP +.P .B [[deprecated]] .BI "int res_search(const char *" dname ", int " class ", int " type , .BI " unsigned char " answer [. anslen "], int " anslen ); -.PP +.P .B [[deprecated]] .BI "int res_querydomain(const char *" name ", const char *" domain , .BI " int " class ", int " type ", unsigned char " answer [. anslen ], .BI " int " anslen ); -.PP +.P .B [[deprecated]] .BI "int res_mkquery(int " op ", const char *" dname ", int " class , .BI " int " type ", const unsigned char " data [. datalen "], \ int " datalen , .BI " const unsigned char *" newrr , .BI " unsigned char " buf [. buflen "], int " buflen ); -.PP +.P .B [[deprecated]] .BI "int res_send(const unsigned char " msg [. msglen "], int " msglen , .BI " unsigned char " answer [. anslen "], int " anslen ); @@ -99,10 +99,10 @@ int " datalen , .B Note: This page is incomplete (various resolver functions provided by glibc are not described) and likely out of date. -.PP +.P The functions described below make queries to and interpret the responses from Internet domain name servers. -.PP +.P The API consists of a set of more modern, reentrant functions and an older set of nonreentrant functions that have been superseded. The traditional resolver interfaces such as @@ -118,7 +118,7 @@ BIND 8.2 introduced a set of new interfaces and so on, which take a .I res_state as their first argument, so you can use a per-thread resolver state. -.PP +.P The .BR res_ninit () and @@ -144,7 +144,7 @@ to free memory allocated by .BR res_ninit () and subsequent calls to .BR res_nquery (). -.PP +.P The .BR res_nquery () and @@ -154,7 +154,7 @@ fully qualified domain name \fIname\fP of specified \fItype\fP and \fIclass\fP. The reply is left in the buffer \fIanswer\fP of length \fIanslen\fP supplied by the caller. -.PP +.P The .BR res_nsearch () and @@ -170,7 +170,7 @@ and .B RES_DNSRCH (see description of \fI_res\fP options below). -.PP +.P The .BR res_nquerydomain () and @@ -178,10 +178,10 @@ and functions make a query using .BR res_nquery ()/ res_query () on the concatenation of \fIname\fP and \fIdomain\fP. -.PP +.P The following functions are lower-level routines used by .BR res_nquery ()/ res_query (). -.PP +.P The .BR res_nmkquery () and @@ -203,9 +203,9 @@ since it has not been supported by DNS servers for a very long time. .TP .B NS_NOTIFY_OP Notify secondary of SOA (Start of Authority) change. -.PP +.P \fInewrr\fP is currently unused. -.PP +.P The .BR res_nsend () and @@ -216,7 +216,7 @@ which is of length \fIanslen\fP. They will call .BR res_ninit ()/ res_init () if it has not already been called. -.PP +.P The .BR dn_comp () function compresses the domain name \fIexp_dn\fP @@ -229,7 +229,7 @@ The limit of the array is specified by \fIlastdnptr\fP. If \fIdnptr\fP is NULL, domain names are not compressed. If \fIlastdnptr\fP is NULL, the list of labels is not updated. -.PP +.P The .BR dn_expand () function expands the compressed domain name @@ -238,7 +238,7 @@ function expands the compressed domain name The compressed name is contained in a query or reply message, and \fImsg\fP points to the beginning of the message. -.PP +.P The resolver routines use configuration and state information contained in a .I __res_state @@ -427,7 +427,7 @@ and .BR res_init () functions return 0 on success, or \-1 if an error occurs. -.PP +.P The .BR res_nquery (), .BR res_query (), @@ -442,14 +442,14 @@ and .BR res_send () functions return the length of the response, or \-1 if an error occurs. -.PP +.P The .BR dn_comp () and .BR dn_expand () functions return the length of the compressed name, or \-1 if an error occurs. -.PP +.P In the case of an error return from .BR res_nquery (), .BR res_query (), @@ -496,7 +496,6 @@ T{ .BR dn_expand () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY @@ -507,6 +506,6 @@ None. .BR resolver (5), .BR hostname (7), .BR named (8) -.PP +.P The GNU C library source file .IR resolv/README . diff --git a/upstream/opensuse-tumbleweed/man3/rewinddir.3 b/upstream/opensuse-tumbleweed/man3/rewinddir.3 index 61221baa..74ab9034 100644 --- a/upstream/opensuse-tumbleweed/man3/rewinddir.3 +++ b/upstream/opensuse-tumbleweed/man3/rewinddir.3 @@ -9,7 +9,7 @@ .\" 386BSD man pages .\" Modified Sat Jul 24 18:29:11 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified 11 June 1995 by Andries Brouwer (aeb@cwi.nl) -.TH rewinddir 3 2023-07-20 "Linux man-pages 6.05.01" +.TH rewinddir 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME rewinddir \- reset directory stream .SH LIBRARY @@ -19,7 +19,7 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "void rewinddir(DIR *" dirp ); .fi .SH DESCRIPTION @@ -47,7 +47,6 @@ T{ .BR rewinddir () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/rexec.3 b/upstream/opensuse-tumbleweed/man3/rexec.3 index 7f94d27a..7b6c839f 100644 --- a/upstream/opensuse-tumbleweed/man3/rexec.3 +++ b/upstream/opensuse-tumbleweed/man3/rexec.3 @@ -11,7 +11,7 @@ .\" .\" 2013-06-21, mtk, Converted from mdoc to man macros .\" -.TH rexec 3 2023-07-20 "Linux man-pages 6.05.01" +.TH rexec 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME rexec, rexec_af \- return stream to a remote command .SH LIBRARY @@ -20,19 +20,19 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B [[deprecated]] .BI "int rexec(char **restrict " ahost ", int " inport , .BI " const char *restrict " user ", const char *restrict " passwd , .BI " const char *restrict " cmd ", int *restrict " fd2p ); -.PP +.P .B [[deprecated]] .BI "int rexec_af(char **restrict " ahost ", int " inport , .BI " const char *restrict " user ", const char *restrict " passwd , .BI " const char *restrict " cmd ", int *restrict " fd2p , .BI " sa_family_t " af ); .fi -.PP +.P .BR rexec (), .BR rexec_af (): .nf @@ -44,7 +44,7 @@ Standard C library .SH DESCRIPTION This interface is obsoleted by .BR rcmd (3). -.PP +.P The .BR rexec () function @@ -63,7 +63,7 @@ the environment and then the file in user's home directory are searched for appropriate information. If all this fails, the user is prompted for the information. -.PP +.P The port .I inport specifies which well-known DARPA Internet port to use for @@ -74,7 +74,7 @@ the connection; the call will return a pointer to a structure that contains the necessary port. The protocol for connection is described in detail in .BR rexecd (8). -.PP +.P If the connection succeeds, a socket in the Internet domain of type .B SOCK_STREAM @@ -138,7 +138,6 @@ T{ .BR rexec_af () T} Thread safety MT-Unsafe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY @@ -152,7 +151,7 @@ glibc 2.2. The .BR rexec () function sends the unencrypted password across the network. -.PP +.P The underlying service is considered a big security hole and therefore not enabled on many sites; see .BR rexecd (8) diff --git a/upstream/opensuse-tumbleweed/man3/rint.3 b/upstream/opensuse-tumbleweed/man3/rint.3 index 945f48bc..87538b04 100644 --- a/upstream/opensuse-tumbleweed/man3/rint.3 +++ b/upstream/opensuse-tumbleweed/man3/rint.3 @@ -5,7 +5,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH rint 3 2023-07-20 "Linux man-pages 6.05.01" +.TH rint 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME nearbyint, nearbyintf, nearbyintl, rint, rintf, rintl \- round to nearest integer @@ -15,28 +15,28 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double nearbyint(double " x ); .BI "float nearbyintf(float " x ); .BI "long double nearbyintl(long double " x ); -.PP +.P .BI "double rint(double " x ); .BI "float rintf(float " x ); .BI "long double rintl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR nearbyint (), .BR nearbyintf (), .BR nearbyintl (): .nf _POSIX_C_SOURCE >= 200112L || _ISOC99_SOURCE .fi -.PP +.P .BR rint (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -45,7 +45,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR rintf (), .BR rintl (): .nf @@ -68,7 +68,7 @@ exception. When the current rounding direction is to nearest, these functions round halfway cases to the even integer in accordance with IEEE-754. -.PP +.P The .BR rint (), .BR rintf (), @@ -83,7 +83,7 @@ checkable via when the result differs in value from the argument. .SH RETURN VALUE These functions return the rounded integer value. -.PP +.P If .I x is integral, +0, \-0, NaN, or infinite, @@ -111,7 +111,6 @@ T{ .BR rintl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -133,7 +132,7 @@ the maximum value of the exponent is 127 (respectively, 1023), and the number of mantissa bits including the implicit bit is 24 (respectively, 53).) -.PP +.P If you want to store the rounded value in an integer type, you probably want to use one of the functions described in .BR lrint (3) diff --git a/upstream/opensuse-tumbleweed/man3/round.3 b/upstream/opensuse-tumbleweed/man3/round.3 index 591875fe..86bc3737 100644 --- a/upstream/opensuse-tumbleweed/man3/round.3 +++ b/upstream/opensuse-tumbleweed/man3/round.3 @@ -5,7 +5,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH round 3 2023-07-20 "Linux man-pages 6.05.01" +.TH round 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME round, roundf, roundl \- round to nearest integer, away from zero .SH LIBRARY @@ -14,17 +14,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double round(double " x ); .BI "float roundf(float " x ); .BI "long double roundl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR round (), .BR roundf (), .BR roundl (): @@ -40,7 +40,7 @@ direction, see .BR fenv (3)), instead of to the nearest even integer like .BR rint (3). -.PP +.P For example, .I round(0.5) is 1.0, and @@ -48,7 +48,7 @@ is 1.0, and is \-1.0. .SH RETURN VALUE These functions return the rounded integer value. -.PP +.P If .I x is integral, +0, \-0, NaN, or infinite, @@ -73,7 +73,6 @@ T{ .BR roundl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -97,7 +96,7 @@ the maximum value of the exponent is 127 (respectively, 1023), and the number of mantissa bits including the implicit bit is 24 (respectively, 53).) -.PP +.P If you want to store the rounded value in an integer type, you probably want to use one of the functions described in .BR lround (3) diff --git a/upstream/opensuse-tumbleweed/man3/roundup.3 b/upstream/opensuse-tumbleweed/man3/roundup.3 index d21949e1..4265e969 100644 --- a/upstream/opensuse-tumbleweed/man3/roundup.3 +++ b/upstream/opensuse-tumbleweed/man3/roundup.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH roundup 3 2023-03-30 "Linux man-pages 6.05.01" +.TH roundup 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME roundup \- round up in steps .SH LIBRARY @@ -11,7 +11,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI roundup( x ", " step ); .fi .SH DESCRIPTION @@ -21,11 +21,11 @@ to the nearest multiple of .I step that is not less than .IR x . -.PP +.P It is typically used for rounding up a pointer to align it or increasing a buffer to be allocated. -.PP +.P This API is not designed to be generic, and doesn't work in some cases that are not important for the typical use cases described above. @@ -36,13 +36,13 @@ This macro returns the rounded value. None. .SH CAVEATS The arguments may be evaluated more than once. -.PP +.P .I x should be nonnegative, and .I step should be positive. -.PP +.P If .I x + step would overflow or wrap around, diff --git a/upstream/opensuse-tumbleweed/man3/rpc.3 b/upstream/opensuse-tumbleweed/man3/rpc.3 index 4923e8a5..3de97044 100644 --- a/upstream/opensuse-tumbleweed/man3/rpc.3 +++ b/upstream/opensuse-tumbleweed/man3/rpc.3 @@ -9,7 +9,7 @@ .\" .\" 2007-12-30, mtk, Convert function prototypes to modern C syntax .\" -.TH rpc 3 2023-07-20 "Linux man-pages 6.05.01" +.TH rpc 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME rpc \- library routines for remote procedure calls .SH LIBRARY @@ -22,28 +22,28 @@ First, the client calls a procedure to send a data packet to the server. Upon receipt of the packet, the server calls a dispatch routine to perform the requested service, and then sends back a reply. Finally, the procedure call returns to the client. -.\" .LP +.\" .P .\" We don't have an rpc_secure.3 page at the moment -- MTK, 19 Sep 05 .\" Routines that are used for Secure RPC (DES authentication) are described in .\" .BR rpc_secure (3). .\" Secure RPC can be used only if DES encryption is available. -.PP +.P To take use of these routines, include the header file .IR "" . -.PP +.P The prototypes below make use of the following types: -.PP +.P .RS 4 .EX .BI "typedef int " bool_t ; -.PP +.P .BI "typedef bool_t (*" xdrproc_t ")(XDR *, void *, ...);" -.PP +.P .BI "typedef bool_t (*" resultproc_t ")(caddr_t " resp , .BI " struct sockaddr_in *" raddr ); .EE .RE -.PP +.P See the header files for the declarations of the .IR AUTH , .IR CLIENT , @@ -51,7 +51,7 @@ See the header files for the declarations of the and .I XDR types. -.PP +.P .nf .BI "void auth_destroy(AUTH *" auth ); .fi @@ -63,7 +63,7 @@ The use of .I auth is undefined after calling .BR auth_destroy (). -.PP +.P .nf .B AUTH *authnone_create(void); .fi @@ -72,7 +72,7 @@ Create and return an RPC authentication handle that passes nonusable authentication information with each remote procedure call. This is the default authentication used by RPC. -.PP +.P .nf .BI "AUTH *authunix_create(char *" host ", uid_t " uid ", gid_t " gid , .BI " int " len ", gid_t " aup_gids [. len ]); @@ -92,7 +92,7 @@ and .I aup_gids refer to a counted array of groups to which the user belongs. It is easy to impersonate a user. -.PP +.P .nf .B AUTH *authunix_create_default(void); .fi @@ -100,7 +100,7 @@ It is easy to impersonate a user. Calls .BR authunix_create () with the appropriate parameters. -.PP +.P .nf .BI "int callrpc(char *" host ", unsigned long " prognum , .BI " unsigned long " versnum ", unsigned long " procnum , @@ -136,7 +136,7 @@ uses UDP/IP as a transport; see .BR clntudp_create () for restrictions. You do not have control of timeouts or authentication using this routine. -.PP +.P .nf .BI "enum clnt_stat clnt_broadcast(unsigned long " prognum , .BI " unsigned long " versnum ", unsigned long " procnum , @@ -177,7 +177,7 @@ waits for more replies; otherwise it returns with appropriate status. Warning: broadcast sockets are limited in size to the maximum transfer unit of the data link. For ethernet, this value is 1500 bytes. -.PP +.P .nf .BI "enum clnt_stat clnt_call(CLIENT *" clnt ", unsigned long " procnum , .BI " xdrproc_t " inproc ", char *" in , @@ -202,7 +202,7 @@ is used to encode the procedure's parameters, and is used to decode the procedure's results; .I tout is the time allowed for results to come back. -.PP +.P .nf .BI "clnt_destroy(CLIENT *" clnt ); .fi @@ -218,7 +218,7 @@ is undefined after calling .BR clnt_destroy (). If the RPC library opened the associated socket, it will close it also. Otherwise, the socket remains open. -.PP +.P .nf .BI "CLIENT *clnt_create(const char *" host ", unsigned long " prog , .BI " unsigned long " vers ", const char *" proto ); @@ -238,7 +238,7 @@ Warning: using UDP has its shortcomings. Since UDP-based RPC messages can hold only up to 8 Kbytes of encoded data, this transport cannot be used for procedures that take large arguments or return huge results. -.PP +.P .nf .BI "bool_t clnt_control(CLIENT *" cl ", int " req ", char *" info ); .fi @@ -285,7 +285,7 @@ The following operations are valid for UDP only: The retry timeout is the time that "UDP RPC" waits for the server to reply before retransmitting the request. -.PP +.P .nf .BI "clnt_freeres(CLIENT * " clnt ", xdrproc_t " outproc ", char *" out ); .fi @@ -299,7 +299,7 @@ is the address of the results, and is the XDR routine describing the results. This routine returns one if the results were successfully freed, and zero otherwise. -.PP +.P .nf .BI "void clnt_geterr(CLIENT *" clnt ", struct rpc_err *" errp ); .fi @@ -307,7 +307,7 @@ and zero otherwise. A macro that copies the error structure out of the client handle to the structure at address .IR errp . -.PP +.P .nf .BI "void clnt_pcreateerror(const char *" s ); .fi @@ -324,7 +324,7 @@ Used when a or .BR clntudp_create () call fails. -.PP +.P .nf .BI "void clnt_perrno(enum clnt_stat " stat ); .fi @@ -334,7 +334,7 @@ to the condition indicated by .IR stat . Used after .BR callrpc (). -.PP +.P .nf .BI "clnt_perror(CLIENT *" clnt ", const char *" s ); .fi @@ -347,7 +347,7 @@ The message is prepended with string and a colon. Used after .BR clnt_call (). -.PP +.P .nf .BI "char *clnt_spcreateerror(const char *" s ); .fi @@ -357,7 +357,7 @@ Like except that it returns a string instead of printing to the standard error. .IP Bugs: returns pointer to static data that is overwritten on each call. -.PP +.P .nf .BI "char *clnt_sperrno(enum clnt_stat " stat ); .fi @@ -385,7 +385,7 @@ and .BR clnt_sperrno () returns pointer to static data, but the result will not get overwritten on each call. -.PP +.P .nf .BI "char *clnt_sperror(CLIENT *" rpch ", const char *" s ); .fi @@ -397,7 +397,7 @@ except that (like it returns a string instead of printing to standard error. .IP Bugs: returns pointer to static data that is overwritten on each call. -.PP +.P .nf .BI "CLIENT *clntraw_create(unsigned long " prognum \ ", unsigned long " versnum ); @@ -414,7 +414,7 @@ corresponding RPC server should live in the same address space; see This allows simulation of RPC and acquisition of RPC overheads, such as round trip times, without any kernel interference. This routine returns NULL if it fails. -.PP +.P .nf .BI "CLIENT *clnttcp_create(struct sockaddr_in *" addr , .BI " unsigned long " prognum ", unsigned long " versnum , @@ -450,7 +450,7 @@ and .IR recvsz ; values of zero choose suitable defaults. This routine returns NULL if it fails. -.PP +.P .nf .BI "CLIENT *clntudp_create(struct sockaddr_in *" addr , .BI " unsigned long " prognum ", unsigned long " versnum , @@ -485,7 +485,7 @@ The total time for the call to time out is specified by Warning: since UDP-based RPC messages can hold only up to 8 Kbytes of encoded data, this transport cannot be used for procedures that take large arguments or return huge results. -.PP +.P .nf .BI "CLIENT *clntudp_bufcreate(struct sockaddr_in *" addr , .BI " unsigned long " prognum ", unsigned long " versnum , @@ -520,7 +520,7 @@ The total time for the call to time out is specified by .IP This allows the user to specify the maximum packet size for sending and receiving UDP-based RPC messages. -.PP +.P .nf .BI "void get_myaddress(struct sockaddr_in *" addr ); .fi @@ -531,7 +531,7 @@ without consulting the library routines that deal with .IR /etc/hosts . The port number is always set to .BR htons(PMAPPORT) . -.PP +.P .nf .BI "struct pmaplist *pmap_getmaps(struct sockaddr_in *" addr ); .fi @@ -545,7 +545,7 @@ This routine can return NULL. The command .I rpcinfo\~\-p uses this routine. -.PP +.P .nf .BI "unsigned short pmap_getport(struct sockaddr_in *" addr , .BI " unsigned long " prognum ", unsigned long " versnum , @@ -574,7 +574,7 @@ service. In the latter case, the global variable .I rpc_createerr contains the RPC status. -.PP +.P .nf .BI "enum clnt_stat pmap_rmtcall(struct sockaddr_in *" addr , .BI " unsigned long " prognum ", unsigned long " versnum , @@ -602,7 +602,7 @@ and This procedure should be used for a \[lq]ping\[rq] and nothing else. See also .BR clnt_broadcast (). -.PP +.P .nf .BI "bool_t pmap_set(unsigned long " prognum ", unsigned long " versnum , .BI " int " protocol ", unsigned short " port ); @@ -626,7 +626,7 @@ or This routine returns one if it succeeds, zero otherwise. Automatically done by .BR svc_register (). -.PP +.P .nf .BI "bool_t pmap_unset(unsigned long " prognum ", unsigned long " versnum ); .fi @@ -641,7 +641,7 @@ on the machine's .B portmap service. This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "int registerrpc(unsigned long " prognum ", unsigned long " versnum , .BI " unsigned long " procnum ", char *(*" procname ")(char *)," @@ -671,7 +671,7 @@ Warning: remote procedures registered in this form are accessed using the UDP/IP transport; see .BR svcudp_create () for restrictions. -.PP +.P .nf .BI "struct rpc_createerr " rpc_createerr ; .fi @@ -681,7 +681,7 @@ that does not succeed. Use the routine .BR clnt_pcreateerror () to print the reason why. -.PP +.P .nf .BI "void svc_destroy(SVCXPRT *" xprt ); .fi @@ -695,7 +695,7 @@ itself. Use of .I xprt is undefined after calling this routine. -.PP +.P .nf .BI "fd_set " svc_fdset ; .fi @@ -712,7 +712,7 @@ This variable is read-only (do not pass its address to yet it may change after calls to .BR svc_getreqset () or any creation routines. -.PP +.P .nf .BI "int " svc_fds ; .fi @@ -722,7 +722,7 @@ Similar to but limited to 32 file descriptors. This interface is obsoleted by .BR svc_fdset . -.PP +.P .nf .BI "svc_freeargs(SVCXPRT *" xprt ", xdrproc_t " inproc ", char *" in ); .fi @@ -732,7 +732,7 @@ system when it decoded the arguments to a service procedure using .BR svc_getargs (). This routine returns 1 if the results were successfully freed, and zero otherwise. -.PP +.P .nf .BI "svc_getargs(SVCXPRT *" xprt ", xdrproc_t " inproc ", char *" in ); .fi @@ -746,7 +746,7 @@ is the address where the arguments will be placed; .I inproc is the XDR routine used to decode the arguments. This routine returns one if decoding succeeds, and zero otherwise. -.PP +.P .nf .BI "struct sockaddr_in *svc_getcaller(SVCXPRT *" xprt ); .fi @@ -754,7 +754,7 @@ This routine returns one if decoding succeeds, and zero otherwise. The approved way of getting the network address of the caller of a procedure associated with the RPC service transport handle, .IR xprt . -.PP +.P .nf .BI "void svc_getreqset(fd_set *" rdfds ); .fi @@ -771,7 +771,7 @@ is the resultant read file descriptor bit mask. The routine returns when all sockets associated with the value of .I rdfds have been serviced. -.PP +.P .nf .BI "void svc_getreq(int " rdfds ); .fi @@ -781,7 +781,7 @@ Similar to but limited to 32 file descriptors. This interface is obsoleted by .BR svc_getreqset (). -.PP +.P .nf .BI "bool_t svc_register(SVCXPRT *" xprt ", unsigned long " prognum , .BI " unsigned long " versnum , @@ -827,7 +827,7 @@ dispatch(struct svc_req *request, SVCXPRT *xprt); The .BR svc_register () routine returns one if it succeeds, and zero otherwise. -.PP +.P .nf .B "void svc_run(void);" .fi @@ -840,7 +840,7 @@ when one arrives. This procedure is usually waiting for a .BR select (2) system call to return. -.PP +.P .nf .BI "bool_t svc_sendreply(SVCXPRT *" xprt ", xdrproc_t " outproc \ ", char *" out ); @@ -856,7 +856,7 @@ is the XDR routine which is used to encode the results; and .I out is the address of the results. This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "void svc_unregister(unsigned long " prognum ", unsigned long " versnum ); .fi @@ -866,14 +866,14 @@ Remove all mapping of the double to dispatch routines, and of the triple .RI [ prognum , versnum , * ] to port number. -.PP +.P .nf .BI "void svcerr_auth(SVCXPRT *" xprt ", enum auth_stat " why ); .fi .IP Called by a service dispatch routine that refuses to perform a remote procedure call due to an authentication error. -.PP +.P .nf .BI "void svcerr_decode(SVCXPRT *" xprt ); .fi @@ -882,21 +882,21 @@ Called by a service dispatch routine that cannot successfully decode its parameters. See also .BR svc_getargs (). -.PP +.P .nf .BI "void svcerr_noproc(SVCXPRT *" xprt ); .fi .IP Called by a service dispatch routine that does not implement the procedure number that the caller requests. -.PP +.P .nf .BI "void svcerr_noprog(SVCXPRT *" xprt ); .fi .IP Called when the desired program is not registered with the RPC package. Service implementors usually do not need this routine. -.PP +.P .nf .BI "void svcerr_progvers(SVCXPRT *" xprt ", unsigned long " low_vers , .BI " unsigned long " high_vers ); @@ -905,7 +905,7 @@ Service implementors usually do not need this routine. Called when the desired version of a program is not registered with the RPC package. Service implementors usually do not need this routine. -.PP +.P .nf .BI "void svcerr_systemerr(SVCXPRT *" xprt ); .fi @@ -914,7 +914,7 @@ Called by a service dispatch routine when it detects a system error not covered by any particular protocol. For example, if a service can no longer allocate storage, it may call this routine. -.PP +.P .nf .BI "void svcerr_weakauth(SVCXPRT *" xprt ); .fi @@ -923,7 +923,7 @@ Called by a service dispatch routine that refuses to perform a remote procedure call due to insufficient authentication parameters. The routine calls .BR "svcerr_auth(xprt, AUTH_TOOWEAK)" . -.PP +.P .nf .BI "SVCXPRT *svcfd_create(int " fd ", unsigned int " sendsize , .BI " unsigned int " recvsize ); @@ -937,7 +937,7 @@ and .I recvsize indicate sizes for the send and receive buffers. If they are zero, a reasonable default is chosen. -.PP +.P .nf .B SVCXPRT *svcraw_create(void); .fi @@ -950,7 +950,7 @@ so the corresponding RPC client should live in the same address space; see This routine allows simulation of RPC and acquisition of RPC overheads (such as round trip times), without any kernel interference. This routine returns NULL if it fails. -.PP +.P .nf .BI "SVCXPRT *svctcp_create(int " sock ", unsigned int " send_buf_size , .BI " unsigned int " recv_buf_size ); @@ -974,7 +974,7 @@ This routine returns NULL if it fails. Since TCP-based RPC uses buffered I/O, users may specify the size of buffers; values of zero choose suitable defaults. -.PP +.P .nf .BI "SVCXPRT *svcudp_bufcreate(int " sock ", unsigned int " sendsize , .BI " unsigned int " recosize ); @@ -998,7 +998,7 @@ This routine returns NULL if it fails. .IP This allows the user to specify the maximum packet size for sending and receiving UDP-based RPC messages. -.PP +.P .nf .BI "SVCXPRT *svcudp_create(int " sock ); .fi @@ -1007,7 +1007,7 @@ This call is equivalent to .I svcudp_bufcreate(sock,SZ,SZ) for some default size .IR SZ . -.PP +.P .nf .BI "bool_t xdr_accepted_reply(XDR *" xdrs ", struct accepted_reply *" ar ); .fi @@ -1015,7 +1015,7 @@ for some default size Used for encoding RPC reply messages. This routine is useful for users who wish to generate RPC-style messages without using the RPC package. -.PP +.P .nf .BI "bool_t xdr_authunix_parms(XDR *" xdrs ", struct authunix_parms *" aupp ); .fi @@ -1024,7 +1024,7 @@ Used for describing UNIX credentials. This routine is useful for users who wish to generate these credentials without using the RPC authentication package. -.PP +.P .nf .BI "void xdr_callhdr(XDR *" xdrs ", struct rpc_msg *" chdr ); .fi @@ -1032,7 +1032,7 @@ authentication package. Used for describing RPC call header messages. This routine is useful for users who wish to generate RPC-style messages without using the RPC package. -.PP +.P .nf .BI "bool_t xdr_callmsg(XDR *" xdrs ", struct rpc_msg *" cmsg ); .fi @@ -1040,7 +1040,7 @@ RPC-style messages without using the RPC package. Used for describing RPC call messages. This routine is useful for users who wish to generate RPC-style messages without using the RPC package. -.PP +.P .nf .BI "bool_t xdr_opaque_auth(XDR *" xdrs ", struct opaque_auth *" ap ); .fi @@ -1048,7 +1048,7 @@ messages without using the RPC package. Used for describing RPC authentication information messages. This routine is useful for users who wish to generate RPC-style messages without using the RPC package. -.PP +.P .nf .BI "bool_t xdr_pmap(XDR *" xdrs ", struct pmap *" regs ); .fi @@ -1060,7 +1060,7 @@ This routine is useful for users who wish to generate these parameters without using the .B pmap interface. -.PP +.P .nf .BI "bool_t xdr_pmaplist(XDR *" xdrs ", struct pmaplist **" rp ); .fi @@ -1070,7 +1070,7 @@ This routine is useful for users who wish to generate these parameters without using the .B pmap interface. -.PP +.P .nf .BI "bool_t xdr_rejected_reply(XDR *" xdrs ", struct rejected_reply *" rr ); .fi @@ -1078,7 +1078,7 @@ interface. Used for describing RPC reply messages. This routine is useful for users who wish to generate RPC-style messages without using the RPC package. -.PP +.P .nf .BI "bool_t xdr_replymsg(XDR *" xdrs ", struct rpc_msg *" rmsg ); .fi @@ -1086,7 +1086,7 @@ RPC-style messages without using the RPC package. Used for describing RPC reply messages. This routine is useful for users who wish to generate RPC style messages without using the RPC package. -.PP +.P .nf .BI "void xprt_register(SVCXPRT *" xprt ); .fi @@ -1096,7 +1096,7 @@ they should register themselves with the RPC service package. This routine modifies the global variable .IR svc_fds . Service implementors usually do not need this routine. -.PP +.P .nf .BI "void xprt_unregister(SVCXPRT *" xprt ); .fi @@ -1181,12 +1181,11 @@ T{ .BR xprt_unregister () T} Thread safety MT-Safe .TE -.sp 1 .SH SEE ALSO .\" We don't have an rpc_secure.3 page in the set at the moment -- MTK, 19 Sep 05 .\" .BR rpc_secure (3), .BR xdr (3) -.PP +.P The following manuals: .RS Remote Procedure Calls: Protocol Specification @@ -1196,7 +1195,7 @@ Remote Procedure Call Programming Guide rpcgen Programming Guide .br .RE -.PP +.P .IR "RPC: Remote Procedure Call Protocol Specification" , RFC\ 1050, Sun Microsystems, Inc., USC-ISI. diff --git a/upstream/opensuse-tumbleweed/man3/rpmatch.3 b/upstream/opensuse-tumbleweed/man3/rpmatch.3 index ac3fa09b..5739b826 100644 --- a/upstream/opensuse-tumbleweed/man3/rpmatch.3 +++ b/upstream/opensuse-tumbleweed/man3/rpmatch.3 @@ -27,7 +27,7 @@ .\" .\" 2006-05-19, mtk, various edits and example program .\" -.TH rpmatch 3 2023-07-20 "Linux man-pages 6.05.01" +.TH rpmatch 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME rpmatch \- determine if the answer to a question is affirmative or negative .SH LIBRARY @@ -36,15 +36,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int rpmatch(const char *" response ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR rpmatch (): .nf Since glibc 2.19: @@ -56,14 +56,14 @@ Feature Test Macro Requirements for glibc (see .BR rpmatch () handles a user response to yes or no questions, with support for internationalization. -.PP +.P .I response should be a null-terminated string containing a user-supplied response, perhaps obtained with .BR fgets (3) or .BR getline (3). -.PP +.P The user's language preference is taken into account per the environment variables .BR LANG , @@ -73,7 +73,7 @@ and if the program has called .BR setlocale (3) to effect their changes. -.PP +.P Regardless of the locale, responses matching .B \[ha][Yy] are always accepted as affirmative, and those matching @@ -92,7 +92,7 @@ is unrecognized. A return value of \-1 may indicate either an invalid input, or some other error. It is incorrect to only test if the return value is nonzero. -.PP +.P .BR rpmatch () can fail for any of the reasons that .BR regcomp (3) @@ -119,7 +119,6 @@ T{ .BR rpmatch () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS None. .SH HISTORY @@ -139,7 +138,7 @@ being the proper way to distinguish between binary answers. The following program displays the results when .BR rpmatch () is applied to the string given in the program's command-line argument. -.PP +.P .\" SRC BEGIN (rpmatch.c) .EX #define _DEFAULT_SOURCE diff --git a/upstream/opensuse-tumbleweed/man3/rtime.3 b/upstream/opensuse-tumbleweed/man3/rtime.3 index a866d0b8..f1168310 100644 --- a/upstream/opensuse-tumbleweed/man3/rtime.3 +++ b/upstream/opensuse-tumbleweed/man3/rtime.3 @@ -8,7 +8,7 @@ .\" .\" Slightly polished, aeb, 2003-04-06 .\" -.TH rtime 3 2023-07-20 "Linux man-pages 6.05.01" +.TH rtime 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME rtime \- get time from a remote machine .SH LIBRARY @@ -17,20 +17,20 @@ Standard C library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "int rtime(struct sockaddr_in *" addrp ", struct rpc_timeval *" timep , .BI " struct rpc_timeval *" timeout ); .fi .SH DESCRIPTION This function uses the Time Server Protocol as described in RFC\ 868 to obtain the time from a remote machine. -.PP +.P The Time Server Protocol gives the time in seconds since 00:00:00 UTC, 1 Jan 1900, and this function subtracts the appropriate constant in order to convert the result to seconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC). -.PP +.P When .I timeout is non-NULL, the udp/time socket (port 37) is used. @@ -70,23 +70,22 @@ T{ .BR rtime () T} Thread safety MT-Safe .TE -.sp 1 .SH NOTES Only IPv4 is supported. -.PP +.P Some .I in.timed versions support only TCP. Try the example program with .I use_tcp set to 1. -.\" .PP +.\" .P .\" Libc5 uses the prototype -.\" .PP +.\" .P .\" .nf .\" int rtime(struct sockaddr_in *, struct timeval *, struct timeval *); .\" .fi -.\" .PP +.\" .P .\" and requires .\" .I .\" instead of @@ -100,11 +99,11 @@ You may check that the time entry within .I /etc/inetd.conf is not commented out. -.PP +.P The program connects to a computer called "linux". Using "localhost" does not work. The result is the localtime of the computer "linux". -.PP +.P .\" SRC BEGIN (rtime.c) .EX #include diff --git a/upstream/opensuse-tumbleweed/man3/rtnetlink.3 b/upstream/opensuse-tumbleweed/man3/rtnetlink.3 index 7033d4b6..7eaef31f 100644 --- a/upstream/opensuse-tumbleweed/man3/rtnetlink.3 +++ b/upstream/opensuse-tumbleweed/man3/rtnetlink.3 @@ -4,7 +4,7 @@ .\" .\" $Id: rtnetlink.3,v 1.2 1999/05/18 10:35:10 freitag Exp $ .\" -.TH rtnetlink 3 2023-07-15 "Linux man-pages 6.05.01" +.TH rtnetlink 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME rtnetlink \- macros to manipulate rtnetlink messages .SH LIBRARY @@ -16,18 +16,18 @@ Standard C library .B #include .B #include .B #include -.PP +.P .BI "rtnetlink_socket = socket(AF_NETLINK, int " socket_type \ ", NETLINK_ROUTE);" -.PP +.P .BI "int RTA_OK(struct rtattr *" rta ", int " rtabuflen ); -.PP +.P .BI "void *RTA_DATA(struct rtattr *" rta ); .BI "unsigned int RTA_PAYLOAD(struct rtattr *" rta ); -.PP +.P .BI "struct rtattr *RTA_NEXT(struct rtattr *" rta \ ", unsigned int " rtabuflen ); -.PP +.P .BI "unsigned int RTA_LENGTH(unsigned int " length ); .BI "unsigned int RTA_SPACE(unsigned int "length ); .fi @@ -38,7 +38,7 @@ messages consist of a .BR netlink (7) message header and appended attributes. The attributes should be manipulated only using the macros provided here. -.PP +.P .BI RTA_OK( rta ", " attrlen ) returns true if .I rta @@ -49,13 +49,13 @@ When not true then you must assume there are no more attributes in the message, even if .I attrlen is nonzero. -.PP +.P .BI RTA_DATA( rta ) returns a pointer to the start of this attribute's data. -.PP +.P .BI RTA_PAYLOAD( rta ) returns the length of this attribute's data. -.PP +.P .BI RTA_NEXT( rta ", " attrlen ) gets the next attribute after .IR rta . @@ -64,12 +64,12 @@ Calling this macro will update You should use .B RTA_OK to check the validity of the returned pointer. -.PP +.P .BI RTA_LENGTH( len ) returns the length which is required for .I len bytes of data plus the header. -.PP +.P .BI RTA_SPACE( len ) returns the amount of space which will be needed in a message with .I len @@ -81,7 +81,7 @@ This manual page is incomplete. .SH EXAMPLES .\" FIXME . ? would be better to use libnetlink in the EXAMPLE code here Creating a rtnetlink message to set the MTU of a device: -.PP +.P .in +4n .EX #include diff --git a/upstream/opensuse-tumbleweed/man3/scalb.3 b/upstream/opensuse-tumbleweed/man3/scalb.3 index 5513a27b..754530cf 100644 --- a/upstream/opensuse-tumbleweed/man3/scalb.3 +++ b/upstream/opensuse-tumbleweed/man3/scalb.3 @@ -5,7 +5,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH scalb 3 2023-07-20 "Linux man-pages 6.05.01" +.TH scalb 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME scalb, scalbf, scalbl \- multiply floating-point number by integral power of radix (OBSOLETE) @@ -15,17 +15,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] double scalb(double " x ", double " exp ); .BI "[[deprecated]] float scalbf(float " x ", float " exp ); .BI "[[deprecated]] long double scalbl(long double " x ", long double " exp ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR scalb (): .nf _XOPEN_SOURCE >= 500 @@ -33,7 +33,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR scalbf (), .BR scalbl (): .nf @@ -50,11 +50,11 @@ by to the power of .IR exp , that is: -.PP +.P .nf x * FLT_RADIX ** exp .fi -.PP +.P The definition of .B FLT_RADIX can be obtained by including @@ -67,13 +67,13 @@ On success, these functions return .B FLT_RADIX ** .IR exp . -.PP +.P If .I x or .I exp is a NaN, a NaN is returned. -.PP +.P If .I x is positive infinity (negative infinity), @@ -81,13 +81,13 @@ and .I exp is not negative infinity, positive infinity (negative infinity) is returned. -.PP +.P If .I x is +0 (\-0), and .I exp is not positive infinity, +0 (\-0) is returned. -.PP +.P If .I x is zero, and @@ -95,7 +95,7 @@ is zero, and is positive infinity, a domain error occurs, and a NaN is returned. -.PP +.P If .I x is an infinity, @@ -104,7 +104,7 @@ and is negative infinity, a domain error occurs, and a NaN is returned. -.PP +.P If the result overflows, a range error occurs, and the functions return @@ -114,7 +114,7 @@ or .BR HUGE_VALL , respectively, with a sign the same as .IR x . -.PP +.P If the result underflows, a range error occurs, and the functions return zero, with a sign the same as @@ -124,7 +124,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP is 0, and \fIexp\fP is positive infinity, \ @@ -168,7 +168,6 @@ T{ .BR scalbl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/scalbln.3 b/upstream/opensuse-tumbleweed/man3/scalbln.3 index 06514562..a7b8f9f9 100644 --- a/upstream/opensuse-tumbleweed/man3/scalbln.3 +++ b/upstream/opensuse-tumbleweed/man3/scalbln.3 @@ -5,7 +5,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH scalbln 3 2023-07-20 "Linux man-pages 6.05.01" +.TH scalbln 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME scalbn, scalbnf, scalbnl, scalbln, scalblnf, scalblnl \- multiply floating-point number by integral power of radix @@ -15,21 +15,21 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double scalbln(double " x ", long " exp ); .BI "float scalblnf(float " x ", long " exp ); .BI "long double scalblnl(long double " x ", long " exp ); -.PP +.P .BI "double scalbn(double " x ", int " exp ); .BI "float scalbnf(float " x ", int " exp ); .BI "long double scalbnl(long double " x ", int " exp ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR scalbln (), .BR scalblnf (), .BR scalblnl (): @@ -37,7 +37,7 @@ Feature Test Macro Requirements for glibc (see _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* Since glibc 2.19: */ _DEFAULT_SOURCE .fi -.PP +.P .BR scalbn (), .BR scalbnf (), .BR scalbnl (): @@ -55,11 +55,11 @@ by to the power of .IR exp , that is: -.PP +.P .nf x * FLT_RADIX ** exp .fi -.PP +.P The definition of .B FLT_RADIX can be obtained by including @@ -72,20 +72,20 @@ On success, these functions return .B FLT_RADIX ** .IR exp . -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is positive infinity (negative infinity), positive infinity (negative infinity) is returned. -.PP +.P If .I x is +0 (\-0), +0 (\-0) is returned. -.PP +.P If the result overflows, a range error occurs, and the functions return @@ -95,7 +95,7 @@ or .BR HUGE_VALL , respectively, with a sign the same as .IR x . -.PP +.P If the result underflows, a range error occurs, and the functions return zero, with a sign the same as @@ -105,7 +105,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Range error, overflow @@ -142,7 +142,6 @@ T{ .BR scalblnl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/scandir.3 b/upstream/opensuse-tumbleweed/man3/scandir.3 index 1abda05b..dff2c6ba 100644 --- a/upstream/opensuse-tumbleweed/man3/scandir.3 +++ b/upstream/opensuse-tumbleweed/man3/scandir.3 @@ -21,7 +21,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH scandir 3 2023-07-20 "Linux man-pages 6.05.01" +.TH scandir 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME scandir, scandirat, alphasort, versionsort \- scan a directory for matching entries @@ -31,43 +31,43 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int scandir(const char *restrict " dirp , .BI " struct dirent ***restrict " namelist , .BI " int (*" filter ")(const struct dirent *)," .BI " int (*" compar ")(const struct dirent **," .B " const struct dirent **));" -.PP +.P .BI "int alphasort(const struct dirent **" a ", const struct dirent **" b ); .BI "int versionsort(const struct dirent **" a ", const struct dirent **" b ); -.PP +.P .BR "#include " " /* Definition of AT_* constants */" .B #include -.PP +.P .BI "int scandirat(int " dirfd ", const char *restrict " dirp , .BI " struct dirent ***restrict " namelist , .BI " int (*" filter ")(const struct dirent *)," .BI " int (*" compar ")(const struct dirent **," .B " const struct dirent **));" .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR scandir (), .BR alphasort (): .nf /* Since glibc 2.10: */ _POSIX_C_SOURCE >= 200809L || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR versionsort (): .nf _GNU_SOURCE .fi -.PP +.P .BR scandirat (): .nf _GNU_SOURCE @@ -87,7 +87,7 @@ function \fIcompar\fP(), and collected in array \fInamelist\fP which is allocated via .BR malloc (3). If \fIfilter\fP is NULL, all entries are selected. -.PP +.P The .BR alphasort () and @@ -105,7 +105,7 @@ The function operates in exactly the same way as .BR scandir (), except for the differences described here. -.PP +.P If the pathname given in .I dirp is relative, then it is interpreted relative to the directory @@ -115,7 +115,7 @@ referred to by the file descriptor the calling process, as is done by .BR scandir () for a relative pathname). -.PP +.P If .I dirp is relative and @@ -127,13 +127,13 @@ then is interpreted relative to the current working directory of the calling process (like .BR scandir ()). -.PP +.P If .I dirp is absolute, then .I dirfd is ignored. -.PP +.P See .BR openat (2) for an explanation of the need for @@ -146,7 +146,7 @@ selected. On error, \-1 is returned, with .I errno set to indicate the error. -.PP +.P The .BR alphasort () and @@ -201,7 +201,6 @@ T{ .BR versionsort () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS .TP .BR alphasort () @@ -225,7 +224,7 @@ glibc 2.1. .TP .BR scandirat () glibc 2.15. -.\" .LP +.\" .P .\" The functions .\" .BR scandir () .\" and @@ -246,7 +245,7 @@ calls .BR strcoll (3); earlier it used .BR strcmp (3). -.PP +.P Before glibc 2.10, the two arguments of .BR alphasort () and diff --git a/upstream/opensuse-tumbleweed/man3/scanf.3 b/upstream/opensuse-tumbleweed/man3/scanf.3 index 79345095..3855e77e 100644 --- a/upstream/opensuse-tumbleweed/man3/scanf.3 +++ b/upstream/opensuse-tumbleweed/man3/scanf.3 @@ -2,7 +2,7 @@ .\" Copyright 2022 Alejandro Colomar .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH scanf 3 2023-07-20 "Linux man-pages 6.05.01" +.TH scanf 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME scanf, fscanf, vscanf, vfscanf \- input FILE format conversion .SH LIBRARY @@ -11,23 +11,23 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int scanf(const char *restrict " format ", ...);" .BI "int fscanf(FILE *restrict " stream , .BI " const char *restrict " format ", ...);" -.PP +.P .B #include -.PP +.P .BI "int vscanf(const char *restrict " format ", va_list " ap ); .BI "int vfscanf(FILE *restrict " stream , .BI " const char *restrict " format ", va_list " ap ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR vscanf (), .BR vfscanf (): .nf @@ -36,7 +36,7 @@ Feature Test Macro Requirements for glibc (see .SH DESCRIPTION The .BR scanf () -family of functions scans input like +family of functions scans formatted input like .BR sscanf (3), but read from a .IR FILE . @@ -49,7 +49,7 @@ and parse them later with .BR sscanf (3) or more specialized functions such as .BR strtol (3). -.PP +.P The .BR scanf () function reads input from the standard input stream @@ -58,7 +58,7 @@ and .BR fscanf () reads input from the stream pointer .IR stream . -.PP +.P The .BR vfscanf () function is analogous to @@ -77,7 +77,7 @@ On success, these functions return the number of input items successfully matched and assigned; this can be fewer than provided for, or even zero, in the event of an early matching failure. -.PP +.P The value .B EOF is returned if the end of input is reached before either the first @@ -132,11 +132,27 @@ T{ .BR vfscanf () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. +.SH CAVEATS +These functions make it difficult to +distinguish newlines from other white space, +This is especially problematic with line-buffered input, +like the standard input stream. +.P +These functions can't report errors after the last +non-suppressed conversion specification. +.SH BUGS +It is impossible to accurately know +how many characters these functions have consumed from the input stream, +since they only report the number of successful conversions. +For example, +if the input is "123\en\ a", +.I scanf(\[dq]%d\ %d\[dq], &a, &b) +will consume the digits, the newline, and the space, but not the letter a. +This makes it difficult to recover from invalid input. .SH SEE ALSO .BR fgets (3), .BR getline (3), diff --git a/upstream/opensuse-tumbleweed/man3/scanw.3ncurses b/upstream/opensuse-tumbleweed/man3/scanw.3ncurses index 56729122..7360e542 100644 --- a/upstream/opensuse-tumbleweed/man3/scanw.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/scanw.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_scanw.3x,v 1.47 2023/12/23 14:41:50 tom Exp $ -.TH scanw 3NCURSES 2023-12-23 "ncurses 6.4" "Library calls" +.\" $Id: curs_scanw.3x,v 1.53 2024/04/20 19:18:18 tom Exp $ +.TH scanw 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -97,16 +97,18 @@ upon failure and otherwise a count of successful conversions; this quantity may be zero. .PP In -.I \%ncurses, +.IR \%ncurses , failure occurs if \fI\%vsscanf\fP(3) returns \fBEOF\fP, or if the window pointer .I win is null. .PP -Functions with a \*(``mv\*('' prefix first perform a cursor movement -using \fB\%wmove\fP, -and fail if the position is outside the window. +Functions prefixed with \*(``mv\*('' first perform cursor movement and +fail if the position +.RI ( y , +.IR x ) +is outside the window boundaries. .SH NOTES No wide character counterpart functions are defined by the \*(``wide\*('' @@ -124,7 +126,8 @@ respectively. implements \fI\%vsscanf\fP(3) internally if it is unavailable when the library is configured. .SH PORTABILITY -X/Open Curses, Issue 4, describes these functions. +X/Open Curses, +Issue 4 describes these functions. It specifies no error conditions for them. .PP .I \%ncurses @@ -133,13 +136,15 @@ legacy applications. However, the latter is obsolete. .bP -X/Open Curses, Issue 4, Version 2 (1996), +X/Open Curses, +Issue 4 Version 2 (1996), marked \fB\%vwscanw\fP as requiring \fI\%varargs.h\fP and \*(``TO BE WITHDRAWN\*('', and specified \fB\%vw_scanw\fP using the \fI\%stdarg.h\fP interface. .bP -X/Open Curses, Issue 5, Draft 2 -(December 2007) marked \fB\%vwscanw\fP (along with +X/Open Curses, +Issue 5, +Draft 2 (December 2007) marked \fB\%vwscanw\fP (along with \fB\%vwscanw\fP and the \fItermcap\fP interface) as withdrawn. After incorporating review comments, this became @@ -162,7 +167,7 @@ this may have been an editorial solecism introduced by X/Open, rather than an intentional change. .bP This implementation retains compatibility with SVr4 -.I curses. +.IR curses . As of 2018, NetBSD .I curses @@ -202,7 +207,7 @@ In 1991 and after the C standard was published), other developers updated the library, using \fI\%stdarg.h\fP internally in 4.4BSD -.I curses. +.IR curses . Even with this improvement, BSD .I curses diff --git a/upstream/opensuse-tumbleweed/man3/sched_getcpu.3 b/upstream/opensuse-tumbleweed/man3/sched_getcpu.3 index eb34a115..a1c6c67b 100644 --- a/upstream/opensuse-tumbleweed/man3/sched_getcpu.3 +++ b/upstream/opensuse-tumbleweed/man3/sched_getcpu.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH sched_getcpu 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sched_getcpu 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sched_getcpu \- determine CPU on which the calling thread is running .SH LIBRARY @@ -13,15 +13,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B int sched_getcpu(void); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR sched_getcpu (): .nf Since glibc 2.14: @@ -60,28 +60,27 @@ T{ .BR sched_getcpu () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH HISTORY glibc 2.6. .SH NOTES The call -.PP +.P .in +4n .EX cpu = sched_getcpu(); .EE .in -.PP +.P is equivalent to the following .BR getcpu (2) call: -.PP +.P .in +4n .EX int c, s; -s = getcpu(&c, NULL, NULL); +s = getcpu(&c, NULL); cpu = (s == \-1) ? s : c; .EE .in diff --git a/upstream/opensuse-tumbleweed/man3/scr_dump.3ncurses b/upstream/opensuse-tumbleweed/man3/scr_dump.3ncurses index 16404044..a266e844 100644 --- a/upstream/opensuse-tumbleweed/man3/scr_dump.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/scr_dump.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_scr_dump.3x,v 1.37 2023/12/30 21:34:11 tom Exp $ -.TH scr_dump 3NCURSES 2023-12-30 "ncurses 6.4" "Library calls" +.\" $Id: curs_scr_dump.3x,v 1.43 2024/04/20 18:54:36 tom Exp $ +.TH scr_dump 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -84,7 +84,7 @@ after performing any further desired updates, call \fB\%doupdate\fP(3NCURSES) or similar. .SS scr_init \fB\%scr_init\fP reads -.I filename, +.IR filename , using it to initialize .I curses data structures describing the state of the terminal screen. @@ -125,14 +125,15 @@ These functions return \fBOK\fP on success and \fBERR\fP on failure. X/Open defines no failure conditions. In this implementation, each function fails if it cannot open -.I filename. +.IR filename . .SH NOTES \fB\%scr_init\fP, \fB\%scr_set\fP, and \fB\%scr_restore\fP may be macros. .SH PORTABILITY -X/Open Curses, Issue 4, describes these functions. +X/Open Curses, +Issue 4 describes these functions. .PP .\" SVID 4, p. 529 SVr4 omitted the diff --git a/upstream/opensuse-tumbleweed/man3/scroll.3ncurses b/upstream/opensuse-tumbleweed/man3/scroll.3ncurses index 8415c002..4a1b4b5a 100644 --- a/upstream/opensuse-tumbleweed/man3/scroll.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/scroll.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2006,2010 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_scroll.3x,v 1.36 2023/12/16 22:52:35 tom Exp $ -.TH scroll 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: curs_scroll.3x,v 1.43 2024/04/20 18:54:36 tom Exp $ +.TH scroll 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -64,7 +64,7 @@ That is, every visible line we might number .I i becomes line -.IR i \-1. +.IR i "\-1." The text of the top line in the window disappears and the bottom line is populated with blank characters; see \fB\%bkgd\fP(3NCURSES) or \fB\%bkgrnd\fP(3NCURSES). @@ -76,14 +76,14 @@ see \fB\%curscr\fP(3NCURSES). \fB\%scrl\fP and \fB\%wscrl\fP scroll .B \%stdscr or the specified window up or down depending on the sign of -.I n. +.IR n . .bP For positive -.I n, +.IR n , line \fIi\fP+\fIn\fP becomes \fIi\fP (scrolling up); .bP for negative -.I n, +.IR n , line \fIi\fP-\fIn\fP becomes \fIi\fP (scrolling down). .PP The cursor does not move. @@ -110,7 +110,8 @@ accepting a \fI\%WINDOW\fP pointer argument. .PP \fB\%scrl\fP and \fB\%scroll\fP may be implemented as macros. .SH PORTABILITY -X/Open Curses, Issue 4, describes these functions. +X/Open Curses, +Issue 4 describes these functions. It defines no error conditions. .PP SVr4 specifies only diff --git a/upstream/opensuse-tumbleweed/man3/sd-bus-errors.3 b/upstream/opensuse-tumbleweed/man3/sd-bus-errors.3 deleted file mode 100644 index 4c7da0b3..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd-bus-errors.3 +++ /dev/null @@ -1,258 +0,0 @@ -'\" t -.TH "SD\-BUS\-ERRORS" "3" "" "systemd 254" "sd-bus-errors" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd-bus-errors, SD_BUS_ERROR_FAILED, SD_BUS_ERROR_NO_MEMORY, SD_BUS_ERROR_SERVICE_UNKNOWN, SD_BUS_ERROR_NAME_HAS_NO_OWNER, SD_BUS_ERROR_NO_REPLY, SD_BUS_ERROR_IO_ERROR, SD_BUS_ERROR_BAD_ADDRESS, SD_BUS_ERROR_NOT_SUPPORTED, SD_BUS_ERROR_LIMITS_EXCEEDED, SD_BUS_ERROR_ACCESS_DENIED, SD_BUS_ERROR_AUTH_FAILED, SD_BUS_ERROR_NO_SERVER, SD_BUS_ERROR_TIMEOUT, SD_BUS_ERROR_NO_NETWORK, SD_BUS_ERROR_ADDRESS_IN_USE, SD_BUS_ERROR_DISCONNECTED, SD_BUS_ERROR_INVALID_ARGS, SD_BUS_ERROR_FILE_NOT_FOUND, SD_BUS_ERROR_FILE_EXISTS, SD_BUS_ERROR_UNKNOWN_METHOD, SD_BUS_ERROR_UNKNOWN_OBJECT, SD_BUS_ERROR_UNKNOWN_INTERFACE, SD_BUS_ERROR_UNKNOWN_PROPERTY, SD_BUS_ERROR_PROPERTY_READ_ONLY, SD_BUS_ERROR_UNIX_PROCESS_ID_UNKNOWN, SD_BUS_ERROR_INVALID_SIGNATURE, SD_BUS_ERROR_INCONSISTENT_MESSAGE, SD_BUS_ERROR_TIMED_OUT, SD_BUS_ERROR_MATCH_RULE_NOT_FOUND, SD_BUS_ERROR_MATCH_RULE_INVALID, SD_BUS_ERROR_INTERACTIVE_AUTHORIZATION_REQUIRED, SD_BUS_ERROR_INVALID_FILE_CONTENT, SD_BUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN, SD_BUS_ERROR_OBJECT_PATH_IN_USE \- Standard D\-Bus error names -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.sp -.ft B -.nf -#define SD_BUS_ERROR_FAILED "org\&.freedesktop\&.DBus\&.Error\&.Failed" -#define SD_BUS_ERROR_NO_MEMORY "org\&.freedesktop\&.DBus\&.Error\&.NoMemory" -#define SD_BUS_ERROR_SERVICE_UNKNOWN "org\&.freedesktop\&.DBus\&.Error\&.ServiceUnknown" -#define SD_BUS_ERROR_NAME_HAS_NO_OWNER "org\&.freedesktop\&.DBus\&.Error\&.NameHasNoOwner" -#define SD_BUS_ERROR_NO_REPLY "org\&.freedesktop\&.DBus\&.Error\&.NoReply" -#define SD_BUS_ERROR_IO_ERROR "org\&.freedesktop\&.DBus\&.Error\&.IOError" -#define SD_BUS_ERROR_BAD_ADDRESS "org\&.freedesktop\&.DBus\&.Error\&.BadAddress" -#define SD_BUS_ERROR_NOT_SUPPORTED "org\&.freedesktop\&.DBus\&.Error\&.NotSupported" -#define SD_BUS_ERROR_LIMITS_EXCEEDED "org\&.freedesktop\&.DBus\&.Error\&.LimitsExceeded" -#define SD_BUS_ERROR_ACCESS_DENIED "org\&.freedesktop\&.DBus\&.Error\&.AccessDenied" -#define SD_BUS_ERROR_AUTH_FAILED "org\&.freedesktop\&.DBus\&.Error\&.AuthFailed" -#define SD_BUS_ERROR_NO_SERVER "org\&.freedesktop\&.DBus\&.Error\&.NoServer" -#define SD_BUS_ERROR_TIMEOUT "org\&.freedesktop\&.DBus\&.Error\&.Timeout" -#define SD_BUS_ERROR_NO_NETWORK "org\&.freedesktop\&.DBus\&.Error\&.NoNetwork" -#define SD_BUS_ERROR_ADDRESS_IN_USE "org\&.freedesktop\&.DBus\&.Error\&.AddressInUse" -#define SD_BUS_ERROR_DISCONNECTED "org\&.freedesktop\&.DBus\&.Error\&.Disconnected" -#define SD_BUS_ERROR_INVALID_ARGS "org\&.freedesktop\&.DBus\&.Error\&.InvalidArgs" -#define SD_BUS_ERROR_FILE_NOT_FOUND "org\&.freedesktop\&.DBus\&.Error\&.FileNotFound" -#define SD_BUS_ERROR_FILE_EXISTS "org\&.freedesktop\&.DBus\&.Error\&.FileExists" -#define SD_BUS_ERROR_UNKNOWN_METHOD "org\&.freedesktop\&.DBus\&.Error\&.UnknownMethod" -#define SD_BUS_ERROR_UNKNOWN_OBJECT "org\&.freedesktop\&.DBus\&.Error\&.UnknownObject" -#define SD_BUS_ERROR_UNKNOWN_INTERFACE "org\&.freedesktop\&.DBus\&.Error\&.UnknownInterface" -#define SD_BUS_ERROR_UNKNOWN_PROPERTY "org\&.freedesktop\&.DBus\&.Error\&.UnknownProperty" -#define SD_BUS_ERROR_PROPERTY_READ_ONLY "org\&.freedesktop\&.DBus\&.Error\&.PropertyReadOnly" -#define SD_BUS_ERROR_UNIX_PROCESS_ID_UNKNOWN "org\&.freedesktop\&.DBus\&.Error\&.UnixProcessIdUnknown" -#define SD_BUS_ERROR_INVALID_SIGNATURE "org\&.freedesktop\&.DBus\&.Error\&.InvalidSignature" -#define SD_BUS_ERROR_INCONSISTENT_MESSAGE "org\&.freedesktop\&.DBus\&.Error\&.InconsistentMessage" -#define SD_BUS_ERROR_TIMED_OUT "org\&.freedesktop\&.DBus\&.Error\&.TimedOut" -#define SD_BUS_ERROR_MATCH_RULE_NOT_FOUND "org\&.freedesktop\&.DBus\&.Error\&.MatchRuleNotFound" -#define SD_BUS_ERROR_MATCH_RULE_INVALID "org\&.freedesktop\&.DBus\&.Error\&.MatchRuleInvalid" -#define SD_BUS_ERROR_INTERACTIVE_AUTHORIZATION_REQUIRED \e - "org\&.freedesktop\&.DBus\&.Error\&.InteractiveAuthorizationRequired" -#define SD_BUS_ERROR_INVALID_FILE_CONTENT "org\&.freedesktop\&.DBus\&.Error\&.InvalidFileContent" -#define SD_BUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN \e - "org\&.freedesktop\&.DBus\&.Error\&.SELinuxSecurityContextUnknown" -#define SD_BUS_ERROR_OBJECT_PATH_IN_USE "org\&.freedesktop\&.DBus\&.Error\&.ObjectPathInUse" - -.fi -.ft -.SH "DESCRIPTION" -.PP -In addition to the error names user programs define, D\-Bus knows a number of generic, standardized error names that are listed below\&. -.PP -In addition to this list, in sd\-bus, the special error namespace -"System\&.Error\&." -is used to map arbitrary Linux system errors (as defined by -\fBerrno\fR(3)) to D\-Bus errors and back\&. For example, the error -\fBEUCLEAN\fR -is mapped to -"System\&.Error\&.EUCLEAN" -and back\&. -.PP -\fBSD_BUS_ERROR_FAILED\fR -.RS 4 -A generic error indication\&. See the error message for further details\&. This error name should be avoided, in favor of a more expressive error name\&. -.RE -.PP -\fBSD_BUS_ERROR_NO_MEMORY\fR -.RS 4 -A memory allocation failed, and the requested operation could not be completed\&. -.RE -.PP -\fBSD_BUS_ERROR_SERVICE_UNKNOWN\fR -.RS 4 -The contacted bus service is unknown and cannot be activated\&. -.RE -.PP -\fBSD_BUS_ERROR_NAME_HAS_NO_OWNER\fR -.RS 4 -The specified bus service name currently has no owner\&. -.RE -.PP -\fBSD_BUS_ERROR_NO_REPLY\fR -.RS 4 -A message did not receive a reply\&. This error is usually generated after a timeout\&. -.RE -.PP -\fBSD_BUS_ERROR_IO_ERROR\fR -.RS 4 -Generic input/output error, for example when accessing a socket or other I/O context\&. -.RE -.PP -\fBSD_BUS_ERROR_BAD_ADDRESS\fR -.RS 4 -The specified D\-Bus bus address string is malformed\&. -.RE -.PP -\fBSD_BUS_ERROR_NOT_SUPPORTED\fR -.RS 4 -The requested operation is not supported on the local system\&. -.RE -.PP -\fBSD_BUS_ERROR_LIMITS_EXCEEDED\fR -.RS 4 -Some limited resource has been exhausted\&. -.RE -.PP -\fBSD_BUS_ERROR_ACCESS_DENIED\fR -.RS 4 -Access to a resource has been denied due to security restrictions\&. -.RE -.PP -\fBSD_BUS_ERROR_AUTH_FAILED\fR -.RS 4 -Authentication did not complete successfully\&. -.RE -.PP -\fBSD_BUS_ERROR_NO_SERVER\fR -.RS 4 -Unable to connect to the specified server\&. -.RE -.PP -\fBSD_BUS_ERROR_TIMEOUT\fR -.RS 4 -An operation timed out\&. Note that method calls which timeout generate a -\fBSD_BUS_ERROR_NO_REPLY\fR\&. -.RE -.PP -\fBSD_BUS_ERROR_NO_NETWORK\fR -.RS 4 -No network available to execute requested network operation on\&. -.RE -.PP -\fBSD_BUS_ERROR_ADDRESS_IN_USE\fR -.RS 4 -The specified network address is already being listened on\&. -.RE -.PP -\fBSD_BUS_ERROR_DISCONNECTED\fR -.RS 4 -The connection has been terminated\&. -.RE -.PP -\fBSD_BUS_ERROR_INVALID_ARGS\fR -.RS 4 -One or more invalid arguments have been passed\&. -.RE -.PP -\fBSD_BUS_ERROR_FILE_NOT_FOUND\fR -.RS 4 -The requested file could not be found\&. -.RE -.PP -\fBSD_BUS_ERROR_FILE_EXISTS\fR -.RS 4 -The requested file already exists\&. -.RE -.PP -\fBSD_BUS_ERROR_UNKNOWN_METHOD\fR -.RS 4 -The requested method does not exist in the selected interface\&. -.RE -.PP -\fBSD_BUS_ERROR_UNKNOWN_OBJECT\fR -.RS 4 -The requested object does not exist in the selected service\&. -.RE -.PP -\fBSD_BUS_ERROR_UNKNOWN_INTERFACE\fR -.RS 4 -The requested interface does not exist on the selected object\&. -.RE -.PP -\fBSD_BUS_ERROR_UNKNOWN_PROPERTY\fR -.RS 4 -The requested property does not exist in the selected interface\&. -.RE -.PP -\fBSD_BUS_ERROR_PROPERTY_READ_ONLY\fR -.RS 4 -A write operation was requested on a read\-only property\&. -.RE -.PP -\fBSD_BUS_ERROR_UNIX_PROCESS_ID_UNKNOWN\fR -.RS 4 -The requested PID is not known\&. -.RE -.PP -\fBSD_BUS_ERROR_INVALID_SIGNATURE\fR -.RS 4 -The specified message signature is not valid\&. -.RE -.PP -\fBSD_BUS_ERROR_INCONSISTENT_MESSAGE\fR -.RS 4 -The passed message does not validate correctly\&. -.RE -.PP -\fBSD_BUS_ERROR_MATCH_RULE_NOT_FOUND\fR -.RS 4 -The specified match rule does not exist\&. -.RE -.PP -\fBSD_BUS_ERROR_MATCH_RULE_INVALID\fR -.RS 4 -The specified match rule is invalid\&. -.RE -.PP -\fBSD_BUS_ERROR_INTERACTIVE_AUTHORIZATION_REQUIRED\fR -.RS 4 -Access to the requested operation is not permitted\&. However, it might be available after interactive authentication\&. This is usually returned by method calls supporting a framework for additional interactive authorization, when interactive authorization was not enabled with the -\fBsd_bus_message_set_allow_interactive_authorization\fR(3) -for the method call message\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBlibsystemd\fR(3), -\fBsd-bus\fR(3), -\fBsd_bus_error\fR(3), -\fBsd_bus_message_set_allow_interactive_authorization\fR(3), -\fBerrno\fR(3), -\fBstrerror_r\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd-bus.3 b/upstream/opensuse-tumbleweed/man3/sd-bus.3 deleted file mode 100644 index b0c2f83c..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd-bus.3 +++ /dev/null @@ -1,207 +0,0 @@ -'\" t -.TH "SD\-BUS" "3" "" "systemd 254" "sd-bus" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd-bus \- A lightweight D\-Bus IPC client library -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'\fBpkg\-config\ \-\-cflags\ \-\-libs\ libsystemd\fR\ 'u -\fBpkg\-config \-\-cflags \-\-libs libsystemd\fR -.SH "DESCRIPTION" -.PP -sd\-bus\&.h -is part of -\fBlibsystemd\fR(3) -and provides an implementation of a D\-Bus IPC client\&. See -\m[blue]\fB\%https://www.freedesktop.org/software/dbus/\fR\m[] -for more information about D\-Bus IPC\&. -.PP -See -.sp -.if n \{\ -.RS 4 -.\} -.nf -\fBsd_bus_add_match\fR(3), -\fBsd_bus_add_object\fR(3), -\fBsd_bus_add_object_manager\fR(3), -\fBsd_bus_add_object_vtable\fR(3), -\fBsd_bus_add_fallback\fR(3), -\fBsd_bus_add_fallback_vtable\fR(3), -\fBsd_bus_add_filter\fR(3), -\fBsd_bus_add_node_enumerator\fR(3), -\fBsd_bus_attach_event\fR(3), -\fBsd_bus_call\fR(3), -\fBsd_bus_call_async\fR(3), -\fBsd_bus_call_method\fR(3), -\fBsd_bus_call_method_async\fR(3), -\fBsd_bus_can_send\fR(3), -\fBsd_bus_close\fR(3), -\fBsd_bus_creds_get_pid\fR(3), -\fBsd_bus_creds_new_from_pid\fR(3), -\fBsd_bus_default\fR(3), -\fBsd_bus_emit_interfaces_added\fR(3), -\fBsd_bus_emit_interfaces_added_strv\fR(3), -\fBsd_bus_emit_interfaces_removed\fR(3), -\fBsd_bus_emit_interfaces_removed_strv\fR(3), -\fBsd_bus_emit_object_added\fR(3), -\fBsd_bus_emit_object_removed\fR(3), -\fBsd_bus_emit_properties_changed\fR(3), -\fBsd_bus_emit_properties_changed_strv\fR(3), -\fBsd_bus_emit_signal\fR(3), -\fBsd_bus_emit_signalv\fR(3), -\fBsd_bus_emit_signal_to\fR(3), -\fBsd_bus_emit_signal_tov\fR(3), -\fBsd-bus-errors\fR(3), -\fBsd_bus_error\fR(3), -\fBsd_bus_error_add_map\fR(3), -\fBsd_bus_get_address\fR(3), -\fBsd_bus_get_allow_interactive_authorization\fR(3), -\fBsd_bus_get_bus_id\fR(3), -\fBsd_bus_get_creds_mask\fR(3), -\fBsd_bus_get_current_handler\fR(3), -\fBsd_bus_get_current_message\fR(3), -\fBsd_bus_get_current_slot\fR(3), -\fBsd_bus_get_current_userdata\fR(3), -\fBsd_bus_get_exit_on_disconnect\fR(3), -\fBsd_bus_get_fd\fR(3), -\fBsd_bus_get_method_call_timeout\fR(3), -\fBsd_bus_get_n_queued_read\fR(3), -\fBsd_bus_get_name_creds\fR(3), -\fBsd_bus_get_name_machine_id\fR(3), -\fBsd_bus_get_owner_creds\fR(3), -\fBsd_bus_get_property\fR(3), -\fBsd_bus_get_property_string\fR(3), -\fBsd_bus_get_property_strv\fR(3), -\fBsd_bus_get_property_trivial\fR(3), -\fBsd_bus_get_scope\fR(3), -\fBsd_bus_get_tid\fR(3), -\fBsd_bus_get_unique_name\fR(3), -\fBsd_bus_interface_name_is_valid\fR(3), -\fBsd_bus_is_bus_client\fR(3), -\fBsd_bus_is_monitor\fR(3), -\fBsd_bus_is_server\fR(3), -\fBsd_bus_list_names\fR(3), -\fBsd_bus_message_append\fR(3), -\fBsd_bus_message_append_array\fR(3), -\fBsd_bus_message_append_basic\fR(3), -\fBsd_bus_message_append_string_memfd\fR(3), -\fBsd_bus_message_append_strv\fR(3), -\fBsd_bus_message_at_end\fR(3), -\fBsd_bus_message_close_container\fR(3), -\fBsd_bus_message_copy\fR(3), -\fBsd_bus_message_dump\fR(3), -\fBsd_bus_message_enter_container\fR(3), -\fBsd_bus_message_exit_container\fR(3), -\fBsd_bus_message_get_allow_interactive_authorization\fR(3), -\fBsd_bus_message_get_cookie\fR(3), -\fBsd_bus_message_get_creds\fR(3), -\fBsd_bus_message_get_errno\fR(3), -\fBsd_bus_message_get_error\fR(3), -\fBsd_bus_message_get_monotonic_usec\fR(3), -\fBsd_bus_message_get_sender\fR(3), -\fBsd_bus_message_get_signature\fR(3), -\fBsd_bus_message_get_type\fR(3), -\fBsd_bus_message_new\fR(3), -\fBsd_bus_message_new_method_call\fR(3), -\fBsd_bus_message_new_method_error\fR(3), -\fBsd_bus_message_new_signal\fR(3), -\fBsd_bus_message_new_signal_to\fR(3), -\fBsd_bus_message_open_container\fR(3), -\fBsd_bus_message_peek_type\fR(3), -\fBsd_bus_message_read\fR(3), -\fBsd_bus_message_read_array\fR(3), -\fBsd_bus_message_read_basic\fR(3), -\fBsd_bus_message_read_strv\fR(3), -\fBsd_bus_message_rewind\fR(3), -\fBsd_bus_message_seal\fR(3), -\fBsd_bus_message_send\fR(3), -\fBsd_bus_message_set_allow_interactive_authorization\fR(3), -\fBsd_bus_message_set_destination\fR(3), -\fBsd_bus_message_set_expect_reply\fR(3), -\fBsd_bus_message_set_sender\fR(3), -\fBsd_bus_message_skip\fR(3), -\fBsd_bus_message_verify_type\fR(3), -\fBsd_bus_negotiate_fds\fR(3), -\fBsd_bus_new\fR(3), -\fBsd_bus_path_encode\fR(3), -\fBsd_bus_process\fR(3), -\fBsd_bus_query_sender_creds\fR(3), -\fBsd_bus_query_sender_privilege\fR(3), -\fBsd_bus_reply_method_error\fR(3), -\fBsd_bus_reply_method_return\fR(3), -\fBsd_bus_request_name\fR(3), -\fBsd_bus_send\fR(3), -\fBsd_bus_send_to\fR(3), -\fBsd_bus_set_address\fR(3), -\fBsd_bus_set_allow_interactive_authorization\fR(3), -\fBsd_bus_set_bus_client\fR(3), -\fBsd_bus_set_close_on_exit\fR(3), -\fBsd_bus_set_connected_signal\fR(3), -\fBsd_bus_set_description\fR(3), -\fBsd_bus_set_exit_on_disconnect\fR(3), -\fBsd_bus_set_method_call_timeout\fR(3), -\fBsd_bus_set_monitor\fR(3), -\fBsd_bus_set_property\fR(3), -\fBsd_bus_set_propertyv\fR(3), -\fBsd_bus_set_sender\fR(3), -\fBsd_bus_set_server\fR(3), -\fBsd_bus_set_watch_bind\fR(3) -\fBsd_bus_slot_get_current_handler\fR(3), -\fBsd_bus_slot_get_current_message\fR(3), -\fBsd_bus_slot_get_current_userdata\fR(3), -\fBsd_bus_slot_set_description\fR(3), -\fBsd_bus_slot_set_destroy_callback\fR(3), -\fBsd_bus_slot_set_floating\fR(3), -\fBsd_bus_slot_set_userdata\fR(3), -\fBsd_bus_start\fR(3), -\fBsd_bus_track_add_name\fR(3), -\fBsd_bus_track_new\fR(3) -.fi -.if n \{\ -.RE -.\} -.sp -for more information about the functions available\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-event\fR(3), -\fBbusctl\fR(1), -\fBdbus-daemon\fR(1), -\fBdbus-send\fR(1) diff --git a/upstream/opensuse-tumbleweed/man3/sd-daemon.3 b/upstream/opensuse-tumbleweed/man3/sd-daemon.3 deleted file mode 100644 index c8d471be..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd-daemon.3 +++ /dev/null @@ -1,117 +0,0 @@ -'\" t -.TH "SD\-DAEMON" "3" "" "systemd 254" "sd-daemon" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd-daemon, SD_EMERG, SD_ALERT, SD_CRIT, SD_ERR, SD_WARNING, SD_NOTICE, SD_INFO, SD_DEBUG \- APIs for new\-style daemons -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'\fBpkg\-config\ \-\-cflags\ \-\-libs\ libsystemd\fR\ 'u -\fBpkg\-config \-\-cflags \-\-libs libsystemd\fR -.SH "DESCRIPTION" -.PP -sd\-daemon\&.h -is part of -\fBlibsystemd\fR(3) -and provides APIs for new\-style daemons, as implemented by the -\fBsystemd\fR(1) -service manager\&. -.PP -See -\fBsd_listen_fds\fR(3), -\fBsd_notify\fR(3), -\fBsd_booted\fR(3), -\fBsd_is_fifo\fR(3), -\fBsd_watchdog_enabled\fR(3) -for more information about the functions implemented\&. In addition to these functions, a couple of logging prefixes are defined as macros: -.sp -.if n \{\ -.RS 4 -.\} -.nf -#define SD_EMERG "<0>" /* system is unusable */ -#define SD_ALERT "<1>" /* action must be taken immediately */ -#define SD_CRIT "<2>" /* critical conditions */ -#define SD_ERR "<3>" /* error conditions */ -#define SD_WARNING "<4>" /* warning conditions */ -#define SD_NOTICE "<5>" /* normal but significant condition */ -#define SD_INFO "<6>" /* informational */ -#define SD_DEBUG "<7>" /* debug\-level messages */ -.fi -.if n \{\ -.RE -.\} -.PP -These prefixes are intended to be used in conjunction with stderr\-based logging (or stdout\-based logging) as implemented by systemd\&. If a systemd service definition file is configured with -\fIStandardError=journal\fR -or -\fIStandardError=kmsg\fR -(and similar with -\fIStandardOutput=\fR), these prefixes can be used to encode a log level in lines printed\&. This is similar to the kernel -\fBprintk()\fR\-style logging\&. See -\fBklogctl\fR(2) -for more information\&. -.PP -The log levels are identical to -\fBsyslog\fR(3)\*(Aqs log level system\&. To use these prefixes simply prefix every line with one of these strings\&. A line that is not prefixed will be logged at the default log level SD_INFO\&. -.PP -\fBExample\ \&1.\ \&Hello World\fR -.PP -A daemon may log with the log level NOTICE by issuing this call: -.sp -.if n \{\ -.RS 4 -.\} -.nf -fprintf(stderr, SD_NOTICE "Hello World!\en"); -.fi -.if n \{\ -.RE -.\} -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd_listen_fds\fR(3), -\fBsd_notify\fR(3), -\fBsd_booted\fR(3), -\fBsd_is_fifo\fR(3), -\fBsd_watchdog_enabled\fR(3), -\fBdaemon\fR(7), -\fBsystemd.service\fR(5), -\fBsystemd.socket\fR(5), -\fBfprintf\fR(3), -\fBpkg-config\fR(1) diff --git a/upstream/opensuse-tumbleweed/man3/sd-device.3 b/upstream/opensuse-tumbleweed/man3/sd-device.3 deleted file mode 100644 index b475796f..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd-device.3 +++ /dev/null @@ -1,74 +0,0 @@ -'\" t -.TH "SD\-DEVICE" "3" "" "systemd 254" "sd-device" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd-device \- API for enumerating and introspecting local devices -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'\fBpkg\-config\ \-\-cflags\ \-\-libs\ libsystemd\fR\ 'u -\fBpkg\-config \-\-cflags \-\-libs libsystemd\fR -.SH "DESCRIPTION" -.PP -sd\-device\&.h -is part of -\fBlibsystemd\fR(3) -and provides an API to introspect and enumerate devices on the local system\&. It provides a programmatic interface to the database of devices and their properties mananaged by -\fBsystemd-udevd.service\fR(8)\&. This API is a replacement for -\fBlibudev\fR(3) -and -libudev\&.h\&. -.PP -See -.sp -.if n \{\ -.RS 4 -.\} -.nf -\fBsd_device_get_syspath\fR(3), -\fBsd_device_ref\fR(3) -.fi -.if n \{\ -.RE -.\} -.sp -for more information about the functions available\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-event\fR(3), -\fBudevadm\fR(8) diff --git a/upstream/opensuse-tumbleweed/man3/sd-event.3 b/upstream/opensuse-tumbleweed/man3/sd-event.3 deleted file mode 100644 index 341c9f43..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd-event.3 +++ /dev/null @@ -1,222 +0,0 @@ -'\" t -.TH "SD\-EVENT" "3" "" "systemd 254" "sd-event" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd-event \- A generic event loop implementation -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'\fBpkg\-config\ \-\-cflags\ \-\-libs\ libsystemd\fR\ 'u -\fBpkg\-config \-\-cflags \-\-libs libsystemd\fR -.SH "DESCRIPTION" -.PP -sd\-event\&.h -is part of -\fBlibsystemd\fR(3) -and provides a generic event loop implementation, based on Linux -\fBepoll\fR(7)\&. -.PP -See -\fBsd_event_new\fR(3), -\fBsd_event_run\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_add_memory_pressure\fR(3), -\fBsd_event_source_unref\fR(3), -\fBsd_event_source_set_priority\fR(3), -\fBsd_event_source_set_enabled\fR(3), -\fBsd_event_source_set_userdata\fR(3), -\fBsd_event_source_get_event\fR(3), -\fBsd_event_source_get_pending\fR(3), -\fBsd_event_source_set_description\fR(3), -\fBsd_event_source_set_prepare\fR(3), -\fBsd_event_source_set_ratelimit\fR(3), -\fBsd_event_wait\fR(3), -\fBsd_event_get_fd\fR(3), -\fBsd_event_set_watchdog\fR(3), -\fBsd_event_exit\fR(3), -\fBsd_event_now\fR(3) -for more information about the functions available\&. -.PP -The event loop design is targeted on running a separate instance of the event loop in each thread; it has no concept of distributing events from a single event loop instance onto multiple worker threads\&. Dispatching events is strictly ordered and subject to configurable priorities\&. In each event loop iteration a single event source is dispatched\&. Each time an event source is dispatched the kernel is polled for new events, before the next event source is dispatched\&. The event loop is designed to honor priorities and provide fairness within each priority\&. It is not designed to provide optimal throughput, as this contradicts these goals due the limitations of the underlying -\fBepoll\fR(7) -primitives\&. -.PP -The event loop implementation provides the following features: -.sp -.RS 4 -.ie n \{\ -\h'-04' 1.\h'+01'\c -.\} -.el \{\ -.sp -1 -.IP " 1." 4.2 -.\} -I/O event sources, based on -\fBepoll\fR(7)\*(Aqs file descriptor watching, including edge triggered events (\fBEPOLLET\fR)\&. See -\fBsd_event_add_io\fR(3)\&. -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04' 2.\h'+01'\c -.\} -.el \{\ -.sp -1 -.IP " 2." 4.2 -.\} -Timer event sources, based on -\fBtimerfd_create\fR(2), supporting the -\fBCLOCK_MONOTONIC\fR, -\fBCLOCK_REALTIME\fR, -\fBCLOCK_BOOTTIME\fR -clocks, as well as the -\fBCLOCK_REALTIME_ALARM\fR -and -\fBCLOCK_BOOTTIME_ALARM\fR -clocks that can resume the system from suspend\&. When creating timer events a required accuracy parameter may be specified which allows coalescing of timer events to minimize power consumption\&. See -\fBsd_event_add_time\fR(3)\&. -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04' 3.\h'+01'\c -.\} -.el \{\ -.sp -1 -.IP " 3." 4.2 -.\} -UNIX process signal events, based on -\fBsignalfd\fR(2), including full support for real\-time signals, and queued parameters\&. See -\fBsd_event_add_signal\fR(3)\&. -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04' 4.\h'+01'\c -.\} -.el \{\ -.sp -1 -.IP " 4." 4.2 -.\} -Child process state change events, based on -\fBwaitid\fR(2)\&. See -\fBsd_event_add_child\fR(3)\&. -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04' 5.\h'+01'\c -.\} -.el \{\ -.sp -1 -.IP " 5." 4.2 -.\} -Static event sources, of three types: defer, post and exit, for invoking calls in each event loop, after other event sources or at event loop termination\&. See -\fBsd_event_add_defer\fR(3)\&. -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04' 6.\h'+01'\c -.\} -.el \{\ -.sp -1 -.IP " 6." 4.2 -.\} -Event sources may be assigned a 64\-bit priority value, that controls the order in which event sources are dispatched if multiple are pending simultaneously\&. See -\fBsd_event_source_set_priority\fR(3)\&. -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04' 7.\h'+01'\c -.\} -.el \{\ -.sp -1 -.IP " 7." 4.2 -.\} -The event loop may automatically send watchdog notification messages to the service manager\&. See -\fBsd_event_set_watchdog\fR(3)\&. -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04' 8.\h'+01'\c -.\} -.el \{\ -.sp -1 -.IP " 8." 4.2 -.\} -The event loop may be integrated into foreign event loops, such as the GLib one\&. See -\fBsd_event_get_fd\fR(3) -for an example\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd_event_new\fR(3), -\fBsd_event_run\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_add_memory_pressure\fR(3), -\fBsd_event_source_unref\fR(3), -\fBsd_event_source_set_priority\fR(3), -\fBsd_event_source_set_enabled\fR(3), -\fBsd_event_source_set_userdata\fR(3), -\fBsd_event_source_get_event\fR(3), -\fBsd_event_source_get_pending\fR(3), -\fBsd_event_source_set_description\fR(3), -\fBsd_event_source_set_prepare\fR(3), -\fBsd_event_source_set_ratelimit\fR(3), -\fBsd_event_wait\fR(3), -\fBsd_event_get_fd\fR(3), -\fBsd_event_set_watchdog\fR(3), -\fBsd_event_exit\fR(3), -\fBsd_event_now\fR(3), -\fBepoll\fR(7), -\fBtimerfd_create\fR(2), -\fBsignalfd\fR(2), -\fBwaitid\fR(2) diff --git a/upstream/opensuse-tumbleweed/man3/sd-hwdb.3 b/upstream/opensuse-tumbleweed/man3/sd-hwdb.3 deleted file mode 100644 index 658ec04e..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd-hwdb.3 +++ /dev/null @@ -1,64 +0,0 @@ -'\" t -.TH "SD\-HWDB" "3" "" "systemd 254" "sd-hwdb" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd-hwdb \- Read\-only access to the hardware description database -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'\fBpkg\-config\ \-\-cflags\ \-\-libs\ libsystemd\fR\ 'u -\fBpkg\-config \-\-cflags \-\-libs libsystemd\fR -.SH "DESCRIPTION" -.PP -sd\-hwdb\&.h -is part of -\fBlibsystemd\fR(3) -and allows read\-only access the systemd database of hardware properties\&. See -\fBhwdb\fR(7) -and -\fBsystemd-hwdb\fR(8) -for more information about the database\&. -.PP -See -\fBsd_hwdb_new\fR(3) -and -\fBsd_hwdb_get\fR(3) -for information about the functions available\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsystemd-udevd.service\fR(8) diff --git a/upstream/opensuse-tumbleweed/man3/sd-id128.3 b/upstream/opensuse-tumbleweed/man3/sd-id128.3 deleted file mode 100644 index 4fa384e5..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd-id128.3 +++ /dev/null @@ -1,332 +0,0 @@ -'\" t -.TH "SD\-ID128" "3" "" "systemd 254" "sd-id128" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd-id128, SD_ID128_ALLF, SD_ID128_CONST_STR, SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL, SD_ID128_MAKE, SD_ID128_MAKE_STR, SD_ID128_MAKE_UUID_STR, SD_ID128_NULL, SD_ID128_UUID_FORMAT_STR, sd_id128_equal, sd_id128_string_equal, sd_id128_in_set, sd_id128_in_set_sentinel, sd_id128_in_setv, sd_id128_is_allf, sd_id128_is_null, sd_id128_t \- APIs for processing 128\-bit IDs -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.PP -\fBSD_ID128_ALLF\fR -.PP -\fBSD_ID128_NULL\fR -.PP -\fBSD_ID128_CONST_STR(\fR\fB\fIid\fR\fR\fB)\fR -.PP -\fBSD_ID128_FORMAT_STR\fR -.PP -\fBSD_ID128_FORMAT_VAL(\fR\fB\fIid\fR\fR\fB)\fR -.PP -\fBSD_ID128_MAKE(\fR\fB\fIv0\fR\fR\fB, \fR\fB\fIv1\fR\fR\fB, \fR\fB\fIv2\fR\fR\fB, \fR\fB\fIv3\fR\fR\fB, \fR\fB\fIv4\fR\fR\fB, \fR\fB\fIv5\fR\fR\fB, \fR\fB\fIv6\fR\fR\fB, \fR\fB\fIv7\fR\fR\fB, \fR\fB\fIv8\fR\fR\fB, \fR\fB\fIv9\fR\fR\fB, \fR\fB\fIvA\fR\fR\fB, \fR\fB\fIvB\fR\fR\fB, \fR\fB\fIvC\fR\fR\fB, \fR\fB\fIvD\fR\fR\fB, \fR\fB\fIvE\fR\fR\fB, \fR\fB\fIvF\fR\fR\fB)\fR -.PP -\fBSD_ID128_MAKE_STR(\fR\fB\fIv0\fR\fR\fB, \fR\fB\fIv1\fR\fR\fB, \fR\fB\fIv2\fR\fR\fB, \fR\fB\fIv3\fR\fR\fB, \fR\fB\fIv4\fR\fR\fB, \fR\fB\fIv5\fR\fR\fB, \fR\fB\fIv6\fR\fR\fB, \fR\fB\fIv7\fR\fR\fB, \fR\fB\fIv8\fR\fR\fB, \fR\fB\fIv9\fR\fR\fB, \fR\fB\fIvA\fR\fR\fB, \fR\fB\fIvB\fR\fR\fB, \fR\fB\fIvC\fR\fR\fB, \fR\fB\fIvD\fR\fR\fB, \fR\fB\fIvE\fR\fR\fB, \fR\fB\fIvF\fR\fR\fB)\fR -.PP -\fBSD_ID128_MAKE_UUID_STR(\fR\fB\fIv0\fR\fR\fB, \fR\fB\fIv1\fR\fR\fB, \fR\fB\fIv2\fR\fR\fB, \fR\fB\fIv3\fR\fR\fB, \fR\fB\fIv4\fR\fR\fB, \fR\fB\fIv5\fR\fR\fB, \fR\fB\fIv6\fR\fR\fB, \fR\fB\fIv7\fR\fR\fB, \fR\fB\fIv8\fR\fR\fB, \fR\fB\fIv9\fR\fR\fB, \fR\fB\fIvA\fR\fR\fB, \fR\fB\fIvB\fR\fR\fB, \fR\fB\fIvC\fR\fR\fB, \fR\fB\fIvD\fR\fR\fB, \fR\fB\fIvE\fR\fR\fB, \fR\fB\fIvF\fR\fR\fB)\fR -.PP -\fBSD_ID128_UUID_FORMAT_STR\fR -.HP \w'int\ sd_id128_equal('u -.BI "int sd_id128_equal(sd_id128_t\ " "a" ", sd_id128_t\ " "b" ");" -.HP \w'int\ sd_id128_string_equal('u -.BI "int sd_id128_string_equal(const\ char\ *" "a" ", sd_id128_t\ " "b" ");" -.HP \w'int\ sd_id128_is_null('u -.BI "int sd_id128_is_null(sd_id128_t\ " "id" ");" -.HP \w'int\ sd_id128_is_allf('u -.BI "int sd_id128_is_allf(sd_id128_t\ " "id" ");" -.HP \w'int\ sd_id128_in_setv('u -.BI "int sd_id128_in_setv(sd_id128_t\ " "id" ", va_list\ " "ap" ");" -.HP \w'int\ sd_id128_in_set_sentinel('u -.BI "int sd_id128_in_set_sentinel(sd_id128_t\ " "id" ", \&..., \fBSD_ID128_NULL\fR);" -.HP \w'int\ sd_id128_in_set('u -.BI "int sd_id128_in_set(sd_id128_t\ " "id" ", \&...);" -.HP \w'\fBpkg\-config\ \-\-cflags\ \-\-libs\ libsystemd\fR\ 'u -\fBpkg\-config \-\-cflags \-\-libs libsystemd\fR -.SH "DESCRIPTION" -.PP -sd\-id128\&.h -is part of -\fBlibsystemd\fR(3) -and provides APIs to generate, convert, and compare 128\-bit ID values\&. The 128\-bit ID values processed and generated by these APIs are a generalization of OSF UUIDs as defined by -\m[blue]\fBRFC 4122\fR\m[]\&\s-2\u[1]\d\s+2 -but use a simpler string format\&. These functions impose no structure on the used IDs, much unlike OSF UUIDs or Microsoft GUIDs, but are mostly compatible with those types of IDs\&. -.PP -A 128\-bit ID is implemented as the following union type: -.sp -.if n \{\ -.RS 4 -.\} -.nf -typedef union sd_id128 { - uint8_t bytes[16]; - uint64_t qwords[2]; -} sd_id128_t; -.fi -.if n \{\ -.RE -.\} -.PP -This union type allows accessing the 128\-bit ID as 16 separate bytes or two 64\-bit words\&. It is generally safer to access the ID components by their 8\-bit array to avoid endianness issues\&. This union is intended to be passed by value (as opposed to pass\-by\-reference) and may be directly manipulated by clients\&. -.PP -A couple of macros are defined to denote and decode 128\-bit IDs: -.PP -\fBSD_ID128_MAKE()\fR -is used to write a constant ID in source code\&. A commonly used idiom is to assign a name to an ID using this macro: -.sp -.if n \{\ -.RS 4 -.\} -.nf -#define SD_MESSAGE_COREDUMP SD_ID128_MAKE(fc,2e,22,bc,6e,e6,47,b6,b9,07,29,ab,34,a2,50,b1) -.fi -.if n \{\ -.RE -.\} -.PP -\fBSD_ID128_NULL\fR -defines an ID consisting of only -\fBNUL\fR -bytes (i\&.e\&. all bits off)\&. -.PP -\fBSD_ID128_ALLF\fR -defines an ID consisting of only -\fB0xFF\fR -bytes (i\&.e\&. all bits on)\&. -.PP -\fBSD_ID128_MAKE_STR()\fR -is similar to -\fBSD_ID128_MAKE()\fR, but creates a -\fBconst char*\fR -expression that can be conveniently used in message formats and such: -.sp -.if n \{\ -.RS 4 -.\} -.nf -#include -#define SD_MESSAGE_COREDUMP_STR SD_ID128_MAKE_STR(fc,2e,22,bc,6e,e6,47,b6,b9,07,29,ab,34,a2,50,b1) - -int main(int argc, char **argv) { - puts("Match for coredumps: MESSAGE_ID=" SD_MESSAGE_COREDUMP_STR); -} -.fi -.if n \{\ -.RE -.\} -.PP -\fBSD_ID128_CONST_STR()\fR -converts constant IDs into constant strings for output\&. The following example code will output the string "fc2e22bc6ee647b6b90729ab34a250b1": -.sp -.if n \{\ -.RS 4 -.\} -.nf -int main(int argc, char *argv[]) { - puts("Match for coredumps: %s", SD_ID128_CONST_STR(SD_MESSAGE_COREDUMP)); -} -.fi -.if n \{\ -.RE -.\} -.PP -\fBSD_ID128_FORMAT_STR\fR -and -\fBSD_ID128_FORMAT_VAL()\fR -is used to format an ID in a -\fBprintf\fR(3) -format string, as shown in the following example: -.sp -.if n \{\ -.RS 4 -.\} -.nf -int main(int argc, char *argv[]) { - sd_id128_t id; - id = SD_ID128_MAKE(ee,89,be,71,bd,6e,43,d6,91,e6,c5,5d,eb,03,02,07); - printf("The ID encoded in this C file is " SD_ID128_FORMAT_STR "\&.\en", SD_ID128_FORMAT_VAL(id)); - return 0; -} -.fi -.if n \{\ -.RE -.\} -.PP -\fBSD_ID128_UUID_FORMAT_STR\fR -and -\fBSD_ID128_MAKE_UUID_STR()\fR -are similar to -\fBSD_ID128_FORMAT_STR\fR -and -\fBSD_ID128_MAKE_STR()\fR, but include separating hyphens to conform to the "\m[blue]\fBcanonical representation\fR\m[]\&\s-2\u[2]\d\s+2"\&. They format the string based on -\m[blue]\fBRFC4122\fR\m[]\&\s-2\u[1]\d\s+2 -Variant 1 rules, i\&.e\&. converting from Big Endian byte order\&. This matches behaviour of most other Linux userspace infrastructure\&. It\*(Aqs probably best to avoid UUIDs of other variants, in order to avoid unnecessary ambiguities\&. All 128\-bit IDs generated by the sd\-id128 APIs strictly conform to Variant 1 Version 4 UUIDs, as per RFC 4122\&. -.PP -\fBsd_id128_equal()\fR -compares two 128\-bit IDs: -.sp -.if n \{\ -.RS 4 -.\} -.nf -int main(int argc, char *argv[]) { - sd_id128_t a, b, c; - a = SD_ID128_MAKE(ee,89,be,71,bd,6e,43,d6,91,e6,c5,5d,eb,03,02,07); - b = SD_ID128_MAKE(f2,28,88,9c,5f,09,44,15,9d,d7,04,77,58,cb,e7,3e); - c = a; - assert(sd_id128_equal(a, c)); - assert(!sd_id128_equal(a, b)); - return 0; -} -.fi -.if n \{\ -.RE -.\} -.PP -\fBsd_id128_string_equal()\fR -is similar to -\fBsd_id128_equal()\fR, but the first ID is formatted as -\fBconst char*\fR\&. The same restrictions apply as to the first argument of -\fBsd_id128_from_string()\fR\&. -.PP -\fBsd_id128_is_null()\fR -checks if an ID consists of only -\fBNUL\fR -bytes: -.sp -.if n \{\ -.RS 4 -.\} -.nf -assert(sd_id128_is_null(SD_ID128_NULL)); -.fi -.if n \{\ -.RE -.\} -.PP -Similarly, -\fBsd_id128_is_allf()\fR -checks if an ID consists of only -\fB0xFF\fR -bytes (all bits on): -.sp -.if n \{\ -.RS 4 -.\} -.nf -assert(sd_id128_is_allf(SD_ID128_ALLF)); -.fi -.if n \{\ -.RE -.\} -.PP -\fBsd_id128_in_set_sentinel()\fR -takes a list of IDs and returns true if the first argument is equal to any of the subsequent arguments\&. The argument list is terminated by an -\fBSD_ID128_NULL\fR -sentinel, which must be present\&. -.PP -\fBsd_id128_in_set()\fR -is a convenience function that takes a list of IDs and returns true if the first argument is equal to any of the subsequent arguments: -.sp -.if n \{\ -.RS 4 -.\} -.nf -int main(int argc, char *argv[]) { - sd_id12_t a = SD_ID128_MAKE(ee,89,be,71,bd,6e,43,d6,91,e6,c5,5d,eb,03,02,07); - assert(sd_id128_in_set(a, a)); - assert(sd_id128_in_set(a, a, a)); - assert(!sd_id128_in_set(a)); - assert(!sd_id128_in_set(a, - SD_ID128_MAKE(f2,28,88,9c,5f,09,44,15,9d,d7,04,77,58,cb,e7,3e) - SD_ID128_MAKE(2f,88,28,5f,9c,44,09,9d,d7,15,77,04,bc,85,7e,e3) - SD_ID128_ALLF)); - return 0; -} -.fi -.if n \{\ -.RE -.\} -.PP -\fBsd_id128_in_set()\fR -is defined as a macro over -\fBsd_id128_in_set_sentinel()\fR, adding the -\fBSD_ID128_NULL\fR -sentinel automatically\&. Since -\fBsd_id128_in_set_sentinel()\fR -uses -\fBSD_ID128_NULL\fR -as the sentinel, -\fBSD_ID128_NULL\fR -cannot be otherwise placed in the argument list\&. -.PP -\fBsd_id128_in_setv()\fR -is similar to -\fBsd_id128_in_set_sentinel()\fR, but takes a -struct varargs -argument\&. -.PP -New randomized IDs may be generated with -\fBsystemd-id128\fR(1)\*(Aqs -\fBnew\fR -command\&. -.PP -See -\fBsd_id128_to_string\fR(3), -\fBsd_id128_randomize\fR(3) -and -\fBsd_id128_get_machine\fR(3) -for information about other implemented functions\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd_id128_to_string\fR(3), -\fBsd_id128_randomize\fR(3), -\fBsd_id128_get_machine\fR(3), -\fBprintf\fR(3), -\fBjournalctl\fR(1), -\fBsd-journal\fR(7), -\fBpkg-config\fR(1), -\fBmachine-id\fR(5) -.SH "NOTES" -.IP " 1." 4 -RFC 4122 -.RS 4 -\%https://tools.ietf.org/html/rfc4122 -.RE -.IP " 2." 4 -canonical representation -.RS 4 -\%https://en.wikipedia.org/wiki/Universally_unique_identifier#Format -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd-journal.3 b/upstream/opensuse-tumbleweed/man3/sd-journal.3 deleted file mode 100644 index c55f3995..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd-journal.3 +++ /dev/null @@ -1,115 +0,0 @@ -'\" t -.TH "SD\-JOURNAL" "3" "" "systemd 254" "sd-journal" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd-journal \- APIs for submitting and querying log entries to and from the journal -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'\fBpkg\-config\ \-\-cflags\ \-\-libs\ libsystemd\fR\ 'u -\fBpkg\-config \-\-cflags \-\-libs libsystemd\fR -.SH "DESCRIPTION" -.PP -sd\-journal\&.h -is part of -\fBlibsystemd\fR(3) -and provides APIs to submit and query log entries\&. The APIs exposed act both as client for the -\fBsystemd-journald.service\fR(8) -journal service and as parser for the journal files on disk\&. -.PP -See -\fBsd_journal_print\fR(3), -\fBsd_journal_stream_fd\fR(3), -\fBsd_journal_open\fR(3), -\fBsd_journal_next\fR(3), -\fBsd_journal_get_realtime_usec\fR(3), -\fBsd_journal_add_match\fR(3), -\fBsd_journal_seek_head\fR(3), -\fBsd_journal_enumerate_fields\fR(3), -\fBsd_journal_get_cursor\fR(3), -\fBsd_journal_get_cutoff_realtime_usec\fR(3), -\fBsd_journal_get_cutoff_monotonic_usec\fR(3), -\fBsd_journal_get_usage\fR(3), -\fBsd_journal_get_catalog\fR(3), -\fBsd_journal_get_fd\fR(3), -\fBsd_journal_has_runtime_files\fR(3) -and -\fBsd_journal_has_persistent_files\fR(3) -for more information about the functions implemented\&. -.PP -Command line access for submitting entries to the journal is available with the -\fBsystemd-cat\fR(1) -tool\&. Command line access for querying entries from the journal is available with the -\fBjournalctl\fR(1) -tool\&. -.SH "THREAD SAFETY" -.PP -Functions that operate on -sd_journal -objects are thread agnostic \(em given -sd_journal -pointer may only be used from one specific thread at all times (and it has to be the very same one during the entire lifetime of the object), but multiple, independent threads may use multiple, independent objects safely\&. Other functions \(em those that are used to send entries to the journal, like -\fBsd_journal_print\fR(3) -and similar, or those that are used to retrieve global information like -\fBsd_journal_stream_fd\fR(3) -and -\fBsd_journal_get_catalog_for_message_id\fR(3) -\(em are fully thread\-safe and may be called from multiple threads in parallel\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd_journal_print\fR(3), -\fBsd_journal_stream_fd\fR(3), -\fBsd_journal_open\fR(3), -\fBsd_journal_next\fR(3), -\fBsd_journal_get_data\fR(3), -\fBsd_journal_get_realtime_usec\fR(3), -\fBsd_journal_add_match\fR(3), -\fBsd_journal_seek_head\fR(3), -\fBsd_journal_enumerate_fields\fR(3), -\fBsd_journal_get_cursor\fR(3), -\fBsd_journal_get_cutoff_realtime_usec\fR(3), -\fBsd_journal_get_cutoff_monotonic_usec\fR(3), -\fBsd_journal_get_usage\fR(3), -\fBsd_journal_get_fd\fR(3), -\fBsd_journal_query_unique\fR(3), -\fBsd_journal_get_catalog\fR(3), -\fBsd_journal_has_runtime_files\fR(3), -\fBsd_journal_has_persistent_files\fR(3), -\fBjournalctl\fR(1), -\fBsd-id128\fR(3), -\fBpkg-config\fR(1) diff --git a/upstream/opensuse-tumbleweed/man3/sd-login.3 b/upstream/opensuse-tumbleweed/man3/sd-login.3 deleted file mode 100644 index 47c7566a..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd-login.3 +++ /dev/null @@ -1,188 +0,0 @@ -'\" t -.TH "SD\-LOGIN" "3" "" "systemd 254" "sd-login" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd-login \- APIs for tracking logins -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'\fBpkg\-config\ \-\-cflags\ \-\-libs\ libsystemd\fR\ 'u -\fBpkg\-config \-\-cflags \-\-libs libsystemd\fR -.SH "DESCRIPTION" -.PP -sd\-login\&.h -is part of -\fBlibsystemd\fR(3) -and provides APIs to introspect and monitor seat, login session, and user status information on the local system\&. -.PP -Note that these APIs only allow purely passive access and monitoring of seats, sessions and users\&. To actively make changes to the seat configuration, terminate login sessions, or switch session on a seat you need to utilize the D\-Bus API of systemd\-logind, instead\&. -.PP -These functions synchronously access data in -/proc/, -/sys/fs/cgroup/ -and -/run/\&. All of these are virtual file systems, hence the runtime cost of the accesses is relatively cheap\&. -.PP -It is possible (and often a very good choice) to mix calls to the synchronous interface of -sd\-login\&.h -with the asynchronous D\-Bus interface of systemd\-logind\&. However, if this is done you need to think a bit about possible races since the stream of events from D\-Bus and from -sd\-login\&.h -interfaces such as the login monitor are asynchronous and not ordered against each other\&. -.PP -If the functions return string arrays, these are generally -\fBNULL\fR -terminated and need to be freed by the caller with the libc -\fBfree\fR(3) -call after use, including the strings referenced therein\&. Similarly, individual strings returned need to be freed, as well\&. -.PP -As a special exception, instead of an empty string array -\fBNULL\fR -may be returned, which should be treated equivalent to an empty string array\&. -.PP -See -\fBsd_pid_get_session\fR(3), -\fBsd_uid_get_state\fR(3), -\fBsd_session_is_active\fR(3), -\fBsd_seat_get_active\fR(3), -\fBsd_get_seats\fR(3), -\fBsd_login_monitor_new\fR(3) -for more information about the functions implemented\&. -.SH "DEFINITION OF TERMS" -.PP -seat -.RS 4 -A seat consists of all hardware devices assigned to a specific workplace\&. It consists of at least one graphics device, and usually also includes keyboard, mouse\&. It can also include video cameras, sound cards and more\&. Seats are identified by seat names, which are strings (<= 255 characters), that start with the four characters -"seat" -followed by at least one character from the range [a\-zA\-Z0\-9], -"_" -and -"\-"\&. They are suitable for use as file names\&. Seat names may or may not be stable and may be reused if a seat becomes available again\&. -.RE -.PP -session -.RS 4 -A session is defined by the time a user is logged in until they log out\&. A session is bound to one or no seats (the latter for \*(Aqvirtual\*(Aq ssh logins)\&. Multiple sessions can be attached to the same seat, but only one of them can be active, the others are in the background\&. A session is identified by a short string\&. -.sp -\fBsystemd\fR(1) -ensures that audit sessions are identical to systemd sessions, and uses the audit session ID as session ID in systemd (if auditing is enabled)\&. In general the session identifier is a short string consisting only of [a\-zA\-Z0\-9], -"_" -and -"\-", suitable for use as a file name\&. Session IDs are unique on the local machine and are never reused as long as the machine is online\&. A user (the way we know it on UNIX) corresponds to the person using a computer\&. A single user can have multiple sessions open at the same time\&. A user is identified by a numeric user id (UID) or a user name (a string)\&. A multi\-session system allows multiple user sessions on the same seat at the same time\&. A multi\-seat system allows multiple independent seats that can be individually and simultaneously used by different users\&. -.RE -.PP -All hardware devices that are eligible to being assigned to a seat, are assigned to one\&. A device can be assigned to only one seat at a time\&. If a device is not assigned to any particular other seat it is implicitly assigned to the special default seat called -"seat0"\&. -.PP -Note that hardware like printers, hard disks or network cards is generally not assigned to a specific seat\&. They are available to all seats equally\&. (Well, with one exception: USB sticks can be assigned to a seat\&.) -.PP -"seat0" -always exists\&. -.SH "UDEV RULES" -.PP -Assignment of hardware devices to seats is managed inside the udev database, via settings on the devices: -.PP -Tag "seat" -.RS 4 -When set, a device is eligible to be assigned to a seat\&. This tag is set for graphics devices, mice, keyboards, video cards, sound cards and more\&. Note that some devices like sound cards consist of multiple subdevices (i\&.e\&. a PCM for input and another one for output)\&. This tag will be set only for the originating device, not for the individual subdevices\&. A UI for configuring assignment of devices to seats should enumerate and subscribe to all devices with this tag set and show them in the UI\&. Note that USB hubs can be assigned to a seat as well, in which case all (current and future) devices plugged into it will also be assigned to the same seat (unless they are explicitly assigned to another seat)\&. -.RE -.PP -Tag "master\-of\-seat" -.RS 4 -When set, this device is enough for a seat to be considered existent\&. This tag is usually set for the framebuffer device of graphics cards\&. A seat hence consists of an arbitrary number of devices marked with the -"seat" -tag, but (at least) one of these devices needs to be tagged with -"master\-of\-seat" -before the seat is actually considered to be around\&. -.RE -.PP -Property \fIID_SEAT\fR -.RS 4 -This property specifies the name of the seat a specific device is assigned to\&. If not set the device is assigned to -"seat0"\&. Also, to speed up enumeration of hardware belonging to a specific seat, the seat is also set as tag on the device\&. I\&.e\&. if the property -\fIID_SEAT=seat\-waldo\fR -is set for a device, the tag -"seat\-waldo" -will be set as well\&. Note that if a device is assigned to -"seat0", it will usually not carry such a tag and you need to enumerate all devices and check the -\fIID_SEAT\fR -property manually\&. Again, if a device is assigned to seat0 this is visible on the device in two ways: with a property -\fIID_SEAT=seat0\fR -and with no property -\fIID_SEAT\fR -set for it at all\&. -.RE -.PP -Property \fIID_AUTOSEAT\fR -.RS 4 -When set to -"1", this device automatically generates a new and independent seat, which is named after the path of the device\&. This is set for specialized USB hubs like the Pluggable devices, which when plugged in should create a hotplug seat without further configuration\&. -.RE -.PP -Property \fIID_FOR_SEAT\fR -.RS 4 -When creating additional (manual) seats starting from a graphics device this is a good choice to name the seat after\&. It is created from the path of the device\&. This is useful in UIs for configuring seats: as soon as you create a new seat from a graphics device, read this property and prefix it with -"seat\-" -and use it as name for the seat\&. -.RE -.PP -A seat exists only and exclusively because a properly tagged device with the right -\fIID_SEAT\fR -property exists\&. Besides udev rules there is no persistent data about seats stored on disk\&. -.PP -Note that -\fBsystemd-logind\fR(8) -manages ACLs on a number of device classes, to allow user code to access the device nodes attached to a seat as long as the user has an active session on it\&. This is mostly transparent to applications\&. As mentioned above, for certain user software it might be a good idea to watch whether they can access device nodes instead of thinking about seats\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd_pid_get_session\fR(3), -\fBsd_uid_get_state\fR(3), -\fBsd_session_is_active\fR(3), -\fBsd_seat_get_active\fR(3), -\fBsd_get_seats\fR(3), -\fBsd_login_monitor_new\fR(3), -\fBsd-daemon\fR(3), -\fBpkg-config\fR(1) -.PP -\m[blue]\fBMulti\-Seat on Linux\fR\m[]\&\s-2\u[1]\d\s+2 -may also be of historical interest\&. -.SH "NOTES" -.IP " 1." 4 -Multi-Seat on Linux -.RS 4 -\%https://www.freedesktop.org/wiki/Software/systemd/multiseat -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_booted.3 b/upstream/opensuse-tumbleweed/man3/sd_booted.3 deleted file mode 100644 index a86997c8..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_booted.3 +++ /dev/null @@ -1,52 +0,0 @@ -'\" t -.TH "SD_BOOTED" "3" "" "systemd 254" "sd_booted" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_booted \- Test whether the system is running the systemd init system -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_booted('u -.BI "int sd_booted(void);" -.SH "DESCRIPTION" -.PP -\fBsd_booted()\fR -checks whether the system was booted up using the systemd init system\&. -.SH "RETURN VALUE" -.PP -On failure, this call returns a negative errno\-style error code\&. If the system was booted up with systemd as init system, this call returns a positive return value, zero otherwise\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -Internally, this function checks whether the directory -/run/systemd/system/ -exists\&. A simple check like this can also be implemented trivially in shell or any other language\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-daemon\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_add_match.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_add_match.3 deleted file mode 100644 index ca04a391..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_add_match.3 +++ /dev/null @@ -1,136 +0,0 @@ -'\" t -.TH "SD_BUS_ADD_MATCH" "3" "" "systemd 254" "sd_bus_add_match" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_add_match, sd_bus_add_match_async, sd_bus_match_signal, sd_bus_match_signal_async \- Add a match rule for incoming message dispatching -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'typedef\ int\ (*sd_bus_message_handler_t)('u -.BI "typedef int (*sd_bus_message_handler_t)(sd_bus_message\ *" "m" ", void\ *" "userdata" ", sd_bus_error\ *" "ret_error" ");" -.HP \w'int\ sd_bus_add_match('u -.BI "int sd_bus_add_match(sd_bus\ *" "bus" ", sd_bus_slot\ **" "slot" ", const\ char\ *" "match" ", sd_bus_message_handler_t\ " "callback" ", void\ *" "userdata" ");" -.HP \w'int\ sd_bus_add_match_async('u -.BI "int sd_bus_add_match_async(sd_bus\ *" "bus" ", sd_bus_slot\ **" "slot" ", const\ char\ *" "match" ", sd_bus_message_handler_t\ " "callback" ", sd_bus_message_handler_t\ " "install_callback" ", void\ *" "userdata" ");" -.HP \w'int\ sd_bus_match_signal('u -.BI "int sd_bus_match_signal(sd_bus\ *" "bus" ", sd_bus_slot\ **" "slot" ", const\ char\ *" "sender" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "member" ", sd_bus_message_handler_t\ " "callback" ", void\ *" "userdata" ");" -.HP \w'int\ sd_bus_match_signal_async('u -.BI "int sd_bus_match_signal_async(sd_bus\ *" "bus" ", sd_bus_slot\ **" "slot" ", const\ char\ *" "sender" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "member" ", sd_bus_message_handler_t\ " "callback" ", sd_bus_message_handler_t\ " "install_callback" ", void\ *" "userdata" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_add_match()\fR -installs a match rule for messages received on the specified bus connection object -\fIbus\fR\&. The syntax of the match rule expression passed in -\fImatch\fR -is described in the -\m[blue]\fBD\-Bus Specification\fR\m[]\&\s-2\u[1]\d\s+2\&. The specified handler function -\fIcallback\fR -is called for each incoming message matching the specified expression, the -\fIuserdata\fR -parameter is passed as\-is to the callback function\&. The match is installed synchronously when connected to a bus broker, i\&.e\&. the call sends a control message requested the match to be added to the broker and waits until the broker confirms the match has been installed successfully\&. -.PP -\fBsd_bus_add_match_async()\fR -operates very similarly to -\fBsd_bus_add_match()\fR, however it installs the match asynchronously, in a non\-blocking fashion: a request is sent to the broker, but the call does not wait for a response\&. The -\fIinstall_callback\fR -function is called when the response is later received, with the response message from the broker as parameter\&. If this function is specified as -\fBNULL\fR -a default implementation is used that terminates the bus connection should installing the match fail\&. -.PP -\fBsd_bus_match_signal()\fR -is very similar to -\fBsd_bus_add_match()\fR, but only matches signals, and instead of a match expression accepts four parameters: -\fIsender\fR -(the service name of the sender), -\fIpath\fR -(the object path of the emitting object), -\fIinterface\fR -(the interface the signal belongs to), -\fImember\fR -(the signal name), from which the match string is internally generated\&. Optionally, these parameters may be specified as -\fBNULL\fR -in which case the relevant field of incoming signals is not tested\&. -.PP -\fBsd_bus_match_signal_async()\fR -combines the signal matching logic of -\fBsd_bus_match_signal()\fR -with the asynchronous behaviour of -\fBsd_bus_add_match_async()\fR\&. -.PP -On success, and if non\-\fBNULL\fR, the -\fIslot\fR -return parameter will be set to a slot object that may be used as a reference to the installed match, and may be utilized to remove it again at a later time with -\fBsd_bus_slot_unref\fR(3)\&. If specified as -\fBNULL\fR -the lifetime of the match is bound to the lifetime of the bus object itself, and the match is generally not removed independently\&. See -\fBsd_bus_slot_set_floating\fR(3) -for details\&. -.PP -The message -\fIm\fR -passed to the callback is only borrowed, that is, the callback should not call -\fBsd_bus_message_unref\fR(3) -on it\&. If the callback wants to hold on to the message beyond the lifetime of the callback, it needs to call -\fBsd_bus_message_ref\fR(3) -to create a new reference\&. -.PP -If an error occurs during the callback invocation, the callback should return a negative error number (optionally, a more precise error may be returned in -\fIret_error\fR, as well)\&. If it wants other callbacks that match the same rule to be called, it should return 0\&. Otherwise it should return a positive integer\&. -.PP -If the -\fIbus\fR -refers to a direct connection (i\&.e\&. not a bus connection, as set with -\fBsd_bus_set_bus_client\fR(3)) the match is only installed on the client side, and the synchronous and asynchronous functions operate the same\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_add_match()\fR -and the other calls return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_slot_unref\fR(3), -\fBsd_bus_message_ref\fR(3), -\fBsd_bus_set_bus_client\fR(3), -\fBsd_bus_slot_set_floating\fR(3) -.SH "NOTES" -.IP " 1." 4 -D-Bus Specification -.RS 4 -\%https://dbus.freedesktop.org/doc/dbus-specification.html -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_add_node_enumerator.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_add_node_enumerator.3 deleted file mode 100644 index cb6627ea..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_add_node_enumerator.3 +++ /dev/null @@ -1,116 +0,0 @@ -'\" t -.TH "SD_BUS_ADD_NODE_ENUMERATOR" "3" "" "systemd 254" "sd_bus_add_node_enumerator" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_add_node_enumerator \- Add a node enumerator for a D\-Bus object path prefix -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'typedef\ int\ (*sd_bus_node_enumerator_t)('u -.BI "typedef int (*sd_bus_node_enumerator_t)(sd_bus\ *" "bus" ", const\ char\ *" "prefix" ", void\ *" "userdata" ", char\ ***" "ret_nodes" ", sd_bus_error\ *" "ret_error" ");" -.HP \w'int\ sd_bus_add_node_enumerator('u -.BI "int sd_bus_add_node_enumerator(sd_bus\ *" "bus" ", sd_bus_slot\ **" "slot" ", const\ char\ *" "path" ", sd_bus_node_enumerator_t\ " "callback" ", void\ *" "userdata" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_add_node_enumerator()\fR -adds a D\-Bus node enumerator for the given path prefix\&. The given callback is called to enumerate all the available objects with the given path prefix when required (e\&.g\&. when -\fBorg\&.freedesktop\&.DBus\&.Introspectable\&.Introspect\fR -or -\fBorg\&.freedesktop\&.DBus\&.ObjectManager\&.GetManagedObjects\fR -are called on a D\-Bus service managed by sd\-bus)\&. -.PP -\fIcallback\fR -is called with the path and userdata pointer registered with -\fBsd_bus_add_node_enumerator()\fR\&. When called, it should store all the child object paths of the given path prefix in -\fIret_nodes\fR -with a NULL terminator item\&. The callback should return a non\-negative value on success\&. If an error occurs, it can either return a negative integer, set -\fIret_error\fR -to a non\-empty error or do both\&. Any errors returned by the callback are encoded as D\-Bus errors and sent back to the caller\&. Errors in -\fIret_error\fR -take priority over negative return values\&. -.PP -Note that a node enumerator callback will only ever be called for a single path prefix and hence, for normal operation, -\fIprefix\fR -can be ignored\&. Also, a node enumerator is only used to enumerate the available child objects under a given prefix\&. To install a handler for a set of dynamic child objects, use -\fBsd_bus_add_fallback_vtable\fR(3)\&. -.PP -When -\fBsd_bus_add_node_enumerator()\fR -succeeds, a slot is created internally\&. If the output parameter -\fIslot\fR -is -\fBNULL\fR, a "floating" slot object is created, see -\fBsd_bus_slot_set_floating\fR(3)\&. Otherwise, a pointer to the slot object is returned\&. In that case, the reference to the slot object should be dropped when the node enumerator is not needed anymore, see -\fBsd_bus_slot_unref\fR(3)\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_add_node_enumerator()\fR -returns a non\-negative integer\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -One of the required parameters is -\fBNULL\fR -or -\fIpath\fR -is not a valid object path\&. -.RE -.PP -\fB\-ENOPKG\fR -.RS 4 -The bus cannot be resolved\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus was created in a different process, library or module instance\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsd-bus\fR(3), -\fBbusctl\fR(1), -\fBsd_bus_add_fallback_vtable\fR(3), -\fBsd_bus_slot_unref\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_add_object.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_add_object.3 deleted file mode 100644 index 808be57b..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_add_object.3 +++ /dev/null @@ -1,721 +0,0 @@ -'\" t -.TH "SD_BUS_ADD_OBJECT" "3" "" "systemd 254" "sd_bus_add_object" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_add_object, sd_bus_add_fallback, sd_bus_add_object_vtable, sd_bus_add_fallback_vtable, sd_bus_add_filter, SD_BUS_VTABLE_CAPABILITY, SD_BUS_VTABLE_START, SD_BUS_VTABLE_END, SD_BUS_METHOD_WITH_NAMES_OFFSET, SD_BUS_METHOD_WITH_NAMES, SD_BUS_METHOD_WITH_OFFSET, SD_BUS_METHOD, SD_BUS_SIGNAL_WITH_NAMES, SD_BUS_SIGNAL, SD_BUS_WRITABLE_PROPERTY, SD_BUS_PROPERTY, SD_BUS_PARAM \- Declare properties and methods for a D\-Bus path -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.sp -.HP \w'typedef\ int\ (*sd_bus_message_handler_t)('u -.BI "typedef int (*sd_bus_message_handler_t)(sd_bus_message\ *" "m" ", void\ *" "userdata" ", sd_bus_error\ *" "ret_error" ");" -.HP \w'typedef\ int\ (*sd_bus_property_get_t)('u -.BI "typedef int (*sd_bus_property_get_t)(sd_bus\ *" "bus" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "property" ", sd_bus_message\ *" "reply" ", void\ *" "userdata" ", sd_bus_error\ *" "ret_error" ");" -.HP \w'typedef\ int\ (*sd_bus_property_set_t)('u -.BI "typedef int (*sd_bus_property_set_t)(sd_bus\ *" "bus" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "property" ", sd_bus_message\ *" "value" ", void\ *" "userdata" ", sd_bus_error\ *" "ret_error" ");" -.HP \w'typedef\ int\ (*sd_bus_object_find_t)('u -.BI "typedef int (*sd_bus_object_find_t)(const\ char\ *" "path" ", const\ char\ *" "interface" ", void\ *" "userdata" ", void\ **" "ret_found" ", sd_bus_error\ *" "ret_error" ");" -.HP \w'int\ sd_bus_add_object('u -.BI "int sd_bus_add_object(sd_bus\ *" "bus" ", sd_bus_slot\ **" "slot" ", const\ char\ *" "path" ", sd_bus_message_handler_t\ " "callback" ", void\ *" "userdata" ");" -.HP \w'int\ sd_bus_add_fallback('u -.BI "int sd_bus_add_fallback(sd_bus\ *" "bus" ", sd_bus_slot\ **" "slot" ", const\ char\ *" "path" ", sd_bus_message_handler_t\ " "callback" ", void\ *" "userdata" ");" -.HP \w'int\ sd_bus_add_object_vtable('u -.BI "int sd_bus_add_object_vtable(sd_bus\ *" "bus" ", sd_bus_slot\ **" "slot" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ sd_bus_vtable\ *" "vtable" ", void\ *" "userdata" ");" -.HP \w'int\ sd_bus_add_fallback_vtable('u -.BI "int sd_bus_add_fallback_vtable(sd_bus\ *" "bus" ", sd_bus_slot\ **" "slot" ", const\ char\ *" "prefix" ", const\ char\ *" "interface" ", const\ sd_bus_vtable\ *" "vtable" ", sd_bus_object_find_t\ " "find" ", void\ *" "userdata" ");" -.HP \w'int\ sd_bus_add_filter('u -.BI "int sd_bus_add_filter(sd_bus\ *" "bus" ", sd_bus_slot\ **" "slot" ", sd_bus_message_handler_t\ " "callback" ", void\ *" "userdata" ");" -.PP -\fBSD_BUS_VTABLE_CAPABILITY(\fR\fB\fIcapability\fR\fR\fB)\fR -.PP -\fBSD_BUS_VTABLE_START(\fR\fB\fIflags\fR\fR\fB)\fR -.PP -\fBSD_BUS_VTABLE_END\fR -.PP -\fBSD_BUS_METHOD_WITH_ARGS_OFFSET(\fR\fB\fImember\fR\fR\fB, \fR\fB\fIargs\fR\fR\fB, \fR\fB\fIresult\fR\fR\fB, \fR\fB\fIhandler\fR\fR\fB, \fR\fB\fIoffset\fR\fR\fB, \fR\fB\fIflags\fR\fR\fB) \fR -.PP -\fBSD_BUS_METHOD_WITH_ARGS(\fR\fB\fImember\fR\fR\fB, \fR\fB\fIargs\fR\fR\fB, \fR\fB\fIresult\fR\fR\fB, \fR\fB\fIhandler\fR\fR\fB, \fR\fB\fIflags\fR\fR\fB) \fR -.PP -\fBSD_BUS_METHOD_WITH_NAMES_OFFSET(\fR\fB\fImember\fR\fR\fB, \fR\fB\fIsignature\fR\fR\fB, \fR\fB\fIin_names\fR\fR\fB, \fR\fB\fIresult\fR\fR\fB, \fR\fB\fIout_names\fR\fR\fB, \fR\fB\fIhandler\fR\fR\fB, \fR\fB\fIoffset\fR\fR\fB, \fR\fB\fIflags\fR\fR\fB) \fR -.PP -\fBSD_BUS_METHOD_WITH_NAMES(\fR\fB\fImember\fR\fR\fB, \fR\fB\fIsignature\fR\fR\fB, \fR\fB\fIin_names\fR\fR\fB, \fR\fB\fIresult\fR\fR\fB, \fR\fB\fIout_names\fR\fR\fB, \fR\fB\fIhandler\fR\fR\fB, \fR\fB\fIflags\fR\fR\fB) \fR -.PP -\fBSD_BUS_METHOD_WITH_OFFSET(\fR\fB\fImember\fR\fR\fB, \fR\fB\fIsignature\fR\fR\fB, \fR\fB\fIresult\fR\fR\fB, \fR\fB\fIhandler\fR\fR\fB, \fR\fB\fIoffset\fR\fR\fB, \fR\fB\fIflags\fR\fR\fB) \fR -.PP -\fBSD_BUS_METHOD(\fR\fB\fImember\fR\fR\fB, \fR\fB\fIsignature\fR\fR\fB, \fR\fB\fIresult\fR\fR\fB, \fR\fB\fIhandler\fR\fR\fB, \fR\fB\fIflags\fR\fR\fB) \fR -.PP -\fBSD_BUS_SIGNAL_WITH_ARGS(\fR\fB\fImember\fR\fR\fB, \fR\fB\fIargs\fR\fR\fB, \fR\fB\fIflags\fR\fR\fB) \fR -.PP -\fBSD_BUS_SIGNAL_WITH_NAMES(\fR\fB\fImember\fR\fR\fB, \fR\fB\fIsignature\fR\fR\fB, \fR\fB\fInames\fR\fR\fB, \fR\fB\fIflags\fR\fR\fB) \fR -.PP -\fBSD_BUS_SIGNAL(\fR\fB\fImember\fR\fR\fB, \fR\fB\fIsignature\fR\fR\fB, \fR\fB\fIflags\fR\fR\fB) \fR -.PP -\fBSD_BUS_WRITABLE_PROPERTY(\fR\fB\fImember\fR\fR\fB, \fR\fB\fIsignature\fR\fR\fB, \fR\fB\fIget\fR\fR\fB, \fR\fB\fIset\fR\fR\fB, \fR\fB\fIoffset\fR\fR\fB, \fR\fB\fIflags\fR\fR\fB) \fR -.PP -\fBSD_BUS_PROPERTY(\fR\fB\fImember\fR\fR\fB, \fR\fB\fIsignature\fR\fR\fB, \fR\fB\fIget\fR\fR\fB, \fR\fB\fIoffset\fR\fR\fB, \fR\fB\fIflags\fR\fR\fB) \fR -.PP -\fBSD_BUS_PARAM(\fR\fB\fIname\fR\fR\fB)\fR -.PP -\fBSD_BUS_ARGS(\fR\fB\fI\&.\&.\&.\fR\fR\fB)\fR -.PP -\fBSD_BUS_RESULT(\fR\fB\fI\&.\&.\&.\fR\fR\fB)\fR -.PP -\fBSD_BUS_NO_ARGS\fR -.PP -\fBSD_BUS_NO_RESULT\fR -.SH "DESCRIPTION" -.PP -\fBsd_bus_add_object_vtable()\fR -is used to declare attributes for the object path -\fIpath\fR -connected to the bus connection -\fIbus\fR -under the interface -\fIinterface\fR\&. The table -\fIvtable\fR -may contain property declarations using -\fBSD_BUS_PROPERTY()\fR -or -\fBSD_BUS_WRITABLE_PROPERTY()\fR, method declarations using -\fBSD_BUS_METHOD()\fR, -\fBSD_BUS_METHOD_WITH_NAMES()\fR, -\fBSD_BUS_METHOD_WITH_OFFSET()\fR, or -\fBSD_BUS_METHOD_WITH_NAMES_OFFSET()\fR, and signal declarations using -\fBSD_BUS_SIGNAL_WITH_NAMES()\fR -or -\fBSD_BUS_SIGNAL()\fR, see below\&. The -\fIuserdata\fR -parameter contains a pointer that will be passed to various callback functions\&. It may be specified as -\fBNULL\fR -if no value is necessary\&. An interface can have any number of vtables attached to it\&. -.PP -\fBsd_bus_add_fallback_vtable()\fR -is similar to -\fBsd_bus_add_object_vtable()\fR, but is used to register "fallback" attributes\&. When looking for an attribute declaration, bus object paths registered with -\fBsd_bus_add_object_vtable()\fR -are checked first\&. If no match is found, the fallback vtables are checked for each prefix of the bus object path, i\&.e\&. with the last slash\-separated components successively removed\&. This allows the vtable to be used for an arbitrary number of dynamically created objects\&. -.PP -Parameter -\fIfind\fR -is a function which is used to locate the target object based on the bus object path -\fIpath\fR\&. It must return -\fB1\fR -and set the -\fIret_found\fR -output parameter if the object is found, return -\fB0\fR -if the object was not found, and return a negative errno\-style error code or initialize the error structure -\fIret_error\fR -on error\&. The pointer passed in -\fIret_found\fR -will be used as the -\fIuserdata\fR -parameter for the callback functions (offset by the -\fIoffset\fR -offsets as specified in the vtable entries)\&. -.PP -\fBsd_bus_add_object()\fR -attaches a callback directly to the object path -\fIpath\fR\&. An object path can have any number of callbacks attached to it\&. Each callback is prepended to the list of callbacks which are always called in order\&. -\fBsd_bus_add_fallback()\fR -is similar to -\fBsd_bus_add_object()\fR -but applies to fallback paths instead\&. -.PP -\fBsd_bus_add_filter()\fR -installs a callback that is invoked for each incoming D\-Bus message\&. Filters can be used to handle logic common to all messages received by a service (e\&.g\&. authentication or authorization)\&. -.PP -When a request is received, any associated callbacks are called sequentially until a callback returns a non\-zero integer\&. Return zero from a callback to give other callbacks the chance to process the request\&. Callbacks are called in the following order: first, global callbacks installed with -\fBsd_bus_add_filter()\fR -are called\&. Second, callbacks attached directly to the request object path are called, followed by any D\-Bus method callbacks attached to the request object path, interface and member\&. Finally, the property callbacks attached to the request object path, interface and member are called\&. If the final callback returns zero, an error reply is sent back to the caller indicating no matching object for the request was found\&. -.PP -Note that you can return a positive integer from a -\fImethod\fR -callback without immediately sending a reply\&. This informs sd\-bus this callback will take responsibility for replying to the request without forcing the callback to produce a reply immediately\&. This allows a callback to perform any number of asynchronous operations required to construct a reply\&. However, if producing a reply takes too long, the method call will time out at the caller\&. This is only available to methods and not properties\&. -.PP -If a callback was invoked to handle a request that expects a reply and the callback returns a negative value, the value is interpreted as a negative errno\-style error code and sent back to the caller as a D\-Bus error as if -\fBsd_bus_reply_method_errno\fR(3) -was called\&. Additionally, all callbacks take a -sd_bus_error -output parameter that can be used to provide more detailed error information\&. If -\fIret_error\fR -is set when the callback finishes, the corresponding D\-Bus error is sent back to the caller as if -\fBsd_bus_reply_method_error\fR(3) -was called\&. Any error stored in -\fIret_error\fR -takes priority over any negative values returned by the same callback when determining which error to send back to the caller\&. Use -\fBsd_bus_error_set\fR(3) -or one of its variants to set -\fIret_error\fR -and return a negative integer from a callback with a single function call\&. To send an error reply after a callback has already finished, use -\fBsd_bus_reply_method_errno\fR(3) -or one of its variants\&. -.PP -For all functions, a match slot is created internally\&. If the output parameter -\fIslot\fR -is -\fBNULL\fR, a "floating" slot object is created, see -\fBsd_bus_slot_set_floating\fR(3)\&. Otherwise, a pointer to the slot object is returned\&. In that case, the reference to the slot object should be dropped when the vtable is not needed anymore, see -\fBsd_bus_slot_unref\fR(3)\&. -.SS "The sd_bus_vtable array" -.PP -The array consists of the structures of type -sd_bus_vtable, but it should never be filled in manually, but through one of the following macros: -.PP -\fBSD_BUS_VTABLE_START(\fR\fB\fIflags\fR\fR\fB)\fR, \fBSD_BUS_VTABLE_END\fR -.RS 4 -Those must always be the first and last element\&. The -\fIflags\fR -parameter can be used to set attributes that apply to the whole array; see the "Flags" section below\&. -.RE -.PP -\fBSD_BUS_METHOD_WITH_ARGS_OFFSET()\fR, \fBSD_BUS_METHOD_WITH_ARGS()\fR -.RS 4 -Declare a D\-Bus method with the name -\fImember\fR, arguments -\fIargs\fR -and result -\fIresult\fR\&. -\fIargs\fR -expects a sequence of argument type/name pairs wrapped in the -\fBSD_BUS_ARGS()\fR -macro\&. The elements at even indices in this list describe the types of the method\*(Aqs arguments\&. The method\*(Aqs parameter signature is the concatenation of all the string literals at even indices in -\fIargs\fR\&. If a method has no parameters, pass -\fBSD_BUS_NO_ARGS\fR -to -\fIargs\fR\&. The elements at uneven indices describe the names of the method\*(Aqs arguments\&. -\fIresult\fR -expects a sequence of type/name pairs wrapped in the -\fBSD_BUS_RESULT()\fR -macro in the same format as -\fBSD_BUS_ARGS()\fR\&. The method\*(Aqs result signature is the concatenation of all the string literals at even indices in -\fIresult\fR\&. If a method has no result, pass -\fBSD_BUS_NO_RESULT\fR -to -\fIresult\fR\&. Note that argument types are expected to be quoted string literals and argument names are expected to be unquoted string literals\&. See below for a complete example\&. -.sp -The handler function -\fIhandler\fR -must be of type -\fBsd_bus_message_handler_t\fR\&. It will be called to handle the incoming messages that call this method\&. It receives a pointer that is the -\fIuserdata\fR -parameter passed to the registration function offset by -\fIoffset\fR -bytes\&. This may be used to pass pointers to different fields in the same data structure to different methods in the same vtable\&. To send a reply from -\fIhandler\fR, call -\fBsd_bus_reply_method_return\fR(3) -with the message the callback was invoked with\&. Parameter -\fIflags\fR -is a combination of flags, see below\&. -.sp -\fBSD_BUS_METHOD_WITH_ARGS()\fR -is a shorthand for calling -\fBSD_BUS_METHOD_WITH_ARGS_OFFSET()\fR -with an offset of zero\&. -.RE -.PP -\fBSD_BUS_METHOD_WITH_NAMES_OFFSET()\fR, \fBSD_BUS_METHOD_WITH_NAMES()\fR, \fBSD_BUS_METHOD_WITH_OFFSET()\fR, \fBSD_BUS_METHOD()\fR -.RS 4 -Declare a D\-Bus method with the name -\fImember\fR, parameter signature -\fIsignature\fR, result signature -\fIresult\fR\&. Parameters -\fIin_names\fR -and -\fIout_names\fR -specify the argument names of the input and output arguments in the function signature\&. -\fIin_names\fR -and -\fIout_names\fR -should be created using the -\fBSD_BUS_PARAM()\fR -macro, see below\&. In all other regards, this macro behaves exactly the same as -\fBSD_BUS_METHOD_WITH_ARGS_OFFSET()\fR\&. -.sp -\fBSD_BUS_METHOD_WITH_NAMES()\fR, -\fBSD_BUS_METHOD_WITH_OFFSET()\fR, and -\fBSD_BUS_METHOD()\fR -are variants which specify zero offset (\fIuserdata\fR -parameter is passed with no change), leave the names unset (i\&.e\&. no parameter names), or both\&. -.sp -Prefer using -\fBSD_BUS_METHOD_WITH_ARGS_OFFSET()\fR -and -\fBSD_BUS_METHOD_WITH_ARGS()\fR -over these macros as they allow specifying argument types and names next to each other which is less error\-prone than first specifying all argument types followed by specifying all argument names\&. -.RE -.PP -\fBSD_BUS_SIGNAL_WITH_ARGS()\fR -.RS 4 -Declare a D\-Bus signal with the name -\fImember\fR -and arguments -\fIargs\fR\&. -\fIargs\fR -expects a sequence of argument type/name pairs wrapped in the -\fBSD_BUS_ARGS()\fR -macro\&. The elements at even indices in this list describe the types of the signal\*(Aqs arguments\&. The signal\*(Aqs parameter signature is the concatenation of all the string literals at even indices in -\fIargs\fR\&. If a signal has no parameters, pass -\fBSD_BUS_NO_ARGS\fR -to -\fIargs\fR\&. The elements at uneven indices describe the names of the signal\*(Aqs arguments\&. Parameter -\fIflags\fR -is a combination of flags\&. See below for a complete example\&. -.RE -.PP -\fBSD_BUS_SIGNAL_WITH_NAMES()\fR, \fBSD_BUS_SIGNAL()\fR -.RS 4 -Declare a D\-Bus signal with the name -\fImember\fR, parameter signature -\fIsignature\fR, and argument names -\fInames\fR\&. -\fInames\fR -should be created using the -\fBSD_BUS_PARAM()\fR -macro, see below\&. Parameter -\fIflags\fR -is a combination of flags, see below\&. -.sp -\fBSD_BUS_SIGNAL()\fR -is equivalent to -\fBSD_BUS_SIGNAL_WITH_NAMES()\fR -with the -\fInames\fR -parameter unset (i\&.e\&. no parameter names)\&. -.sp -Prefer using -\fBSD_BUS_SIGNAL_WITH_ARGS()\fR -over these macros as it allows specifying argument types and names next to each other which is less error\-prone than first specifying all argument types followed by specifying all argument names\&. -.RE -.PP -\fBSD_BUS_WRITABLE_PROPERTY()\fR, \fBSD_BUS_PROPERTY()\fR -.RS 4 -Declare a D\-Bus property with the name -\fImember\fR -and value signature -\fIsignature\fR\&. Parameters -\fIget\fR -and -\fIset\fR -are the getter and setter methods\&. They are called with a pointer that is the -\fIuserdata\fR -parameter passed to the registration function offset by -\fIoffset\fR -bytes\&. This may be used pass pointers to different fields in the same data structure to different setters and getters in the same vtable\&. Parameter -\fIflags\fR -is a combination of flags, see below\&. -.sp -The setter and getter methods may be omitted (specified as -\fBNULL\fR), if the property is one of the basic types or -"as" -in case of read\-only properties\&. In those cases, the -\fIuserdata\fR -and -\fIoffset\fR -parameters must together point to a valid variable of the corresponding type\&. A default setter and getter will be provided, which simply copy the argument between this variable and the message\&. -.sp -\fBSD_BUS_PROPERTY()\fR -is used to define a read\-only property\&. -.RE -.PP -\fBSD_BUS_PARAM()\fR -.RS 4 -Parameter names should be wrapped in this macro, see the example below\&. -.RE -.SS "Flags" -.PP -The -\fIflags\fR -parameter is used to specify a combination of -\m[blue]\fBD\-Bus annotations\fR\m[]\&\s-2\u[1]\d\s+2\&. -.PP -\fBSD_BUS_VTABLE_DEPRECATED\fR -.RS 4 -Mark this vtable entry as deprecated using the -\fBorg\&.freedesktop\&.DBus\&.Deprecated\fR -annotation in introspection data\&. If specified for -\fBSD_BUS_VTABLE_START()\fR, the annotation is applied to the enclosing interface\&. -.RE -.PP -\fBSD_BUS_VTABLE_HIDDEN\fR -.RS 4 -Make this vtable entry hidden\&. It will not be shown in introspection data\&. If specified for -\fBSD_BUS_VTABLE_START()\fR, all entries in the array are hidden\&. -.RE -.PP -\fBSD_BUS_VTABLE_METHOD_NO_REPLY\fR -.RS 4 -Mark this vtable entry as a method that will not return a reply using the -\fBorg\&.freedesktop\&.DBus\&.Method\&.NoReply\fR -annotation in introspection data\&. -.RE -.PP -\fBSD_BUS_VTABLE_PROPERTY_CONST\fR, \fBSD_BUS_VTABLE_PROPERTY_EMITS_CHANGE\fR, \fBSD_BUS_VTABLE_PROPERTY_EMITS_INVALIDATION\fR -.RS 4 -Those three flags correspond to different values of the -\fBorg\&.freedesktop\&.DBus\&.Property\&.EmitsChangedSignal\fR -annotation, which specifies whether the -\fBorg\&.freedesktop\&.DBus\&.Properties\&.PropertiesChanged\fR -signal is emitted whenever the property changes\&. -\fBSD_BUS_VTABLE_PROPERTY_CONST\fR -corresponds to -\fBconst\fR -and means that the property never changes during the lifetime of the object it belongs to, so no signal needs to be emitted\&. -\fBSD_BUS_VTABLE_PROPERTY_EMITS_CHANGE\fR -corresponds to -\fBtrue\fR -and means that the signal is emitted\&. -\fBSD_BUS_VTABLE_PROPERTY_EMITS_INVALIDATION\fR -corresponds to -\fBinvalidates\fR -and means that the signal is emitted, but the value is not included in the signal\&. -.RE -.PP -\fBSD_BUS_VTABLE_PROPERTY_EXPLICIT\fR -.RS 4 -Mark this vtable property entry as requiring explicit request to for the value to be shown (generally because the value is large or slow to calculate)\&. This entry cannot be combined with -\fBSD_BUS_VTABLE_PROPERTY_EMITS_CHANGE\fR, and will not be shown in property listings by default (e\&.g\&. -\fBbusctl introspect\fR)\&. This corresponds to the -\fBorg\&.freedesktop\&.systemd1\&.Explicit\fR -annotation in introspection data\&. -.RE -.PP -\fBSD_BUS_VTABLE_SENSITIVE\fR -.RS 4 -Mark this vtable method entry as processing sensitive data\&. When set, incoming method call messages and their outgoing reply messages are marked as sensitive using -\fBsd_bus_message_sensitive\fR(3), so that they are erased from memory when freed\&. -.RE -.PP -\fBSD_BUS_VTABLE_ABSOLUTE_OFFSET\fR -.RS 4 -Mark this vtable method or property entry so that the user data pointer passed to its associated handler functions is determined slightly differently: instead of adding the offset parameter of the entry to the user data pointer specified during vtable registration, the offset is passed directly, converted to a pointer, without taking the user data pointer specified during vtable registration into account\&. -.RE -.PP -\fBSD_BUS_VTABLE_CAPABILITY(\fR\fB\fIcapability\fR\fR\fB)\fR -.RS 4 -Access to this vtable entry will be allowed if the calling process has the capability -\fIcapability\fR, as described in -\fBsd_bus_query_sender_privilege\fR(3)\&. If used for -\fBSD_BUS_VTABLE_START()\fR, provides a default for all entries in the array\&. If not specified, either for an individual entry or the whole array, -\fBCAP_SYS_ADMIN\fR -is checked by default\&. See -\fBcapabilities\fR(7) -for information about capabilities\&. -.sp -Note that vtable entries may be marked as unprivileged and the whole bus may be marked as trusted, see the discussion of -\fBSD_BUS_VTABLE_UNPRIVILEGED\fR -below\&. -.RE -.PP -\fBSD_BUS_VTABLE_UNPRIVILEGED\fR -.RS 4 -Mark this vtable entry as unprivileged\&. Access to privileged entries is limited to users with appropriate capabilities as described above\&. In practice many vtable entries are marked as unprivileged, and either are open to everyone, or the decision whether to allow access is taken later, e\&.g\&. by delegating to -\m[blue]\fBpolkit\fR\m[]\&\s-2\u[2]\d\s+2\&. -.sp -The whole bus may be marked as trusted, in which case annotations at the entry level are ignored, see -\fBsd_bus_set_trusted\fR(3)\&. -.sp -When -\fInot\fR -specified, the -\fBorg\&.freedesktop\&.systemd1\&.Privileged\fR -annotation with value -"true" -will be shown in introspection data\&. -.sp -Note that this page describes checks implemented in the D\-Bus client\&. The D\-Bus server has an additional policy that may permit or deny connections, see "CONFIGURATION FILE" in -\fBdbus-daemon\fR(1)\&. -.RE -.SH "EXAMPLES" -.PP -\fBExample\ \&1.\ \&Create a simple listener on the bus\fR -.sp -.if n \{\ -.RS 4 -.\} -.nf -/* SPDX\-License\-Identifier: MIT\-0 */ - -#include -#include -#include -#include -#include -#include - -#define _cleanup_(f) __attribute__((cleanup(f))) - -#define check(x) ({ \e - int r = (x); \e - errno = r < 0 ? \-r : 0; \e - printf(#x ": %m\en"); \e - if (r < 0) \e - return EXIT_FAILURE; \e - }) - -typedef struct object { - char *name; - uint32_t number; -} object; - -static int method(sd_bus_message *m, void *userdata, sd_bus_error *error) { - printf("Got called with userdata=%p\en", userdata); - - if (sd_bus_message_is_method_call(m, - "org\&.freedesktop\&.systemd\&.VtableExample", - "Method4")) - return 1; - - const char *string; - check(sd_bus_message_read(m, "s", &string)); - check(sd_bus_reply_method_return(m, "s", string)); - - return 1; -} - -static const sd_bus_vtable vtable[] = { - SD_BUS_VTABLE_START(0), - SD_BUS_METHOD( - "Method1", "s", "s", method, 0), - SD_BUS_METHOD_WITH_NAMES_OFFSET( - "Method2", - "so", SD_BUS_PARAM(string) SD_BUS_PARAM(path), - "s", SD_BUS_PARAM(returnstring), - method, offsetof(object, number), - SD_BUS_VTABLE_DEPRECATED), - SD_BUS_METHOD_WITH_ARGS_OFFSET( - "Method3", - SD_BUS_ARGS("s", string, "o", path), - SD_BUS_RESULT("s", returnstring), - method, offsetof(object, number), - SD_BUS_VTABLE_UNPRIVILEGED), - SD_BUS_METHOD_WITH_ARGS( - "Method4", - SD_BUS_NO_ARGS, - SD_BUS_NO_RESULT, - method, - SD_BUS_VTABLE_UNPRIVILEGED), - SD_BUS_SIGNAL( - "Signal1", - "so", - 0), - SD_BUS_SIGNAL_WITH_NAMES( - "Signal2", - "so", SD_BUS_PARAM(string) SD_BUS_PARAM(path), - 0), - SD_BUS_SIGNAL_WITH_ARGS( - "Signal3", - SD_BUS_ARGS("s", string, "o", path), - 0), - SD_BUS_WRITABLE_PROPERTY( - "AutomaticStringProperty", "s", NULL, NULL, - offsetof(object, name), - SD_BUS_VTABLE_PROPERTY_EMITS_CHANGE), - SD_BUS_WRITABLE_PROPERTY( - "AutomaticIntegerProperty", "u", NULL, NULL, - offsetof(object, number), - SD_BUS_VTABLE_PROPERTY_EMITS_INVALIDATION), - SD_BUS_VTABLE_END -}; - -int main(int argc, char **argv) { - _cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL; - - sd_bus_default(&bus); - - object object = { \&.number = 666 }; - check((object\&.name = strdup("name")) != NULL); - - check(sd_bus_add_object_vtable(bus, NULL, - "/org/freedesktop/systemd/VtableExample", - "org\&.freedesktop\&.systemd\&.VtableExample", - vtable, - &object)); - - check(sd_bus_request_name(bus, - "org\&.freedesktop\&.systemd\&.VtableExample", - 0)); - - for (;;) { - check(sd_bus_wait(bus, UINT64_MAX)); - check(sd_bus_process(bus, NULL)); - } - - check(sd_bus_release_name(bus, "org\&.freedesktop\&.systemd\&.VtableExample")); - free(object\&.name); - - return 0; -} -.fi -.if n \{\ -.RE -.\} -.PP -This creates a simple client on the bus (the user bus, when run as normal user)\&. We may use the D\-Bus -\fBorg\&.freedesktop\&.DBus\&.Introspectable\&.Introspect\fR -call to acquire the XML description of the interface: -.sp -.if n \{\ -.RS 4 -.\} -.nf - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -.fi -.if n \{\ -.RE -.\} -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_add_object_vtable()\fR -and -\fBsd_bus_add_fallback_vtable()\fR -return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -One of the required parameters is -\fBNULL\fR -or invalid\&. A reserved D\-Bus interface was passed as the -\fIinterface\fR -parameter\&. -.RE -.PP -\fB\-ENOPKG\fR -.RS 4 -The bus cannot be resolved\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus was created in a different process, library or module instance\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.PP -\fB\-EPROTOTYPE\fR -.RS 4 -\fBsd_bus_add_object_vtable()\fR -and -\fBsd_bus_add_fallback_vtable()\fR -have been both called for the same bus object path, which is not allowed\&. -.RE -.PP -\fB\-EEXIST\fR -.RS 4 -This vtable has already been registered for this -\fIinterface\fR -and -\fIpath\fR\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsd-bus\fR(3), -\fBbusctl\fR(1), -\fBsd_bus_emit_properties_changed\fR(3), -\fBsd_bus_emit_object_added\fR(3) -.SH "NOTES" -.IP " 1." 4 -D-Bus annotations -.RS 4 -\%https://dbus.freedesktop.org/doc/dbus-specification.html#introspection-format -.RE -.IP " 2." 4 -polkit -.RS 4 -\%https://www.freedesktop.org/software/polkit/docs/latest/ -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_add_object_manager.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_add_object_manager.3 deleted file mode 100644 index 7d37d03a..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_add_object_manager.3 +++ /dev/null @@ -1,120 +0,0 @@ -'\" t -.TH "SD_BUS_ADD_OBJECT_MANAGER" "3" "" "systemd 254" "sd_bus_add_object_manager" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_add_object_manager \- Add a D\-Bus object manager for a D\-Bus object sub\-tree -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_add_object_manager('u -.BI "int sd_bus_add_object_manager(sd_bus\ *" "bus" ", sd_bus_slot\ **" "slot" ", const\ char\ *" "path" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_add_object_manager()\fR -installs a handler for the given path that implements the -\fBGetManagedObjects()\fR -method of the -\fBorg\&.freedesktop\&.DBus\&.ObjectManager\fR -interface\&. See -\m[blue]\fBorg\&.freedesktop\&.DBus\&.ObjectManager\fR\m[]\&\s-2\u[1]\d\s+2 -for more information\&. -.PP -To implement the -\fBInterfacesAdded\fR -and -\fBInterfacesRemoved\fR -signals of the -\fBorg\&.freedesktop\&.DBus\&.ObjectManager\fR -interface, call -\fBsd_bus_emit_interfaces_added\fR(3) -and -\fBsd_bus_emit_interfaces_removed\fR(3) -whenever interfaces are added or removed from the sub\-tree, respectively\&. -.PP -When -\fBsd_bus_add_object_manager()\fR -succeeds, a slot is created internally\&. If the output parameter -\fIslot\fR -is -\fBNULL\fR, a "floating" slot object is created, see -\fBsd_bus_slot_set_floating\fR(3)\&. Otherwise, a pointer to the slot object is returned\&. In that case, the reference to the slot object should be dropped when the object manager is not needed anymore, see -\fBsd_bus_slot_unref\fR(3)\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_add_object_manager()\fR -returns a non\-negative integer\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -One of the required parameters is -\fBNULL\fR -or -\fIpath\fR -is not a valid object path\&. -.RE -.PP -\fB\-ENOPKG\fR -.RS 4 -The bus cannot be resolved\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus was created in a different process, library or module instance\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsd-bus\fR(3), -\fBbusctl\fR(1), -\fBsd_bus_add_object_vtable\fR(3), -\fBsd_bus_emit_interfaces_added\fR(3), -\fBsd_bus_slot_unref\fR(3) -.SH "NOTES" -.IP " 1." 4 -org.freedesktop.DBus.ObjectManager -.RS 4 -\%https://dbus.freedesktop.org/doc/dbus-specification.html#standard-interfaces-objectmanager -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_attach_event.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_attach_event.3 deleted file mode 100644 index 317e7068..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_attach_event.3 +++ /dev/null @@ -1,107 +0,0 @@ -'\" t -.TH "SD_BUS_ATTACH_EVENT" "3" "" "systemd 254" "sd_bus_attach_event" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_attach_event, sd_bus_detach_event, sd_bus_get_event \- Attach a bus connection object to an event loop -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_attach_event('u -.BI "int sd_bus_attach_event(sd_bus\ *" "bus" ", sd_event\ *" "e" ", int\ " "priority" ");" -.HP \w'int\ sd_bus_detach_event('u -.BI "int sd_bus_detach_event(sd_bus\ *" "bus" ");" -.HP \w'sd_event\ *sd_bus_get_event('u -.BI "sd_event *sd_bus_get_event(sd_bus\ *" "bus" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_attach_event()\fR -attaches the specified bus connection object to an -\fBsd-event\fR(3) -event loop object at the specified priority (see -\fBsd_event_source_set_priority\fR(3) -for details on event loop priorities)\&. When a bus connection object is attached to an event loop incoming messages will be automatically read and processed, and outgoing messages written, whenever the event loop is run\&. When the event loop is about to terminate, the bus connection is automatically flushed and closed (see -\fBsd_bus_set_close_on_exit\fR(3) -for details on this)\&. By default bus connection objects are not attached to any event loop\&. When a bus connection object is attached to one it is not necessary to invoke -\fBsd_bus_wait\fR(3) -or -\fBsd_bus_process\fR(3) -as this functionality is handled automatically by the event loop\&. -.PP -\fBsd_bus_detach_event()\fR -detaches a bus object from its event loop\&. -.PP -The -\fBsd_bus_get_event()\fR -returns the event loop object the specified bus object is currently attached to, or -\fBNULL\fR -if it is currently not attached to any\&. -.PP -Note that -\fBsd_bus_attach_event()\fR -is only one of three supported ways to implement I/O event handling for bus connections\&. Alternatively use -\fBsd_bus_get_fd\fR(3) -for hooking up a bus connection object with external or manual event loops\&. Or use -\fBsd_bus_wait\fR(3) -as a simple synchronous, blocking I/O waiting call\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_attach_event()\fR -and -\fBsd_bus_detach_event()\fR -return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.PP -\fBsd_bus_get_event()\fR -returns an event loop object or -\fBNULL\fR\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ECHILD\fR -.RS 4 -The bus connection has been created in a different process, library or module instance\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd-event\fR(3), -\fBsd_event_source_set_priority\fR(3), -\fBsd_bus_set_close_on_exit\fR(3), -\fBsd_bus_wait\fR(3), -\fBsd_bus_get_fd\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_call.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_call.3 deleted file mode 100644 index 123390f4..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_call.3 +++ /dev/null @@ -1,204 +0,0 @@ -'\" t -.TH "SD_BUS_CALL" "3" "" "systemd 254" "sd_bus_call" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_call, sd_bus_call_async \- Invoke a D\-Bus method call -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'typedef\ int\ (*sd_bus_message_handler_t)('u -.BI "typedef int (*sd_bus_message_handler_t)(sd_bus_message\ *" "m" ", void\ *" "userdata" ", sd_bus_error\ *" "ret_error" ");" -.HP \w'int\ sd_bus_call('u -.BI "int sd_bus_call(sd_bus\ *" "bus" ", sd_bus_message\ *" "m" ", uint64_t\ " "usec" ", sd_bus_error\ *" "ret_error" ", sd_bus_message\ **" "reply" ");" -.HP \w'int\ sd_bus_call_async('u -.BI "int sd_bus_call_async(sd_bus\ *" "bus" ", sd_bus_slot\ **" "slot" ", sd_bus_message\ *" "m" ", sd_bus_message_handler_t\ " "callback" ", void\ *" "userdata" ", uint64_t\ " "usec" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_call()\fR -takes a complete bus message object and calls the corresponding D\-Bus method\&. On success, the response is stored in -\fIreply\fR\&. -\fIusec\fR -indicates the timeout in microseconds\&. If -\fIret_error\fR -is not -\fBNULL\fR -and -\fBsd_bus_call()\fR -fails (either because of an internal error or because it received a D\-Bus error reply), -\fIret_error\fR -is initialized to an instance of -sd_bus_error -describing the error\&. -.PP -\fBsd_bus_call_async()\fR -is like -\fBsd_bus_call()\fR -but works asynchronously\&. The -\fIcallback\fR -indicates the function to call when the response arrives\&. The -\fIuserdata\fR -pointer will be passed to the callback function, and may be chosen freely by the caller\&. If -\fIslot\fR -is not -\fBNULL\fR -and -\fBsd_bus_call_async()\fR -succeeds, -\fIslot\fR -is set to a slot object which can be used to cancel the method call at a later time using -\fBsd_bus_slot_unref\fR(3)\&. If -\fIslot\fR -is -\fBNULL\fR, the lifetime of the method call is bound to the lifetime of the bus object itself, and it cannot be cancelled independently\&. See -\fBsd_bus_slot_set_floating\fR(3) -for details\&. -\fIcallback\fR -is called when a reply arrives with the reply, -\fIuserdata\fR -and an -sd_bus_error -output parameter as its arguments\&. Unlike -\fBsd_bus_call()\fR, the -sd_bus_error -output parameter passed to the callback will be empty\&. To determine whether the method call succeeded, use -\fBsd_bus_message_is_method_error\fR(3) -on the reply message passed to the callback instead\&. If the callback returns zero and the -sd_bus_error -output parameter is still empty when the callback finishes, other handlers registered with functions such as -\fBsd_bus_add_filter\fR(3) -or -\fBsd_bus_add_match\fR(3) -are given a chance to process the message\&. If the callback returns a non\-zero value or the -sd_bus_error -output parameter is not empty when the callback finishes, no further processing of the message is done\&. Generally, you want to return zero from the callback to give other registered handlers a chance to process the reply as well\&. (Note that the -sd_bus_error -parameter is an output parameter of the callback function, not an input parameter; it can be used to propagate errors from the callback handler, it will not receive any error that was received as method reply\&.) -.PP -The message -\fIm\fR -passed to the callback is only borrowed, that is, the callback should not call -\fBsd_bus_message_unref\fR(3) -on it\&. If the callback wants to hold on to the message beyond the lifetime of the callback, it needs to call -\fBsd_bus_message_ref\fR(3) -to create a new reference\&. -.PP -If -\fIusec\fR -is zero, the default D\-Bus method call timeout is used\&. See -\fBsd_bus_get_method_call_timeout\fR(3)\&. -.SH "RETURN VALUE" -.PP -On success, these functions return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -When -\fBsd_bus_call()\fR -internally receives a D\-Bus error reply, it will set -\fIret_error\fR -if it is not -\fBNULL\fR, and will return a negative value mapped from the error reply, see -\fBsd_bus_error_get_errno\fR(3)\&. -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The input parameter -\fIm\fR -is -\fBNULL\fR\&. -The input parameter -\fIm\fR -is not a D\-Bus method call\&. To create a new D\-Bus method call, use -\fBsd_bus_message_new_method_call\fR(3)\&. -The input parameter -\fIm\fR -has the -\fBBUS_MESSAGE_NO_REPLY_EXPECTED\fR -flag set\&. -The input parameter -\fIerror\fR -is non\-\fBNULL\fR -but was not set to -\fBSD_BUS_ERROR_NULL\fR\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus connection was allocated in a parent process and is being reused in a child process after -\fBfork()\fR\&. -.RE -.PP -\fB\-ENOTCONN\fR -.RS 4 -The input parameter -\fIbus\fR -is -\fBNULL\fR -or the bus is not connected\&. -.RE -.PP -\fB\-ECONNRESET\fR -.RS 4 -The bus connection was closed while waiting for the response\&. -.RE -.PP -\fB\-ETIMEDOUT\fR -.RS 4 -A response was not received within the given timeout\&. -.RE -.PP -\fB\-ELOOP\fR -.RS 4 -The message -\fIm\fR -is addressed to its own client\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_call_method\fR(3), -\fBsd_bus_call_method_async\fR(3), -\fBsd_bus_message_new_method_call\fR(3), -\fBsd_bus_message_append\fR(3), -\fBsd_bus_error\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_call_method.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_call_method.3 deleted file mode 100644 index c609fc46..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_call_method.3 +++ /dev/null @@ -1,155 +0,0 @@ -'\" t -.TH "SD_BUS_CALL_METHOD" "3" "" "systemd 254" "sd_bus_call_method" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_call_method, sd_bus_call_methodv, sd_bus_call_method_async, sd_bus_call_method_asyncv \- Initialize a bus message object and invoke the corresponding D\-Bus method call -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'typedef\ int\ (*sd_bus_message_handler_t)('u -.BI "typedef int (*sd_bus_message_handler_t)(sd_bus_message\ *" "m" ", void\ *" "userdata" ", sd_bus_error\ *" "ret_error" ");" -.HP \w'int\ sd_bus_call_method('u -.BI "int sd_bus_call_method(sd_bus\ *" "bus" ", const\ char\ *" "destination" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "member" ", sd_bus_error\ *" "ret_error" ", sd_bus_message\ **" "reply" ", const\ char\ *" "types" ", \&.\&.\&.);" -.HP \w'int\ sd_bus_call_methodv('u -.BI "int sd_bus_call_methodv(sd_bus\ *" "bus" ", const\ char\ *" "destination" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "member" ", sd_bus_error\ *" "ret_error" ", sd_bus_message\ **" "reply" ", const\ char\ *" "types" ", va_list\ " "ap" ");" -.HP \w'int\ sd_bus_call_method_async('u -.BI "int sd_bus_call_method_async(sd_bus\ *" "bus" ", sd_bus_slot\ **" "slot" ", const\ char\ *" "destination" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "member" ", sd_bus_message_handler_t\ " "callback" ", void\ *" "userdata" ", const\ char\ *" "types" ", \&.\&.\&.);" -.HP \w'int\ sd_bus_call_method_asyncv('u -.BI "int sd_bus_call_method_asyncv(sd_bus\ *" "bus" ", sd_bus_slot\ **" "slot" ", const\ char\ *" "destination" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "member" ", sd_bus_message_handler_t\ " "callback" ", void\ *" "userdata" ", const\ char\ *" "types" ", va_list\ " "ap" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_call_method()\fR -is a convenience function for initializing a bus message object and calling the corresponding D\-Bus method\&. It combines the -\fBsd_bus_message_new_method_call\fR(3), -\fBsd_bus_message_append\fR(3) -and -\fBsd_bus_call\fR(3) -functions into a single function call\&. -.PP -\fBsd_bus_call_method_async()\fR -is a convenience function for initializing a bus message object and calling the corresponding D\-Bus method asynchronously\&. It combines the -\fBsd_bus_message_new_method_call\fR(3), -\fBsd_bus_message_append\fR(3) -and -\fBsd_bus_call_async\fR(3) -functions into a single function call\&. -.SH "RETURN VALUE" -.PP -On success, these functions return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -See the man pages of -\fBsd_bus_message_new_method_call\fR(3), -\fBsd_bus_message_append\fR(3), -\fBsd_bus_call\fR(3) -and -\fBsd_bus_call_async\fR(3) -for a list of possible errors\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "EXAMPLES" -.PP -\fBExample\ \&1.\ \&Make a call to a D\-Bus method that takes a single parameter\fR -.sp -.if n \{\ -.RS 4 -.\} -.nf -/* SPDX\-License\-Identifier: MIT\-0 */ - -/* This is equivalent to: - * busctl call org\&.freedesktop\&.systemd1 /org/freedesktop/systemd1 \e - * org\&.freedesktop\&.systemd1\&.Manager GetUnitByPID $$ - * - * Compile with \*(Aqcc print\-unit\-path\-call\-method\&.c \-lsystemd\*(Aq - */ - -#include -#include -#include -#include - -#include - -#define _cleanup_(f) __attribute__((cleanup(f))) -#define DESTINATION "org\&.freedesktop\&.systemd1" -#define PATH "/org/freedesktop/systemd1" -#define INTERFACE "org\&.freedesktop\&.systemd1\&.Manager" -#define MEMBER "GetUnitByPID" - -static int log_error(int error, const char *message) { - errno = \-error; - fprintf(stderr, "%s: %m\en", message); - return error; -} - -int main(int argc, char **argv) { - _cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL; - _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL; - _cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL; - int r; - - r = sd_bus_open_system(&bus); - if (r < 0) - return log_error(r, "Failed to acquire bus"); - - r = sd_bus_call_method(bus, DESTINATION, PATH, INTERFACE, MEMBER, &error, &reply, "u", (unsigned) getpid()); - if (r < 0) - return log_error(r, MEMBER " call failed"); - - const char *ans; - r = sd_bus_message_read(reply, "o", &ans); - if (r < 0) - return log_error(r, "Failed to read reply"); - - printf("Unit path is \e"%s\e"\&.\en", ans); - - return 0; -} -.fi -.if n \{\ -.RE -.\} -.PP -This defines a minimally useful program that will open a connection to the bus, call a method, wait for the reply, and finally extract and print the answer\&. It does error handling and proper memory management\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_new_method_call\fR(3), -\fBsd_bus_message_append\fR(3), -\fBsd_bus_call\fR(3), -\fBsd_bus_set_property\fR(3), -\fBsd_bus_emit_signal\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_can_send.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_can_send.3 deleted file mode 100644 index fc6c29b1..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_can_send.3 +++ /dev/null @@ -1,87 +0,0 @@ -'\" t -.TH "SD_BUS_CAN_SEND" "3" "" "systemd 254" "sd_bus_can_send" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_can_send \- Check which types can be sent over a bus object -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'void\ sd_bus_can_send('u -.BI "void sd_bus_can_send(sd_bus\ *" "bus" ", char\ " "type" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_can_send()\fR -is mostly used for checking if file descriptor passing is available on the given bus\&. -\fItype\fR -can be any of the -\fBSD_BUS_TYPE\fR -constants\&. -.SH "RETURN VALUE" -.PP -On failure, -\fBsd_bus_can_send()\fR -returns a negative errno\-style error code\&. If values of the given type can be sent over the given bus, it returns a positive integer\&. Otherwise, it returns zero\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ENOPKG\fR -.RS 4 -The bus object -\fIbus\fR -could not be resolved\&. -.RE -.PP -\fB\-ENOTCONN\fR -.RS 4 -The input parameter -\fIbus\fR -is -\fBNULL\fR -or the bus is not connected\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus object -\fIbus\fR -was created in a different process\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_close.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_close.3 deleted file mode 100644 index 15e0d3bc..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_close.3 +++ /dev/null @@ -1,95 +0,0 @@ -'\" t -.TH "SD_BUS_CLOSE" "3" "" "systemd 254" "sd_bus_close" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_close, sd_bus_flush, sd_bus_default_flush_close \- Close and flush a bus connection -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'void\ sd_bus_close('u -.BI "void sd_bus_close(sd_bus\ *" "bus" ");" -.HP \w'int\ sd_bus_flush('u -.BI "int sd_bus_flush(sd_bus\ *" "bus" ");" -.HP \w'void\ sd_bus_default_flush_close('u -.BI "void sd_bus_default_flush_close(void);" -.SH "DESCRIPTION" -.PP -\fBsd_bus_close()\fR -disconnects the specified bus connection\&. When this call is invoked and the specified bus object refers to an active connection it is immediately terminated\&. No further messages may be sent or received on it\&. Any messages queued in the bus object (both incoming and outgoing) are released\&. If invoked on -\fBNULL\fR -bus object or when the bus connection is already closed this function executes no operation\&. This call does not free or unreference the bus object itself\&. Use -\fBsd_bus_unref\fR(3) -for that\&. -.PP -\fBsd_bus_flush()\fR -synchronously writes out all outgoing queued message on a bus connection if there are any\&. This function call may block if the peer is not processing bus messages quickly\&. -.PP -Before a program exits it is usually a good idea to flush any pending messages with -\fBsd_bus_flush()\fR -and then close connections with -\fBsd_bus_close()\fR -to ensure that no unwritten messages are lost, no further messages may be queued and all incoming but unprocessed messages are released\&. After both operations have been done, it is a good idea to also drop any remaining references to the bus object so that it may be freed\&. Since these three operations are frequently done together a helper call -\fBsd_bus_flush_close_unref\fR(3) -is provided that combines them into one\&. -.PP -\fBsd_bus_default_flush_close()\fR -is similar to -\fBsd_bus_flush_close_unref()\fR, but does not take a bus pointer argument and instead iterates over any of the "default" buses opened by -\fBsd_bus_default\fR(3), -\fBsd_bus_default_user\fR(3), -\fBsd_bus_default_system\fR(3), and similar calls\&. -\fBsd_bus_default_flush_close()\fR -is particularly useful to clean up any buses opened using those calls before the program exits\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_flush()\fR -returns a non\-negative integer\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ECHILD\fR -.RS 4 -The bus connection has been created in a different process, library or module instance\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_unref\fR(3), -\fBsd_bus_set_close_on_exit\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_creds_get_pid.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_creds_get_pid.3 deleted file mode 100644 index 2d52fe46..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_creds_get_pid.3 +++ /dev/null @@ -1,331 +0,0 @@ -'\" t -.TH "SD_BUS_CREDS_GET_PID" "3" "" "systemd 254" "sd_bus_creds_get_pid" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_creds_get_pid, sd_bus_creds_get_ppid, sd_bus_creds_get_tid, sd_bus_creds_get_uid, sd_bus_creds_get_euid, sd_bus_creds_get_suid, sd_bus_creds_get_fsuid, sd_bus_creds_get_gid, sd_bus_creds_get_egid, sd_bus_creds_get_sgid, sd_bus_creds_get_fsgid, sd_bus_creds_get_supplementary_gids, sd_bus_creds_get_comm, sd_bus_creds_get_tid_comm, sd_bus_creds_get_exe, sd_bus_creds_get_cmdline, sd_bus_creds_get_cgroup, sd_bus_creds_get_unit, sd_bus_creds_get_slice, sd_bus_creds_get_user_unit, sd_bus_creds_get_user_slice, sd_bus_creds_get_session, sd_bus_creds_get_owner_uid, sd_bus_creds_has_effective_cap, sd_bus_creds_has_permitted_cap, sd_bus_creds_has_inheritable_cap, sd_bus_creds_has_bounding_cap, sd_bus_creds_get_selinux_context, sd_bus_creds_get_audit_session_id, sd_bus_creds_get_audit_login_uid, sd_bus_creds_get_tty, sd_bus_creds_get_unique_name, sd_bus_creds_get_well_known_names, sd_bus_creds_get_description \- Retrieve fields from a credentials object -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_creds_get_pid('u -.BI "int sd_bus_creds_get_pid(sd_bus_creds\ *" "c" ", pid_t\ *" "pid" ");" -.HP \w'int\ sd_bus_creds_get_ppid('u -.BI "int sd_bus_creds_get_ppid(sd_bus_creds\ *" "c" ", pid_t\ *" "ppid" ");" -.HP \w'int\ sd_bus_creds_get_tid('u -.BI "int sd_bus_creds_get_tid(sd_bus_creds\ *" "c" ", pid_t\ *" "tid" ");" -.HP \w'int\ sd_bus_creds_get_uid('u -.BI "int sd_bus_creds_get_uid(sd_bus_creds\ *" "c" ", uid_t\ *" "uid" ");" -.HP \w'int\ sd_bus_creds_get_euid('u -.BI "int sd_bus_creds_get_euid(sd_bus_creds\ *" "c" ", uid_t\ *" "uid" ");" -.HP \w'int\ sd_bus_creds_get_suid('u -.BI "int sd_bus_creds_get_suid(sd_bus_creds\ *" "c" ", uid_t\ *" "uid" ");" -.HP \w'int\ sd_bus_creds_get_fsuid('u -.BI "int sd_bus_creds_get_fsuid(sd_bus_creds\ *" "c" ", uid_t\ *" "uid" ");" -.HP \w'int\ sd_bus_creds_get_gid('u -.BI "int sd_bus_creds_get_gid(sd_bus_creds\ *" "c" ", gid_t\ *" "gid" ");" -.HP \w'int\ sd_bus_creds_get_egid('u -.BI "int sd_bus_creds_get_egid(sd_bus_creds\ *" "c" ", gid_t\ *" "gid" ");" -.HP \w'int\ sd_bus_creds_get_sgid('u -.BI "int sd_bus_creds_get_sgid(sd_bus_creds\ *" "c" ", gid_t\ *" "gid" ");" -.HP \w'int\ sd_bus_creds_get_fsgid('u -.BI "int sd_bus_creds_get_fsgid(sd_bus_creds\ *" "c" ", gid_t\ *" "gid" ");" -.HP \w'int\ sd_bus_creds_get_supplementary_gids('u -.BI "int sd_bus_creds_get_supplementary_gids(sd_bus_creds\ *" "c" ", const\ gid_t\ **" "gids" ");" -.HP \w'int\ sd_bus_creds_get_comm('u -.BI "int sd_bus_creds_get_comm(sd_bus_creds\ *" "c" ", const\ char\ **" "comm" ");" -.HP \w'int\ sd_bus_creds_get_tid_comm('u -.BI "int sd_bus_creds_get_tid_comm(sd_bus_creds\ *" "c" ", const\ char\ **" "comm" ");" -.HP \w'int\ sd_bus_creds_get_exe('u -.BI "int sd_bus_creds_get_exe(sd_bus_creds\ *" "c" ", const\ char\ **" "exe" ");" -.HP \w'int\ sd_bus_creds_get_cmdline('u -.BI "int sd_bus_creds_get_cmdline(sd_bus_creds\ *" "c" ", char\ ***" "cmdline" ");" -.HP \w'int\ sd_bus_creds_get_cgroup('u -.BI "int sd_bus_creds_get_cgroup(sd_bus_creds\ *" "c" ", const\ char\ **" "cgroup" ");" -.HP \w'int\ sd_bus_creds_get_unit('u -.BI "int sd_bus_creds_get_unit(sd_bus_creds\ *" "c" ", const\ char\ **" "unit" ");" -.HP \w'int\ sd_bus_creds_get_slice('u -.BI "int sd_bus_creds_get_slice(sd_bus_creds\ *" "c" ", const\ char\ **" "slice" ");" -.HP \w'int\ sd_bus_creds_get_user_unit('u -.BI "int sd_bus_creds_get_user_unit(sd_bus_creds\ *" "c" ", const\ char\ **" "unit" ");" -.HP \w'int\ sd_bus_creds_get_user_slice('u -.BI "int sd_bus_creds_get_user_slice(sd_bus_creds\ *" "c" ", const\ char\ **" "slice" ");" -.HP \w'int\ sd_bus_creds_get_session('u -.BI "int sd_bus_creds_get_session(sd_bus_creds\ *" "c" ", const\ char\ **" "slice" ");" -.HP \w'int\ sd_bus_creds_get_owner_uid('u -.BI "int sd_bus_creds_get_owner_uid(sd_bus_creds\ *" "c" ", uid_t\ *" "uid" ");" -.HP \w'int\ sd_bus_creds_has_effective_cap('u -.BI "int sd_bus_creds_has_effective_cap(sd_bus_creds\ *" "c" ", int\ " "capability" ");" -.HP \w'int\ sd_bus_creds_has_permitted_cap('u -.BI "int sd_bus_creds_has_permitted_cap(sd_bus_creds\ *" "c" ", int\ " "capability" ");" -.HP \w'int\ sd_bus_creds_has_inheritable_cap('u -.BI "int sd_bus_creds_has_inheritable_cap(sd_bus_creds\ *" "c" ", int\ " "capability" ");" -.HP \w'int\ sd_bus_creds_has_bounding_cap('u -.BI "int sd_bus_creds_has_bounding_cap(sd_bus_creds\ *" "c" ", int\ " "capability" ");" -.HP \w'int\ sd_bus_creds_get_selinux_context('u -.BI "int sd_bus_creds_get_selinux_context(sd_bus_creds\ *" "c" ", const\ char\ **" "context" ");" -.HP \w'int\ sd_bus_creds_get_audit_session_id('u -.BI "int sd_bus_creds_get_audit_session_id(sd_bus_creds\ *" "c" ", uint32_t\ *" "sessionid" ");" -.HP \w'int\ sd_bus_creds_get_audit_login_uid('u -.BI "int sd_bus_creds_get_audit_login_uid(sd_bus_creds\ *" "c" ", uid_t\ *" "loginuid" ");" -.HP \w'int\ sd_bus_creds_get_tty('u -.BI "int sd_bus_creds_get_tty(sd_bus_creds\ *" "c" ", const\ char\ **" "tty" ");" -.HP \w'int\ sd_bus_creds_get_unique_name('u -.BI "int sd_bus_creds_get_unique_name(sd_bus_creds\ *" "c" ", const\ char\ **" "name" ");" -.HP \w'int\ sd_bus_creds_get_well_known_names('u -.BI "int sd_bus_creds_get_well_known_names(sd_bus_creds\ *" "c" ", char\ ***" "name" ");" -.HP \w'int\ sd_bus_creds_get_description('u -.BI "int sd_bus_creds_get_description(sd_bus_creds\ *" "c" ", const\ char\ **" "name" ");" -.SH "DESCRIPTION" -.PP -These functions return credential information from an -\fIsd_bus_creds\fR -object\&. Credential objects may be created with -\fBsd_bus_creds_new_from_pid\fR(3), in which case they describe the credentials of the process identified by the specified PID, with -\fBsd_bus_get_name_creds\fR(3), in which case they describe the credentials of a bus peer identified by the specified bus name, with -\fBsd_bus_get_owner_creds\fR(3), in which case they describe the credentials of the creator of a bus, or with -\fBsd_bus_message_get_creds\fR(3), in which case they describe the credentials of the sender of the message\&. -.PP -Not all credential fields are part of every -"sd_bus_creds" -object\&. Use -\fBsd_bus_creds_get_mask\fR(3) -to determine the mask of fields available\&. -.PP -\fBsd_bus_creds_get_pid()\fR -will retrieve the PID (process identifier)\&. Similarly, -\fBsd_bus_creds_get_ppid()\fR -will retrieve the parent PID\&. Note that PID 1 has no parent process, in which case \-ENXIO is returned\&. -.PP -\fBsd_bus_creds_get_tid()\fR -will retrieve the TID (thread identifier)\&. -.PP -\fBsd_bus_creds_get_uid()\fR -will retrieve the numeric UID (user identifier)\&. Similarly, -\fBsd_bus_creds_get_euid()\fR -returns the effective UID, -\fBsd_bus_creds_get_suid()\fR -the saved UID and -\fBsd_bus_creds_get_fsuid()\fR -the file system UID\&. -.PP -\fBsd_bus_creds_get_gid()\fR -will retrieve the numeric GID (group identifier)\&. Similarly, -\fBsd_bus_creds_get_egid()\fR -returns the effective GID, -\fBsd_bus_creds_get_sgid()\fR -the saved GID and -\fBsd_bus_creds_get_fsgid()\fR -the file system GID\&. -.PP -\fBsd_bus_creds_get_supplementary_gids()\fR -will retrieve the supplementary GIDs list\&. -.PP -\fBsd_bus_creds_get_comm()\fR -will retrieve the comm field (truncated name of the executable, as stored in -/proc/\fIpid\fR/comm)\&. -.PP -\fBsd_bus_creds_get_tid_comm()\fR -will retrieve the comm field of the thread (as stored in -/proc/\fIpid\fR/task/\fItid\fR/comm)\&. -.PP -\fBsd_bus_creds_get_exe()\fR -will retrieve the path to the program executable (as stored in the -/proc/\fIpid\fR/exe -link, but with the -" (deleted)" -suffix removed)\&. Note that kernel threads do not have an executable path, in which case \-ENXIO is returned\&. Note that this property should not be used for more than explanatory information, in particular it should not be used for security\-relevant decisions\&. That\*(Aqs because the executable might have been replaced or removed by the time the value can be processed\&. Moreover, the kernel exports this information in an ambiguous way (i\&.e\&. a deleted executable cannot be safely distinguished from one whose name suffix is -" (deleted)")\&. -.PP -\fBsd_bus_creds_get_cmdline()\fR -will retrieve an array of command line arguments (as stored in -/proc/\fIpid\fR/cmdline)\&. Note that kernel threads do not have a command line, in which case \-ENXIO is returned\&. -.PP -\fBsd_bus_creds_get_cgroup()\fR -will retrieve the control group path\&. See -\m[blue]\fBControl Groups v2\fR\m[]\&\s-2\u[1]\d\s+2\&. -.PP -\fBsd_bus_creds_get_unit()\fR -will retrieve the systemd unit name (in the system instance of systemd) that the process is a part of\&. See -\fBsystemd.unit\fR(5)\&. For processes that are not part of a unit, returns \-ENXIO\&. -.PP -\fBsd_bus_creds_get_user_unit()\fR -will retrieve the systemd unit name (in the user instance of systemd) that the process is a part of\&. See -\fBsystemd.unit\fR(5)\&. For processes that are not part of a user unit, returns \-ENXIO\&. -.PP -\fBsd_bus_creds_get_slice()\fR -will retrieve the systemd slice (a unit in the system instance of systemd) that the process is a part of\&. See -\fBsystemd.slice\fR(5)\&. Similarly, -\fBsd_bus_creds_get_user_slice()\fR -retrieves the systemd slice of the process, in the user instance of systemd\&. -.PP -\fBsd_bus_creds_get_session()\fR -will retrieve the identifier of the login session that the process is a part of\&. Please note the login session may be limited to a stub process or two\&. User processes may instead be started from their systemd user manager, e\&.g\&. GUI applications started using DBus activation, as well as service processes which are shared between multiple logins of the same user\&. For processes that are not part of a session, returns \-ENXIO\&. -.PP -\fBsd_bus_creds_get_owner_uid()\fR -will retrieve the numeric UID (user identifier) of the user who owns the user unit or login session that the process is a part of\&. See -\fBsystemd-logind.service\fR(8)\&. For processes that are not part of a user unit or session, returns \-ENXIO\&. -.PP -\fBsd_bus_creds_has_effective_cap()\fR -will check whether the capability specified by -\fIcapability\fR -was set in the effective capabilities mask\&. A positive return value means that it was set, zero means that it was not set, and a negative return value indicates an error\&. See -\fBcapabilities\fR(7) -and the -\fIAmbientCapabilities=\fR -and -\fICapabilityBoundingSet=\fR -settings in -\fBsystemd.exec\fR(5)\&. -.PP -\fBsd_bus_creds_has_permitted_cap()\fR -is similar to -\fBsd_bus_creds_has_effective_cap()\fR, but will check the permitted capabilities mask\&. -.PP -\fBsd_bus_creds_has_inheritable_cap()\fR -is similar to -\fBsd_bus_creds_has_effective_cap()\fR, but will check the inheritable capabilities mask\&. -.PP -\fBsd_bus_creds_has_bounding_cap()\fR -is similar to -\fBsd_bus_creds_has_effective_cap()\fR, but will check the bounding capabilities mask\&. -.PP -\fBsd_bus_creds_get_selinux_context()\fR -will retrieve the SELinux security context (label) of the process\&. -.PP -\fBsd_bus_creds_get_audit_session_id()\fR -will retrieve the audit session identifier of the process\&. Returns \-ENXIO for processes that are not part of an audit session\&. -.PP -\fBsd_bus_creds_get_audit_login_uid()\fR -will retrieve the audit user login identifier (the identifier of the user who is "responsible" for the session)\&. Returns \-ENXIO for processes that are not part of an audit session\&. -.PP -\fBsd_bus_creds_get_tty()\fR -will retrieve the controlling TTY, without the prefixing "/dev/"\&. Returns \-ENXIO for processes that have no controlling TTY\&. -.PP -\fBsd_bus_creds_get_unique_name()\fR -will retrieve the D\-Bus unique name\&. See -\m[blue]\fBThe D\-Bus specification\fR\m[]\&\s-2\u[2]\d\s+2\&. -.PP -\fBsd_bus_creds_get_well_known_names()\fR -will retrieve the set of D\-Bus well\-known names\&. See -\m[blue]\fBThe D\-Bus specification\fR\m[]\&\s-2\u[2]\d\s+2\&. -.PP -\fBsd_bus_creds_get_description()\fR -will retrieve a descriptive name of the bus connection of the peer\&. This name is useful to discern multiple bus connections by the same peer, and may be altered by the peer with the -\fBsd_bus_set_description\fR(3) -call\&. -.PP -All functions that take a -\fIconst char**\fR -parameter will store the answer there as an address of a -\fBNUL\fR\-terminated string\&. It will be valid as long as -\fIc\fR -remains valid, and should not be freed or modified by the caller\&. -.PP -All functions that take a -\fIchar***\fR -parameter will store the answer there as an address of an array of strings\&. Each individual string is -\fBNUL\fR\-terminated, and the array is -\fBNULL\fR\-terminated as a whole\&. It will be valid as long as -\fIc\fR -remains valid, and should not be freed or modified by the caller\&. -.SH "RETURN VALUE" -.PP -On success, these calls return 0 or a positive integer\&. On failure, these calls return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ENODATA\fR -.RS 4 -The given field is not available in the credentials object -\fIc\fR\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -The given field is not specified for the described process or peer\&. This will be returned by -\fBsd_bus_creds_get_unit()\fR, -\fBsd_bus_creds_get_slice()\fR, -\fBsd_bus_creds_get_user_unit()\fR, -\fBsd_bus_creds_get_user_slice()\fR, and -\fBsd_bus_creds_get_session()\fR -if the process is not part of a systemd system unit, systemd user unit, systemd slice, or logind session\&. It will be returned by -\fBsd_bus_creds_get_owner_uid()\fR -if the process is not part of a systemd user unit or logind session\&. It will also be returned by -\fBsd_bus_creds_get_exe()\fR -and -\fBsd_bus_creds_get_cmdline()\fR -for kernel threads (since these are not started from an executable binary, nor have a command line), and by -\fBsd_bus_creds_get_audit_session_id()\fR -and -\fBsd_bus_creds_get_audit_login_uid()\fR -when the process is not part of an audit session, and -\fBsd_bus_creds_get_tty()\fR -if the process has no controlling TTY\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -Specified pointer parameter is -\fBNULL\fR\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_creds_new_from_pid\fR(2), -\fBfork\fR(2), -\fBexecve\fR(2), -\fBcredentials\fR(7), -\fBfree\fR(3), -\fBproc\fR(5), -\fBsystemd.journal-fields\fR(7) -.SH "NOTES" -.IP " 1." 4 -Control Groups v2 -.RS 4 -\%https://docs.kernel.org/admin-guide/cgroup-v2.html -.RE -.IP " 2." 4 -The D-Bus specification -.RS 4 -\%https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names-bus -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_creds_new_from_pid.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_creds_new_from_pid.3 deleted file mode 100644 index 398bc977..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_creds_new_from_pid.3 +++ /dev/null @@ -1,264 +0,0 @@ -'\" t -.TH "SD_BUS_CREDS_NEW_FROM_PID" "3" "" "systemd 254" "sd_bus_creds_new_from_pid" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_creds_new_from_pid, sd_bus_creds_get_mask, sd_bus_creds_get_augmented_mask, sd_bus_creds_ref, sd_bus_creds_unref, sd_bus_creds_unrefp \- Retrieve credentials object for the specified PID -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_creds_new_from_pid('u -.BI "int sd_bus_creds_new_from_pid(pid_t\ " "pid" ", uint64_t\ " "creds_mask" ", sd_bus_creds\ **" "ret" ");" -.HP \w'uint64_t\ sd_bus_creds_get_mask('u -.BI "uint64_t sd_bus_creds_get_mask(sd_bus_creds\ *" "c" ");" -.HP \w'uint64_t\ sd_bus_creds_get_augmented_mask('u -.BI "uint64_t sd_bus_creds_get_augmented_mask(sd_bus_creds\ *" "c" ");" -.HP \w'sd_bus_creds\ *sd_bus_creds_ref('u -.BI "sd_bus_creds *sd_bus_creds_ref(sd_bus_creds\ *" "c" ");" -.HP \w'sd_bus_creds\ *sd_bus_creds_unref('u -.BI "sd_bus_creds *sd_bus_creds_unref(sd_bus_creds\ *" "c" ");" -.HP \w'void\ sd_bus_creds_unrefp('u -.BI "void sd_bus_creds_unrefp(sd_bus_creds\ **" "c" ");" -.PP -\fBSD_BUS_CREDS_PID\fR, -\fBSD_BUS_CREDS_PPID\fR, -\fBSD_BUS_CREDS_TID\fR, -\fBSD_BUS_CREDS_UID\fR, -\fBSD_BUS_CREDS_EUID\fR, -\fBSD_BUS_CREDS_SUID\fR, -\fBSD_BUS_CREDS_FSUID\fR, -\fBSD_BUS_CREDS_GID\fR, -\fBSD_BUS_CREDS_EGID\fR, -\fBSD_BUS_CREDS_SGID\fR, -\fBSD_BUS_CREDS_FSGID\fR, -\fBSD_BUS_CREDS_SUPPLEMENTARY_GIDS\fR, -\fBSD_BUS_CREDS_COMM\fR, -\fBSD_BUS_CREDS_TID_COMM\fR, -\fBSD_BUS_CREDS_EXE\fR, -\fBSD_BUS_CREDS_CMDLINE\fR, -\fBSD_BUS_CREDS_CGROUP\fR, -\fBSD_BUS_CREDS_UNIT\fR, -\fBSD_BUS_CREDS_SLICE\fR, -\fBSD_BUS_CREDS_USER_UNIT\fR, -\fBSD_BUS_CREDS_USER_SLICE\fR, -\fBSD_BUS_CREDS_SESSION\fR, -\fBSD_BUS_CREDS_OWNER_UID\fR, -\fBSD_BUS_CREDS_EFFECTIVE_CAPS\fR, -\fBSD_BUS_CREDS_PERMITTED_CAPS\fR, -\fBSD_BUS_CREDS_INHERITABLE_CAPS\fR, -\fBSD_BUS_CREDS_BOUNDING_CAPS\fR, -\fBSD_BUS_CREDS_SELINUX_CONTEXT\fR, -\fBSD_BUS_CREDS_AUDIT_SESSION_ID\fR, -\fBSD_BUS_CREDS_AUDIT_LOGIN_UID\fR, -\fBSD_BUS_CREDS_TTY\fR, -\fBSD_BUS_CREDS_UNIQUE_NAME\fR, -\fBSD_BUS_CREDS_WELL_KNOWN_NAMES\fR, -\fBSD_BUS_CREDS_DESCRIPTION\fR, -\fBSD_BUS_CREDS_AUGMENT\fR, -\fB_SD_BUS_CREDS_ALL\fR -.SH "DESCRIPTION" -.PP -\fBsd_bus_creds_new_from_pid()\fR -creates a new credentials object and fills it with information about the process -\fIpid\fR\&. The pointer to this object will be stored in the -\fIret\fR -pointer\&. Note that credential objects may also be created and retrieved via -\fBsd_bus_get_name_creds\fR(3), -\fBsd_bus_get_owner_creds\fR(3) -and -\fBsd_bus_message_get_creds\fR(3)\&. -.PP -The information that will be stored is determined by -\fIcreds_mask\fR\&. It may contain a subset of ORed constants -\fBSD_BUS_CREDS_PID\fR, -\fBSD_BUS_CREDS_PPID\fR, -\fBSD_BUS_CREDS_TID\fR, -\fBSD_BUS_CREDS_UID\fR, -\fBSD_BUS_CREDS_EUID\fR, -\fBSD_BUS_CREDS_SUID\fR, -\fBSD_BUS_CREDS_FSUID\fR, -\fBSD_BUS_CREDS_GID\fR, -\fBSD_BUS_CREDS_EGID\fR, -\fBSD_BUS_CREDS_SGID\fR, -\fBSD_BUS_CREDS_FSGID\fR, -\fBSD_BUS_CREDS_SUPPLEMENTARY_GIDS\fR, -\fBSD_BUS_CREDS_COMM\fR, -\fBSD_BUS_CREDS_TID_COMM\fR, -\fBSD_BUS_CREDS_EXE\fR, -\fBSD_BUS_CREDS_CMDLINE\fR, -\fBSD_BUS_CREDS_CGROUP\fR, -\fBSD_BUS_CREDS_UNIT\fR, -\fBSD_BUS_CREDS_SLICE\fR, -\fBSD_BUS_CREDS_USER_UNIT\fR, -\fBSD_BUS_CREDS_USER_SLICE\fR, -\fBSD_BUS_CREDS_SESSION\fR, -\fBSD_BUS_CREDS_OWNER_UID\fR, -\fBSD_BUS_CREDS_EFFECTIVE_CAPS\fR, -\fBSD_BUS_CREDS_PERMITTED_CAPS\fR, -\fBSD_BUS_CREDS_INHERITABLE_CAPS\fR, -\fBSD_BUS_CREDS_BOUNDING_CAPS\fR, -\fBSD_BUS_CREDS_SELINUX_CONTEXT\fR, -\fBSD_BUS_CREDS_AUDIT_SESSION_ID\fR, -\fBSD_BUS_CREDS_AUDIT_LOGIN_UID\fR, -\fBSD_BUS_CREDS_TTY\fR, -\fBSD_BUS_CREDS_UNIQUE_NAME\fR, -\fBSD_BUS_CREDS_WELL_KNOWN_NAMES\fR, and -\fBSD_BUS_CREDS_DESCRIPTION\fR\&. Use the special value -\fB_SD_BUS_CREDS_ALL\fR -to request all supported fields\&. The -\fBSD_BUS_CREDS_AUGMENT\fR -constant may not be ORed into the mask for invocations of -\fBsd_bus_creds_new_from_pid()\fR\&. -.PP -Fields can be retrieved from the credentials object using -\fBsd_bus_creds_get_pid\fR(3) -and other functions which correspond directly to the constants listed above\&. -.PP -A mask of fields which were actually successfully retrieved can be retrieved with -\fBsd_bus_creds_get_mask()\fR\&. If the credentials object was created with -\fBsd_bus_creds_new_from_pid()\fR, this will be a subset of fields requested in -\fIcreds_mask\fR\&. -.PP -Similar to -\fBsd_bus_creds_get_mask()\fR, the function -\fBsd_bus_creds_get_augmented_mask()\fR -returns a bitmask of field constants\&. The mask indicates which credential fields have been retrieved in a non\-atomic fashion\&. For credential objects created via -\fBsd_bus_creds_new_from_pid()\fR, this mask will be identical to the mask returned by -\fBsd_bus_creds_get_mask()\fR\&. However, for credential objects retrieved via -\fBsd_bus_get_name_creds()\fR, this mask will be set for the credential fields that could not be determined atomically at peer connection time, and which were later added by reading augmenting credential data from -/proc/\&. Similarly, for credential objects retrieved via -\fBsd_bus_get_owner_creds()\fR, the mask is set for the fields that could not be determined atomically at bus creation time, but have been augmented\&. Similarly, for credential objects retrieved via -\fBsd_bus_message_get_creds()\fR, the mask is set for the fields that could not be determined atomically at message sending time, but have been augmented\&. The mask returned by -\fBsd_bus_creds_get_augmented_mask()\fR -is always a subset of (or identical to) the mask returned by -\fBsd_bus_creds_get_mask()\fR -for the same object\&. The latter call hence returns all credential fields available in the credential object, the former then marks the subset of those that have been augmented\&. Note that augmented fields are unsuitable for authorization decisions, as they may be retrieved at different times, thus being subject to races\&. Hence, augmented fields should be used exclusively for informational purposes\&. -.PP -\fBsd_bus_creds_ref()\fR -creates a new reference to the credentials object -\fIc\fR\&. This object will not be destroyed until -\fBsd_bus_creds_unref()\fR -has been called as many times plus once more\&. Once the reference count has dropped to zero, -\fIc\fR -cannot be used anymore, so further calls to -\fBsd_bus_creds_ref(c)\fR -or -\fBsd_bus_creds_unref(c)\fR -are illegal\&. -.PP -\fBsd_bus_creds_unref()\fR -destroys a reference to -\fIc\fR\&. -.PP -\fBsd_bus_creds_unrefp()\fR -is similar to -\fBsd_bus_creds_unref()\fR -but takes a pointer to a pointer to an -\fBsd_bus_creds\fR -object\&. This call is useful in conjunction with GCC\*(Aqs and LLVM\*(Aqs -\m[blue]\fBClean\-up Variable Attribute\fR\m[]\&\s-2\u[1]\d\s+2\&. Note that this function is defined as inline function\&. -.PP -\fBsd_bus_creds_ref()\fR, -\fBsd_bus_creds_unref()\fR -and -\fBsd_bus_creds_unrefp()\fR -execute no operation if the passed in bus credentials object is -\fBNULL\fR\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_creds_new_from_pid()\fR -returns 0 or a positive integer\&. On failure, it returns a negative errno\-style error code\&. -.PP -\fBsd_bus_creds_get_mask()\fR -returns the mask of successfully acquired fields\&. -.PP -\fBsd_bus_creds_get_augmented_mask()\fR -returns the mask of fields that have been augmented from data in -/proc/, and are thus not suitable for authorization decisions\&. -.PP -\fBsd_bus_creds_ref()\fR -always returns the argument\&. -.PP -\fBsd_bus_creds_unref()\fR -always returns -\fBNULL\fR\&. -.SH "REFERENCE OWNERSHIP" -.PP -Function -\fBsd_bus_creds_new_from_pid()\fR -creates a new object and the caller owns the sole reference\&. When not needed anymore, this reference should be destroyed with -\fBsd_bus_creds_unref\fR(3)\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ESRCH\fR -.RS 4 -Specified -\fIpid\fR -could not be found\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -Specified parameter is invalid (\fBNULL\fR -in case of output parameters)\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.PP -\fB\-EOPNOTSUPP\fR -.RS 4 -One of the requested fields is unknown to the local system\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_creds_get_pid\fR(3), -\fBsd_bus_get_name_creds\fR(3), -\fBsd_bus_get_owner_creds\fR(3), -\fBsd_bus_message_get_creds\fR(3) -.SH "NOTES" -.IP " 1." 4 -Clean-up Variable Attribute -.RS 4 -\%https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_default.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_default.3 deleted file mode 100644 index b361ccd4..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_default.3 +++ /dev/null @@ -1,260 +0,0 @@ -'\" t -.TH "SD_BUS_DEFAULT" "3" "" "systemd 254" "sd_bus_default" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_default, sd_bus_default_user, sd_bus_default_system, sd_bus_open, sd_bus_open_with_description, sd_bus_open_user, sd_bus_open_user_with_description, sd_bus_open_user_machine, sd_bus_open_system, sd_bus_open_system_with_description, sd_bus_open_system_remote, sd_bus_open_system_machine \- Acquire a connection to a system or user bus -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_default('u -.BI "int sd_bus_default(sd_bus\ **" "bus" ");" -.HP \w'int\ sd_bus_default_user('u -.BI "int sd_bus_default_user(sd_bus\ **" "bus" ");" -.HP \w'int\ sd_bus_default_system('u -.BI "int sd_bus_default_system(sd_bus\ **" "bus" ");" -.HP \w'int\ sd_bus_open('u -.BI "int sd_bus_open(sd_bus\ **" "bus" ");" -.HP \w'int\ sd_bus_open_with_description('u -.BI "int sd_bus_open_with_description(sd_bus\ **" "bus" ", const\ char\ *" "description" ");" -.HP \w'int\ sd_bus_open_user('u -.BI "int sd_bus_open_user(sd_bus\ **" "bus" ");" -.HP \w'int\ sd_bus_open_user_with_description('u -.BI "int sd_bus_open_user_with_description(sd_bus\ **" "bus" ", const\ char\ *" "description" ");" -.HP \w'int\ sd_bus_open_user_machine('u -.BI "int sd_bus_open_user_machine(sd_bus\ **" "bus" ", const\ char\ *" "machine" ");" -.HP \w'int\ sd_bus_open_system('u -.BI "int sd_bus_open_system(sd_bus\ **" "bus" ");" -.HP \w'int\ sd_bus_open_system_with_description('u -.BI "int sd_bus_open_system_with_description(sd_bus\ **" "bus" ", const\ char\ *" "description" ");" -.HP \w'int\ sd_bus_open_system_remote('u -.BI "int sd_bus_open_system_remote(sd_bus\ **" "bus" ", const\ char\ *" "host" ");" -.HP \w'int\ sd_bus_open_system_machine('u -.BI "int sd_bus_open_system_machine(sd_bus\ **" "bus" ", const\ char\ *" "machine" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_default()\fR -acquires a bus connection object to the user bus when invoked from within a user slice (any session under -"user\-*\&.slice", e\&.g\&.: -"user@1000\&.service"), or to the system bus otherwise\&. The connection object is associated with the calling thread\&. Each time the function is invoked from the same thread, the same object is returned, but its reference count is increased by one, as long as at least one reference is kept\&. When the last reference to the connection is dropped (using the -\fBsd_bus_unref\fR(3) -call), the connection is terminated\&. Note that the connection is not automatically terminated when the associated thread ends\&. It is important to drop the last reference to the bus connection explicitly before the thread ends, as otherwise, the connection will leak\&. Also, queued but unread or unwritten messages keep the bus referenced, see below\&. -.PP -\fBsd_bus_default_user()\fR -returns a user bus connection object associated with the calling thread\&. -\fBsd_bus_default_system()\fR -is similar, but connects to the system bus\&. Note that -\fBsd_bus_default()\fR -is identical to these two calls, depending on the execution context\&. -.PP -\fBsd_bus_open()\fR -creates a new, independent bus connection to the user bus when invoked in user context, or the system bus otherwise\&. -\fBsd_bus_open_user()\fR -is similar, but connects only to the user bus\&. -\fBsd_bus_open_system()\fR -does the same, but connects to the system bus\&. In contrast to -\fBsd_bus_default()\fR, -\fBsd_bus_default_user()\fR, and -\fBsd_bus_default_system()\fR, these calls return new, independent connection objects that are not associated with the invoking thread and are not shared between multiple invocations\&. It is recommended to share connections per thread to efficiently make use the available resources\&. Thus, it is recommended to use -\fBsd_bus_default()\fR, -\fBsd_bus_default_user()\fR -and -\fBsd_bus_default_system()\fR -to connect to the user or system buses\&. -.PP -\fBsd_bus_open_with_description()\fR, -\fBsd_bus_open_user_with_description()\fR, and -\fBsd_bus_open_system_with_description()\fR -are similar to -\fBsd_bus_open()\fR, -\fBsd_bus_open_user()\fR, and -\fBsd_bus_open_system()\fR, but allow a description string to be set, see -\fBsd_bus_set_description\fR(3)\&. -\fIdescription\fR -may be -\fBNULL\fR, in which case this function is equivalent to -\fBsd_bus_open()\fR\&. This description string is used in log messages about the bus object, and including a "name" for the bus makes them easier to understand\&. Some messages are emitted during bus initialization, hence using this function is preferable to setting the description later with -\fBsd_bus_open_with_description()\fR\&. The argument is copied internally and will not be referenced after the function returns\&. -.PP -If the -\fI$DBUS_SESSION_BUS_ADDRESS\fR -environment variable is set (cf\&. -\fBenviron\fR(7)), it will be used as the address of the user bus\&. This variable can contain multiple addresses separated by -";"\&. If this variable is not set, a suitable default for the default user D\-Bus instance will be used\&. -.PP -If the -\fI$DBUS_SYSTEM_BUS_ADDRESS\fR -environment variable is set, it will be used as the address of the system bus\&. This variable uses the same syntax as -\fI$DBUS_SESSION_BUS_ADDRESS\fR\&. If this variable is not set, a suitable default for the default system D\-Bus instance will be used\&. -.PP -\fBsd_bus_open_system_remote()\fR -connects to the system bus on the specified host using -\fBssh\fR(1)\&. -\fIhost\fR -consists of an optional user name followed by the -"@" -symbol, and the hostname, optionally followed by a -":" -and a port, optionally followed by a -"/" -and a machine name\&. If the machine name is given, a connection is created to the system bus in the specified container on the remote machine, and otherwise a connection to the system bus on the specified host is created\&. -.PP -Note that entering a container is a privileged operation, and will likely only work for the root user on the remote machine\&. -.PP -\fBsd_bus_open_system_machine()\fR -connects to the system bus in the specified -\fImachine\fR, where -\fImachine\fR -is the name of a local container, possibly prefixed by a user name and a separating -"@"\&. If the container name is specified as the special string -"\&.host" -the connection is made to the local system\&. This is useful to connect to the local system bus as specific user, e\&.g\&. -"foobar@\&.host" -to connect to the local system bus as local user -"foobar"\&. If the -"@" -syntax is used either the left\-hand side or the right\-hand side may be omitted (but not both) in which case the local user name or -"\&.host" -is implied\&. If the -"@" -syntax is not used the connection is always made as root user\&. See -\fBsd_bus_set_address\fR(3) -for a description of the address syntax, and -\fBmachinectl\fR(1) -for more information about the "machine" concept\&. Note that connections into local containers are only available to privileged processes at this time\&. -.PP -\fBsd_bus_open_user_machine()\fR -is similar to -\fBsd_bus_open_system_machine()\fR, but connects to the user bus of the root user, or if the -"@" -syntax is used, of the specified user\&. -.PP -These calls allocate a bus connection object and initiate the connection to a well\-known bus of some form\&. An alternative to using these high\-level calls is to create an unconnected bus object with -\fBsd_bus_new\fR(3) -and to connect it with -\fBsd_bus_start\fR(3)\&. -.SH "REFERENCE OWNERSHIP" -.PP -The functions -\fBsd_bus_open()\fR, -\fBsd_bus_open_user()\fR, -\fBsd_bus_open_user_machine()\fR, -\fBsd_bus_open_system()\fR, -\fBsd_bus_open_system_remote()\fR, and -\fBsd_bus_open_system_machine()\fR -return a new connection object and the caller owns the sole reference\&. When not needed anymore, this reference should be destroyed with -\fBsd_bus_unref\fR(3)\&. -.PP -The functions -\fBsd_bus_default()\fR, -\fBsd_bus_default_user()\fR -and -\fBsd_bus_default_system()\fR -do not necessarily create a new object, but increase the connection reference of an existing connection object by one\&. Use -\fBsd_bus_unref\fR(3) -to drop the reference\&. -.PP -Queued but unwritten/unread messages keep a reference to their bus connection object\&. For this reason, even if an application dropped all references to a bus connection, it might not get destroyed right away\&. Until all incoming queued messages are read, and until all outgoing unwritten messages are written, the bus object will stay alive\&. -\fBsd_bus_flush()\fR -may be used to write all outgoing queued messages so they drop their references\&. To flush the unread incoming messages, use -\fBsd_bus_close()\fR, which will also close the bus connection\&. When using the default bus logic, it is a good idea to first invoke -\fBsd_bus_flush()\fR -followed by -\fBsd_bus_close()\fR -when a thread or process terminates, and thus its bus connection object should be freed\&. -.PP -Normally, slot objects (as created by -\fBsd_bus_add_match\fR(3) -and similar calls) keep a reference to their bus connection object, too\&. Thus, as long as a bus slot object remains referenced its bus object will remain allocated too\&. Optionally, bus slot objects may be placed in "floating" mode\&. When in floating mode the life cycle of the bus slot object is bound to the bus object, i\&.e\&. when the bus object is freed the bus slot object is automatically unreferenced too\&. The floating state of a slot object may be controlled explicitly with -\fBsd_bus_slot_set_floating\fR(3), though usually floating bus slot objects are created by passing -\fBNULL\fR -as the -\fIslot\fR -parameter of -\fBsd_bus_add_match()\fR -and related calls, thus indicating that the caller is not directly interested in referencing and managing the bus slot object\&. -.PP -The life cycle of the default bus connection should be the responsibility of the code that creates/owns the thread the default bus connection object is associated with\&. Library code should neither call -\fBsd_bus_flush()\fR -nor -\fBsd_bus_close()\fR -on default bus objects unless it does so in its own private, self\-allocated thread\&. Library code should not use the default bus object in other threads unless it is clear that the program using it will life cycle the bus connection object and flush and close it before exiting from the thread\&. In libraries where it is not clear that the calling program will life cycle the bus connection object, it is hence recommended to use -\fBsd_bus_open_system()\fR -instead of -\fBsd_bus_default_system()\fR -and related calls\&. -.SH "RETURN VALUE" -.PP -On success, these calls return 0 or a positive integer\&. On failure, these calls return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The specified parameters are invalid\&. -.RE -.PP -\fB\-ENOMEDIUM\fR -.RS 4 -The requested bus type is not available because of invalid environment (for example the user session bus is not available because -\fI$XDG_RUNTIME_DIR\fR -is not set)\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.PP -\fB\-ESOCKTNOSUPPORT\fR -.RS 4 -The protocol version required to connect to the selected bus is not supported\&. -.RE -.PP -In addition, other connection\-related errors may be returned\&. See -\fBsd_bus_send\fR(3)\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_new\fR(3), -\fBsd_bus_ref\fR(3), -\fBsd_bus_unref\fR(3), -\fBsd_bus_close\fR(3), -\fBssh\fR(1), -\fBsystemd-machined.service\fR(8), -\fBmachinectl\fR(1) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_emit_signal.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_emit_signal.3 deleted file mode 100644 index 1c9f734d..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_emit_signal.3 +++ /dev/null @@ -1,202 +0,0 @@ -'\" t -.TH "SD_BUS_EMIT_SIGNAL" "3" "" "systemd 254" "sd_bus_emit_signal" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_emit_signal, sd_bus_emit_signalv, sd_bus_emit_signal_to, sd_bus_emit_signal_tov, sd_bus_emit_interfaces_added, sd_bus_emit_interfaces_added_strv, sd_bus_emit_interfaces_removed, sd_bus_emit_interfaces_removed_strv, sd_bus_emit_properties_changed, sd_bus_emit_properties_changed_strv, sd_bus_emit_object_added, sd_bus_emit_object_removed \- Convenience functions for emitting (standard) D\-Bus signals -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_emit_signal('u -.BI "int sd_bus_emit_signal(sd_bus\ *" "bus" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "member" ", const\ char\ *" "types" ", \&.\&.\&.);" -.HP \w'int\ sd_bus_emit_signalv('u -.BI "int sd_bus_emit_signalv(sd_bus\ *" "bus" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "member" ", const\ char\ *" "types" ", va_list\ " "ap" ");" -.HP \w'int\ sd_bus_emit_signal_to('u -.BI "int sd_bus_emit_signal_to(sd_bus\ *" "bus" ", const\ char\ *" "destination" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "member" ", const\ char\ *" "types" ", \&.\&.\&.);" -.HP \w'int\ sd_bus_emit_signal_tov('u -.BI "int sd_bus_emit_signal_tov(sd_bus\ *" "bus" ", const\ char\ *" "destination" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "member" ", const\ char\ *" "types" ", va_list\ " "ap" ");" -.HP \w'int\ sd_bus_emit_interfaces_added('u -.BI "int sd_bus_emit_interfaces_added(sd_bus\ *" "bus" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", \&.\&.\&.);" -.HP \w'int\ sd_bus_emit_interfaces_added_strv('u -.BI "int sd_bus_emit_interfaces_added_strv(sd_bus\ *" "bus" ", const\ char\ *" "path" ", const\ char\ **" "interfaces" ");" -.HP \w'int\ sd_bus_emit_interfaces_removed('u -.BI "int sd_bus_emit_interfaces_removed(sd_bus\ *" "bus" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", \&.\&.\&.);" -.HP \w'int\ sd_bus_emit_interfaces_removed_strv('u -.BI "int sd_bus_emit_interfaces_removed_strv(sd_bus\ *" "bus" ", const\ char\ *" "path" ", const\ char\ **" "interfaces" ");" -.HP \w'int\ sd_bus_emit_properties_changed('u -.BI "int sd_bus_emit_properties_changed(sd_bus\ *" "bus" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "name" ", \&.\&.\&.);" -.HP \w'int\ sd_bus_emit_properties_changed_strv('u -.BI "int sd_bus_emit_properties_changed_strv(sd_bus\ *" "bus" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ **" "names" ");" -.HP \w'int\ sd_bus_emit_object_added('u -.BI "int sd_bus_emit_object_added(sd_bus\ *" "bus" ", const\ char\ *" "path" ");" -.HP \w'int\ sd_bus_emit_object_removed('u -.BI "int sd_bus_emit_object_removed(sd_bus\ *" "bus" ", const\ char\ *" "path" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_emit_signal()\fR -is a convenience function for initializing a bus message object and emitting the corresponding D\-Bus signal\&. It combines the -\fBsd_bus_message_new_signal\fR(3), -\fBsd_bus_message_append\fR(3) -and -\fBsd_bus_send\fR(3) -functions into a single function call\&. -\fBsd_bus_emit_signalv()\fR -is equivalent to -\fBsd_bus_message_append()\fR, except that it is called with a -"va_list" -instead of a variable number of arguments\&. -.PP -\fBsd_bus_emit_signal_to()\fR -and -\fBsd_bus_emit_signal_tov()\fR -are identical to -\fBsd_bus_emit_signal()\fR -and -\fBsd_bus_emit_signalv()\fR, except that they can emit the signal to a single destination\&. Give -\fIdestination\fR -as -\fBNULL\fR -to broadcast the signal\&. -.PP -\fBsd_bus_emit_interfaces_added()\fR -and -\fBsd_bus_emit_interfaces_removed()\fR -are used to implement the -\fBInterfacesAdded\fR -and -\fBInterfacesRemoved\fR -signals of the -\fBorg\&.freedesktop\&.DBus\&.ObjectManager\fR -interface\&. They take a path whose interfaces have been modified as an argument and a variable list of interfaces that have been added or removed, respectively\&. The final argument passed to -\fBsd_bus_emit_interfaces_added()\fR -and -\fBsd_bus_emit_interfaces_removed()\fR -\fImust\fR -be -\fBNULL\fR\&. This allows both functions to safely determine the number of passed interface arguments\&. -\fBsd_bus_emit_interfaces_added_strv()\fR -and -\fBsd_bus_emit_interfaces_removed_strv()\fR -are identical to their respective counterparts but both take the list of interfaces as a single argument instead of a variable number of arguments\&. -.PP -\fBsd_bus_emit_properties_changed()\fR -is used to implement the -\fBPropertiesChanged\fR -signal of the -\fBorg\&.freedesktop\&.DBus\&.Properties\fR -interface\&. It takes an object path, interface and a variable list of property names as its arguments\&. The final argument passed to -\fBsd_bus_emit_properties_changed()\fR -\fImust\fR -be -\fBNULL\fR\&. This allows it to safely determine the number of passed property names\&. -\fBsd_bus_emit_properties_changed_strv()\fR -is identical to -\fBsd_bus_emit_properties_changed()\fR -but takes the list of property names as a single argument instead of a variable number of arguments\&. -.PP -\fBsd_bus_emit_object_added()\fR -and -\fBsd_bus_emit_object_removed()\fR -are convenience functions for emitting the -\fBInterfacesAdded\fR -or -\fBInterfacesRemoved\fR -signals for all interfaces registered on a specific object path, respectively\&. This includes any parent fallback vtables if they are not overridden by a more applicable child vtable\&. It also includes all the standard D\-Bus interfaces implemented by sd\-bus itself on any registered object\&. -.PP -Note that -\fBsd_bus_emit_interfaces_added()\fR, -\fBsd_bus_emit_interfaces_removed()\fR, -\fBsd_bus_emit_object_added()\fR -and -\fBsd_bus_emit_object_removed()\fR -require an object manager to have been registered on the given object path or one of its parent object paths using -\fBsd_bus_add_object_manager\fR(3)\&. -.SH "RETURN VALUE" -.PP -On success, these functions return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -One of the required parameters is -\fBNULL\fR -or invalid\&. A reserved D\-Bus interface was passed as the -\fIinterface\fR -parameter\&. -.RE -.PP -\fB\-ENOPKG\fR -.RS 4 -The bus cannot be resolved\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus was created in a different process, library or module instance\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.PP -\fB\-ESRCH\fR -.RS 4 -One of -\fBsd_bus_emit_interfaces_added()\fR, -\fBsd_bus_emit_interfaces_removed()\fR, -\fBsd_bus_emit_object_added()\fR -or -\fBsd_bus_emit_object_removed()\fR -was called on an object without an object manager registered on its own object path or one of its parent object paths\&. -.RE -.PP -See the man pages of -\fBsd_bus_message_new_signal\fR(3), -\fBsd_bus_message_append\fR(3) -and -\fBsd_bus_send\fR(3) -for more possible errors\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsd-bus\fR(3), -\fBbusctl\fR(1), -\fBsd_bus_message_new_signal\fR(3), -\fBsd_bus_message_append\fR(3), -\fBsd_bus_send\fR(3), -\fBsd_bus_call_method\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_enqueue_for_read.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_enqueue_for_read.3 deleted file mode 100644 index 32a43786..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_enqueue_for_read.3 +++ /dev/null @@ -1,66 +0,0 @@ -'\" t -.TH "SD_BUS_ENQUEUE_FOR_READ" "3" "" "systemd 254" "sd_bus_enqueue_for_read" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_enqueue_for_read \- Re\-enqueue a bus message on a bus connection, for reading -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_enqueue_for_read('u -.BI "int sd_bus_enqueue_for_read(sd_bus\ *" "bus" ", sd_bus_message\ *" "message" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_enqueue_for_read()\fR -may be used to re\-enqueue an incoming bus message on the local read queue, so that it is processed and dispatched locally again, similarly to how an incoming message from the peer is processed\&. Takes a bus connection object and the message to enqueue\&. A reference is taken of the message and the caller\*(Aqs reference thus remains in possession of the caller\&. The message is enqueued at the end of the queue, thus will be dispatched after all other already queued messages are dispatched\&. -.PP -This call is primarily useful for dealing with incoming method calls that may be processed only after an additional asynchronous operation completes\&. One example are PolicyKit authorization requests that are determined to be necessary to authorize a newly incoming method call: when the PolicyKit response is received the original method call may be re\-enqueued to process it again, this time with the authorization result known\&. -.SH "RETURN VALUE" -.PP -On success, this function return 0 or a positive integer\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ECHILD\fR -.RS 4 -The bus connection has been created in a different process, library or module instance\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_send\fR(3), diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_error.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_error.3 deleted file mode 100644 index 2d22ebec..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_error.3 +++ /dev/null @@ -1,482 +0,0 @@ -'\" t -.TH "SD_BUS_ERROR" "3" "" "systemd 254" "sd_bus_error" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_error, SD_BUS_ERROR_MAKE_CONST, SD_BUS_ERROR_NULL, sd_bus_error_free, sd_bus_error_set, sd_bus_error_setf, sd_bus_error_setfv, sd_bus_error_set_const, sd_bus_error_set_errno, sd_bus_error_set_errnof, sd_bus_error_set_errnofv, sd_bus_error_get_errno, sd_bus_error_copy, sd_bus_error_move, sd_bus_error_is_set, sd_bus_error_has_name, sd_bus_error_has_names_sentinel, sd_bus_error_has_names \- sd\-bus error handling -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.sp -.ft B -.nf -typedef struct { - const char *name; - const char *message; - \&... -} sd_bus_error; -.fi -.ft -.PP -\fBSD_BUS_ERROR_MAKE_CONST(\fR\fB\fIname\fR\fR\fB, \fR\fB\fImessage\fR\fR\fB)\fR -.PP -\fBSD_BUS_ERROR_NULL\fR -.HP \w'void\ sd_bus_error_free('u -.BI "void sd_bus_error_free(sd_bus_error\ *" "e" ");" -.HP \w'int\ sd_bus_error_set('u -.BI "int sd_bus_error_set(sd_bus_error\ *" "e" ", const\ char\ *" "name" ", const\ char\ *" "message" ");" -.HP \w'int\ sd_bus_error_setf('u -.BI "int sd_bus_error_setf(sd_bus_error\ *" "e" ", const\ char\ *" "name" ", const\ char\ *" "format" ", \&...);" -.HP \w'int\ sd_bus_error_setfv('u -.BI "int sd_bus_error_setfv(sd_bus_error\ *" "e" ", const\ char\ *" "name" ", const\ char\ *" "format" ", va_list\ " "ap" ");" -.HP \w'int\ sd_bus_error_set_const('u -.BI "int sd_bus_error_set_const(sd_bus_error\ *" "e" ", const\ char\ *" "name" ", const\ char\ *" "message" ");" -.HP \w'int\ sd_bus_error_set_errno('u -.BI "int sd_bus_error_set_errno(sd_bus_error\ *" "e" ", int\ " "error" ");" -.HP \w'int\ sd_bus_error_set_errnof('u -.BI "int sd_bus_error_set_errnof(sd_bus_error\ *" "e" ", int\ " "error" ", const\ char\ *" "format" ", \&...);" -.HP \w'int\ sd_bus_error_set_errnofv('u -.BI "int sd_bus_error_set_errnofv(sd_bus_error\ *" "e" ", int\ " "error" ", const\ char\ *" "format" ", va_list\ " "ap" ");" -.HP \w'int\ sd_bus_error_get_errno('u -.BI "int sd_bus_error_get_errno(const\ sd_bus_error\ *" "e" ");" -.HP \w'int\ sd_bus_error_copy('u -.BI "int sd_bus_error_copy(sd_bus_error\ *" "dst" ", const\ sd_bus_error\ *" "e" ");" -.HP \w'int\ sd_bus_error_move('u -.BI "int sd_bus_error_move(sd_bus_error\ *" "dst" ", sd_bus_error\ *" "e" ");" -.HP \w'int\ sd_bus_error_is_set('u -.BI "int sd_bus_error_is_set(const\ sd_bus_error\ *" "e" ");" -.HP \w'int\ sd_bus_error_has_name('u -.BI "int sd_bus_error_has_name(const\ sd_bus_error\ *" "e" ", const\ char\ *" "name" ");" -.HP \w'int\ sd_bus_error_has_names_sentinel('u -.BI "int sd_bus_error_has_names_sentinel(const\ sd_bus_error\ *" "e" ", \&.\&.\&.);" -.PP -#define sd_bus_error_has_names(e, \&.\&.\&.) sd_bus_error_has_names_sentinel(e, \&.\&.\&., NULL) -.SH "DESCRIPTION" -.PP -The -sd_bus_error -structure carries information about a D\-Bus error condition, or lack thereof\&. The functions described below may be used to set and query fields in this structure\&. -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -The -\fIname\fR -field contains a short identifier of an error\&. It should follow the rules for error names described in the D\-Bus specification, subsection -\m[blue]\fBValid Names\fR\m[]\&\s-2\u[1]\d\s+2\&. A number of common, standardized error names are described in -\fBsd-bus-errors\fR(3), but additional domain\-specific errors may be defined by applications\&. -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -The -\fImessage\fR -field usually contains a human\-readable string describing the details, but might be -\fBNULL\fR\&. -.RE -.sp -An unset -sd_bus_error -structure should have both fields initialized to -\fBNULL\fR, and signifies lack of an error, i\&.e\&. success\&. Assign -\fBSD_BUS_ERROR_NULL\fR -to the structure in order to initialize both fields to -\fBNULL\fR\&. When no longer necessary, resources held by the -sd_bus_error -structure should be destroyed with -\fBsd_bus_error_free()\fR\&. -.PP -\fBsd_bus_error_set()\fR -sets an error structure to the specified name and message strings\&. The strings will be copied into internal, newly allocated memory\&. It is essential to free the contents again when they are not required anymore (see above)\&. Do not use this call on error structures that have already been set\&. If you intend to reuse an error structure, free the old data stored in it with -\fBsd_bus_error_free()\fR -first\&. -.PP -\fBsd_bus_error_set()\fR -will return an -\fIerrno\fR\-like value (see -\fBerrno\fR(3)) determined from the specified error name -\fIname\fR\&. If -\fIname\fR -is -\fBNULL\fR, it is assumed that no error occurred, and -\fB0\fR -is returned\&. If -\fIname\fR -is nonnull, a negative value is always returned\&. If -\fIe\fR -is -\fBNULL\fR, no error structure is initialized, but -\fIname\fR -is still converted into an -\fIerrno\fR\-style value\&. -.PP -Various well\-known D\-Bus errors are converted to well\-known -\fIerrno\fR -counterparts, and the other ones to -\fB\-EIO\fR\&. See -\fBsd-bus-errors\fR(3) -for a list of well\-known error names\&. Additional error mappings may be defined with -\fBsd_bus_error_add_map\fR(3)\&. -.PP -\fBsd_bus_error_set()\fR -is designed to be conveniently used in a -\fBreturn\fR -statement\&. If -\fImessage\fR -is -\fBNULL\fR, no message is set\&. This call can fail if no memory may be allocated for the name and message strings, in which case an -\fBSD_BUS_ERROR_NO_MEMORY\fR -error will be set instead and -\fB\-ENOMEM\fR -returned\&. -.PP -\fBsd_bus_error_setf()\fR -and -\fBsd_bus_error_setfv()\fR -are similar to -\fBsd_bus_error_set()\fR, but take a -\fBprintf\fR(3) -format string and corresponding arguments to generate the -\fImessage\fR -field\&. -\fBsd_bus_error_setf()\fR -uses variadic arguments, and -\fBsd_bus_error_setfv()\fR -accepts the arguments as a -\fBva_arg\fR(3) -parameter list\&. -.PP -\fBsd_bus_error_set_const()\fR -is similar to -\fBsd_bus_error_set()\fR, but the string parameters are not copied internally, and must hence remain constant and valid for the lifetime of -\fIe\fR\&. Use this call to avoid memory allocations when setting error structures\&. Since this call does not allocate memory, it will not fail with an out\-of\-memory condition as -\fBsd_bus_error_set()\fR -may, as described above\&. Alternatively, the -\fBSD_BUS_ERROR_MAKE_CONST()\fR -macro may be used to generate a literal, constant bus error structure on\-the\-fly\&. -.PP -\fBsd_bus_error_set_errno()\fR -will immediately return -\fB0\fR -if the specified error parameter -\fIerror\fR -is -\fB0\fR\&. Otherwise, it will set -\fIname\fR -from an -\fIerrno\fR\-like value that is converted to a D\-Bus error\&. -\fBstrerror_r\fR(3) -will be used to set -\fImessage\fR\&. Well\-known D\-Bus error names will be used for -\fIname\fR -if applicable, otherwise a name in the -"System\&.Error\&." -namespace will be generated\&. The sign of the specified error number is ignored and the absolute value is used implicitly\&. If the specified error -\fIerror\fR -is non\-zero, the call always returns a negative value, for convenient usage in -\fBreturn\fR -statements\&. This call might fail due to lack of memory, in which case an -\fBSD_BUS_ERROR_NO_MEMORY\fR -error is set instead, and -\fB\-ENOMEM\fR -is returned\&. -.PP -\fBsd_bus_error_set_errnof()\fR -and -\fBsd_bus_error_set_errnof()\fR -are similar to -\fBsd_bus_error_set_errno()\fR, but in addition to -\fIerror\fR, take a -\fBprintf\fR(3) -format string and corresponding arguments\&. The -\fImessage\fR -field will be generated from -\fIformat\fR -and the arguments\&. -\fBsd_bus_error_set_errnof()\fR -uses variadic arguments, and -\fBsd_bus_error_set_errnofv()\fR -accepts the arguments as a -\fBva_arg\fR(3) -parameter list\&. -.PP -\fBsd_bus_error_get_errno()\fR -converts the -\fIname\fR -field of an error structure to an -\fIerrno\fR\-like (positive) value using the same rules as -\fBsd_bus_error_set()\fR\&. If -\fIe\fR -is -\fBNULL\fR, -\fB0\fR -will be returned\&. -.PP -\fBsd_bus_error_copy()\fR -will initialize -\fIdst\fR -using the values in -\fIe\fR, if -\fIe\fR -has been set with an error value before\&. Otherwise, it will return immediately\&. If the strings in -\fIe\fR -were set using -\fBsd_bus_error_set_const()\fR, they will be shared\&. Otherwise, they will be copied\&. Before this call, -\fIdst\fR -must be unset, i\&.e\&. either freshly initialized with -\fBNULL\fR -or reset using -\fBsd_bus_error_free()\fR\&. -.PP -\fBsd_bus_error_copy()\fR -generally returns -\fB0\fR -or a negative -\fIerrno\fR\-like value based on the input parameter -\fIe\fR: -\fB0\fR -if it was unset and a negative integer if it was set to some error, similarly to -\fBsd_bus_error_set()\fR\&. It may however also return an error generated internally, for example -\fB\-ENOMEM\fR -if a memory allocation fails\&. -.PP -\fBsd_bus_error_move()\fR -is similar to -\fBsd_bus_error_copy()\fR, but will move any error information from -\fIe\fR -into -\fIdst\fR, resetting the former\&. This function cannot fail, as no new memory is allocated\&. Note that if -\fIe\fR -is not set, -\fIdst\fR -is initialized to -\fBSD_BUS_ERROR_NULL\fR\&. Moreover, if -\fIdst\fR -is -\fBNULL\fR -no operation is executed on it and resources held by -\fIe\fR -are freed and reset\&. Returns a converted -\fIerrno\fR\-like, non\-positive error value\&. -.PP -\fBsd_bus_error_is_set()\fR -will return a non\-zero value if -\fIe\fR -is non\-\fBNULL\fR -and an error has been set, -\fBfalse\fR -otherwise\&. -.PP -\fBsd_bus_error_has_name()\fR -will return a non\-zero value if -\fIe\fR -is non\-\fBNULL\fR -and an error with the same -\fIname\fR -has been set, -\fBfalse\fR -otherwise\&. -.PP -\fBsd_bus_error_has_names_sentinel()\fR -is similar to -\fBsd_bus_error_has_name()\fR, but takes multiple names to check against\&. The list must be terminated with -\fBNULL\fR\&. -\fBsd_bus_error_has_names()\fR -is a macro wrapper around -\fBsd_bus_error_has_names_sentinel()\fR -that adds the -\fBNULL\fR -sentinel automatically\&. -.PP -\fBsd_bus_error_free()\fR -will destroy resources held by -\fIe\fR\&. The parameter itself will not be deallocated, and must be -\fBfree\fR(3)d by the caller if necessary\&. The function may also be called safely on unset errors (error structures with both fields set to -\fBNULL\fR), in which case it performs no operation\&. This call will reset the error structure after freeing the data, so that all fields are set to -\fBNULL\fR\&. The structure may be reused afterwards\&. -.SH "REFERENCE OWNERSHIP" -.PP -sd_bus_error -is not reference\-counted\&. Users should destroy resources held by it by calling -\fBsd_bus_error_free()\fR\&. Usually, error structures are allocated on the stack or passed in as function parameters, but they may also be allocated dynamically, in which case it is the duty of the caller to -\fBfree\fR(3) -the memory held by the structure itself after freeing its contents with -\fBsd_bus_error_free()\fR\&. -.SH "RETURN VALUE" -.PP -The functions -\fBsd_bus_error_set()\fR, -\fBsd_bus_error_setf()\fR, and -\fBsd_bus_error_set_const()\fR -always return -\fB0\fR -when the specified error value is -\fBNULL\fR, and a negative errno\-like value corresponding to the -\fIname\fR -parameter otherwise\&. The functions -\fBsd_bus_error_set_errno()\fR, -\fBsd_bus_error_set_errnof()\fR -and -\fBsd_bus_error_set_errnofv()\fR, return -\fB0\fR -when the specified error value is -\fB0\fR, and a negative errno\-like value corresponding to the -\fIerror\fR -parameter otherwise\&. If an error occurs internally, one of the negative error values listed below will be returned\&. This allows those functions to be conveniently used in a -\fBreturn\fR -statement, see the example below\&. -.PP -\fBsd_bus_error_get_errno()\fR -returns -\fBfalse\fR -when -\fIe\fR -is -\fBNULL\fR, and a positive errno value mapped from -\fIe\->name\fR -otherwise\&. -.PP -\fBsd_bus_error_copy()\fR -and -\fBsd_bus_error_move()\fR -return a negative error value converted from the source error, and zero if the error has not been set\&. This allows those functions to be conveniently used in a -\fBreturn\fR -statement, see the example below\&. -.PP -\fBsd_bus_error_is_set()\fR -returns a non\-zero value when -\fIe\fR -and the -\fIname\fR -field are non\-\fBNULL\fR, zero otherwise\&. -.PP -\fBsd_bus_error_has_name()\fR, -\fBsd_bus_error_has_names()\fR, and -\fBsd_bus_error_has_names_sentinel()\fR -return a non\-zero value when -\fIe\fR -is non\-\fBNULL\fR -and the -\fIname\fR -field is equal to one of the given names, zero otherwise\&. -.SS "Errors" -.PP -Return value may indicate the following problems in the invocation of the function itself: -.PP -\fB\-EINVAL\fR -.RS 4 -Error was already set in the -sd_bus_error -structure when one the error\-setting functions was called\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.PP -On success, -\fBsd_bus_error_set()\fR, -\fBsd_bus_error_setf()\fR, -\fBsd_bus_error_set_const()\fR, -\fBsd_bus_error_set_errno()\fR, -\fBsd_bus_error_set_errnof()\fR, -\fBsd_bus_error_set_errnofv()\fR, -\fBsd_bus_error_copy()\fR, and -\fBsd_bus_error_move()\fR -will return a negative converted -\fIerrno\fR\-style value, or -\fB0\fR -if the error parameter is -\fBNULL\fR -or unset\&. D\-Bus errors are converted to the integral -\fIerrno\fR\-style value, and the mapping mechanism is extensible, see the discussion above\&. This effectively means that almost any negative -\fIerrno\fR\-style value can be returned\&. -.SH "EXAMPLES" -.PP -\fBExample\ \&1.\ \&Using the negative return value to propagate an error\fR -.sp -.if n \{\ -.RS 4 -.\} -.nf -/* SPDX\-License\-Identifier: MIT\-0 */ - -#include -#include -#include -#include - -int writer_with_negative_errno_return(int fd, sd_bus_error *error) { - const char *message = "Hello, World!\en"; - - ssize_t n = write(fd, message, strlen(message)); - if (n >= 0) - return n; /* On success, return the number of bytes written, possibly 0\&. */ - - /* On error, initialize the error structure, and also propagate the errno - * value that write(2) set for us\&. */ - return sd_bus_error_set_errnof(error, errno, "Failed to write to fd %i: %m", fd); -} -.fi -.if n \{\ -.RE -.\} -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd-bus-errors\fR(3), -\fBsd_bus_error_add_map\fR(3), -\fBerrno\fR(3), -\fBstrerror_r\fR(3) -.SH "NOTES" -.IP " 1." 4 -Valid Names -.RS 4 -\%https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_error_add_map.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_error_add_map.3 deleted file mode 100644 index e52b7e42..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_error_add_map.3 +++ /dev/null @@ -1,117 +0,0 @@ -'\" t -.TH "SD_BUS_ERROR_ADD_MAP" "3" "" "systemd 254" "sd_bus_error_add_map" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_error_add_map, sd_bus_error_map, SD_BUS_ERROR_MAP, SD_BUS_ERROR_END \- Additional sd\-dbus error mappings -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.sp -.ft B -.nf -typedef struct { - const char *name; - int code; - \&... -} sd_bus_error_map; -.fi -.ft -.sp -.ft B -.nf -\fBSD_BUS_ERROR_MAP(\fR\fB\fIname\fR\fR\fB, \fR\fB\fIcode\fR\fR\fB)\fR -.fi -.ft -.sp -.ft B -.nf -\fBSD_BUS_ERROR_MAP_END\fR -.fi -.ft -.HP \w'int\ sd_bus_error_add_map('u -.BI "int sd_bus_error_add_map(const\ sd_bus_error_map\ *" "map" ");" -.SH "DESCRIPTION" -.PP -The -\fBsd_bus_error_add_map()\fR -call may be used to register additional mappings for converting D\-Bus errors to Linux -\fIerrno\fR\-style errors\&. The mappings defined with this call are consulted by calls such as -\fBsd_bus_error_set\fR(3) -or -\fBsd_bus_error_get_errno\fR(3)\&. By default, a number of generic, standardized mappings are known, as documented in -\fBsd-bus-errors\fR(3)\&. Use this call to add further, application\-specific mappings\&. -.PP -The function takes a pointer to an array of -sd_bus_error_map -structures\&. A reference to the specified array is added to the lookup tables for error mappings\&. Note that the structure is not copied, and that it is hence essential that the array stays available and constant during the entire remaining runtime of the process\&. -.PP -The mapping array should be put together with a series of -\fBSD_BUS_ERROR_MAP()\fR -macro invocations that take a literal name string and a (positive) -\fIerrno\fR\-style error number\&. The last entry of the array should be an invocation of the -\fBSD_BUS_ERROR_MAP_END\fR -macro\&. The array should not be put together without use of these two macros\&. -.PP -Note that the call is idempotent: it is safe to invoke it multiple times with the parameter, which will only add the passed mapping array once\&. -.PP -Note that the memory allocated by this call is not intended to be freed during the lifetime of the process\&. It should not be freed explicitly\&. -.SH "RETURN VALUE" -.PP -\fBsd_bus_error_add_map()\fR -returns a positive value when the new array was added to the lookup tables\&. It returns zero when the same array was already added before\&. On error, a negative -\fIerrno\fR\-style error code is returned\&. See below for known error codes\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The specified mapping array is invalid\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_error\fR(3), -\fBsd-bus-errors\fR(3), -\fBerrno\fR(3), -\fBstrerror_r\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_get_current_handler.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_get_current_handler.3 deleted file mode 100644 index 364578d5..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_get_current_handler.3 +++ /dev/null @@ -1,72 +0,0 @@ -'\" t -.TH "SD_BUS_GET_CURRENT_HANDLER" "3" "" "systemd 254" "sd_bus_get_current_handler" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_get_current_handler, sd_bus_get_current_message, sd_bus_get_current_slot, sd_bus_get_current_userdata \- Query information of the callback a bus object is currently running -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'typedef\ int\ (*sd_bus_message_handler_t)('u -.BI "typedef int (*sd_bus_message_handler_t)(sd_bus_message\ *" "m" ", void\ *" "userdata" ", sd_bus_error\ *" "ret_error" ");" -.HP \w'sd_bus_message_handler_t\ sd_bus_get_current_handler('u -.BI "sd_bus_message_handler_t sd_bus_get_current_handler(sd_bus\ *" "bus" ");" -.HP \w'sd_bus_message*\ sd_bus_get_current_message('u -.BI "sd_bus_message* sd_bus_get_current_message(sd_bus\ *" "bus" ");" -.HP \w'sd_bus_slot*\ sd_bus_get_current_slot('u -.BI "sd_bus_slot* sd_bus_get_current_slot(sd_bus\ *" "bus" ");" -.HP \w'void*\ sd_bus_get_current_userdata('u -.BI "void* sd_bus_get_current_userdata(sd_bus\ *" "bus" ");" -.SH "DESCRIPTION" -.PP -Whenever sd\-bus is about to invoke a user\-supplied callback function, it stores the current callback, D\-Bus message, slot and userdata pointer and allows these to be queried via -\fBsd_bus_get_current_handler()\fR, -\fBsd_bus_get_current_message()\fR, -\fBsd_bus_get_current_slot()\fR -and -\fBsd_bus_get_current_userdata()\fR, respectively\&. If -\fIbus\fR -cannot be resolved or if execution does not reside in a user\-supplied callback of -\fIbus\fR, these functions return -\fBNULL\fR\&. -.SH "RETURN VALUE" -.PP -On success, these functions return the requested object\&. On failure, they return -\fBNULL\fR\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_get_fd.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_get_fd.3 deleted file mode 100644 index a806b4cd..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_get_fd.3 +++ /dev/null @@ -1,152 +0,0 @@ -'\" t -.TH "SD_BUS_GET_FD" "3" "" "systemd 254" "sd_bus_get_fd" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_get_fd, sd_bus_get_events, sd_bus_get_timeout \- Get the file descriptor, I/O events and timeout to wait for from a message bus object -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_get_fd('u -.BI "int sd_bus_get_fd(sd_bus\ *" "bus" ");" -.HP \w'int\ sd_bus_get_events('u -.BI "int sd_bus_get_events(sd_bus\ *" "bus" ");" -.HP \w'int\ sd_bus_get_timeout('u -.BI "int sd_bus_get_timeout(sd_bus\ *" "bus" ", uint64_t\ *" "timeout_usec" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_get_fd()\fR -returns the file descriptor used to communicate from a message bus object\&. This descriptor can be used with -\fBpoll\fR(3) -or a similar function to wait for I/O events on the specified bus connection object\&. If the bus object was configured with the -\fBsd_bus_set_fd()\fR -function, then the -\fIinput_fd\fR -file descriptor used in that call is returned\&. -.PP -\fBsd_bus_get_events()\fR -returns the I/O events to wait for, suitable for passing to -\fBpoll()\fR -or a similar call\&. Returns a combination of -\fBPOLLIN\fR, -\fBPOLLOUT\fR, \&... events, or negative on error\&. -.PP -\fBsd_bus_get_timeout()\fR -returns the -\fIabsolute\fR -time\-out in μs, from which the relative time\-out to pass to -\fBpoll()\fR -(or a similar call) can be derived, when waiting for events on the specified bus connection\&. The returned timeout may be zero, in which case a subsequent I/O polling call should be invoked in non\-blocking mode\&. The returned timeout may be -\fBUINT64_MAX\fR -in which case the I/O polling call may block indefinitely, without any applied timeout\&. Note that the returned timeout should be considered only a maximum sleeping time\&. It is permissible (and even expected) that shorter timeouts are used by the calling program, in case other event sources are polled in the same event loop\&. Note that the returned time\-value is absolute, based of -\fBCLOCK_MONOTONIC\fR -and specified in microseconds\&. When converting this value in order to pass it as third argument to -\fBpoll()\fR -(which expects relative milliseconds), care should be taken to convert to a relative time and use a division that rounds up to ensure the I/O polling operation doesn\*(Aqt sleep for shorter than necessary, which might result in unintended busy looping (alternatively, use -\fBppoll\fR(2) -instead of plain -\fBpoll()\fR, which understands timeouts with nano\-second granularity)\&. -.PP -These three functions are useful to hook up a bus connection object with an external or manual event loop involving -\fBpoll()\fR -or a similar I/O polling call\&. Before each invocation of the I/O polling call, all three functions should be invoked: the file descriptor returned by -\fBsd_bus_get_fd()\fR -should be polled for the events indicated by -\fBsd_bus_get_events()\fR, and the I/O call should block for that up to the timeout returned by -\fBsd_bus_get_timeout()\fR\&. After each I/O polling call the bus connection needs to process incoming or outgoing data, by invoking -\fBsd_bus_process\fR(3)\&. -.PP -Note that these functions are only one of three supported ways to implement I/O event handling for bus connections\&. Alternatively use -\fBsd_bus_attach_event\fR(3) -to attach a bus connection to an -\fBsd-event\fR(3) -event loop\&. Or use -\fBsd_bus_wait\fR(3) -as a simple synchronous, blocking I/O waiting call\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_get_fd()\fR -returns the file descriptor used for communication\&. On failure, it returns a negative errno\-style error code\&. -.PP -On success, -\fBsd_bus_get_events()\fR -returns the I/O event mask to use for I/O event watching\&. On failure, it returns a negative errno\-style error code\&. -.PP -On success, -\fBsd_bus_get_timeout()\fR -returns a non\-negative integer\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -An invalid bus object was passed\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus connection was allocated in a parent process and is being reused in a child process after -\fBfork()\fR\&. -.RE -.PP -\fB\-ENOTCONN\fR -.RS 4 -The bus connection has been terminated\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -Two distinct file descriptors were passed for input and output using -\fBsd_bus_set_fd()\fR, which -\fBsd_bus_get_fd()\fR -cannot return\&. -.RE -.PP -\fB\-ENOPKG\fR -.RS 4 -The bus cannot be resolved\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_process\fR(3), -\fBsd_bus_attach_event\fR(3), -\fBsd_bus_wait\fR(3), -\fBsd_bus_set_fd\fR(3), -\fBpoll\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_get_n_queued_read.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_get_n_queued_read.3 deleted file mode 100644 index 01eac963..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_get_n_queued_read.3 +++ /dev/null @@ -1,69 +0,0 @@ -'\" t -.TH "SD_BUS_GET_N_QUEUED_READ" "3" "" "systemd 254" "sd_bus_get_fd" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_get_n_queued_read, sd_bus_get_n_queued_write \- Get the number of pending bus messages in the read and write queues of a bus connection object -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_get_n_queued_read('u -.BI "int sd_bus_get_n_queued_read(sd_bus\ *" "bus" ", uint64_t\ *" "ret" ");" -.HP \w'int\ sd_bus_get_n_queued_write('u -.BI "int sd_bus_get_n_queued_write(sd_bus\ *" "bus" ", uint64_t\ *" "ret" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_get_n_queued_read()\fR -may be used to query the number of bus messages in the read queue of a bus connection object\&. The read queue contains all messages read from the transport medium (e\&.g\&. network socket) but not yet processed locally\&. The function expects two arguments: the bus object to query, and a pointer to a 64\-bit counter variable to write the current queue size to\&. Use -\fBsd_bus_process()\fR -in order to process queued messages, i\&.e\&. to reduce the size of the read queue (as well as, in fact, the write queue, see below)\&. -.PP -Similarly, -\fBsd_bus_get_n_queued_write()\fR -may be used to query the number of currently pending bus messages in the write queue of a bus connection object\&. The write queue contains all messages enqueued into the connection with a call such as -\fBsd_bus_send()\fR -but not yet written to the transport medium\&. The expected arguments are similar to -\fBsd_bus_get_n_queued_read()\fR\&. Here too, use -\fBsd_bus_process()\fR -to reduce the size of the write queue\&. Alternatively, use -\fBsd_bus_flush()\fR -to synchronously write out any pending bus messages until the write queue is empty\&. -.SH "RETURN VALUE" -.PP -On success, these functions return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ECHILD\fR -.RS 4 -The bus connection was created in a different process, library or module instance\&. -.RE -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_process\fR(3), -\fBsd_bus_send\fR(3), -\fBsd_bus_flush\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_get_name_creds.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_get_name_creds.3 deleted file mode 100644 index b8c4fec4..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_get_name_creds.3 +++ /dev/null @@ -1,106 +0,0 @@ -'\" t -.TH "SD_BUS_GET_NAME_CREDS" "3" "" "systemd 254" "sd_bus_get_name_creds" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_get_name_creds, sd_bus_get_owner_creds \- Query bus client credentials -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_get_name_creds('u -.BI "int sd_bus_get_name_creds(sd_bus\ *" "bus" ", const\ char\ *" "name" ", uint64_t\ " "mask" ", sd_bus_creds\ **" "creds" ");" -.HP \w'int\ sd_bus_get_owner_creds('u -.BI "int sd_bus_get_owner_creds(sd_bus\ *" "bus" ", uint64_t\ " "mask" ", sd_bus_creds\ **" "creds" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_get_name_creds()\fR -queries the credentials of the bus client identified by -\fIname\fR\&. The -\fImask\fR -parameter is a combo of -\fBSD_BUS_CREDS_*\fR -flags that indicate which credential info the caller is interested in\&. See -\fBsd_bus_creds_new_from_pid\fR(3) -for a list of possible flags\&. On success, -\fIcreds\fR -contains a new -sd_bus_creds -instance with the requested information\&. Ownership of this instance belongs to the caller and it should be freed once no longer needed by calling -\fBsd_bus_creds_unref\fR(3)\&. -.PP -\fBsd_bus_get_owner_creds()\fR -queries the credentials of the creator of the given bus\&. The -\fImask\fR -and -\fIcreds\fR -parameters behave the same as in -\fBsd_bus_get_name_creds()\fR\&. -.SH "RETURN VALUE" -.PP -On success, these functions return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -An argument is invalid\&. -.RE -.PP -\fB\-ENOPKG\fR -.RS 4 -The bus cannot be resolved\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -The bus has already been started\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus was created in a different process, library or module instance\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_creds_unref\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_get_name_machine_id.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_get_name_machine_id.3 deleted file mode 100644 index 2b50e9de..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_get_name_machine_id.3 +++ /dev/null @@ -1,86 +0,0 @@ -'\" t -.TH "SD_BUS_GET_NAME_MACHINE_ID" "3" "" "systemd 254" "sd_bus_get_name_machine_id" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_get_name_machine_id \- Retrieve a bus client\*(Aqs machine identity -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_get_name_machine_id('u -.BI "int sd_bus_get_name_machine_id(sd_bus\ *" "bus" ", const\ char\ *" "name" ", sd_id128_t\ *" "machine" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_get_name_machine_id()\fR -retrieves the D\-Bus machine identity of the machine that the bus client identified by -\fIname\fR -is running on\&. Internally, it calls the -\fBGetMachineId\fR -method of the -\fBorg\&.freedesktop\&.DBus\&.Peer\fR -interface\&. The D\-Bus machine identity is a 128\-bit UUID\&. On Linux systems running systemd, this corresponds to the contents of -/etc/machine\-id\&. On success, the machine identity is stored in -\fImachine\fR\&. -.SH "RETURN VALUE" -.PP -On success, this function returns a non\-negative integer\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -An argument is invalid\&. -.RE -.PP -\fB\-ENOPKG\fR -.RS 4 -The bus cannot be resolved\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus was created in a different process, library or module instance\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_interface_name_is_valid.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_interface_name_is_valid.3 deleted file mode 100644 index 7dd327d9..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_interface_name_is_valid.3 +++ /dev/null @@ -1,82 +0,0 @@ -'\" t -.TH "SD_BUS_INTERFACE_NAME_IS_VALID" "3" "" "systemd 254" "sd_bus_interface_name_is_valid" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_interface_name_is_valid, sd_bus_service_name_is_valid, sd_bus_member_name_is_valid, sd_bus_object_path_is_valid \- Check if a string is a valid bus name or object path -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_interface_name_is_valid('u -.BI "int sd_bus_interface_name_is_valid(const\ char*\ " "p" ");" -.HP \w'int\ sd_bus_service_name_is_valid('u -.BI "int sd_bus_service_name_is_valid(const\ char*\ " "p" ");" -.HP \w'int\ sd_bus_member_name_is_valid('u -.BI "int sd_bus_member_name_is_valid(const\ char*\ " "p" ");" -.HP \w'int\ sd_bus_object_path_is_valid('u -.BI "int sd_bus_object_path_is_valid(const\ char*\ " "p" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_interface_name_is_valid()\fR -checks if a given string -\fIp\fR -is a syntactically valid bus interface name\&. Similarly, -\fBsd_bus_service_name_is_valid()\fR -checks if the argument is a valid bus service name, -\fBsd_bus_member_name_is_valid()\fR -checks if the argument is a valid bus interface member name, and -\fBsd_bus_object_path_is_valid()\fR -checks if the argument is a valid bus object path\&. Those functions generally check that only allowed characters are used and that the length of the string is within limits\&. -.SH "RETURN VALUE" -.PP -Those functions return 1 if the argument is a valid interface / service / member name or object path, and 0 if it is not\&. If the argument is -\fBNULL\fR, an error is returned\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The -\fIp\fR -parameter is -\fBNULL\fR\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_call_method\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_is_open.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_is_open.3 deleted file mode 100644 index f5aef09e..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_is_open.3 +++ /dev/null @@ -1,95 +0,0 @@ -'\" t -.TH "SD_BUS_IS_OPEN" "3" "" "systemd 254" "sd_bus_is_open" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_is_open, sd_bus_is_ready \- Check whether the bus connection is open or ready -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_is_open('u -.BI "int sd_bus_is_open(sd_bus\ *" "bus" ");" -.HP \w'int\ sd_bus_is_ready('u -.BI "int sd_bus_is_ready(sd_bus\ *" "bus" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_is_open()\fR -checks whether the specified bus connection is open, i\&.e\&. in the process of being established, already established or in the process of being torn down\&. It returns zero when the connection has not been started yet (i\&.e\&. -\fBsd_bus_start\fR(3) -or some equivalent call has not been invoked yet), or is fully terminated again (for example after -\fBsd_bus_close\fR(3)), it returns positive otherwise\&. -.PP -\fBsd_bus_is_ready()\fR -checks whether the specified connection is fully established, i\&.e\&. completed the connection and authentication phases of the protocol and received the -\fBHello()\fR -method call response, and is not in the process of being torn down again\&. It returns zero outside of this state, and positive otherwise\&. Effectively, this function returns positive while regular messages can be sent or received on the connection\&. -.PP -The -\fIbus\fR -argument may be -\fBNULL\fR, zero is also returned in that case\&. -.PP -To be notified when the connection is fully established, use -\fBsd_bus_set_connected_signal\fR(3) -and install a match for the -\fBConnected()\fR -signal on the -"org\&.freedesktop\&.DBus\&.Local" -interface\&. To be notified when the connection is torn down again, install a match for the -\fBDisconnected()\fR -signal on the -"org\&.freedesktop\&.DBus\&.Local" -interface\&. -.SH "RETURN VALUE" -.PP -Those functions return 0 if the bus is -\fInot\fR -in the given state, and a positive integer when it is\&. On failure, a negative errno\-style error code is returned\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ECHILD\fR -.RS 4 -The bus connection has been created in a different process, library or module instance\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_start\fR(3), -\fBsd_bus_close\fR(3), -\fBsd_bus_set_connected_signal\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_list_names.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_list_names.3 deleted file mode 100644 index 526d6063..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_list_names.3 +++ /dev/null @@ -1,118 +0,0 @@ -'\" t -.TH "SD_BUS_LIST_NAMES" "3" "" "systemd 254" "sd_bus_list_names" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_list_names \- Retrieve information about registered names on a bus -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_list_names('u -.BI "int sd_bus_list_names(sd_bus\ *" "bus" ", char\ ***" "acquired" ", char\ ***" "activatable" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_list_names()\fR -retrieves information about the registered names on a bus\&. If -\fIacquired\fR -is not -\fBNULL\fR, this function calls -\m[blue]\fBorg\&.freedesktop\&.DBus\&.ListNames\fR\m[]\&\s-2\u[1]\d\s+2 -to retrieve the list of currently\-owned names on the bus\&. If -\fIacquired\fR -is not -\fBNULL\fR, the function calls -\m[blue]\fBorg\&.freedesktop\&.DBus\&.ListActivableNames\fR\m[]\&\s-2\u[2]\d\s+2 -to retrieve the list of all names on the bus that can be activated\&. Note that ownership of the arrays returned by -\fBsd_bus_list_names()\fR -in -\fIacquired\fR -and -\fIactivatable\fR -is transferred to the caller and hence, the caller is responsible for freeing these arrays and their contents\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_list_names()\fR -returns a non\-negative integer\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -\fIbus\fR -or both -\fIacquired\fR -and -\fIactivatable\fR -were -\fBNULL\fR\&. -.RE -.PP -\fB\-ENOPKG\fR -.RS 4 -The bus cannot be resolved\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus was created in a different process, library or module instance\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.PP -\fB\-ENOTCONN\fR -.RS 4 -The bus is not connected\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3) -.SH "NOTES" -.IP " 1." 4 -org.freedesktop.DBus.ListNames -.RS 4 -\%https://dbus.freedesktop.org/doc/dbus-specification.html#bus-messages-list-names -.RE -.IP " 2." 4 -org.freedesktop.DBus.ListActivableNames -.RS 4 -\%https://dbus.freedesktop.org/doc/dbus-specification.html#bus-messages-list-activatable-names -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_append.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_append.3 deleted file mode 100644 index 66e5c45c..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_append.3 +++ /dev/null @@ -1,497 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_APPEND" "3" "" "systemd 254" "sd_bus_message_append" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_append, sd_bus_message_appendv \- Attach fields to a D\-Bus message based on a type string -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_append('u -.BI "int sd_bus_message_append(sd_bus_message\ *" "m" ", const\ char\ *" "types" ", \&...);" -.HP \w'int\ sd_bus_message_appendv('u -.BI "int sd_bus_message_appendv(sd_bus_message\ *" "m" ", const\ char\ *" "types" ", va_list\ " "ap" ");" -.SH "DESCRIPTION" -.PP -The -\fBsd_bus_message_append()\fR -function appends a sequence of fields to the D\-Bus message object -\fIm\fR\&. The type string -\fItypes\fR -describes the types of the field arguments that follow\&. For each type specified in the type string, one or more arguments need to be specified, in the same order as declared in the type string\&. -.PP -The type string is composed of the elements shown in the table below\&. It contains zero or more single "complete types"\&. Each complete type may be one of the basic types or a fully described container type\&. A container type may be a structure with the contained types, a variant, an array with its element type, or a dictionary entry with the contained types\&. The type string is -\fBNUL\fR\-terminated\&. -.PP -In case of a basic type, one argument of the corresponding type is expected\&. -.PP -A structure is denoted by a sequence of complete types between -"(" -and -")"\&. This sequence cannot be empty \(em it must contain at least one type\&. Arguments corresponding to this nested sequence follow the same rules as if they were not nested\&. -.PP -A variant is denoted by -"v"\&. Corresponding arguments must begin with a type string denoting a complete type, and following that, arguments corresponding to the specified type\&. -.PP -An array is denoted by -"a" -followed by a complete type\&. Corresponding arguments must begin with the number of entries in the array, followed by the entries themselves, matching the element type of the array\&. -.PP -A dictionary is an array of dictionary entries, denoted by -"a" -followed by a pair of complete types between -"{" -and -"}"\&. The first of those types must be a basic type\&. Corresponding arguments must begin with the number of dictionary entries, followed by a pair of values for each entry matching the element type of the dictionary entries\&. -.PP -\fBsd_bus_message_appendv()\fR -is equivalent to -\fBsd_bus_message_append()\fR, except that it is called with a -"va_list" -instead of a variable number of arguments\&. This function does not call the -\fBva_end()\fR -macro\&. Because it invokes the -\fBva_arg()\fR -macro, the value of -\fIap\fR -is undefined after the call\&. -.PP -For further details on the D\-Bus type system, please consult the -\m[blue]\fBD\-Bus Specification\fR\m[]\&\s-2\u[1]\d\s+2\&. -.sp -.it 1 an-trap -.nr an-no-space-flag 1 -.nr an-break-flag 1 -.br -.B Table\ \&1.\ \&Item type specifiers -.TS -allbox tab(:); -lB lB lB lB lB. -T{ -Specifier -T}:T{ -Constant -T}:T{ -Description -T}:T{ -Size -T}:T{ -Expected C Type -T} -.T& -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l ^ ^ -l l l l l -l l l ^ ^. -T{ -"y" -T}:T{ -\fBSD_BUS_TYPE_BYTE\fR -T}:T{ -unsigned integer -T}:T{ -1 byte -T}:T{ -uint8_t -T} -T{ -"b" -T}:T{ -\fBSD_BUS_TYPE_BOOLEAN\fR -T}:T{ -boolean -T}:T{ -4 bytes -T}:T{ -int -T} -T{ -"n" -T}:T{ -\fBSD_BUS_TYPE_INT16\fR -T}:T{ -signed integer -T}:T{ -2 bytes -T}:T{ -int16_t -T} -T{ -"q" -T}:T{ -\fBSD_BUS_TYPE_UINT16\fR -T}:T{ -unsigned integer -T}:T{ -2 bytes -T}:T{ -uint16_t -T} -T{ -"i" -T}:T{ -\fBSD_BUS_TYPE_INT32\fR -T}:T{ -signed integer -T}:T{ -4 bytes -T}:T{ -int32_t -T} -T{ -"u" -T}:T{ -\fBSD_BUS_TYPE_UINT32\fR -T}:T{ -unsigned integer -T}:T{ -4 bytes -T}:T{ -uint32_t -T} -T{ -"x" -T}:T{ -\fBSD_BUS_TYPE_INT64\fR -T}:T{ -signed integer -T}:T{ -8 bytes -T}:T{ -int64_t -T} -T{ -"t" -T}:T{ -\fBSD_BUS_TYPE_UINT64\fR -T}:T{ -unsigned integer -T}:T{ -8 bytes -T}:T{ -uint64_t -T} -T{ -"d" -T}:T{ -\fBSD_BUS_TYPE_DOUBLE\fR -T}:T{ -floating\-point -T}:T{ -8 bytes -T}:T{ -double -T} -T{ -"s" -T}:T{ -\fBSD_BUS_TYPE_STRING\fR -T}:T{ -Unicode string -T}:T{ -variable -T}:T{ -char[] -T} -T{ -"o" -T}:T{ -\fBSD_BUS_TYPE_OBJECT_PATH\fR -T}:T{ -object path -T}:T{ -variable -T}:T{ -char[] -T} -T{ -"g" -T}:T{ -\fBSD_BUS_TYPE_SIGNATURE\fR -T}:T{ -signature -T}:T{ -variable -T}:T{ -char[] -T} -T{ -"h" -T}:T{ -\fBSD_BUS_TYPE_UNIX_FD\fR -T}:T{ -UNIX file descriptor -T}:T{ -4 bytes -T}:T{ -int -T} -T{ -"a" -T}:T{ -\fBSD_BUS_TYPE_ARRAY\fR -T}:T{ -array -T}:T{ -determined by array type and size -T}:T{ -int, followed by array contents -T} -T{ -"v" -T}:T{ -\fBSD_BUS_TYPE_VARIANT\fR -T}:T{ -variant -T}:T{ -determined by the type argument -T}:T{ -signature string, followed by variant contents -T} -T{ -"(" -T}:T{ -\fBSD_BUS_TYPE_STRUCT_BEGIN\fR -T}:T{ -array start -T}:T{ -determined by the nested types -T}:T{ -structure contents -T} -T{ -")" -T}:T{ -\fBSD_BUS_TYPE_STRUCT_END\fR -T}:T{ -array end -T}:: -T{ -"{" -T}:T{ -\fBSD_BUS_TYPE_DICT_ENTRY_BEGIN\fR -T}:T{ -dictionary entry start -T}:T{ -determined by the nested types -T}:T{ -dictionary contents -T} -T{ -"}" -T}:T{ -\fBSD_BUS_TYPE_DICT_ENTRY_END\fR -T}:T{ -dictionary entry end -T}:: -.TE -.sp 1 -.PP -For types -"s" -and -"g" -(unicode string or signature), the pointer may be -\fBNULL\fR, which is equivalent to an empty string\&. For -"h" -(UNIX file descriptor), the descriptor is duplicated by this call and the passed descriptor stays in possession of the caller\&. See -\fBsd_bus_message_append_basic\fR(3) -for the precise interpretation of those and other types\&. -.SH "TYPES STRING GRAMMAR" -.sp -.if n \{\ -.RS 4 -.\} -.nf -types ::= complete_type* -complete_type ::= basic_type | variant | structure | array | dictionary -basic_type ::= "y" | "n" | "q" | "u" | "i" | "x" | "t" | "d" | - "b" | "h" | - "s" | "o" | "g" -variant ::= "v" -structure ::= "(" complete_type+ ")" -array ::= "a" complete_type -dictionary ::= "a" "{" basic_type complete_type "}" -.fi -.if n \{\ -.RE -.\} -.SH "EXAMPLES" -.PP -Append a single basic type (the string -"a string"): -.sp -.if n \{\ -.RS 4 -.\} -.nf -sd_bus_message *m; -\&... -sd_bus_message_append(m, "s", "a string"); -.fi -.if n \{\ -.RE -.\} -.PP -Append all types of integers: -.sp -.if n \{\ -.RS 4 -.\} -.nf -uint8_t y = 1; -int16_t n = 2; -uint16_t q = 3; -int32_t i = 4; -uint32_t u = 5; -int32_t x = 6; -uint32_t t = 7; -double d = 8\&.0; -sd_bus_message_append(m, "ynqiuxtd", y, n, q, i, u, x, t, d); -.fi -.if n \{\ -.RE -.\} -.PP -Append a structure composed of a string and a D\-Bus path: -.sp -.if n \{\ -.RS 4 -.\} -.nf -sd_bus_message_append(m, "(so)", "a string", "/a/path"); - -.fi -.if n \{\ -.RE -.\} -.PP -Append an array of UNIX file descriptors: -.sp -.if n \{\ -.RS 4 -.\} -.nf -sd_bus_message_append(m, "ah", 3, STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO); - -.fi -.if n \{\ -.RE -.\} -.PP -Append a variant, with the real type "g" (signature), and value "sdbusisgood": -.sp -.if n \{\ -.RS 4 -.\} -.nf -sd_bus_message_append(m, "v", "g", "sdbusisgood"); -.fi -.if n \{\ -.RE -.\} -.PP -Append a dictionary containing the mapping {1=>"a", 2=>"b", 3=>""}: -.sp -.if n \{\ -.RS 4 -.\} -.nf -sd_bus_message_append(m, "a{is}", 3, 1, "a", 2, "b", 3, NULL); - -.fi -.if n \{\ -.RE -.\} -.SH "RETURN VALUE" -.PP -On success, these functions return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -Specified parameter is invalid\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -Message has been sealed\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -Message is in invalid state\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -Message cannot be appended to\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_append_basic\fR(3), -\fBsd_bus_message_append_array\fR(3), -\fBsd_bus_message_open_container\fR(3) -.SH "NOTES" -.IP " 1." 4 -D-Bus Specification -.RS 4 -\%https://dbus.freedesktop.org/doc/dbus-specification.html#type-system -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_append_array.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_append_array.3 deleted file mode 100644 index c10e5c44..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_append_array.3 +++ /dev/null @@ -1,180 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_APPEND_ARRAY" "3" "" "systemd 254" "sd_bus_message_append_array" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_append_array, sd_bus_message_append_array_memfd, sd_bus_message_append_array_iovec, sd_bus_message_append_array_space \- Append an array of fields to a D\-Bus message -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_append_array('u -.BI "int sd_bus_message_append_array(sd_bus_message\ *" "m" ", char\ " "type" ", void\ *" "ptr" ", size_t\ " "size" ");" -.HP \w'int\ sd_bus_message_append_array_memfd('u -.BI "int sd_bus_message_append_array_memfd(sd_bus_message\ *" "m" ", char\ " "type" ", int\ " "memfd" ", uint64_t\ " "offset" ", uint64_t\ " "size" ");" -.HP \w'int\ sd_bus_message_append_array_iovec('u -.BI "int sd_bus_message_append_array_iovec(sd_bus_message\ *" "m" ", char\ " "type" ", const\ struct\ iovec\ *" "iov" ", unsigned\ " "n" ");" -.HP \w'int\ sd_bus_message_append_array_space('u -.BI "int sd_bus_message_append_array_space(sd_bus_message\ *" "m" ", char\ " "type" ", size_t\ " "size" ", void\ **" "ptr" ");" -.SH "DESCRIPTION" -.PP -The -\fBsd_bus_message_append_array()\fR -function appends an array to a D\-Bus message -\fIm\fR\&. A container will be opened, the array contents appended, and the container closed\&. The parameter -\fItype\fR -determines how the pointer -\fIp\fR -is interpreted\&. -\fItype\fR -must be one of the "trivial" types -"y", -"n", -"q", -"i", -"u", -"x", -"t", -"d" -(but not -"b"), as defined by the -\m[blue]\fBBasic Types\fR\m[]\&\s-2\u[1]\d\s+2 -section of the D\-Bus specification, and listed in -\fBsd_bus_message_append_basic\fR(3)\&. Pointer -\fIp\fR -must point to an array of size -\fIsize\fR -bytes containing items of the respective type\&. Size -\fIsize\fR -must be a multiple of the size of the type -\fItype\fR\&. As a special case, -\fIp\fR -may be -\fBNULL\fR, if -\fIsize\fR -is 0\&. The memory pointed to by -\fIp\fR -is copied into the memory area containing the message and stays in possession of the caller\&. The caller may hence freely change the data after this call without affecting the message the array was appended to\&. -.PP -The -\fBsd_bus_message_append_array_memfd()\fR -function appends an array of a trivial type to message -\fIm\fR, similar to -\fBsd_bus_message_append_array()\fR\&. The contents of the memory file descriptor -\fImemfd\fR -starting at the specified offset and of the specified size is used as the contents of the array\&. The offset and size must be a multiple of the size of the type -\fItype\fR\&. However, as a special exception, if the offset is specified as zero and the size specified as UINT64_MAX the full memory file descriptor contents is used\&. The memory file descriptor is sealed by this call if it has not been sealed yet, and cannot be modified after this call\&. See -\fBmemfd_create\fR(2) -for details about memory file descriptors\&. Appending arrays with memory file descriptors enables efficient zero\-copy data transfer, as the memory file descriptor may be passed as\-is to the destination, without copying the memory in it to the destination process\&. Not all protocol transports support passing memory file descriptors between participants, in which case this call will automatically fall back to copying\&. Also, as memory file descriptor passing is inefficient for smaller amounts of data, copying might still be enforced even where memory file descriptor passing is supported\&. -.PP -The -\fBsd_bus_message_append_array_iovec()\fR -function appends an array of a trivial type to the message -\fIm\fR, similar to -\fBsd_bus_message_append_array()\fR\&. Contents of the I/O vector array -\fIiov\fR -are used as the contents of the array\&. The total size of -\fIiov\fR -payload (the sum of -\fIiov_len\fR -fields) must be a multiple of the size of the type -\fItype\fR\&. The -\fIiov\fR -argument must point to -\fIn\fR -I/O vector structures\&. Each structure may have the -iov_base -field set, in which case the memory pointed to will be copied into the message, or unset (set to zero), in which case a block of zeros of length -iov_len -bytes will be inserted\&. The memory pointed at by -\fIiov\fR -may be changed after this call\&. -.PP -The -\fBsd_bus_message_append_array_space()\fR -function appends space for an array of a trivial type to message -\fIm\fR\&. It behaves the same as -\fBsd_bus_message_append_array()\fR, but instead of copying items to the message, it returns a pointer to the destination area to the caller in pointer -\fIp\fR\&. The caller should subsequently write the array contents to this memory\&. Modifications to the memory pointed to should only occur until the next operation on the bus message is invoked\&. Most importantly, the memory should not be altered anymore when another field has been added to the message or the message has been sealed\&. -.SH "RETURN VALUE" -.PP -On success, these calls return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -Specified parameter is invalid\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -Message has been sealed\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -Message is in invalid state\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -Message cannot be appended to\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_append\fR(3), -\fBsd_bus_message_append_basic\fR(3), -\fBmemfd_create\fR(2), -\m[blue]\fBThe D\-Bus specification\fR\m[]\&\s-2\u[2]\d\s+2 -.SH "NOTES" -.IP " 1." 4 -Basic Types -.RS 4 -\%https://dbus.freedesktop.org/doc/dbus-specification.html#basic-types -.RE -.IP " 2." 4 -The D-Bus specification -.RS 4 -\%https://dbus.freedesktop.org/doc/dbus-specification.html -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_append_basic.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_append_basic.3 deleted file mode 100644 index 79a84e9e..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_append_basic.3 +++ /dev/null @@ -1,301 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_APPEND_BASIC" "3" "" "systemd 254" "sd_bus_message_append_basic" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_append_basic \- Attach a single field to a message -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_append_basic('u -.BI "int sd_bus_message_append_basic(sd_bus_message\ *" "m" ", char\ " "type" ", const\ void\ *" "p" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_append_basic()\fR -appends a single field to the message -\fIm\fR\&. The parameter -\fItype\fR -determines how the pointer -\fIp\fR -is interpreted\&. -\fItype\fR -must be one of the basic types as defined by the -\m[blue]\fBBasic Types\fR\m[]\&\s-2\u[1]\d\s+2 -section of the D\-Bus specification, and listed in the table below\&. -.sp -.it 1 an-trap -.nr an-no-space-flag 1 -.nr an-break-flag 1 -.br -.B Table\ \&1.\ \&Item type specifiers -.TS -allbox tab(:); -lB lB lB lB lB. -T{ -Specifier -T}:T{ -Constant -T}:T{ -Description -T}:T{ -Size -T}:T{ -Expected C Type -T} -.T& -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l. -T{ -"y" -T}:T{ -\fBSD_BUS_TYPE_BYTE\fR -T}:T{ -unsigned integer -T}:T{ -1 byte -T}:T{ -uint8_t -T} -T{ -"b" -T}:T{ -\fBSD_BUS_TYPE_BOOLEAN\fR -T}:T{ -boolean -T}:T{ -4 bytes -T}:T{ -int -T} -T{ -"n" -T}:T{ -\fBSD_BUS_TYPE_INT16\fR -T}:T{ -signed integer -T}:T{ -2 bytes -T}:T{ -int16_t -T} -T{ -"q" -T}:T{ -\fBSD_BUS_TYPE_UINT16\fR -T}:T{ -unsigned integer -T}:T{ -2 bytes -T}:T{ -uint16_t -T} -T{ -"i" -T}:T{ -\fBSD_BUS_TYPE_INT32\fR -T}:T{ -signed integer -T}:T{ -4 bytes -T}:T{ -int32_t -T} -T{ -"u" -T}:T{ -\fBSD_BUS_TYPE_UINT32\fR -T}:T{ -unsigned integer -T}:T{ -4 bytes -T}:T{ -uint32_t -T} -T{ -"x" -T}:T{ -\fBSD_BUS_TYPE_INT64\fR -T}:T{ -signed integer -T}:T{ -8 bytes -T}:T{ -int64_t -T} -T{ -"t" -T}:T{ -\fBSD_BUS_TYPE_UINT64\fR -T}:T{ -unsigned integer -T}:T{ -8 bytes -T}:T{ -uint64_t -T} -T{ -"d" -T}:T{ -\fBSD_BUS_TYPE_DOUBLE\fR -T}:T{ -floating\-point -T}:T{ -8 bytes -T}:T{ -double -T} -T{ -"s" -T}:T{ -\fBSD_BUS_TYPE_STRING\fR -T}:T{ -Unicode string -T}:T{ -variable -T}:T{ -char[] -T} -T{ -"o" -T}:T{ -\fBSD_BUS_TYPE_OBJECT_PATH\fR -T}:T{ -object path -T}:T{ -variable -T}:T{ -char[] -T} -T{ -"g" -T}:T{ -\fBSD_BUS_TYPE_SIGNATURE\fR -T}:T{ -signature -T}:T{ -variable -T}:T{ -char[] -T} -T{ -"h" -T}:T{ -\fBSD_BUS_TYPE_UNIX_FD\fR -T}:T{ -UNIX file descriptor -T}:T{ -4 bytes -T}:T{ -int -T} -.TE -.sp 1 -.PP -The value of the parameter is copied into a memory area held by the message object, stays in the possession of the caller and may hence be freely changed after this call without affecting the bus message it has been added to\&. If -\fItype\fR -is -"h" -(UNIX file descriptor), the descriptor is duplicated by this call and the passed descriptor stays in possession of the caller\&. -.PP -For types -"s", -"o", and -"g", the parameter -\fIp\fR -is interpreted as a pointer to a -\fBNUL\fR\-terminated character sequence\&. As a special case, a -\fBNULL\fR -pointer is interpreted as an empty string\&. The string should be valid Unicode string encoded as UTF\-8\&. In case of the two latter types, the additional requirements for a D\-Bus object path or type signature should be satisfied\&. Those requirements should be verified by the recipient of the message\&. -.SH "RETURN VALUE" -.PP -On success, this call returns 0 or a positive integer\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -Specified parameter is invalid\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -Message has been sealed\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -Message is in invalid state\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -Message cannot be appended to\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_read_basic\fR(3), -\fBsd_bus_message_append\fR(3), -\m[blue]\fBThe D\-Bus specification\fR\m[]\&\s-2\u[2]\d\s+2 -.SH "NOTES" -.IP " 1." 4 -Basic Types -.RS 4 -\%https://dbus.freedesktop.org/doc/dbus-specification.html#basic-types -.RE -.IP " 2." 4 -The D-Bus specification -.RS 4 -\%https://dbus.freedesktop.org/doc/dbus-specification.html -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_append_string_memfd.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_append_string_memfd.3 deleted file mode 100644 index 6655f0c6..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_append_string_memfd.3 +++ /dev/null @@ -1,142 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_APPEND_STRING_MEMFD" "3" "" "systemd 254" "sd_bus_message_append_string_memfd" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_append_string_memfd, sd_bus_message_append_string_iovec, sd_bus_message_append_string_space \- Attach a string to a message -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_append_string_memfd('u -.BI "int sd_bus_message_append_string_memfd(sd_bus_message\ *" "m" ", int\ " "memfd" ");" -.HP \w'int\ sd_bus_message_append_string_iovec('u -.BI "int sd_bus_message_append_string_iovec(sd_bus_message\ *" "m" ", const\ struct\ iovec\ *" "iov" ", unsigned\ " "n" ");" -.HP \w'int\ sd_bus_message_append_string_space('u -.BI "int sd_bus_message_append_string_space(sd_bus_message\ *" "m" ", size_t\ " "size" ", char\ **" "s" ");" -.SH "DESCRIPTION" -.PP -The functions -\fBsd_bus_message_append_string_memfd()\fR -and -\fBsd_bus_message_append_string_iovec()\fR -can be used to append a single string (item of type -"s") to message -\fIm\fR\&. -.PP -In case of -\fBsd_bus_message_append_string_memfd()\fR, the contents of -\fImemfd\fR -are the string\&. They must satisfy the same constraints as described for the -"s" -type in -\fBsd_bus_message_append_basic\fR(3)\&. -.PP -In case of -\fBsd_bus_message_append_string_iovec()\fR, the payload of -\fIiov\fR -is the string\&. It must satisfy the same constraints as described for the -"s" -type in -\fBsd_bus_message_append_basic\fR(3)\&. -.PP -The -\fIiov\fR -argument must point to -\fIn\fR -struct iovec -structures\&. Each structure may have the -iov_base -field set, in which case the memory pointed to will be copied into the message, or unset, in which case a block of spaces (ASCII 32) of length -iov_len -will be inserted\&. The memory pointed at by -\fIiov\fR -may be changed after this call\&. -.PP -The -\fBsd_bus_message_append_string_space()\fR -function appends space for a string to message -\fIm\fR\&. It behaves similar to -\fBsd_bus_message_append_basic()\fR -with type -"s", but instead of copying a string into the message, it returns a pointer to the destination area to the caller in pointer -\fIp\fR\&. Space for the string of length -\fIsize\fR -plus the terminating -\fBNUL\fR -is allocated\&. -.SH "RETURN VALUE" -.PP -On success, those calls return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -Specified parameter is invalid\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -Message has been sealed\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -Message is in invalid state\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -Message cannot be appended to\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_append_basic\fR(3), -\m[blue]\fBThe D\-Bus specification\fR\m[]\&\s-2\u[1]\d\s+2 -.SH "NOTES" -.IP " 1." 4 -The D-Bus specification -.RS 4 -\%https://dbus.freedesktop.org/doc/dbus-specification.html -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_append_strv.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_append_strv.3 deleted file mode 100644 index 28537112..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_append_strv.3 +++ /dev/null @@ -1,108 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_APPEND_STRV" "3" "" "systemd 254" "sd_bus_message_append_strv" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_append_strv \- Attach an array of strings to a message -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_append_strv('u -.BI "int sd_bus_message_append_strv(sd_bus_message\ *" "m" ", char\ **" "l" ");" -.SH "DESCRIPTION" -.PP -The -\fBsd_bus_message_append()\fR -function can be used to append an array of strings to message -\fIm\fR\&. The parameter -\fIl\fR -shall point to a -\fBNULL\fR\-terminated array of pointers to -\fBNUL\fR\-terminated strings\&. Each string must satisfy the same constraints as described for the -"s" -type in -\fBsd_bus_message_append_basic\fR(3)\&. -.PP -The memory pointed at by -\fIp\fR -and the contents of the strings themselves are copied into the memory area containing the message and may be changed after this call\&. Note that the signature of -\fIl\fR -parameter is to be treated as -\fBconst char\ \&*const\ \&*\fR, and the contents will not be modified\&. -.SH "RETURN VALUE" -.PP -On success, this call returns 0 or a positive integer\&. On failure, a negative errno\-style error code is returned\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -Specified parameter is invalid\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -Message has been sealed\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -Message is in invalid state\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -Message cannot be appended to\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_append\fR(3), -\fBsd_bus_message_append_array\fR(3), -\m[blue]\fBThe D\-Bus specification\fR\m[]\&\s-2\u[1]\d\s+2 -.SH "NOTES" -.IP " 1." 4 -The D-Bus specification -.RS 4 -\%https://dbus.freedesktop.org/doc/dbus-specification.html -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_at_end.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_at_end.3 deleted file mode 100644 index 50adc95d..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_at_end.3 +++ /dev/null @@ -1,85 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_AT_END" "3" "" "systemd 254" "sd_bus_message_at_end" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_at_end \- Check if a message has been fully read -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_at_end('u -.BI "int sd_bus_message_at_end(sd_bus_message\ *" "m" ", int\ " "complete" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_at_end()\fR -returns whether all data from the currently opened container in -\fIm\fR -or all data from all containers in -\fIm\fR -has been read\&. If -\fIcomplete\fR -is zero, this function returns whether all data from the currently opened container has been read\&. If -\fIcomplete\fR -is non\-zero, this function returns whether all data from all containers in -\fIm\fR -has been read\&. -.SH "RETURN VALUE" -.PP -If all data from all containers or the current container (depending on the value of -\fIcomplete\fR) has been read, -\fBsd_bus_message_at_end()\fR -returns a positive integer\&. If there is still data left to be read, it returns zero\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The -\fIm\fR -parameter is -\fBNULL\fR\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -The message is not sealed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_read\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_copy.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_copy.3 deleted file mode 100644 index 0fec2da1..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_copy.3 +++ /dev/null @@ -1,102 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_COPY" "3" "" "systemd 254" "sd_bus_message_copy" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_copy \- Copy the contents of one message to another -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_copy('u -.BI "int sd_bus_message_copy(sd_bus_message\ *" "m" ", sd_bus_message\ *" "source" ", int\ " "all" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_copy()\fR -copies the contents from message -\fIsource\fR -to -\fIm\fR\&. If -\fIall\fR -is false, a single complete type is copied (basic or container)\&. If -\fIall\fR -is true, the contents are copied until the end of the currently open container or the end of -\fIsource\fR\&. -.SH "RETURN VALUE" -.PP -On success, this call returns true if anything was copied, and false if there was nothing to copy\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -\fIsource\fR -or -\fIm\fR -are -\fBNULL\fR\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -Message -\fIm\fR -has been sealed or -\fIsource\fR -has -\fInot\fR -been sealed\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -Destination message is in invalid state\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -Destination message cannot be appended to\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_append\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_dump.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_dump.3 deleted file mode 100644 index ddc34358..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_dump.3 +++ /dev/null @@ -1,109 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_DUMP" "3" "" "systemd 254" "sd_bus_message_dump" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_dump \- Produce a string representation of a message for debugging purposes -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_dump('u -.BI "int sd_bus_message_dump(sd_bus_message\ *" "m" ", FILE\ *" "f" ", uint64_t\ " "flags" ");" -.PP -\fBSD_BUS_MESSAGE_DUMP_WITH_HEADER\fR, -\fBSD_BUS_MESSAGE_DUMP_SUBTREE_ONLY\fR -.SH "DESCRIPTION" -.PP -The -\fBsd_bus_message_dump()\fR -function writes a textual representation of the message -\fIm\fR -to the stream -\fIf\fR\&. If -\fIf\fR -is -\fBNULL\fR, standard output (\fBstdio\fR) will be used\&. This function is intended to be used for debugging purposes, and the output is neither stable nor designed to be machine readable\&. -.PP -The -\fIflags\fR -parameter may be used to modify the output\&. With -\fBSD_BUS_MESSAGE_DUMP_WITH_HEADER\fR, a header that specifies the message type and flags and some additional metadata is printed\&. When -\fBSD_BUS_MESSAGE_DUMP_SUBTREE_ONLY\fR -is not passed, the contents of the whole message are printed\&. When it -\fIis\fR -passed, only the current container in printed\&. -.PP -Note that this function moves the read pointer of the message\&. It may be necessary to reset the position afterwards, for example with -\fBsd_bus_message_rewind\fR(3)\&. -.SH "EXAMPLES" -.PP -Output for a signal message (with -\fBSD_BUS_MESSAGE_DUMP_WITH_HEADER\fR): -.sp -.if n \{\ -.RS 4 -.\} -.nf ->\& Type=signal Endian=l Flags=1 Version=1 Cookie=22 - Path=/value/a Interface=org\&.freedesktop\&.DBus\&.Properties Member=PropertiesChanged - MESSAGE "sa{sv}as" { - STRING "org\&.freedesktop\&.systemd\&.ValueTest"; - ARRAY "{sv}" { - DICT_ENTRY "sv" { - STRING "Value"; - VARIANT "s" { - STRING "object 0x1e, path /value/a"; - }; - }; - }; - ARRAY "s" { - STRING "Value2"; - STRING "AnExplicitProperty"; - }; - }; - -.fi -.if n \{\ -.RE -.\} -.sp -.SH "RETURN VALUE" -.PP -On success, this function returns 0 or a positive integer\&. On failure, it returns a negative errno\-style error code\&. No error codes are currently defined\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_get_cookie.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_get_cookie.3 deleted file mode 100644 index 5349fbba..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_get_cookie.3 +++ /dev/null @@ -1,78 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_GET_COOKIE" "3" "" "systemd 254" "sd_bus_message_get_cookie" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_get_cookie, sd_bus_message_get_reply_cookie \- Returns the transaction cookie of a message -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_get_cookie('u -.BI "int sd_bus_message_get_cookie(sd_bus_message\ *" "message" ", uint64_t\ *" "cookie" ");" -.HP \w'int\ sd_bus_message_get_reply_cookie('u -.BI "int sd_bus_message_get_reply_cookie(sd_bus_message\ *" "message" ", uint64_t\ *" "cookie" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_get_cookie()\fR -returns the transaction cookie of a message\&. The cookie uniquely identifies a message within each bus peer, but is not globally unique\&. It is assigned when a message is sent\&. -.PP -\fBsd_bus_message_get_reply_cookie()\fR -returns the transaction cookie of the message the specified message is a response to\&. When a reply message is generated for a method call message, its cookie is copied over into this field\&. Note that while every message that is transferred is identified by a cookie, only response messages carry a reply cookie field\&. -.PP -Both functions take a message object as first parameter and a place to store the 64\-bit cookie in\&. -.SH "RETURN VALUE" -.PP -On success, these calls return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.PP -On success, the cookie/reply cookie is returned in the specified 64\-bit unsigned integer variable\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -A specified parameter is invalid\&. -.RE -.PP -\fB\-ENODATA\fR -.RS 4 -No cookie has been assigned to this message\&. This either indicates that the message has not been sent yet and hence has no cookie assigned, or that the message is not a method response message and hence carries a reply cookie field\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_new\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_get_monotonic_usec.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_get_monotonic_usec.3 deleted file mode 100644 index c447f04a..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_get_monotonic_usec.3 +++ /dev/null @@ -1,101 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_GET_MONOTONIC_USEC" "3" "" "systemd 254" "sd_bus_message_get_monotonic_usec" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_get_monotonic_usec, sd_bus_message_get_realtime_usec, sd_bus_message_get_seqnum \- Retrieve the sender timestamps and sequence number of a message -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_get_monotonic_usec('u -.BI "int sd_bus_message_get_monotonic_usec(sd_bus_message\ *" "message" ", uint64_t\ *" "usec" ");" -.HP \w'int\ sd_bus_message_get_realtime_usec('u -.BI "int sd_bus_message_get_realtime_usec(sd_bus_message\ *" "message" ", uint64_t\ *" "usec" ");" -.HP \w'int\ sd_bus_message_get_seqnum('u -.BI "int sd_bus_message_get_seqnum(sd_bus_message\ *" "message" ", uint64_t\ *" "seqnum" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_get_monotonic_usec()\fR -returns the monotonic timestamp of the time the message was sent\&. This value is in microseconds since the -\fBCLOCK_MONOTONIC\fR -epoch, see -\fBclock_gettime\fR(2) -for details\&. -.PP -Similarly, -\fBsd_bus_message_get_realtime_usec()\fR -returns the realtime (wallclock) timestamp of the time the message was sent\&. This value is in microseconds since Jan 1st, 1970, i\&.e\&. in the -\fBCLOCK_REALTIME\fR -clock\&. -.PP -\fBsd_bus_message_get_seqnum()\fR -returns the kernel\-assigned sequence number of the message\&. The kernel assigns a global, monotonically increasing sequence number to all messages transmitted on the local system, at the time the message was sent\&. This sequence number is useful for determining message send order, even across different buses of the local system\&. The sequence number combined with the boot ID of the system (as returned by -\fBsd_id128_get_boot\fR(3)) is a suitable globally unique identifier for bus messages\&. -.PP -Note that the sending order and receiving order of messages might differ, in particular for broadcast messages\&. This means that the sequence number and the timestamps of messages a client reads are not necessarily monotonically increasing\&. -.PP -These timestamps and the sequence number are attached to each message by the kernel and cannot be manipulated by the sender\&. -.PP -Note that these timestamps are only available on some bus transports, and only after support for them has been negotiated with the -\fBsd_bus_negotiate_timestamp\fR(3) -call\&. -.SH "RETURN VALUE" -.PP -On success, these calls return 0 or a positive integer\&. On failure, these calls return a negative errno\-style error code\&. -.PP -On success, the timestamp or sequence number is returned in the specified 64\-bit unsigned integer variable\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -A specified parameter is invalid\&. -.RE -.PP -\fB\-ENODATA\fR -.RS 4 -No timestamp or sequence number information is attached to the passed message\&. This error is returned if the underlying transport does not support timestamping or assigning of sequence numbers, or if this feature has not been negotiated with -\fBsd_bus_negotiate_timestamp\fR(3)\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_new\fR(3), -\fBsd_bus_negotiate_timestamp\fR(3), -\fBclock_gettime\fR(2), -\fBsd_id128_get_boot\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_get_signature.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_get_signature.3 deleted file mode 100644 index 5b01f9fc..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_get_signature.3 +++ /dev/null @@ -1,101 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_GET_SIGNATURE" "3" "" "systemd 254" "sd_bus_message_get_signature" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_get_signature, sd_bus_message_is_empty, sd_bus_message_has_signature \- Query bus message signature -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'const\ char*\ sd_bus_message_get_signature('u -.BI "const char* sd_bus_message_get_signature(sd_bus_message\ *" "message" ", int\ " "complete" ");" -.HP \w'int\ sd_bus_message_is_empty('u -.BI "int sd_bus_message_is_empty(sd_bus_message\ *" "message" ");" -.HP \w'int\ sd_bus_message_has_signature('u -.BI "int sd_bus_message_has_signature(sd_bus_message\ *" "message" ", const\ char\ *" "signature" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_get_signature()\fR -returns the signature of message -\fImessage\fR\&. If -\fIcomplete\fR -is true, the signature of the whole message is returned, and just the signature of the currently open container otherwise\&. -.PP -\fBsd_bus_message_is_empty()\fR -returns true if the message is empty, i\&.e\&. when its signature is empty\&. -.PP -\fBsd_bus_message_has_signature()\fR -returns true if the signature of the message -\fImessage\fR -matches given -\fIsignature\fR\&. Parameter -\fIsignature\fR -may be -\fBNULL\fR, this is treated the same as an empty string, which is equivalent to calling -\fBsd_bus_message_is_empty()\fR\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_message_get_signature()\fR -returns the signature, and -\fBNULL\fR -on error\&. -.PP -The other functions return 0 or a positive integer on success\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The -\fImessage\fR -parameter is -\fBNULL\fR\&. -.RE -.PP -\fBNULL\fR -.RS 4 -The -\fImessage\fR -parameter is -\fBNULL\fR\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_new\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_get_type.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_get_type.3 deleted file mode 100644 index f9726ea3..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_get_type.3 +++ /dev/null @@ -1,142 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_GET_TYPE" "3" "" "systemd 254" "sd_bus_message_get_type" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_get_type, sd_bus_message_get_error, sd_bus_message_get_errno, sd_bus_message_get_creds, sd_bus_message_is_signal, sd_bus_message_is_method_call, sd_bus_message_is_method_error \- Query bus message addressing/credentials metadata -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_get_type('u -.BI "int sd_bus_message_get_type(sd_bus_message\ *" "m" ", uint8_t\ *" "type" ");" -.HP \w'sd_bus_error*\ sd_bus_message_get_error('u -.BI "sd_bus_error* sd_bus_message_get_error(sd_bus_message\ *" "m" ");" -.HP \w'int\ sd_bus_message_get_errno('u -.BI "int sd_bus_message_get_errno(sd_bus_message\ *" "m" ");" -.HP \w'sd_bus_creds*\ sd_bus_message_get_creds('u -.BI "sd_bus_creds* sd_bus_message_get_creds(sd_bus_message\ *" "m" ");" -.HP \w'int\ sd_bus_message_is_signal('u -.BI "int sd_bus_message_is_signal(sd_bus_message\ *" "m" ", const\ char\ *" "interface" ", const\ char\ *" "member" ");" -.HP \w'int\ sd_bus_message_is_method_call('u -.BI "int sd_bus_message_is_method_call(sd_bus_message\ *" "m" ", const\ char\ *" "interface" ", const\ char\ *" "member" ");" -.HP \w'int\ sd_bus_message_is_method_error('u -.BI "int sd_bus_message_is_method_error(sd_bus_message\ *" "m" ", const\ char\ *" "name" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_get_type()\fR -returns the type of a message in the output parameter -\fItype\fR, one of -\fBSD_BUS_MESSAGE_METHOD_CALL\fR, -\fBSD_BUS_MESSAGE_METHOD_RETURN\fR, -\fBSD_BUS_MESSAGE_METHOD_ERROR\fR, -\fBSD_BUS_MESSAGE_SIGNAL\fR\&. This type is either specified as a parameter when the message is created using -\fBsd_bus_message_new\fR(3), or is set automatically when the message is created using -\fBsd_bus_message_new_signal\fR(3), -\fBsd_bus_message_new_method_call\fR(3), -\fBsd_bus_message_new_method_error\fR(3) -and similar functions\&. -.PP -\fBsd_bus_message_get_error()\fR -returns the error stored in the message -\fIm\fR, if there is any\&. Otherwise, it returns -\fBNULL\fR\&. -\fBsd_bus_message_get_errno()\fR -returns the error stored in the message -\fIm\fR -as a positive errno\-style value, if there is any\&. Otherwise, it returns zero\&. Errors are mapped to errno values according to the default and any additional registered error mappings\&. See -\fBsd-bus-errors\fR(3) -and -\fBsd_bus_error_add_map\fR(3)\&. -.PP -\fBsd_bus_message_get_creds()\fR -returns the message credentials attached to the message -\fIm\fR\&. If no credentials are attached to the message, it returns -\fBNULL\fR\&. Ownership of the credentials instance is not transferred to the caller and hence should not be freed\&. -.PP -\fBsd_bus_message_is_signal()\fR -checks if message -\fIm\fR -is a signal message\&. If -\fIinterface\fR -is non\-null, it also checks if the message has the same interface set\&. If -\fImember\fR -is non\-null, it also checks if the message has the same member set\&. Also see -\fBsd_bus_message_new_signal\fR(3)\&. It returns true when all checks pass\&. -.PP -\fBsd_bus_message_is_method_call()\fR -checks if message -\fIm\fR -is a method call message\&. If -\fIinterface\fR -is non\-null, it also checks if the message has the same interface set\&. If -\fImember\fR -is non\-null, it also checks if the message has the same member set\&. Also see -\fBsd_bus_message_new_method_call\fR(3)\&. It returns true when all checks pass\&. -.PP -\fBsd_bus_message_is_method_error()\fR -checks if message -\fIm\fR -is an error reply message\&. If -\fIname\fR -is non\-null, it also checks if the message has the same error identifier set\&. Also see -\fBsd_bus_message_new_method_error\fR(3)\&. It returns true when all checks pass\&. -.SH "RETURN VALUE" -.PP -On success, these functions (except -\fBsd_bus_message_get_error()\fR -and -\fBsd_bus_message_get_creds()\fR) return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -\fBsd_bus_message_get_errno()\fR -always returns a non\-negative integer, even on failure\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The message parameter -\fIm\fR -or an output parameter is -\fBNULL\fR\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_new\fR(3), -\fBsd_bus_message_set_destination\fR(3), -\fBsd-bus-errors\fR(3), -\fBsd_bus_error_add_map\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_new.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_new.3 deleted file mode 100644 index 7fe018b1..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_new.3 +++ /dev/null @@ -1,188 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_NEW" "3" "" "systemd 254" "sd_bus_message_new" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_new, sd_bus_message_ref, sd_bus_message_unref, sd_bus_message_unrefp, SD_BUS_MESSAGE_METHOD_CALL, SD_BUS_MESSAGE_METHOD_RETURN, SD_BUS_MESSAGE_METHOD_ERROR, SD_BUS_MESSAGE_SIGNAL, sd_bus_message_get_bus \- Create a new bus message object and create or destroy references to it -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.sp -.ft B -.nf -enum { - \fBSD_BUS_MESSAGE_METHOD_CALL\fR, - \fBSD_BUS_MESSAGE_METHOD_RETURN\fR, - \fBSD_BUS_MESSAGE_METHOD_ERROR\fR, - \fBSD_BUS_MESSAGE_SIGNAL\fR, -}; -.fi -.ft -.HP \w'int\ sd_bus_message_new('u -.BI "int sd_bus_message_new(sd_bus\ *" "bus" ", sd_bus_message\ **" "m" ", uint8_t\ " "type" ");" -.HP \w'sd_bus_message\ *sd_bus_message_ref('u -.BI "sd_bus_message *sd_bus_message_ref(sd_bus_message\ *" "m" ");" -.HP \w'sd_bus_message\ *sd_bus_message_unref('u -.BI "sd_bus_message *sd_bus_message_unref(sd_bus_message\ *" "m" ");" -.HP \w'void\ sd_bus_message_unrefp('u -.BI "void sd_bus_message_unrefp(sd_bus_message\ **" "mp" ");" -.HP \w'sd_bus\ *sd_bus_message_get_bus('u -.BI "sd_bus *sd_bus_message_get_bus(sd_bus_message\ *" "m" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_new()\fR -creates a new bus message object attached to the bus -\fIbus\fR -and returns it in the output parameter -\fIm\fR\&. This object is reference\-counted, and will be destroyed when all references are gone\&. Initially, the caller of this function owns the sole reference to the message object\&. Note that the message object holds a reference to the bus object, so the bus object will not be destroyed as long as the message exists\&. -.PP -Note: this is a low\-level call\&. In most cases functions like -\fBsd_bus_message_new_method_call\fR(3), -\fBsd_bus_message_new_method_error\fR(3), -\fBsd_bus_message_new_method_return\fR(3), and -\fBsd_bus_message_new_signal\fR(3) -that create a message of a certain type and initialize various fields are easier to use\&. -.PP -The -\fItype\fR -parameter specifies the type of the message\&. It must be one of -\fBSD_BUS_MESSAGE_METHOD_CALL\fR -\(em a method call, -\fBSD_BUS_MESSAGE_METHOD_RETURN\fR -\(em a method call reply, -\fBSD_BUS_MESSAGE_METHOD_ERROR\fR -\(em an error reply to a method call, -\fBSD_BUS_MESSAGE_SIGNAL\fR -\(em a broadcast message with no reply\&. -.PP -The flag to allow interactive authorization is initialized based on the current value set in the bus object, see -\fBsd_bus_set_allow_interactive_authorization\fR(3)\&. This may be changed using -\fBsd_bus_message_set_allow_interactive_authorization\fR(3)\&. -.PP -\fBsd_bus_message_ref()\fR -increases the internal reference counter of -\fIm\fR -by one\&. -.PP -\fBsd_bus_message_unref()\fR -decreases the internal reference counter of -\fIm\fR -by one\&. Once the reference count has dropped to zero, message object is destroyed and cannot be used anymore, so further calls to -\fBsd_bus_message_ref()\fR -or -\fBsd_bus_message_unref()\fR -are illegal\&. -.PP -\fBsd_bus_message_unrefp()\fR -is similar to -\fBsd_bus_message_unref()\fR -but takes a pointer to a pointer to an -\fBsd_bus_message\fR -object\&. This call is useful in conjunction with GCC\*(Aqs and LLVM\*(Aqs -\m[blue]\fBClean\-up Variable Attribute\fR\m[]\&\s-2\u[1]\d\s+2\&. See -\fBsd_bus_new\fR(3) -for an example how to use the cleanup attribute\&. -.PP -\fBsd_bus_message_ref()\fR -and -\fBsd_bus_message_unref()\fR -execute no operation if the passed in bus message object address is -\fBNULL\fR\&. -\fBsd_bus_message_unrefp()\fR -will first dereference its argument, which must not be -\fBNULL\fR, and will execute no operation if -\fIthat\fR -is -\fBNULL\fR\&. -.PP -\fBsd_bus_message_get_bus()\fR -returns the bus object that message -\fIm\fR -is attached to\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_message_new()\fR -returns 0 or a positive integer\&. On failure, it returns a negative errno\-style error code\&. -.PP -\fBsd_bus_message_ref()\fR -always returns the argument\&. -.PP -\fBsd_bus_message_unref()\fR -always returns -\fBNULL\fR\&. -.PP -\fBsd_bus_message_get_bus()\fR -always returns the bus object\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -Specified -\fItype\fR -is invalid\&. -.RE -.PP -\fB\-ENOTCONN\fR -.RS 4 -The bus parameter -\fIbus\fR -is -\fBNULL\fR -or the bus is not connected\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_new\fR(3), -\fBsd_bus_message_new_method_call\fR(3), -\fBsd_bus_message_new_method_error\fR(3), -\fBsd_bus_message_new_method_return\fR(3), -\fBsd_bus_message_new_signal\fR(3) -.SH "NOTES" -.IP " 1." 4 -Clean-up Variable Attribute -.RS 4 -\%https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_new_method_call.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_new_method_call.3 deleted file mode 100644 index 0b1b3f1c..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_new_method_call.3 +++ /dev/null @@ -1,236 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_NEW_METHOD_CALL" "3" "" "systemd 254" "sd_bus_message_new_method_call" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_new_method_call, sd_bus_message_new_method_return \- Create a method call message -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_new_method_call('u -.BI "int sd_bus_message_new_method_call(sd_bus\ *" "bus" ", sd_bus_message\ **" "m" ", const\ char\ *" "destination" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "member" ");" -.HP \w'int\ sd_bus_message_new_method_return('u -.BI "int sd_bus_message_new_method_return(sd_bus_message\ *" "call" ", sd_bus_message\ **" "m" ");" -.SH "DESCRIPTION" -.PP -The -\fBsd_bus_message_new_method_call()\fR -function creates a new bus message object that encapsulates a D\-Bus method call, and returns it in the -\fIm\fR -output parameter\&. The call will be made on the destination -\fIdestination\fR, path -\fIpath\fR, on the interface -\fIinterface\fR, member -\fImember\fR\&. -.PP -Briefly, the -\fIdestination\fR -is a dot\-separated name that identifies a service connected to the bus\&. The -\fIpath\fR -is a slash\-separated identifier of an object within the destination that resembles a file system path\&. The meaning of this path is defined by the destination\&. The -\fIinterface\fR -is a dot\-separated name that resembles a Java interface name that identifies a group of methods and signals supported by the object identified by path\&. Methods and signals are collectively called -\fImembers\fR -and are identified by a simple name composed of ASCII letters, numbers, and underscores\&. See the -\m[blue]\fBD\-Bus Tutorial\fR\m[]\&\s-2\u[1]\d\s+2 -for an in\-depth explanation\&. -.PP -The -\fIdestination\fR -parameter may be -\fBNULL\fR\&. The -\fIinterface\fR -parameter may be -\fBNULL\fR, if the destination has only a single member with the given name and there is no ambiguity if the interface name is omitted\&. -.PP -Note that this is a low level interface\&. See -\fBsd_bus_call_method\fR(3) -for a more convenient way of calling D\-Bus methods\&. -.PP -The -\fBsd_bus_message_new_method_return()\fR -function creates a new bus message object that is a reply to the method call -\fIcall\fR -and returns it in the -\fIm\fR -output parameter\&. The -\fIcall\fR -parameter must be a method call message\&. The sender of -\fIcall\fR -is used as the destination\&. -.SH "RETURN VALUE" -.PP -On success, these functions return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The output parameter -\fIm\fR -is -\fBNULL\fR\&. -.sp -The -\fIdestination\fR -parameter is non\-null and is not a valid D\-Bus service name ("org\&.somewhere\&.Something"), the -\fIpath\fR -parameter is not a valid D\-Bus path ("/an/object/path"), the -\fIinterface\fR -parameter is non\-null and is not a valid D\-Bus interface name ("an\&.interface\&.name"), or the -\fImember\fR -parameter is not a valid D\-Bus member ("Name")\&. -.sp -The -\fIcall\fR -parameter is not a method call object\&. -.RE -.PP -\fB\-ENOTCONN\fR -.RS 4 -The bus parameter -\fIbus\fR -is -\fBNULL\fR -or the bus is not connected\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -The -\fIcall\fR -parameter is not sealed\&. -.RE -.PP -\fB\-EOPNOTSUPP\fR -.RS 4 -The -\fIcall\fR -message does not have a cookie\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "EXAMPLES" -.PP -\fBExample\ \&1.\ \&Make a call to a D\-Bus method that takes a single parameter\fR -.sp -.if n \{\ -.RS 4 -.\} -.nf -/* SPDX\-License\-Identifier: MIT\-0 */ - -/* This is equivalent to: - * busctl call org\&.freedesktop\&.systemd1 /org/freedesktop/systemd1 \e - * org\&.freedesktop\&.systemd1\&.Manager GetUnitByPID $$ - * - * Compile with \*(Aqcc print\-unit\-path\&.c \-lsystemd\*(Aq - */ - -#include -#include -#include -#include - -#include - -#define _cleanup_(f) __attribute__((cleanup(f))) -#define DESTINATION "org\&.freedesktop\&.systemd1" -#define PATH "/org/freedesktop/systemd1" -#define INTERFACE "org\&.freedesktop\&.systemd1\&.Manager" -#define MEMBER "GetUnitByPID" - -static int log_error(int error, const char *message) { - errno = \-error; - fprintf(stderr, "%s: %m\en", message); - return error; -} - -int main(int argc, char **argv) { - _cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL; - _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL; - _cleanup_(sd_bus_message_unrefp) sd_bus_message *reply = NULL, *m = NULL; - int r; - - r = sd_bus_open_system(&bus); - if (r < 0) - return log_error(r, "Failed to acquire bus"); - - r = sd_bus_message_new_method_call(bus, &m, - DESTINATION, PATH, INTERFACE, MEMBER); - if (r < 0) - return log_error(r, "Failed to create bus message"); - - r = sd_bus_message_append(m, "u", (unsigned) getpid()); - if (r < 0) - return log_error(r, "Failed to append to bus message"); - - r = sd_bus_call(bus, m, \-1, &error, &reply); - if (r < 0) - return log_error(r, MEMBER " call failed"); - - const char *ans; - r = sd_bus_message_read(reply, "o", &ans); - if (r < 0) - return log_error(r, "Failed to read reply"); - - printf("Unit path is \e"%s\e"\&.\en", ans); - - return 0; -} -.fi -.if n \{\ -.RE -.\} -.PP -This defines a minimally useful program that will open a connection to the bus, create a message object, send it, wait for the reply, and finally extract and print the answer\&. It does error handling and proper memory management\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_call\fR(3), -\fBsd_bus_call_method\fR(3), -\fBsd_bus_path_encode\fR(3) -.SH "NOTES" -.IP " 1." 4 -D-Bus Tutorial -.RS 4 -\%https://dbus.freedesktop.org/doc/dbus-tutorial.html#concepts -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_new_method_error.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_new_method_error.3 deleted file mode 100644 index 48ac7fff..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_new_method_error.3 +++ /dev/null @@ -1,178 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_NEW_METHOD_ERROR" "3" "" "systemd 254" "sd_bus_message_new_method_error" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_new_method_error, sd_bus_message_new_method_errorf, sd_bus_message_new_method_errno, sd_bus_message_new_method_errnof \- Create an error reply for a method call -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_new_method_error('u -.BI "int sd_bus_message_new_method_error(sd_bus_message\ *" "call" ", sd_bus_message\ **" "m" ", const\ sd_bus_error\ *" "e" ");" -.HP \w'int\ sd_bus_message_new_method_errorf('u -.BI "int sd_bus_message_new_method_errorf(sd_bus_message\ *" "call" ", sd_bus_message\ **" "m" ", const\ char\ *" "name" ", const\ char\ *" "format" ", \&...);" -.HP \w'int\ sd_bus_message_new_method_errno('u -.BI "int sd_bus_message_new_method_errno(sd_bus_message\ *" "call" ", sd_bus_message\ **" "m" ", int\ " "error" ", const\ sd_bus_error\ *" "p" ");" -.HP \w'int\ sd_bus_message_new_method_errnof('u -.BI "int sd_bus_message_new_method_errnof(sd_bus_message\ *" "call" ", sd_bus_message\ **" "m" ", int\ " "error" ", const\ char\ *" "format" ", \&...);" -.SH "DESCRIPTION" -.PP -The -\fBsd_bus_message_new_method_error()\fR -function creates a new bus message object that is an error reply to the -\fIcall\fR -message, and returns it in the -\fIm\fR -output parameter\&. The error information from error -\fIe\fR -is appended: the -\fIname\fR -field of -\fIe\fR -is used as the error identifier in the reply header (for example an error name such as -"org\&.freedesktop\&.DBus\&.Error\&.NotSupported" -or the equivalent symbolic -\fBSD_BUS_ERROR_NOT_SUPPORTED\fR), and the -\fImessage\fR -field is set as the human readable error message string if present\&. The error -\fIe\fR -must have the -\fIname\fR -field set, see -\fBsd_bus_error_is_set\fR(3)\&. -.PP -The -\fBsd_bus_message_new_method_errorf()\fR -function creates an error reply similarly to -\fBsd_bus_message_new_method_error()\fR, but instead of a ready error structure, it takes an error identifier string -\fIname\fR, plus a -\fBprintf\fR(3) -format string -\fIformat\fR -and corresponding arguments\&. An error reply is sent with the error identifier -\fIname\fR -and the formatted string as the message\&. -\fIname\fR -and -\fIformat\fR -must not be -\fBNULL\fR\&. -.PP -The -\fBsd_bus_message_new_method_errno()\fR -function creates an error reply similarly to -\fBsd_bus_message_new_method_error()\fR, but in addition to the error structure -\fIp\fR, it takes an -\fBerrno\fR(3) -error value in parameter -\fIerror\fR\&. If the error -\fIp\fR -is set (see -\fBsd_bus_error_is_set\fR(3)), it is used in the reply\&. Otherwise, -\fIerror\fR -is translated to an error identifier and used to create a new error structure using -\fBsd_bus_error_set_errno\fR(3) -and that is used in the reply\&. (If -\fIerror\fR -is zero, no error is actually set, and an error reply with no information is created\&.) -.PP -The -\fBsd_bus_message_new_method_errnof()\fR -function creates an error reply similarly to -\fBsd_bus_message_new_method_error()\fR\&. It takes an -\fBerrno\fR(3) -error value in parameter -\fIerror\fR, plus a -\fBprintf\fR(3) -format string -\fIformat\fR -and corresponding arguments\&. -"%m" -may be used in the format string to refer to the error string corresponding to the specified errno code\&. The error message is initialized using the error identifier generated from -\fBerror\fR -and the formatted string\&. (If -\fIerror\fR -is zero, no error is actually set, and an error reply with no information is created\&.) -.SH "RETURN VALUE" -.PP -These functions return 0 if the error reply was successfully created, and a negative errno\-style error code otherwise\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The call message -\fIcall\fR -or the output parameter -\fIm\fR -are -\fBNULL\fR\&. -.sp -Message -\fIcall\fR -is not a method call message\&. -.sp -The error -\fIe\fR -parameter to -\fBsd_bus_message_new_method_error()\fR -is not set, see -\fBsd_bus_error_is_set\fR(3)\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -Message -\fIcall\fR -has been sealed\&. -.RE -.PP -\fB\-ENOTCONN\fR -.RS 4 -The bus to which message -\fIcall\fR -is attached is not connected\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_new_signal.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_new_signal.3 deleted file mode 100644 index 3761cdca..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_new_signal.3 +++ /dev/null @@ -1,144 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_NEW_SIGNAL" "3" "" "systemd 254" "sd_bus_message_new_signal" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_new_signal, sd_bus_message_new_signal_to \- Create a signal message -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_new_signal('u -.BI "int sd_bus_message_new_signal(sd_bus\ *" "bus" ", sd_bus_message\ **" "m" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "member" ");" -.HP \w'int\ sd_bus_message_new_signal_to('u -.BI "int sd_bus_message_new_signal_to(sd_bus\ *" "bus" ", sd_bus_message\ **" "m" ", const\ char\ *" "destination" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "member" ");" -.SH "DESCRIPTION" -.PP -The -\fBsd_bus_message_new_signal()\fR -function creates a new bus message object that encapsulates a D\-Bus signal, and returns it in the -\fIm\fR -output parameter\&. The signal will be sent to path -\fIpath\fR, on the interface -\fIinterface\fR, member -\fImember\fR\&. When this message is sent, no reply is expected\&. See -\fBsd_bus_message_new_method_call\fR(1) -for a short description of the meaning of the -\fIpath\fR, -\fIinterface\fR, and -\fImember\fR -parameters\&. -.PP -\fBsd_bus_message_new_signal_to()\fR -is a shorthand for creating a new bus message to a specific destination\&. It\*(Aqs behavior is similar to calling -\fBsd_bus_message_new_signal()\fR -followed by calling -\fBsd_bus_message_set_destination\fR(3)\&. -.SH "RETURN VALUE" -.PP -This function returns 0 if the message object was successfully created, and a negative errno\-style error code otherwise\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The output parameter -\fIm\fR -is -\fBNULL\fR\&. -.sp -The -\fIpath\fR -parameter is not a valid D\-Bus path ("/an/object/path"), the -\fIinterface\fR -parameter is not a valid D\-Bus interface name ("an\&.interface\&.name"), or the -\fImember\fR -parameter is not a valid D\-Bus member ("Name")\&. -.RE -.PP -\fB\-ENOTCONN\fR -.RS 4 -The bus parameter -\fIbus\fR -is -\fBNULL\fR -or the bus is not connected\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "EXAMPLES" -.PP -\fBExample\ \&1.\ \&Send a simple signal\fR -.sp -.if n \{\ -.RS 4 -.\} -.nf -/* SPDX\-License\-Identifier: MIT\-0 */ - -#include -#define _cleanup_(f) __attribute__((cleanup(f))) - -int send_unit_files_changed(sd_bus *bus) { - _cleanup_(sd_bus_message_unrefp) sd_bus_message *message = NULL; - int r; - - r = sd_bus_message_new_signal(bus, &message, - "/org/freedesktop/systemd1", - "org\&.freedesktop\&.systemd1\&.Manager", - "UnitFilesChanged"); - if (r < 0) - return r; - - return sd_bus_send(bus, message, NULL); -} -.fi -.if n \{\ -.RE -.\} -.PP -This function in systemd sources is used to emit the -"UnitFilesChanged" -signal when the unit files have been changed\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_emit_signal\fR(3) -\fBsd_bus_message_set_destination\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_open_container.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_open_container.3 deleted file mode 100644 index 6a7bae26..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_open_container.3 +++ /dev/null @@ -1,262 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_OPEN_CONTAINER" "3" "" "systemd 254" "sd_bus_message_open_container" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_open_container, sd_bus_message_close_container, sd_bus_message_enter_container, sd_bus_message_exit_container \- Create and move between containers in D\-Bus messages -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_open_container('u -.BI "int sd_bus_message_open_container(sd_bus_message\ *" "m" ", char\ " "type" ", const\ char\ *" "contents" ");" -.HP \w'int\ sd_bus_message_close_container('u -.BI "int sd_bus_message_close_container(sd_bus_message\ *" "m" ");" -.HP \w'int\ sd_bus_message_enter_container('u -.BI "int sd_bus_message_enter_container(sd_bus_message\ *" "m" ", char\ " "type" ", const\ char\ *" "contents" ");" -.HP \w'int\ sd_bus_message_exit_container('u -.BI "int sd_bus_message_exit_container(sd_bus_message\ *" "m" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_open_container()\fR -appends a new container to the message -\fIm\fR\&. After opening a new container, it can be filled with content using -\fBsd_bus_message_append\fR(3) -and similar functions\&. Containers behave like a stack\&. To nest containers inside each other, call -\fBsd_bus_message_open_container()\fR -multiple times without calling -\fBsd_bus_message_close_container()\fR -in between\&. Each container will be nested inside the previous container\&. -\fItype\fR -represents the container type and should be one of -"r", -"a", -"v" -or -"e" -as described in -\fBsd_bus_message_append\fR(3)\&. Instead of literals, the corresponding constants -\fBSD_BUS_TYPE_STRUCT\fR, -\fBSD_BUS_TYPE_ARRAY\fR, -\fBSD_BUS_TYPE_VARIANT\fR -or -\fBSD_BUS_TYPE_DICT_ENTRY\fR -can also be used\&. -\fIcontents\fR -describes the type of the container\*(Aqs elements and should be a D\-Bus type string following the rules described in -\fBsd_bus_message_append\fR(3)\&. -.PP -\fBsd_bus_message_close_container()\fR -closes the last container opened with -\fBsd_bus_message_open_container()\fR\&. On success, the write pointer of the message -\fIm\fR -is positioned after the closed container in its parent container or in -\fIm\fR -itself if there is no parent container\&. -.PP -\fBsd_bus_message_enter_container()\fR -enters the next container of the message -\fIm\fR -for reading\&. It behaves mostly the same as -\fBsd_bus_message_open_container()\fR\&. Entering a container allows reading its contents with -\fBsd_bus_message_read\fR(3) -and similar functions\&. -\fItype\fR -and -\fIcontents\fR -are the same as in -\fBsd_bus_message_open_container()\fR\&. -.PP -\fBsd_bus_message_exit_container()\fR -exits the scope of the last container entered with -\fBsd_bus_message_enter_container()\fR\&. It behaves mostly the same as -\fBsd_bus_message_close_container()\fR\&. Note that -\fBsd_bus_message_exit_container()\fR -may only be called after iterating through all members of the container, i\&.e\&. reading or skipping over them\&. Use -\fBsd_bus_message_skip\fR(3) -to skip over fields of a container in order to be able to exit the container with -\fBsd_bus_message_exit_container()\fR -without reading all members\&. -.SH "RETURN VALUE" -.PP -On success, these functions return a non\-negative integer\&. -\fBsd_bus_message_open_container()\fR -and -\fBsd_bus_message_close_container()\fR -return 0\&. -\fBsd_bus_message_enter_container()\fR -returns 1 if it successfully opened a new container, and 0 if that was not possible because the end of the currently open container or message was reached\&. -\fBsd_bus_message_exit_container()\fR -returns 1 on success\&. On failure, all of these functions return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -\fIm\fR -or -\fIcontents\fR -are -\fBNULL\fR -or -\fItype\fR -is invalid\&. -.RE -.PP -\fB\-EBADMSG\fR -.RS 4 -Message -\fIm\fR -has invalid structure\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -Message -\fIm\fR -does not have a container of type -\fItype\fR -at the current position, or the contents do not match -\fIcontents\fR\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -The message -\fIm\fR -is already sealed\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -The message -\fIm\fR -is in an invalid state\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.PP -\fB\-EBUSY\fR -.RS 4 -\fBsd_bus_message_exit_container()\fR -was called but there are unread members left in the container\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "EXAMPLES" -.PP -\fBExample\ \&1.\ \&Append an array of strings to a message\fR -.sp -.if n \{\ -.RS 4 -.\} -.nf -/* SPDX\-License\-Identifier: MIT\-0 */ - -#include - -int append_strings_to_message(sd_bus_message *m, const char *const *arr) { - int r; - - r = sd_bus_message_open_container(m, \*(Aqa\*(Aq, "s"); - if (r < 0) - return r; - - for (const char *s = *arr; *s; s++) { - r = sd_bus_message_append(m, "s", s); - if (r < 0) - return r; - } - - return sd_bus_message_close_container(m); -} -.fi -.if n \{\ -.RE -.\} -.PP -\fBExample\ \&2.\ \&Read an array of strings from a message\fR -.sp -.if n \{\ -.RS 4 -.\} -.nf -/* SPDX\-License\-Identifier: MIT\-0 */ - -#include - -#include - -int read_strings_from_message(sd_bus_message *m) { - int r; - - r = sd_bus_message_enter_container(m, \*(Aqa\*(Aq, "s"); - if (r < 0) - return r; - - for (;;) { - const char *s; - - r = sd_bus_message_read(m, "s", &s); - if (r < 0) - return r; - if (r == 0) - break; - - printf("%s\en", s); - } - - return sd_bus_message_exit_container(m); -} -.fi -.if n \{\ -.RE -.\} -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_append\fR(3), -\fBsd_bus_message_read\fR(3), -\fBsd_bus_message_skip\fR(3), -\m[blue]\fBThe D\-Bus specification\fR\m[]\&\s-2\u[1]\d\s+2 -.SH "NOTES" -.IP " 1." 4 -The D-Bus specification -.RS 4 -\%https://dbus.freedesktop.org/doc/dbus-specification.html -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_read.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_read.3 deleted file mode 100644 index 116d80d2..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_read.3 +++ /dev/null @@ -1,500 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_READ" "3" "" "systemd 254" "sd_bus_message_read" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_read, sd_bus_message_readv, sd_bus_message_peek_type \- Read a sequence of values from a message -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_read('u -.BI "int sd_bus_message_read(sd_bus_message\ *" "m" ", const\ char\ *" "types" ", \&.\&.\&.);" -.HP \w'int\ sd_bus_message_readv('u -.BI "int sd_bus_message_readv(sd_bus_message\ *" "m" ", const\ char\ *" "types" ", va_list\ " "ap" ");" -.HP \w'int\ sd_bus_message_peek_type('u -.BI "int sd_bus_message_peek_type(sd_bus_message\ *" "m" ", char\ *" "type" ", const\ char\ **" "contents" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_read()\fR -reads a sequence of fields from the D\-Bus message object -\fIm\fR -and advances the read position in the message\&. The type string -\fItypes\fR -describes the types of items expected in the message and the field arguments that follow\&. The type string may be -\fBNULL\fR -or empty, in which case nothing is read\&. -.PP -The type string is composed of the elements described in -\fBsd_bus_message_append\fR(3), i\&.e\&. basic and container types\&. It must contain zero or more single "complete types"\&. The type string is -\fBNUL\fR\-terminated\&. -.PP -For each type specified in the type string, one or more arguments need to be specified after the -\fItypes\fR -parameter, in the same order\&. The arguments must be pointers to appropriate types (a pointer to -\fBint8_t\fR -for a -"y" -in the type string, a pointer to -\fBint32_t\fR -for an -"i", a pointer to -\fBconst char*\fR -for an -"s", \&.\&.\&.) which are set based on the values in the message\&. As an exception, in case of array and variant types, the first argument is an "input" argument that further specifies how the message should be read\&. See the table below for a complete list of allowed arguments and their types\&. Note that, if the basic type is a pointer (e\&.g\&., -\fBconst char *\fR -in the case of a string), the argument is a pointer to a pointer, and also the pointer value that is written is only borrowed and the contents must be copied if they are to be used after the end of the message\*(Aqs lifetime\&. If the type is -"h" -(UNIX file descriptor), the descriptor is not duplicated by this call and the returned descriptor remains in possession of the message object, and needs to be duplicated by the caller in order to keep an open reference to it after the message object is freed\&. -.PP -Each argument may also be -\fBNULL\fR, in which case the value is read and ignored\&. -.sp -.it 1 an-trap -.nr an-no-space-flag 1 -.nr an-break-flag 1 -.br -.B Table\ \&1.\ \&Item type specifiers -.TS -allbox tab(:); -lB lB lB lB lB. -T{ -Specifier -T}:T{ -Constant -T}:T{ -Description -T}:T{ -Type of the first argument -T}:T{ -Types of the subsequent arguments, if any -T} -.T& -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l l -l l l l s -l l l ^ ^ -l l l l l -l l l ^ ^. -T{ -"y" -T}:T{ -\fBSD_BUS_TYPE_BYTE\fR -T}:T{ -8\-bit unsigned integer -T}:T{ -\fBuint8_t *\fR -T}:T{ -\ \& -T} -T{ -"b" -T}:T{ -\fBSD_BUS_TYPE_BOOLEAN\fR -T}:T{ -boolean -T}:T{ -\fBint *\fR (NB: not \fBbool *\fR) -T}:T{ -\ \& -T} -T{ -"n" -T}:T{ -\fBSD_BUS_TYPE_INT16\fR -T}:T{ -16\-bit signed integer -T}:T{ -\fBint16_t *\fR -T}:T{ -\ \& -T} -T{ -"q" -T}:T{ -\fBSD_BUS_TYPE_UINT16\fR -T}:T{ -16\-bit unsigned integer -T}:T{ -\fBuint16_t *\fR -T}:T{ -\ \& -T} -T{ -"i" -T}:T{ -\fBSD_BUS_TYPE_INT32\fR -T}:T{ -32\-bit signed integer -T}:T{ -\fBint32_t *\fR -T}:T{ -\ \& -T} -T{ -"u" -T}:T{ -\fBSD_BUS_TYPE_UINT32\fR -T}:T{ -32\-bit unsigned integer -T}:T{ -\fBuint32_t *\fR -T}:T{ -\ \& -T} -T{ -"x" -T}:T{ -\fBSD_BUS_TYPE_INT64\fR -T}:T{ -64\-bit signed integer -T}:T{ -\fBint64_t *\fR -T}:T{ -\ \& -T} -T{ -"t" -T}:T{ -\fBSD_BUS_TYPE_UINT64\fR -T}:T{ -64\-bit unsigned integer -T}:T{ -\fBuint64_t *\fR -T}:T{ -\ \& -T} -T{ -"d" -T}:T{ -\fBSD_BUS_TYPE_DOUBLE\fR -T}:T{ -IEEE 754 double precision floating\-point -T}:T{ -\fBdouble *\fR -T}:T{ -\ \& -T} -T{ -"s" -T}:T{ -\fBSD_BUS_TYPE_STRING\fR -T}:T{ -UTF\-8 string -T}:T{ -\fBconst char **\fR -T}:T{ -\ \& -T} -T{ -"o" -T}:T{ -\fBSD_BUS_TYPE_OBJECT_PATH\fR -T}:T{ -D\-Bus object path string -T}:T{ -\fBconst char **\fR -T}:T{ -\ \& -T} -T{ -"g" -T}:T{ -\fBSD_BUS_TYPE_SIGNATURE\fR -T}:T{ -D\-Bus signature string -T}:T{ -\fBconst char **\fR -T}:T{ -\ \& -T} -T{ -"h" -T}:T{ -\fBSD_BUS_TYPE_UNIX_FD\fR -T}:T{ -UNIX file descriptor -T}:T{ -\fBint *\fR -T}:T{ -\ \& -T} -T{ -"a" -T}:T{ -\fBSD_BUS_TYPE_ARRAY\fR -T}:T{ -array -T}:T{ -\fBint\fR, which specifies the expected length \fIn\fR of the array -T}:T{ -\fIn\fR sets of arguments appropriate for the array element type -T} -T{ -"v" -T}:T{ -\fBSD_BUS_TYPE_VARIANT\fR -T}:T{ -variant -T}:T{ -signature string -T}:T{ -arguments appropriate for the types specified by the signature -T} -T{ -"(" -T}:T{ -\fBSD_BUS_TYPE_STRUCT_BEGIN\fR -T}:T{ -array start -T}:T{ -arguments appropriate for the structure elements -T} -T{ -")" -T}:T{ -\fBSD_BUS_TYPE_STRUCT_END\fR -T}:T{ -array end -T}:: -T{ -"{" -T}:T{ -\fBSD_BUS_TYPE_DICT_ENTRY_BEGIN\fR -T}:T{ -dictionary entry start -T}:T{ -arguments appropriate for the first type in the pair -T}:T{ -arguments appropriate for the second type in the pair -T} -T{ -"}" -T}:T{ -\fBSD_BUS_TYPE_DICT_ENTRY_END\fR -T}:T{ -dictionary entry end -T}:: -.TE -.sp 1 -.PP -If objects of the specified types are not present at the current position in the message, an error is returned\&. -.PP -The -\fBsd_bus_message_readv()\fR -is equivalent to the -\fBsd_bus_message_read()\fR, except that it is called with a -"va_list" -instead of a variable number of arguments\&. This function does not call the -\fBva_end()\fR -macro\&. Because it invokes the -\fBva_arg()\fR -macro, the value of -\fIap\fR -is undefined after the call\&. -.PP -\fBsd_bus_message_peek_type()\fR -determines the type of the next element in -\fIm\fR -to be read by -\fBsd_bus_message_read()\fR -or similar functions\&. On success, the type is stored in -\fItype\fR, if it is not -\fBNULL\fR\&. If the type is a container type, the type of its elements is stored in -\fIcontents\fR, if it is not -\fBNULL\fR\&. If this function successfully determines the type of the next element in -\fIm\fR, it returns a positive integer\&. If there are no more elements to be read, it returns zero\&. -.SH "RETURN VALUE" -.PP -On success, these functions return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -Specified type string is invalid or the message parameter is -\fBNULL\fR\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -The message does not contain the specified type at current position\&. -.RE -.PP -\fB\-EBADMSG\fR -.RS 4 -The message cannot be parsed\&. -.RE -.PP -\fB\-EBUSY\fR -.RS 4 -When reading from a container, this error will be returned if unread elements are left in the container\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "EXAMPLES" -.PP -Read a single basic type (a 64\-bit integer): -.sp -.if n \{\ -.RS 4 -.\} -.nf -sd_bus_message *m; -int64_t x; - -sd_bus_message_read(m, "x", &x); -.fi -.if n \{\ -.RE -.\} -.PP -Read a boolean value: -.sp -.if n \{\ -.RS 4 -.\} -.nf -sd_bus_message *m; -int x; /* Do not use C99 \*(Aqbool\*(Aq type here, it\*(Aqs typically smaller - in memory and would cause memory corruption */ - -sd_bus_message_read(m, "b", &x); -.fi -.if n \{\ -.RE -.\} -.PP -Read all types of integers: -.sp -.if n \{\ -.RS 4 -.\} -.nf -uint8_t y; -int16_t n; -uint16_t q; -int32_t i; -uint32_t u; -int32_t x; -uint32_t t; -double d; - -sd_bus_message_read(m, "ynqiuxtd", &y, &n, &q, &i, &u, &x, &t, &d); -.fi -.if n \{\ -.RE -.\} -.PP -Read a structure composed of a string and a D\-Bus path: -.sp -.if n \{\ -.RS 4 -.\} -.nf -const char *s, *p; - -sd_bus_message_read(m, "(so)", &s, &p); -.fi -.if n \{\ -.RE -.\} -.PP -Read a variant, with the real type "gt" (signature, unsigned integer): -.sp -.if n \{\ -.RS 4 -.\} -.nf -const char *s; -uint64_t *v; - -sd_bus_message_read(m, "v", "gt", &s, &v); -.fi -.if n \{\ -.RE -.\} -.PP -Read a dictionary containing three pairs of type {integer=>string}: -.sp -.if n \{\ -.RS 4 -.\} -.nf -int i, j, k; -const char *s, *t, *u; - -sd_bus_message_read(m, "a{is}", 3, &i, &s, &j, &t, &k, &u); - -.fi -.if n \{\ -.RE -.\} -.PP -Read a single file descriptor, and duplicate it in order to keep it open after the message is freed\&. -.sp -.if n \{\ -.RS 4 -.\} -.nf -sd_bus_message *m; -int fd, fd_copy; - -sd_bus_message_read(m, "h", &fd); -fd_copy = fcntl(fd, FD_DUPFD_CLOEXEC, 3); -.fi -.if n \{\ -.RE -.\} -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_read_basic\fR(3), -\fBsd_bus_message_skip\fR(3), -\fBsd_bus_message_append\fR(3), -\fBsd_bus_message_enter_container\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_read_array.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_read_array.3 deleted file mode 100644 index 2c24c89d..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_read_array.3 +++ /dev/null @@ -1,86 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_READ_ARRAY" "3" "" "systemd 254" "sd_bus_message_read_array" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_read_array \- Access an array of elements in a message -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_read_array('u -.BI "int sd_bus_message_read_array(sd_bus_message\ *" "m" ", char\ " "type" ", const\ void\ **" "ptr" ", size_t\ *" "size" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_read_array()\fR -provides access to an array elements in the bus message -\fIm\fR\&. The "read pointer" in the message must be right before an array of type -\fItype\fR\&. As a special case, -\fItype\fR -may be -\fBNUL\fR, in which case any trivial type is acceptable\&. A pointer to the array data is returned in the parameter -\fIptr\fR -and the size of array data (in bytes) is returned in the parameter -\fIsize\fR\&. If the returned -\fIsize\fR -parameter is 0, a valid non\-null pointer will be returned as -\fIptr\fR, but it may not be dereferenced\&. The data is aligned as appropriate for the data type\&. The data is part of the message \(em it may not be modified and is valid only as long as the message is referenced\&. After this function returns, the "read pointer" points at the next element after the array\&. -.PP -Note that this function only supports arrays of trivial types, i\&.e\&. arrays of booleans, the various integer types, as well as floating point numbers\&. In particular it may not be used for arrays of strings, structures or similar\&. -.SH "RETURN VALUE" -.PP -On success and when an array was read, -\fBsd_bus_message_read_array()\fR -returns an integer greater than zero\&. If invoked while inside a container element (such as an array, e\&.g\&. when operating on an array of arrays) and the final element of the outer container has been read already and the read pointer is thus behind the last element of the outer container this call returns 0 (and the returned pointer will be -\fBNULL\fR -and the size will be 0)\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -Specified type is invalid or not a trivial type (see above), or the message parameter or one of the output parameters are -\fBNULL\fR\&. -.RE -.PP -\fB\-EOPNOTSUPP\fR -.RS 4 -The byte order in the message is different than native byte order\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -The message is not sealed\&. -.RE -.PP -\fB\-EBADMSG\fR -.RS 4 -The message cannot be parsed\&. -.RE -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_read\fR(3), -\fBsd_bus_message_read_strv\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_read_basic.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_read_basic.3 deleted file mode 100644 index 82d38d39..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_read_basic.3 +++ /dev/null @@ -1,253 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_READ_BASIC" "3" "" "systemd 254" "sd_bus_message_read_basic" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_read_basic \- Read a basic type from a message -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_read_basic('u -.BI "int sd_bus_message_read_basic(sd_bus_message\ *" "m" ", char\ " "type" ", void\ *" "p" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_read_basic()\fR -reads a basic type from a message and advances the read position in the message\&. The set of basic types and their ascii codes passed in -\fItype\fR -are described in the -\m[blue]\fBD\-Bus Specification\fR\m[]\&\s-2\u[1]\d\s+2\&. -.PP -If -\fIp\fR -is not -\fBNULL\fR, it should contain a pointer to an appropriate object\&. For example, if -\fItype\fR -is -\fB\*(Aqy\*(Aq\fR, the object passed in -\fIp\fR -should have type -\fBuint8_t *\fR\&. If -\fItype\fR -is -\fB\*(Aqs\*(Aq\fR, the object passed in -\fIp\fR -should have type -\fBconst char **\fR\&. Note that, if the basic type is a pointer (e\&.g\&., -\fBconst char *\fR -in the case of a string), the pointer is only borrowed and the contents must be copied if they are to be used after the end of the message\*(Aqs lifetime\&. Similarly, during the lifetime of such a pointer, the message must not be modified\&. If -\fItype\fR -is -\fB\*(Aqh\*(Aq\fR -(UNIX file descriptor), the descriptor is not duplicated by this call and the returned descriptor remains in possession of the message object, and needs to be duplicated by the caller in order to keep an open reference to it after the message object is freed (for example by calling -"fcntl(fd, FD_DUPFD_CLOEXEC, 3)")\&. See the table below for a complete list of allowed types\&. -.sp -.it 1 an-trap -.nr an-no-space-flag 1 -.nr an-break-flag 1 -.br -.B Table\ \&1.\ \&Item type specifiers -.TS -allbox tab(:); -lB lB lB lB. -T{ -Specifier -T}:T{ -Constant -T}:T{ -Description -T}:T{ -Expected C Type -T} -.T& -l l l l -l l l l -l l l l -l l l l -l l l l -l l l l -l l l l -l l l l -l l l l -l l l l -l l l l -l l l l -l l l l. -T{ -"y" -T}:T{ -\fBSD_BUS_TYPE_BYTE\fR -T}:T{ -8\-bit unsigned integer -T}:T{ -\fBuint8_t *\fR -T} -T{ -"b" -T}:T{ -\fBSD_BUS_TYPE_BOOLEAN\fR -T}:T{ -boolean -T}:T{ -\fBint *\fR (NB: not \fBbool *\fR) -T} -T{ -"n" -T}:T{ -\fBSD_BUS_TYPE_INT16\fR -T}:T{ -16\-bit signed integer -T}:T{ -\fBint16_t *\fR -T} -T{ -"q" -T}:T{ -\fBSD_BUS_TYPE_UINT16\fR -T}:T{ -16\-bit unsigned integer -T}:T{ -\fBuint16_t *\fR -T} -T{ -"i" -T}:T{ -\fBSD_BUS_TYPE_INT32\fR -T}:T{ -32\-bit signed integer -T}:T{ -\fBint32_t *\fR -T} -T{ -"u" -T}:T{ -\fBSD_BUS_TYPE_UINT32\fR -T}:T{ -32\-bit unsigned integer -T}:T{ -\fBuint32_t *\fR -T} -T{ -"x" -T}:T{ -\fBSD_BUS_TYPE_INT64\fR -T}:T{ -64\-bit signed integer -T}:T{ -\fBint64_t *\fR -T} -T{ -"t" -T}:T{ -\fBSD_BUS_TYPE_UINT64\fR -T}:T{ -64\-bit unsigned integer -T}:T{ -\fBuint64_t *\fR -T} -T{ -"d" -T}:T{ -\fBSD_BUS_TYPE_DOUBLE\fR -T}:T{ -IEEE 754 double precision floating\-point -T}:T{ -\fBdouble *\fR -T} -T{ -"s" -T}:T{ -\fBSD_BUS_TYPE_STRING\fR -T}:T{ -UTF\-8 string -T}:T{ -\fBconst char **\fR -T} -T{ -"o" -T}:T{ -\fBSD_BUS_TYPE_OBJECT_PATH\fR -T}:T{ -D\-Bus object path string -T}:T{ -\fBconst char **\fR -T} -T{ -"g" -T}:T{ -\fBSD_BUS_TYPE_SIGNATURE\fR -T}:T{ -D\-Bus signature string -T}:T{ -\fBconst char **\fR -T} -T{ -"h" -T}:T{ -\fBSD_BUS_TYPE_UNIX_FD\fR -T}:T{ -UNIX file descriptor -T}:T{ -\fBint *\fR -T} -.TE -.sp 1 -.PP -If there is no object of the specified type at the current position in the message, an error is returned\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_message_read_basic()\fR -returns a positive integer\&. If the end of the currently opened array has been reached, it returns 0\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -Specified type string is invalid or the message parameter is -\fBNULL\fR\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -The message does not contain the specified type at current position\&. -.RE -.PP -\fB\-EBADMSG\fR -.RS 4 -The message cannot be parsed\&. -.RE -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_append_basic\fR(3), -\fBsd_bus_message_skip\fR(3), -\fBsd_bus_message_read\fR(3) -.SH "NOTES" -.IP " 1." 4 -D-Bus Specification -.RS 4 -\%https://dbus.freedesktop.org/doc/dbus-specification.html -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_read_strv.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_read_strv.3 deleted file mode 100644 index a651545e..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_read_strv.3 +++ /dev/null @@ -1,88 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_READ_STRV" "3" "" "systemd 254" "sd_bus_message_read_strv" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_read_strv, sd_bus_message_read_strv_extend \- Access an array of strings in a message -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_read_strv('u -.BI "int sd_bus_message_read_strv(sd_bus_message\ *" "m" ", char\ ***" "l" ");" -.HP \w'int\ sd_bus_message_read_strv_extend('u -.BI "int sd_bus_message_read_strv_extend(sd_bus_message\ *" "m" ", char\ ***" "l" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_read_strv()\fR -reads an array of string\-like items from the message -\fIm\fR\&. The "read pointer" in the message must be right before an array of strings (D\-Bus type -"as"), object paths (D\-Bus type -"ao"), or signatures (D\-Bus type -"ag")\&. On success, a pointer to a -\fBNULL\fR\-terminated array of strings (strv) is returned in the output parameter -\fIl\fR\&. Note that ownership of this array is transferred to the caller\&. Hence, the caller is responsible for freeing this array and its contents\&. -.PP -\fBsd_bus_message_read_strv_extend()\fR -is similar, but the second parameter is an input\-output parameter\&. If -\fI*l\fR -is -\fBNULL\fR, if behaves identically to -\fBsd_bus_message_read_strv()\fR\&. Otherwise, -\fI*l\fR -must point to a strv, which will be reallocated and extended with additional strings\&. This function is particularly useful when combining multiple lists of strings in a message or messages into a single array of strings\&. -.SH "RETURN VALUE" -.PP -On success, these functions return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -\fIm\fR -or -\fIl\fR -are -\fBNULL\fR\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -The message is not sealed\&. -.RE -.PP -\fB\-EBADMSG\fR -.RS 4 -The message cannot be parsed\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -The message "read pointer" is not right before an array of the appropriate type\&. -.RE -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_read\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_rewind.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_rewind.3 deleted file mode 100644 index d1b0e8bd..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_rewind.3 +++ /dev/null @@ -1,80 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_REWIND" "3" "" "systemd 254" "sd_bus_message_rewind" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_rewind \- Return to beginning of message or current container -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_rewind('u -.BI "int sd_bus_message_rewind(sd_bus_message\ *" "m" ", int\ " "complete" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_rewind()\fR -moves the "read pointer" in the message -\fIm\fR -to either the beginning of the message (if -\fIcomplete\fR -is true) or to the beginning of the currently open container\&. If no container is open, -\fIcomplete\fR -has no effect\&. -.SH "RETURN VALUE" -.PP -On success, this function returns 0 or a positive integer\&. The value is zero if the current container or whole message in case no container is open is empty, and positive otherwise\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The -\fIm\fR -parameter is -\fBNULL\fR\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -The message -\fIm\fR -has not been sealed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_read\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_seal.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_seal.3 deleted file mode 100644 index 1ab8f83e..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_seal.3 +++ /dev/null @@ -1,97 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_SEAL" "3" "" "systemd 254" "sd_bus_message_seal" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_seal \- Prepare a D\-Bus message for transmission -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_seal('u -.BI "int sd_bus_message_seal(sd_bus_message\ *" "m" ", uint64_t\ " "cookie" ", uint64_t\ " "timeout_usec" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_seal()\fR -finishes the message -\fIm\fR -and prepares it for transmission using -\fBsd_bus_send\fR(3)\&. -\fIcookie\fR -specifies the identifier used to match the message reply to its corresponding request\&. -\fItimeout_usec\fR -specifies the maximum time in microseconds to wait for a reply to arrive\&. -.PP -Note that in most scenarios, it\*(Aqs not necessary to call this function directly\&. -\fBsd_bus_call\fR(3), -\fBsd_bus_call_async\fR(3) -and -\fBsd_bus_send\fR(3) -will seal any given messages if they have not been sealed yet\&. -.SH "RETURN VALUE" -.PP -On success, this function returns a non\-negative integer\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The -\fIm\fR -parameter is -\fBNULL\fR\&. -.RE -.PP -\fB\-EBADMSG\fR -.RS 4 -The D\-Bus message -\fIm\fR -has open containers\&. -.RE -.PP -\fB\-ENOMSG\fR -.RS 4 -The D\-Bus message -\fIm\fR -is a reply but its type signature does not match the return type signature of its corresponding member in the object vtable\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_call\fR(3), -\fBsd_bus_call_async\fR(3), -\fBsd_bus_send\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_sensitive.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_sensitive.3 deleted file mode 100644 index 543fb933..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_sensitive.3 +++ /dev/null @@ -1,69 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_SENSITIVE" "3" "" "systemd 254" "sd_bus_message_sensitive" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_sensitive \- Mark a message object as containing sensitive data -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_sensitive('u -.BI "int sd_bus_message_sensitive(sd_bus_message\ *" "message" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_sensitive()\fR -marks an allocated bus message as containing sensitive data\&. This ensures that the message data is carefully removed from memory (specifically, overwritten with zero bytes) when released\&. It is recommended to mark all incoming and outgoing messages like this that contain security credentials and similar data that should be dealt with carefully\&. Note that it is not possible to unmark messages like this, it\*(Aqs a one way operation\&. If a message is already marked sensitive and then marked sensitive a second time the message remains marked so and no further operation is executed\&. -.PP -As a safety precaution all messages that are created as reply to messages that are marked sensitive are also implicitly marked so\&. -.SH "RETURN VALUE" -.PP -On success, this functions return 0 or a positive integer\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The -\fImessage\fR -parameter is -\fBNULL\fR\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_new_method_call\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_set_destination.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_set_destination.3 deleted file mode 100644 index 7ae11032..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_set_destination.3 +++ /dev/null @@ -1,122 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_SET_DESTINATION" "3" "" "systemd 254" "sd_bus_message_set_destination" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_set_destination, sd_bus_message_get_destination, sd_bus_message_get_path, sd_bus_message_get_interface, sd_bus_message_get_member, sd_bus_message_set_sender, sd_bus_message_get_sender \- Set and query bus message addressing information -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_set_destination('u -.BI "int sd_bus_message_set_destination(sd_bus_message\ *" "message" ", const\ char\ *" "destination" ");" -.HP \w'const\ char*\ sd_bus_message_get_destination('u -.BI "const char* sd_bus_message_get_destination(sd_bus_message\ *" "message" ");" -.HP \w'const\ char*\ sd_bus_message_get_path('u -.BI "const char* sd_bus_message_get_path(sd_bus_message\ *" "message" ");" -.HP \w'const\ char*\ sd_bus_message_get_interface('u -.BI "const char* sd_bus_message_get_interface(sd_bus_message\ *" "message" ");" -.HP \w'const\ char*\ sd_bus_message_get_member('u -.BI "const char* sd_bus_message_get_member(sd_bus_message\ *" "message" ");" -.HP \w'int\ sd_bus_message_set_sender('u -.BI "int sd_bus_message_set_sender(sd_bus_message\ *" "message" ", const\ char\ *" "sender" ");" -.HP \w'const\ char*\ sd_bus_message_get_sender('u -.BI "const char* sd_bus_message_get_sender(sd_bus_message\ *" "message" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_set_destination()\fR -sets the destination service name for the specified bus message object\&. The specified name must be a valid unique or well\-known service name\&. -.PP -\fBsd_bus_message_get_destination()\fR, -\fBsd_bus_message_get_path()\fR, -\fBsd_bus_message_get_interface()\fR, and -\fBsd_bus_message_get_member()\fR -return the destination, path, interface, and member fields from -\fImessage\fR -header\&. The return value will be -\fBNULL\fR -is -\fImessage\fR -is -\fBNULL\fR -or the message is of a type that doesn\*(Aqt use those fields or the message doesn\*(Aqt have them set\&. See -\fBsd_bus_message_new_method_call\fR(3) -and -\fBsd_bus_message_set_destination\fR(3) -for more discussion of those values\&. -.PP -\fBsd_bus_message_set_sender()\fR -sets the sender service name for the specified bus message object\&. The specified name must be a valid unique or well\-known service name\&. This function is useful only for messages to send on direct connections as for connections to bus brokers the broker will fill in the destination field anyway, and the sender field set by original sender is ignored\&. -.PP -\fBsd_bus_message_get_sender()\fR -returns the sender field from -\fImessage\fR\&. -.PP -When a string is returned, it is a pointer to internal storage, and may not be modified or freed\&. It is only valid as long as the -\fImessage\fR -remains referenced and this field hasn\*(Aqt been changed by a different call\&. -.SH "RETURN VALUE" -.PP -On success, these calls return 0 or a positive integer\&. On failure, these calls return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The -\fImessage\fR -parameter or the output parameter are -\fBNULL\fR\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -For -\fBsd_bus_message_set_destination()\fR -and -\fBsd_bus_message_set_sender()\fR, the message is already sealed\&. -.RE -.PP -\fB\-EEXIST\fR -.RS 4 -The message already has a destination or sender field set\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_new\fR(3), -\fBsd_bus_set_sender\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_set_expect_reply.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_set_expect_reply.3 deleted file mode 100644 index 14f414c5..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_set_expect_reply.3 +++ /dev/null @@ -1,147 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_SET_EXPECT_REPLY" "3" "" "systemd 254" "sd_bus_message_set_expect_reply" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_set_expect_reply, sd_bus_message_get_expect_reply, sd_bus_message_set_auto_start, sd_bus_message_get_auto_start, sd_bus_message_set_allow_interactive_authorization, sd_bus_message_get_allow_interactive_authorization \- Set and query bus message metadata -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_set_expect_reply('u -.BI "int sd_bus_message_set_expect_reply(sd_bus_message\ *" "message" ", int\ " "b" ");" -.HP \w'int\ sd_bus_message_get_expect_reply('u -.BI "int sd_bus_message_get_expect_reply(sd_bus_message\ *" "message" ");" -.HP \w'int\ sd_bus_message_set_auto_start('u -.BI "int sd_bus_message_set_auto_start(sd_bus_message\ *" "message" ", int\ " "b" ");" -.HP \w'int\ sd_bus_message_get_auto_start('u -.BI "int sd_bus_message_get_auto_start(sd_bus_message\ *" "message" ");" -.HP \w'int\ sd_bus_message_set_allow_interactive_authorization('u -.BI "int sd_bus_message_set_allow_interactive_authorization(sd_bus_message\ *" "message" ", int\ " "b" ");" -.HP \w'int\ sd_bus_message_get_allow_interactive_authorization('u -.BI "int sd_bus_message_get_allow_interactive_authorization(sd_bus_message\ *" "message" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_set_expect_reply()\fR -sets or clears the -\fBNO_REPLY_EXPECTED\fR -flag on the message -\fIm\fR\&. This flag matters only for method call messages and is used to specify that no method return or error reply is expected\&. It is ignored for other types\&. Thus, for a method call message, calling -.sp -.if n \{\ -.RS 4 -.\} -.nf -sd_bus_message_set_expect_reply(\&..., 0) -.fi -.if n \{\ -.RE -.\} -.sp -sets the flag and suppresses the reply\&. -.PP -\fBsd_bus_message_get_expect_reply()\fR -checks if the -\fBNO_REPLY_EXPECTED\fR -flag is set on the message -\fIm\fR\&. It will return positive if it is not set, and zero if it is\&. -.PP -\fBsd_bus_message_set_auto_start()\fR -sets or clears the -\fBNO_AUTO_START\fR -flag on the message -\fIm\fR\&. When the flag is set, the bus must not launch an owner for the destination name in response to this message\&. Calling -.sp -.if n \{\ -.RS 4 -.\} -.nf -sd_bus_message_set_auto_start(\&..., 0) -.fi -.if n \{\ -.RE -.\} -.sp -sets the flag\&. -.PP -\fBsd_bus_message_get_auto_start()\fR -checks if the -\fBNO_AUTO_START\fR -flag is set on the message -\fIm\fR\&. It will return positive if it is not set, and zero if it is\&. -.PP -\fBsd_bus_message_set_allow_interactive_authorization()\fR -sets or clears the -\fBALLOW_INTERACTIVE_AUTHORIZATION\fR -flag on the message -\fIm\fR\&. Setting this flag informs the receiver that the caller is prepared to wait for interactive authorization via polkit or a similar framework\&. Note that setting this flag does not guarantee that the receiver will actually perform interactive authorization\&. Also, make sure to set a suitable message timeout when using this flag since interactive authorization could potentially take a long time as it depends on user input\&. If -\fIb\fR -is non\-zero, the flag is set\&. -.PP -\fBsd_bus_message_get_allow_interactive_authorization()\fR -checks if the -\fBALLOW_INTERACTIVE_AUTHORIZATION\fR -flag is set on the message -\fIm\fR\&. It will return a positive integer if the flag is set\&. Otherwise, it returns zero\&. -.SH "RETURN VALUE" -.PP -On success, these functions return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The -\fImessage\fR -parameter is -\fBNULL\fR\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -The message -\fImessage\fR -is sealed when trying to set a flag\&. -.sp -The message -\fImessage\fR -has wrong type\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_set_description\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_skip.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_skip.3 deleted file mode 100644 index 4d1a3d65..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_skip.3 +++ /dev/null @@ -1,97 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_SKIP" "3" "" "systemd 254" "sd_bus_message_skip" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_skip \- Skip elements in a bus message -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_skip('u -.BI "int sd_bus_message_skip(sd_bus_message\ *" "m" ", const\ char*\ " "types" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_skip()\fR -is somewhat similar to -\fBsd_bus_message_read\fR(3), but instead of reading the contents of the message, it only moves the "read pointer"\&. Subsequent read operations will read the elements that are after the elements that were skipped\&. -.PP -The -\fItypes\fR -argument has the same meaning as in -\fBsd_bus_message_read()\fR\&. It may also be -\fBNULL\fR, to skip a single element of any type\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_message_skip()\fR -returns 0 or a positive integer\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The -\fIm\fR -parameter is -\fBNULL\fR\&. -.RE -.PP -\fB\-EBADMSG\fR -.RS 4 -The message cannot be parsed\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -The message is not sealed\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -The message end has been reached and the requested elements cannot be read\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_read\fR(3), -\fBsd_bus_message_read_basic\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_message_verify_type.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_message_verify_type.3 deleted file mode 100644 index 04edc607..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_message_verify_type.3 +++ /dev/null @@ -1,103 +0,0 @@ -'\" t -.TH "SD_BUS_MESSAGE_VERIFY_TYPE" "3" "" "systemd 254" "sd_bus_message_verify_type" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_message_verify_type \- Check if the message has specified type at the current location -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_message_verify_type('u -.BI "int sd_bus_message_verify_type(sd_bus_message\ *" "m" ", char\ " "type" ", const\ char*\ " "contents" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_message_verify_type()\fR -checks if the complete type at the current location in the message -\fIm\fR -matches the specified -\fItype\fR -and -\fIcontents\fR\&. If non\-zero, parameter -\fItype\fR -must be one of the types specified in -\fBsd_bus_message_append\fR(1)\&. If non\-null, parameter -\fIcontents\fR -must be a valid sequence of complete types\&. If both -\fItype\fR -and -\fIcontents\fR -are specified -\fItype\fR -must be a container type\&. -.PP -If -\fItype\fR -is specified, the type in the message must match\&. If -\fIcontents\fR -is specified, the type in the message must be a container type with this signature\&. -.SH "RETURN VALUE" -.PP -On success, this call returns true if the type matches and zero if not (the message -\fIm\fR -contains different data or the end of the message has been reached)\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -\fIm\fR -or both -\fItype\fR -and -\fIcontents\fR -are -\fBNULL\fR\&. -.sp -Arguments do not satisfy other constraints listed above\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -Message -\fIm\fR -is not sealed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_append\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_negotiate_fds.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_negotiate_fds.3 deleted file mode 100644 index e63e1062..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_negotiate_fds.3 +++ /dev/null @@ -1,123 +0,0 @@ -'\" t -.TH "SD_BUS_NEGOTIATE_FDS" "3" "" "systemd 254" "sd_bus_negotiate_fds" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_negotiate_fds, sd_bus_negotiate_timestamp, sd_bus_negotiate_creds, sd_bus_get_creds_mask \- Control feature negotiation on bus connections -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_negotiate_fds('u -.BI "int sd_bus_negotiate_fds(sd_bus\ *" "bus" ", int\ " "b" ");" -.HP \w'int\ sd_bus_negotiate_timestamp('u -.BI "int sd_bus_negotiate_timestamp(sd_bus\ *" "bus" ", int\ " "b" ");" -.HP \w'int\ sd_bus_negotiate_creds('u -.BI "int sd_bus_negotiate_creds(sd_bus\ *" "bus" ", int\ " "b" ", uint64_t\ " "mask" ");" -.HP \w'int\ sd_bus_get_creds_mask('u -.BI "int sd_bus_get_creds_mask(sd_bus\ *" "bus" ", uint64_t\ *" "mask" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_negotiate_fds()\fR -controls whether file descriptor passing shall be negotiated for the specified bus connection\&. It takes a bus object and a boolean, which, when true, enables file descriptor passing, and, when false, disables it\&. Note that not all transports and servers support file descriptor passing\&. In particular, networked transports generally do not support file descriptor passing\&. To find out whether file descriptor passing is available after negotiation, use -\fBsd_bus_can_send\fR(3) -and pass -\fBSD_BUS_TYPE_UNIX_FD\fR\&. Note that file descriptor passing is always enabled for both sending and receiving or for neither, but never only in one direction\&. By default, file descriptor passing is negotiated for all connections\&. -.PP -\fBsd_bus_negotiate_timestamp()\fR -controls whether implicit sender timestamps shall be attached automatically to all incoming messages\&. Takes a bus object and a boolean, which, when true, enables timestamping, and, when false, disables it\&. Use -\fBsd_bus_message_get_monotonic_usec\fR(3), -\fBsd_bus_message_get_realtime_usec\fR(3), -\fBsd_bus_message_get_seqnum\fR(3) -to query the timestamps of incoming messages\&. If negotiation is disabled or not supported, these calls will fail with -\fB\-ENODATA\fR\&. Note that currently no transports support timestamping of messages\&. By default, message timestamping is not negotiated for connections\&. -.PP -\fBsd_bus_negotiate_creds()\fR -controls whether and which implicit sender credentials shall be attached automatically to all incoming messages\&. Takes a bus object and a boolean indicating whether to enable or disable the credential parts encoded in the bit mask value argument\&. Note that not all transports support attaching sender credentials to messages, or do not support all types of sender credential parameters, or might suppress them under certain circumstances for individual messages\&. Specifically, dbus1 only supports -\fBSD_BUS_CREDS_UNIQUE_NAME\fR\&. The sender credentials are suitable for authorization decisions\&. By default, only -\fBSD_BUS_CREDS_WELL_KNOWN_NAMES\fR -and -\fBSD_BUS_CREDS_UNIQUE_NAME\fR -are enabled\&. In fact, these two credential fields are always sent along and cannot be turned off\&. -.PP -\fBsd_bus_get_creds_mask()\fR -returns the set of sender credentials that was negotiated to be attached to all incoming messages in -\fImask\fR\&. This value is an upper boundary only\&. Hence, always make sure to explicitly check which credentials are attached to a specific message before using it\&. -.PP -The -\fBsd_bus_negotiate_fds()\fR -function may be called only before the connection has been started with -\fBsd_bus_start\fR(3)\&. Both -\fBsd_bus_negotiate_timestamp()\fR -and -\fBsd_bus_negotiate_creds()\fR -may also be called after a connection has been set up\&. Note that, when operating on a connection that is shared between multiple components of the same program (for example via -\fBsd_bus_default\fR(3)), it is highly recommended to only enable additional per message metadata fields, but never disable them again, in order not to disable functionality needed by other components\&. -.SH "RETURN VALUE" -.PP -On success, these functions return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EPERM\fR -.RS 4 -The bus connection has already been started\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -An argument is invalid\&. -.RE -.PP -\fB\-ENOPKG\fR -.RS 4 -The bus cannot be resolved\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus was created in a different process, library or module instance\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_start\fR(3), -\fBsd_bus_can_send\fR(3), -\fBsd_bus_message_get_monotonic_usec\fR(3), -\fBsd_bus_message_get_realtime_usec\fR(3), -\fBsd_bus_message_get_seqnum\fR(3), -\fBsd_bus_message_get_creds\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_new.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_new.3 deleted file mode 100644 index ced83b92..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_new.3 +++ /dev/null @@ -1,185 +0,0 @@ -'\" t -.TH "SD_BUS_NEW" "3" "" "systemd 254" "sd_bus_new" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_new, sd_bus_ref, sd_bus_unref, sd_bus_unrefp, sd_bus_close_unref, sd_bus_close_unrefp, sd_bus_flush_close_unref, sd_bus_flush_close_unrefp \- Create a new bus object and create or destroy references to it -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_new('u -.BI "int sd_bus_new(sd_bus\ **" "bus" ");" -.HP \w'sd_bus\ *sd_bus_ref('u -.BI "sd_bus *sd_bus_ref(sd_bus\ *" "bus" ");" -.HP \w'sd_bus\ *sd_bus_unref('u -.BI "sd_bus *sd_bus_unref(sd_bus\ *" "bus" ");" -.HP \w'sd_bus\ *sd_bus_close_unref('u -.BI "sd_bus *sd_bus_close_unref(sd_bus\ *" "bus" ");" -.HP \w'sd_bus\ *sd_bus_flush_close_unref('u -.BI "sd_bus *sd_bus_flush_close_unref(sd_bus\ *" "bus" ");" -.HP \w'void\ sd_bus_unrefp('u -.BI "void sd_bus_unrefp(sd_bus\ **" "busp" ");" -.HP \w'void\ sd_bus_close_unrefp('u -.BI "void sd_bus_close_unrefp(sd_bus\ **" "busp" ");" -.HP \w'void\ sd_bus_flush_close_unrefp('u -.BI "void sd_bus_flush_close_unrefp(sd_bus\ **" "busp" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_new()\fR -creates a new bus object\&. This object is reference\-counted, and will be destroyed when all references are gone\&. Initially, the caller of this function owns the sole reference and the bus object will not be connected to any bus\&. To connect it to a bus, make sure to set an address with -\fBsd_bus_set_address\fR(3) -or a related call, and then start the connection with -\fBsd_bus_start\fR(3)\&. -.PP -In most cases, it is better to use -\fBsd_bus_default_user\fR(3), -\fBsd_bus_default_system\fR(3) -or related calls instead of the more low\-level -\fBsd_bus_new()\fR -and -\fBsd_bus_start()\fR\&. The higher\-level functions not only allocate a bus object but also start the connection to a well\-known bus in a single function call\&. -.PP -\fBsd_bus_ref()\fR -increases the reference counter of -\fIbus\fR -by one\&. -.PP -\fBsd_bus_unref()\fR -decreases the reference counter of -\fIbus\fR -by one\&. Once the reference count has dropped to zero, -\fIbus\fR -is destroyed and cannot be used anymore, so further calls to -\fBsd_bus_ref()\fR -or -\fBsd_bus_unref()\fR -are illegal\&. -.PP -\fBsd_bus_unrefp()\fR -is similar to -\fBsd_bus_unref()\fR -but takes a pointer to a pointer to an -\fBsd_bus\fR -object\&. This call is useful in conjunction with GCC\*(Aqs and LLVM\*(Aqs -\m[blue]\fBClean\-up Variable Attribute\fR\m[]\&\s-2\u[1]\d\s+2\&. Note that this function is defined as an inline function\&. Use a declaration like the following, in order to allocate a bus object that is freed automatically as the code block is left: -.sp -.if n \{\ -.RS 4 -.\} -.nf -{ - __attribute__((cleanup(sd_bus_unrefp))) sd_bus *bus = NULL; - int r; - \&... - r = sd_bus_default(&bus); - if (r < 0) { - errno = \-r; - fprintf(stderr, "Failed to allocate bus: %m\en"); - } - \&... -} -.fi -.if n \{\ -.RE -.\} -.PP -\fBsd_bus_ref()\fR -and -\fBsd_bus_unref()\fR -execute no operation if the argument is -\fBNULL\fR\&. -\fBsd_bus_unrefp()\fR -will first dereference its argument, which must not be -\fBNULL\fR, and will execute no operation if -\fIthat\fR -is -\fBNULL\fR\&. -.PP -\fBsd_bus_close_unref()\fR -is similar to -\fBsd_bus_unref()\fR, but first executes -\fBsd_bus_close\fR(3), ensuring that the connection is terminated before the reference to the connection is dropped and possibly the object freed\&. -.PP -\fBsd_bus_flush_close_unref()\fR -is similar to -\fBsd_bus_unref()\fR, but first executes -\fBsd_bus_flush\fR(3) -as well as -\fBsd_bus_close\fR(3), ensuring that any pending messages are synchronously flushed out before the reference to the connection is dropped and possibly the object freed\&. This call is particularly useful immediately before exiting from a program as it ensures that any pending outgoing messages are written out, and unprocessed but queued incoming messages released before the connection is terminated and released\&. -.PP -\fBsd_bus_close_unrefp()\fR -is similar to -\fBsd_bus_close_unref()\fR, but may be used in GCC\*(Aqs and LLVM\*(Aqs Clean\-up Variable Attribute, see above\&. Similarly, -\fBsd_bus_flush_close_unrefp()\fR -is similar to -\fBsd_bus_flush_close_unref()\fR\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_new()\fR -returns 0 or a positive integer\&. On failure, it returns a negative errno\-style error code\&. -.PP -\fBsd_bus_ref()\fR -always returns the argument\&. -.PP -\fBsd_bus_unref()\fR -and -\fBsd_bus_flush_close_unref()\fR -always return -\fBNULL\fR\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_default_user\fR(3), -\fBsd_bus_default_system\fR(3), -\fBsd_bus_open_user\fR(3), -\fBsd_bus_open_system\fR(3), -\fBsd_bus_close\fR(3) -.SH "NOTES" -.IP " 1." 4 -Clean-up Variable Attribute -.RS 4 -\%https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_path_encode.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_path_encode.3 deleted file mode 100644 index 11076cab..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_path_encode.3 +++ /dev/null @@ -1,105 +0,0 @@ -'\" t -.TH "SD_BUS_PATH_ENCODE" "3" "" "systemd 254" "sd_bus_path_encode" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_path_encode, sd_bus_path_encode_many, sd_bus_path_decode, sd_bus_path_decode_many \- Convert an external identifier into an object path and back -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_path_encode('u -.BI "int sd_bus_path_encode(const\ char\ *" "prefix" ", const\ char\ *" "external_id" ", char\ **" "ret_path" ");" -.HP \w'int\ sd_bus_path_encode_many('u -.BI "int sd_bus_path_encode_many(char\ **" "out" ", const\ char\ *" "path_template" ", \&...);" -.HP \w'int\ sd_bus_path_decode('u -.BI "int sd_bus_path_decode(const\ char\ *" "path" ", const\ char\ *" "prefix" ", char\ **" "ret_external_id" ");" -.HP \w'int\ sd_bus_path_decode_many('u -.BI "int sd_bus_path_decode_many(const\ char\ *" "path" ", const\ char\ *" "path_template" ", \&...);" -.SH "DESCRIPTION" -.PP -\fBsd_bus_path_encode()\fR -and -\fBsd_bus_path_decode()\fR -convert external identifier strings into object paths and back\&. These functions are useful to map application\-specific string identifiers of any kind into bus object paths in a simple, reversible and safe way\&. -.PP -\fBsd_bus_path_encode()\fR -takes a bus path prefix and an external identifier string as arguments, plus a place to store the returned bus path string\&. The bus path prefix must be a valid bus path, starting with a slash -"/", and not ending in one\&. The external identifier string may be in any format, may be the empty string, and has no restrictions on the charset\ \&\(em however, it must always be -\fBNUL\fR\-terminated\&. The returned string will be the concatenation of the bus path prefix plus an escaped version of the external identifier string\&. This operation may be reversed with -\fBsd_bus_path_decode()\fR\&. It is recommended to only use external identifiers that generally require little escaping to be turned into valid bus path identifiers (for example, by sticking to a 7\-bit ASCII character set), in order to ensure the resulting bus path is still short and easily processed\&. -.PP -\fBsd_bus_path_decode()\fR -reverses the operation of -\fBsd_bus_path_encode()\fR -and thus regenerates an external identifier string from a bus path\&. It takes a bus path and a prefix string, plus a place to store the returned external identifier string\&. If the bus path does not start with the specified prefix, 0 is returned and the returned string is set to -\fBNULL\fR\&. Otherwise, the string following the prefix is unescaped and returned in the external identifier string\&. -.PP -The escaping used will replace all characters which are invalid in a bus object path by -"_", followed by a hexadecimal value\&. As a special case, the empty string will be replaced by a lone -"_"\&. -.PP -\fBsd_bus_path_encode_many()\fR -works like its counterpart -\fBsd_bus_path_encode()\fR, but takes a path template as argument and encodes multiple labels according to its embedded directives\&. For each -"%" -character found in the template, the caller must provide a string via varargs, which will be encoded and embedded at the position of the -"%" -character\&. Any other character in the template is copied verbatim into the encoded path\&. -.PP -\fBsd_bus_path_decode_many()\fR -does the reverse of -\fBsd_bus_path_encode_many()\fR\&. It decodes the passed object path according to the given path template\&. For each -"%" -character in the template, the caller must provide an output storage ("char **") via varargs\&. The decoded label will be stored there\&. Each -"%" -character will only match the current label\&. It will never match across labels\&. Furthermore, only a single directive is allowed per label\&. If -\fBNULL\fR -is passed as output storage, the label is verified but not returned to the caller\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_path_encode()\fR -returns positive or 0, and a valid bus path in the return argument\&. On success, -\fBsd_bus_path_decode()\fR -returns a positive value if the prefixed matched, or 0 if it did not\&. If the prefix matched, the external identifier is returned in the return parameter\&. If it did not match, -\fBNULL\fR -is returned in the return parameter\&. On failure, a negative errno\-style error number is returned by either function\&. The returned strings must be -\fBfree\fR(3)\*(Aqd by the caller\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBfree\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_process.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_process.3 deleted file mode 100644 index bf74ed95..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_process.3 +++ /dev/null @@ -1,122 +0,0 @@ -'\" t -.TH "SD_BUS_PROCESS" "3" "" "systemd 254" "sd_bus_process" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_process \- Drive the connection -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_process('u -.BI "int sd_bus_process(sd_bus\ *" "bus" ", sd_bus_message\ **" "ret" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_process()\fR -drives the connection between the client and the message bus\&. That is, it handles connecting, authentication, and message processing\&. When invoked pending I/O work is executed, and queued incoming messages are dispatched to registered callbacks\&. Each time it is invoked a single operation is executed\&. It returns zero when no operations were pending and positive if a message was processed\&. When zero is returned the caller should synchronously poll for I/O events before calling into -\fBsd_bus_process()\fR -again\&. For that either use the simple, synchronous -\fBsd_bus_wait\fR(3) -call, or hook up the bus connection object to an external or manual event loop using -\fBsd_bus_get_fd\fR(3)\&. -.PP -\fBsd_bus_process()\fR -processes at most one incoming message per call\&. If the parameter -\fIret\fR -is not -\fBNULL\fR -and the call processed a message, -\fI*ret\fR -is set to this message\&. The caller owns a reference to this message and should call -\fBsd_bus_message_unref\fR(3) -when the message is no longer needed\&. If -\fIret\fR -is not -\fBNULL\fR, progress was made, but no message was processed, -\fI*ret\fR -is set to -\fBNULL\fR\&. -.PP -If the bus object is connected to an -\fBsd-event\fR(3) -event loop (with -\fBsd_bus_attach_event\fR(3)), it is not necessary to call -\fBsd_bus_process()\fR -directly as it is invoked automatically when necessary\&. -.SH "RETURN VALUE" -.PP -If progress was made, a positive integer is returned\&. If no progress was made, 0 is returned\&. If an error occurs, a negative -\fIerrno\fR\-style error code is returned\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -An invalid bus object was passed\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus connection was allocated in a parent process and is being reused in a child process after -\fBfork()\fR\&. -.RE -.PP -\fB\-ENOTCONN\fR -.RS 4 -The bus connection has been terminated already\&. -.RE -.PP -\fB\-ECONNRESET\fR -.RS 4 -The bus connection has been terminated just now\&. -.RE -.PP -\fB\-EBUSY\fR -.RS 4 -This function is already being called, i\&.e\&. -\fBsd_bus_process()\fR -has been called from a callback function that itself was called by -\fBsd_bus_process()\fR\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_wait\fR(3), -\fBsd_bus_get_fd\fR(3), -\fBsd_bus_message_unref\fR(3), -\fBsd-event\fR(3), -\fBsd_bus_attach_event\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_query_sender_creds.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_query_sender_creds.3 deleted file mode 100644 index 6d8e2bbe..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_query_sender_creds.3 +++ /dev/null @@ -1,122 +0,0 @@ -'\" t -.TH "SD_BUS_QUERY_SENDER_CREDS" "3" "" "systemd 254" "sd_bus_query_sender_creds" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_query_sender_creds, sd_bus_query_sender_privilege \- Query bus message sender credentials/privileges -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_query_sender_creds('u -.BI "int sd_bus_query_sender_creds(sd_bus_message\ *" "m" ", uint64_t\ " "mask" ", sd_bus_creds\ **" "creds" ");" -.HP \w'sd_bus_error*\ sd_bus_query_sender_privilege('u -.BI "sd_bus_error* sd_bus_query_sender_privilege(sd_bus_message\ *" "m" ", int\ " "capability" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_query_sender_creds()\fR -returns the credentials of the message -\fIm\fR\&. The -\fImask\fR -parameter is a combo of -\fBSD_BUS_CREDS_*\fR -flags that indicate which credential info the caller is interested in\&. See -\fBsd_bus_creds_new_from_pid\fR(3) -for a list of possible flags\&. First, this message checks if the requested credentials are attached to the message itself\&. If not, but the message contains the pid of the sender and the caller specified the -\fBSD_BUS_CREDS_AUGMENT\fR -flag, this function tries to figure out the missing credentials via other means (starting from the pid)\&. If the pid isn\*(Aqt available but the message has a sender, this function calls -\fBsd_bus_get_name_creds\fR(3) -to get the requested credentials\&. If the message has no sender (when a direct connection is used), this function calls -\fBsd_bus_get_owner_creds\fR(3) -to get the requested credentials\&. On success, the requested credentials are stored in -\fIcreds\fR\&. Ownership of the credentials object in -\fIcreds\fR -is transferred to the caller and should be freed by calling -\fBsd_bus_creds_unref\fR(3)\&. -.PP -\fBsd_bus_query_sender_privilege()\fR -checks if the message -\fIm\fR -has the requested privileges\&. If -\fIcapability\fR -is a non\-negative integer, this function checks if the message has the capability with the same value\&. See -\fBcapabilities\fR(7) -for a list of capabilities\&. If -\fIcapability\fR -is a negative integer, this function returns whether the sender of the message runs as the same user as the receiver of the message, or if the sender of the message runs as root and the receiver of the message does not run as root\&. On success and if the message has the requested privileges, this function returns a positive integer\&. If the message does not have the requested privileges, this function returns zero\&. -.SH "RETURN VALUE" -.PP -On success, these functions return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The message -\fIm\fR -or an output parameter is -\fBNULL\fR\&. -.RE -.PP -\fB\-ENOTCONN\fR -.RS 4 -The bus of -\fIm\fR -is not connected\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus of -\fIm\fR -was created in a different process, library or module instance\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -The message -\fIm\fR -is not sealed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_creds_new_from_pid\fR(3), -\fBsd_bus_get_name_creds\fR(3), -\fBsd_bus_get_owner_creds\fR(3), -\fBsd_bus_creds_unref\fR(3), -\fBcapabilities\fR(7) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_reply_method_error.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_reply_method_error.3 deleted file mode 100644 index 790b0dcb..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_reply_method_error.3 +++ /dev/null @@ -1,151 +0,0 @@ -'\" t -.TH "SD_BUS_REPLY_METHOD_ERROR" "3" "" "systemd 254" "sd_bus_reply_method_error" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_reply_method_error, sd_bus_reply_method_errorf, sd_bus_reply_method_errorfv, sd_bus_reply_method_errno, sd_bus_reply_method_errnof, sd_bus_reply_method_errnofv \- Reply with an error to a D\-Bus method call -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_reply_method_error('u -.BI "int sd_bus_reply_method_error(sd_bus_message\ *" "call" ", const\ sd_bus_error\ *" "e" ");" -.HP \w'int\ sd_bus_reply_method_errorf('u -.BI "int sd_bus_reply_method_errorf(sd_bus_message\ *" "call" ", const\ char\ *" "name" ", const\ char\ *" "format" ", \&.\&.\&.);" -.HP \w'int\ sd_bus_reply_method_errorfv('u -.BI "int sd_bus_reply_method_errorfv(sd_bus_message\ *" "call" ", const\ char\ *" "name" ", const\ char\ *" "format" ", va_list\ " "ap" ");" -.HP \w'int\ sd_bus_reply_method_errno('u -.BI "int sd_bus_reply_method_errno(sd_bus_message\ *" "call" ", int\ " "error" ", const\ sd_bus_error\ *" "p" ");" -.HP \w'int\ sd_bus_reply_method_errnof('u -.BI "int sd_bus_reply_method_errnof(sd_bus_message\ *" "call" ", int\ " "error" ", const\ char\ *" "format" ", \&.\&.\&.);" -.HP \w'int\ sd_bus_reply_method_errnofv('u -.BI "int sd_bus_reply_method_errnofv(sd_bus_message\ *" "call" ", int\ " "error" ", const\ char\ *" "format" ", va_list\ " "ap" ");" -.SH "DESCRIPTION" -.PP -The -\fBsd_bus_reply_method_error()\fR -function sends an error reply to the -\fIcall\fR -message\&. The error structure -\fIe\fR -specifies the error to send, and is used as described in -\fBsd_bus_message_new_method_error\fR(3)\&. If no reply is expected to -\fIcall\fR, this function succeeds without sending a reply\&. -.PP -The -\fBsd_bus_reply_method_errorf()\fR -is to -\fBsd_bus_reply_method_error()\fR -what -\fBsd_bus_message_new_method_errorf()\fR -is to -\fBsd_bus_message_new_method_error()\fR\&. -.PP -The -\fBsd_bus_reply_method_errno()\fR -is to -\fBsd_bus_reply_method_error()\fR -what -\fBsd_bus_message_new_method_errno()\fR -is to -\fBsd_bus_message_new_method_error()\fR\&. -.PP -The -\fBsd_bus_reply_method_errnof()\fR -is to -\fBsd_bus_reply_method_error()\fR -what -\fBsd_bus_message_new_method_errnof()\fR -is to -\fBsd_bus_message_new_method_error()\fR\&. -.SH "RETURN VALUE" -.PP -This function returns a non\-negative integer if the error reply was successfully sent or if -\fIcall\fR -does not expect a reply\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The input parameter -\fIcall\fR -is -\fBNULL\fR\&. -.sp -Message -\fIcall\fR -is not a method call message\&. -.sp -Message -\fIcall\fR -is not attached to a bus\&. -.sp -The error parameter -\fIe\fR -to -\fBsd_bus_reply_method_error()\fR -is not set, see -\fBsd_bus_error_is_set\fR(3)\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -Message -\fIcall\fR -has been sealed\&. -.RE -.PP -\fB\-ENOTCONN\fR -.RS 4 -The bus to which message -\fIcall\fR -is attached is not connected\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.PP -In addition, any error returned by -\fBsd_bus_send\fR(1) -may be returned\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_new_method_error\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_reply_method_return.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_reply_method_return.3 deleted file mode 100644 index 6d9e7fd5..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_reply_method_return.3 +++ /dev/null @@ -1,110 +0,0 @@ -'\" t -.TH "SD_BUS_REPLY_METHOD_RETURN" "3" "" "systemd 254" "sd_bus_reply_method_return" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_reply_method_return, sd_bus_reply_method_returnv \- Reply to a D\-Bus method call -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_reply_method_return('u -.BI "int sd_bus_reply_method_return(sd_bus_message\ *" "call" ", const\ char\ *" "types" ", \&.\&.\&.);" -.HP \w'int\ sd_bus_reply_method_returnv('u -.BI "int sd_bus_reply_method_returnv(sd_bus_message\ *" "call" ", const\ char\ *" "types" ", va_list\ " "ap" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_reply_method_return()\fR -sends a reply to the -\fIcall\fR -message\&. The type string -\fItypes\fR -and the arguments that follow it must adhere to the format described in -\fBsd_bus_message_append\fR(3)\&. If no reply is expected to -\fIcall\fR, this function succeeds without sending a reply\&. -.SH "RETURN VALUE" -.PP -On success, this function returns a non\-negative integer\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The input parameter -\fIcall\fR -is -\fBNULL\fR\&. -.sp -Message -\fIcall\fR -is not a method call message\&. -.sp -Message -\fIcall\fR -is not attached to a bus\&. -.sp -Message -\fIm\fR -is not a method reply message\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -Message -\fIcall\fR -has been sealed\&. -.RE -.PP -\fB\-ENOTCONN\fR -.RS 4 -The bus to which message -\fIcall\fR -is attached is not connected\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.PP -In addition, any error returned by -\fBsd_bus_send\fR(1) -may be returned\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_new_method_return\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_request_name.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_request_name.3 deleted file mode 100644 index 5f53700e..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_request_name.3 +++ /dev/null @@ -1,165 +0,0 @@ -'\" t -.TH "SD_BUS_REQUEST_NAME" "3" "" "systemd 254" "sd_bus_request_name" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_request_name, sd_bus_request_name_async, sd_bus_release_name, sd_bus_release_name_async \- Request or release a well\-known service name on a bus -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'typedef\ int\ (*sd_bus_message_handler_t)('u -.BI "typedef int (*sd_bus_message_handler_t)(sd_bus_message\ *" "m" ", void\ *" "userdata" ", sd_bus_error\ *" "ret_error" ");" -.HP \w'int\ sd_bus_request_name('u -.BI "int sd_bus_request_name(sd_bus\ *" "bus" ", const\ char\ *" "name" ", uint64_t\ " "flags" ");" -.HP \w'int\ sd_bus_request_name_async('u -.BI "int sd_bus_request_name_async(sd_bus\ *" "bus" ", sd_bus_slot\ **" "slot" ", const\ char\ *" "name" ", uint64_t\ " "flags" ", sd_bus_message_handler_t\ " "callback" ", void\ *" "userdata" ");" -.HP \w'int\ sd_bus_release_name('u -.BI "int sd_bus_release_name(sd_bus\ *" "bus" ", const\ char\ *" "name" ");" -.HP \w'int\ sd_bus_release_name_async('u -.BI "int sd_bus_release_name_async(sd_bus\ *" "bus" ", sd_bus_slot\ **" "slot" ", const\ char\ *" "name" ", sd_bus_message_handler_t\ " "callback" ", void\ *" "userdata" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_request_name()\fR -requests a well\-known service name on a bus\&. It takes a bus connection, a valid bus name, and a flags parameter\&. The flags parameter is a combination of zero or more of the following flags: -.PP -\fBSD_BUS_NAME_ALLOW_REPLACEMENT\fR -.RS 4 -After acquiring the name successfully, permit other peers to take over the name when they try to acquire it with the -\fBSD_BUS_NAME_REPLACE_EXISTING\fR -flag set\&. If -\fBSD_BUS_NAME_ALLOW_REPLACEMENT\fR -is not set on the original request, such a request by other peers will be denied\&. -.RE -.PP -\fBSD_BUS_NAME_REPLACE_EXISTING\fR -.RS 4 -Take over the name if it was already acquired by another peer, and that other peer has permitted takeover by setting -\fBSD_BUS_NAME_ALLOW_REPLACEMENT\fR -while acquiring it\&. -.RE -.PP -\fBSD_BUS_NAME_QUEUE\fR -.RS 4 -Queue the acquisition of the name when the name is already taken\&. -.RE -.PP -\fBsd_bus_request_name()\fR -operates in a synchronous fashion: a message requesting the name is sent to the bus broker, and the call waits until the broker responds\&. -.PP -\fBsd_bus_request_name_async()\fR -is an asynchronous version of -\fBsd_bus_request_name()\fR\&. Instead of waiting for the request to complete, the request message is enqueued\&. The specified -\fIcallback\fR -will be called when the broker\*(Aqs response is received\&. If the parameter is specified as -\fBNULL\fR -a default implementation is used instead which will terminate the connection when the name cannot be acquired\&. The function returns a slot object in its -\fIslot\fR -parameter \(em if it is passed as non\-\fBNULL\fR -\(em which may be used as a reference to the name request operation\&. Use -\fBsd_bus_slot_unref\fR(3) -to destroy this reference\&. Note that destroying the reference will not unregister the name, but simply ensure the specified callback is no longer called\&. -.PP -\fBsd_bus_release_name()\fR -releases an acquired well\-known name\&. It takes a bus connection and a valid bus name as parameters\&. This function operates synchronously, sending a release request message to the bus broker and waiting for it to reply\&. -.PP -\fBsd_bus_release_name_async()\fR -is an asynchronous version of -\fBsd_bus_release_name()\fR\&. The specified -\fIcallback\fR -function is called when the name has been released successfully\&. If specified as -\fBNULL\fR -a generic implementation is used that ignores the result of the operation\&. As above, the -\fIslot\fR -(if non\-\fBNULL\fR) is set to an object that may be used to reference the operation\&. -.PP -These functions are supported only on bus connections, i\&.e\&. connections to a bus broker and not on direct connections\&. -.SH "RETURN VALUE" -.PP -On success, these calls return 0 or a positive integer\&. On failure, these calls return a negative errno\-style error code\&. -.PP -If -\fBSD_BUS_NAME_QUEUE\fR -is specified, -\fBsd_bus_request_name()\fR -will return 0 when the name is already taken by another peer and the client has been added to the queue for the name\&. In that case, the caller can subscribe to -"NameOwnerChanged" -signals to be notified when the name is successfully acquired\&. -\fBsd_bus_request_name()\fR -returns > 0 when the name has immediately been acquired successfully\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EALREADY\fR -.RS 4 -The caller already is the owner of the specified name\&. -.RE -.PP -\fB\-EEXIST\fR -.RS 4 -The name has already been acquired by a different peer, and SD_BUS_NAME_REPLACE_EXISTING was not specified or the other peer did not specify SD_BUS_NAME_ALLOW_REPLACEMENT while acquiring the name\&. -.RE -.PP -\fB\-ESRCH\fR -.RS 4 -It was attempted to release a name that is currently not registered on the bus\&. -.RE -.PP -\fB\-EADDRINUSE\fR -.RS 4 -It was attempted to release a name that is owned by a different peer on the bus\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -A specified parameter is invalid\&. This is also generated when the requested name is a special service name reserved by the D\-Bus specification, or when the operation is requested on a connection that does not refer to a bus\&. -.RE -.PP -\fB\-ENOTCONN\fR -.RS 4 -The bus connection has been disconnected\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus connection has been created in a different process than the current one\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_new\fR(3), -\fBsd_bus_slot_unref\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_send.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_send.3 deleted file mode 100644 index 1a9eb80c..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_send.3 +++ /dev/null @@ -1,158 +0,0 @@ -'\" t -.TH "SD_BUS_SEND" "3" "" "systemd 254" "sd_bus_send" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_send, sd_bus_send_to, sd_bus_message_send \- Queue a D\-Bus message for transfer -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_send('u -.BI "int sd_bus_send(sd_bus\ *" "bus" ", sd_bus_message\ *" "m" ", uint64_t\ *" "cookie" ");" -.HP \w'int\ sd_bus_send_to('u -.BI "int sd_bus_send_to(sd_bus\ *" "bus" ", sd_bus_message\ *" "m" ", const\ char\ *" "destination" ", uint64_t\ *" "cookie" ");" -.HP \w'int\ sd_bus_message_send('u -.BI "int sd_bus_message_send(sd_bus_message\ *" "m" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_send()\fR -queues the bus message object -\fIm\fR -for transfer\&. If -\fIbus\fR -is -\fBNULL\fR, the bus that -\fIm\fR -is attached to is used\&. -\fIbus\fR -only needs to be set when the message is sent to a different bus than the one it\*(Aqs attached to, for example when forwarding messages\&. If the output parameter -\fIcookie\fR -is not -\fBNULL\fR, it is set to the message identifier\&. This value can later be used to match incoming replies to their corresponding messages\&. If -\fIcookie\fR -is set to -\fBNULL\fR -and the message is not sealed, -\fBsd_bus_send()\fR -assumes the message -\fIm\fR -doesn\*(Aqt expect a reply and adds the necessary headers to indicate this\&. -.PP -Note that in most scenarios, -\fBsd_bus_send()\fR -should not be called directly\&. Instead, use higher level functions such as -\fBsd_bus_call_method\fR(3) -and -\fBsd_bus_reply_method_return\fR(3) -which call -\fBsd_bus_send()\fR -internally\&. -.PP -\fBsd_bus_send_to()\fR -is a shorthand for sending a message to a specific destination\&. It\*(Aqs main use case is to simplify sending unicast signal messages (signals that only have a single receiver)\&. It\*(Aqs behavior is similar to calling -\fBsd_bus_message_set_destination\fR(3) -followed by calling -\fBsd_bus_send()\fR\&. -.PP -\fBsd_bus_send()\fR/\fBsd_bus_send_to()\fR -will write the message directly to the underlying transport (e\&.g\&. kernel socket buffer) if possible\&. If the connection is not set up fully yet the message is queued locally\&. If the transport buffers are congested any unwritten message data is queued locally, too\&. If the connection has been closed or is currently being closed the call fails\&. -\fBsd_bus_process\fR(3) -should be invoked to write out any queued message data to the transport\&. -.PP -\fBsd_bus_message_send()\fR -is the same as -\fBsd_bus_send()\fR -but without the first and last argument\&. -\fBsd_bus_message_send(m)\fR -is equivalent to -\fBsd_bus_send(sd_bus_message_get_bus(m), m, NULL)\fR\&. -.SH "RETURN VALUE" -.PP -On success, these functions return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The input parameter -\fIm\fR -is -\fBNULL\fR\&. -.RE -.PP -\fB\-EOPNOTSUPP\fR -.RS 4 -The bus connection does not support sending file descriptors\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus connection was allocated in a parent process and is being reused in a child process after -\fBfork()\fR\&. -.RE -.PP -\fB\-ENOBUFS\fR -.RS 4 -The bus connection\*(Aqs write queue is full\&. -.RE -.PP -\fB\-ENOTCONN\fR -.RS 4 -The input parameter -\fIbus\fR -is -\fBNULL\fR -or the bus is not connected\&. -.RE -.PP -\fB\-ECONNRESET\fR -.RS 4 -The bus connection was closed while waiting for the response\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_call_method\fR(3), -\fBsd_bus_message_set_destination\fR(3), -\fBsd_bus_reply_method_return\fR(3), -\fBsd_bus_process\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_set_address.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_set_address.3 deleted file mode 100644 index 8591db1f..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_set_address.3 +++ /dev/null @@ -1,213 +0,0 @@ -'\" t -.TH "SD_BUS_SET_ADDRESS" "3" "" "systemd 254" "sd_bus_set_address" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_set_address, sd_bus_get_address, sd_bus_set_exec \- Set or query the address of the bus connection -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_set_address('u -.BI "int sd_bus_set_address(sd_bus\ *" "bus" ", const\ char\ *" "address" ");" -.HP \w'int\ sd_bus_get_address('u -.BI "int sd_bus_get_address(sd_bus\ *" "bus" ", const\ char\ **" "address" ");" -.HP \w'int\ sd_bus_set_exec('u -.BI "int sd_bus_set_exec(sd_bus\ *" "bus" ", const\ char\ *" "path" ", char\ *const\ *" "argv" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_set_address()\fR -configures a list of addresses of bus brokers to try to connect to from a subsequent -\fBsd_bus_start\fR(3) -call\&. The argument is a -";"\-separated list of addresses to try\&. Each item must be one of the following: -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -A unix socket address specified as -"unix:guid=\fIguid\fR,path=\fIpath\fR" -or -"unix:guid=\fIguid\fR,abstract=\fIpath\fR"\&. Exactly one of the -\fIpath=\fR -and -\fIabstract=\fR -keys must be present, while -\fIguid=\fR -is optional\&. -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -A TCP socket address specified as -"tcp:[guid=\fIguid\fR,][host=\fIhost\fR][,port=\fIport\fR][,family=\fIfamily\fR]"\&. One or both of the -\fIhost=\fR -and -\fIport=\fR -keys must be present, while the rest is optional\&. -\fIfamily\fR -may be either -\fBipv4\fR -or -\fBipv6\fR\&. -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -An executable to spawn specified as -"unixexec:guid=\fIguid\fR,path=\fIpath\fR,argv1=\fIargument\fR,argv2=\fIargument\fR,\&.\&.\&."\&. The -\fIpath=\fR -key must be present, while -\fIguid=\fR -is optional\&. -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -A machine (container) to connect to specified as -"x\-machine\-unix:guid=\fIguid\fR,machine=\fImachine\fR,pid=\fIpid\fR"\&. Exactly one of the -\fImachine=\fR -and -\fIpid=\fR -keys must be present, while -\fIguid=\fR -is optional\&. -\fImachine\fR -is the name of a local container\&. See -\fBmachinectl\fR(1) -for more information about the "machine" concept\&. -"machine=\&.host" -may be used to specify the host machine\&. A connection to the standard system bus socket inside of the specified machine will be created\&. -.RE -.PP -In all cases, parameter -\fIguid\fR -is an identifier of the remote peer, in the syntax accepted by -\fBsd_id128_from_string\fR(3)\&. If specified, the identifier returned by the peer after the connection is established will be checked and the connection will be rejected in case of a mismatch\&. -.PP -Note that the addresses passed to -\fBsd_bus_set_address()\fR -may not be verified immediately\&. If they are invalid, an error may be returned e\&.g\&. from a subsequent call to -\fBsd_bus_start\fR(3)\&. -.PP -\fBsd_bus_get_address()\fR -returns any previously set addresses\&. In addition to being explicitly set by -\fBsd_bus_set_address()\fR, the address will also be set automatically by -\fBsd_bus_open\fR(3) -and similar calls, based on environment variables or built\-in defaults\&. -.PP -\fBsd_bus_set_exec()\fR -is a shorthand function for setting a -"unixexec" -address that spawns the given executable with the given arguments\&. If -\fIargv\fR -is -\fBNULL\fR, the given executable is spawned without any extra arguments\&. -.SH "RETURN VALUE" -.PP -On success, these functions return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The input parameters -\fIbus\fR -or -\fIaddress\fR -are -\fBNULL\fR\&. -.RE -.PP -\fB\-ENOPKG\fR -.RS 4 -The bus object -\fIbus\fR -could not be resolved\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -The input parameter -\fIbus\fR -is in a wrong state (\fBsd_bus_set_address()\fR -may only be called once on a newly\-created bus object)\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus object -\fIbus\fR -was created in a different process\&. -.RE -.PP -\fB\-ENODATA\fR -.RS 4 -The bus object -\fIbus\fR -has no address configured\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_new\fR(3), -\fBsd_bus_start\fR(3), -\fBsystemd-machined.service\fR(8), -\fBmachinectl\fR(1) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_set_close_on_exit.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_set_close_on_exit.3 deleted file mode 100644 index 3b9d289c..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_set_close_on_exit.3 +++ /dev/null @@ -1,84 +0,0 @@ -'\" t -.TH "SD_BUS_SET_CLOSE_ON_EXIT" "3" "" "systemd 254" "sd_bus_set_close_on_exit" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_set_close_on_exit, sd_bus_get_close_on_exit \- Control whether to close the bus connection during the event loop exit phase -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_set_close_on_exit('u -.BI "int sd_bus_set_close_on_exit(sd_bus\ *" "bus" ", int\ " "b" ");" -.HP \w'int\ sd_bus_get_close_on_exit('u -.BI "int sd_bus_get_close_on_exit(sd_bus\ *" "bus" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_set_close_on_exit()\fR -may be used to enable or disable whether the bus connection is automatically flushed (as in -\fBsd_bus_flush\fR(3)) and closed (as in -\fBsd_bus_close\fR(3)) during the exit phase of the event loop\&. This logic only applies to bus connections that are attached to an -\fBsd-event\fR(3) -event loop, see -\fBsd_bus_attach_event\fR(3)\&. By default this mechanism is enabled and makes sure that any pending messages that have not been written to the bus connection are written out when the event loop is shutting down\&. In some cases this behaviour is not desirable, for example when the bus connection shall remain usable until after the event loop exited\&. If -\fIb\fR -is true, the feature is enabled (which is the default), otherwise disabled\&. -.PP -\fBsd_bus_get_close_on_exit()\fR -may be used to query the current setting of this feature\&. It returns zero when the feature is disabled, and positive if enabled\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_set_close_on_exit()\fR -returns a non\-negative integer\&. On failure, it returns a negative errno\-style error code\&. -.PP -\fBsd_bus_get_close_on_exit()\fR -returns 0 if the feature is currently disabled or a positive integer if it is enabled\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ECHILD\fR -.RS 4 -The bus connection was created in a different process, library or module instance\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_flush\fR(3), -\fBsd_bus_attach_event\fR(3), -\fBsd-event\fR(3), -\fBsd_event_add_exit\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_set_connected_signal.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_set_connected_signal.3 deleted file mode 100644 index 48a166c2..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_set_connected_signal.3 +++ /dev/null @@ -1,98 +0,0 @@ -'\" t -.TH "SD_BUS_SET_CONNECTED_SIGNAL" "3" "" "systemd 254" "sd_bus_set_connected_signal" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_set_connected_signal, sd_bus_get_connected_signal \- Control emission of local connection establishment signal on bus connections -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_set_connected_signal('u -.BI "int sd_bus_set_connected_signal(sd_bus\ *" "bus" ", int\ " "b" ");" -.HP \w'int\ sd_bus_get_connected_signal('u -.BI "int sd_bus_get_connected_signal(sd_bus\ *" "bus" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_set_connected_signal()\fR -may be used to control whether a local, synthetic -\fBConnected()\fR -signal message shall be generated and enqueued for dispatching when the connection is fully established\&. If the -\fIb\fR -parameter is zero the message is not generated (the default), otherwise it is generated\&. -.PP -\fBsd_bus_get_connected_signal()\fR -may be used to query whether this feature is enabled\&. It returns zero if not, positive otherwise\&. -.PP -The -\fBConnected()\fR -signal message is generated from the -"org\&.freedesktop\&.DBus\&.Local" -service and interface, and -"/org/freedesktop/DBus/Local" -object path\&. Use -\fBsd_bus_match_signal_async\fR(3) -to match on this signal\&. -.PP -This message is particularly useful on slow transports where connections take a long time to be established\&. This is especially the case when -\fBsd_bus_set_watch_bind\fR(3) -is used\&. The signal is generated when the -\fBsd_bus_is_ready\fR(3) -returns positive for the first time\&. -.PP -The -\fBConnected()\fR -signal corresponds with the -\fBDisconnected()\fR -signal that is synthesized locally when the connection is terminated\&. The latter is generated unconditionally however, unlike the former which needs to be enabled explicitly before it is generated, with -\fBsd_bus_set_connected_signal()\fR\&. -.SH "RETURN VALUE" -.PP -On success, these functions return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ECHILD\fR -.RS 4 -The bus connection has been created in a different process, library or module instance\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_match_signal_async\fR(3), -\fBsd_bus_set_watch_bind\fR(3), -\fBsd_bus_is_ready\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_set_description.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_set_description.3 deleted file mode 100644 index fdd5f1ec..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_set_description.3 +++ /dev/null @@ -1,220 +0,0 @@ -'\" t -.TH "SD_BUS_SET_DESCRIPTION" "3" "" "systemd 254" "sd_bus_set_description" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_set_description, sd_bus_get_description, sd_bus_set_anonymous, sd_bus_is_anonymous, sd_bus_set_trusted, sd_bus_is_trusted, sd_bus_set_allow_interactive_authorization, sd_bus_get_allow_interactive_authorization, sd_bus_get_scope, sd_bus_get_tid, sd_bus_get_unique_name \- Set or query properties of a bus object -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_set_description('u -.BI "int sd_bus_set_description(sd_bus\ *" "bus" ", const\ char\ *" "description" ");" -.HP \w'int\ sd_bus_get_description('u -.BI "int sd_bus_get_description(sd_bus\ *" "bus" ", const\ char\ **" "description" ");" -.HP \w'int\ sd_bus_set_anonymous('u -.BI "int sd_bus_set_anonymous(sd_bus\ *" "bus" ", int\ " "b" ");" -.HP \w'int\ sd_bus_is_anonymous('u -.BI "int sd_bus_is_anonymous(sd_bus\ *" "bus" ");" -.HP \w'int\ sd_bus_set_trusted('u -.BI "int sd_bus_set_trusted(sd_bus\ *" "bus" ", int\ " "b" ");" -.HP \w'int\ sd_bus_is_trusted('u -.BI "int sd_bus_is_trusted(sd_bus\ *" "bus" ");" -.HP \w'int\ sd_bus_set_allow_interactive_authorization('u -.BI "int sd_bus_set_allow_interactive_authorization(sd_bus\ *" "bus" ", int\ " "b" ");" -.HP \w'int\ sd_bus_get_allow_interactive_authorization('u -.BI "int sd_bus_get_allow_interactive_authorization(sd_bus\ *" "bus" ");" -.HP \w'int\ sd_bus_get_scope('u -.BI "int sd_bus_get_scope(sd_bus\ *" "bus" ", const\ char\ **" "scope" ");" -.HP \w'int\ sd_bus_get_tid('u -.BI "int sd_bus_get_tid(sd_bus\ *" "bus" ", pid_t\ *" "tid" ");" -.HP \w'int\ sd_bus_get_unique_name('u -.BI "int sd_bus_get_unique_name(sd_bus\ *" "bus" ", const\ char\ **" "unique" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_set_description()\fR -sets the description string that is used in logging to the specified string\&. The string is copied internally and freed when the bus object is deallocated\&. The -\fIdescription\fR -argument may be -\fBNULL\fR, in which case the description is unset\&. This function must be called before the bus is started\&. -.PP -\fBsd_bus_get_description()\fR -returns a description string in -\fIdescription\fR\&. This string may have been previously set with -\fBsd_bus_set_description()\fR -or -\fBsd_bus_open_with_description\fR(3) -or similar\&. If not set this way, a default string like -"system" -or -"user" -will be returned for the system or user buses, and -\fB\-ENXIO\fR -otherwise\&. -.PP -\fBsd_bus_set_anonymous()\fR -enables or disables "anonymous authentication", i\&.e\&. lack of authentication, of the bus peer\&. This function must be called before the bus is started\&. See the -\m[blue]\fBAuthentication Mechanisms\fR\m[]\&\s-2\u[1]\d\s+2 -section of the D\-Bus specification for details\&. -.PP -\fBsd_bus_is_anonymous()\fR -returns true if the bus connection allows anonymous authentication (in the sense described in previous paragraph)\&. -.PP -\fBsd_bus_set_trusted()\fR -sets the "trusted" state on the -\fIbus\fR -object\&. If true, all connections on the bus are trusted and access to all privileged and unprivileged methods is granted\&. This function must be called before the bus is started\&. -.PP -\fBsd_bus_is_trusted()\fR -returns true if the bus connection is trusted (in the sense described in previous paragraph)\&. -.PP -\fBsd_bus_set_allow_interactive_authorization()\fR -enables or disables interactive authorization for method calls\&. If true, messages are marked with the -\fBALLOW_INTERACTIVE_AUTHORIZATION\fR -flag specified by the -\m[blue]\fBD\-Bus\fR\m[]\&\s-2\u[2]\d\s+2 -specification, informing the receiving side that the caller is prepared to wait for interactive authorization, which might take a considerable time to complete\&. If this flag is set, the user may be queried for passwords or confirmation via -\m[blue]\fBpolkit\fR\m[]\&\s-2\u[3]\d\s+2 -or a similar framework\&. -.PP -\fBsd_bus_get_allow_interactive_authorization()\fR -returns true if interactive authorization is allowed and false if not\&. -.PP -\fBsd_bus_get_scope()\fR -stores the scope of the given bus object in -\fIscope\fR\&. The scope of the system bus is -"system"\&. The scope of a user session bus is -"user"\&. If the given bus object is not the system or a user session bus, -\fBsd_bus_get_scope()\fR -returns an error\&. -.PP -\fBsd_bus_get_tid()\fR -stores the kernel thread id of the thread associated with the given bus object in -\fItid\fR\&. If -\fIbus\fR -is a default bus object obtained by calling one of the functions of the -\fBsd_bus_default\fR(3) -family of functions, it stores the thread id of the thread the bus object was created in\&. Otherwise, if the bus object is attached to an event loop, it stores the thread id of the thread the event loop object was created in\&. If -\fIbus\fR -is not a default bus object and is not attached to an event loop, -\fBsd_bus_get_tid()\fR -returns an error\&. -.PP -\fBsd_bus_get_unique_name()\fR -stores the unique name of the bus object on the bus in -\fIunique\fR\&. See -\m[blue]\fBThe D\-Bus specification\fR\m[]\&\s-2\u[4]\d\s+2 -for more information on bus names\&. Note that the caller does not own the string stored in -\fIunique\fR -and should not free it\&. -.SH "RETURN VALUE" -.PP -On success, these functions return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -An argument is invalid\&. -.RE -.PP -\fB\-ENOPKG\fR -.RS 4 -The bus cannot be resolved\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -The bus has already been started\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus was created in a different process, library or module instance\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.PP -\fB\-ENODATA\fR -.RS 4 -The bus object passed to -\fBsd_bus_get_scope()\fR -was not a system or user session bus\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -The bus object passed to -\fBsd_bus_get_tid()\fR -was not a default bus object and is not attached to an event loop\&. -.sp -The bus object passed to -\fBsd_bus_get_description()\fR -did not have a -\fIdescription\fR\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_default_user\fR(3), -\fBsd_bus_default_system\fR(3), -\fBsd_bus_open_user\fR(3), -\fBsd_bus_open_system\fR(3) -.SH "NOTES" -.IP " 1." 4 -Authentication Mechanisms -.RS 4 -\%view-source:https://dbus.freedesktop.org/doc/dbus-specification.html#auth-mechanisms -.RE -.IP " 2." 4 -D-Bus -.RS 4 -\%view-source:https://dbus.freedesktop.org/doc/dbus-specification.html -.RE -.IP " 3." 4 -polkit -.RS 4 -\%https://www.freedesktop.org/wiki/Software/polkit -.RE -.IP " 4." 4 -The D-Bus specification -.RS 4 -\%https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names-bus -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_set_exit_on_disconnect.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_set_exit_on_disconnect.3 deleted file mode 100644 index 4b5f4cff..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_set_exit_on_disconnect.3 +++ /dev/null @@ -1,100 +0,0 @@ -'\" t -.TH "SD_BUS_SET_EXIT_ON_DISCONNECT" "3" "" "systemd 254" "sd_bus_set_exit_on_disconnect" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_set_exit_on_disconnect, sd_bus_get_exit_on_disconnect \- Control the exit behavior when the bus object disconnects -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_set_exit_on_disconnect('u -.BI "int sd_bus_set_exit_on_disconnect(sd_bus\ *" "bus" ", int\ " "b" ");" -.HP \w'int\ sd_bus_get_exit_on_disconnect('u -.BI "int sd_bus_get_exit_on_disconnect(sd_bus\ *" "bus" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_set_exit_on_disconnect()\fR -may be used to configure the exit behavior when the given bus object disconnects\&. If -\fIb\fR -is zero, no special logic is executed when the bus object disconnects\&. If -\fIb\fR -is non\-zero, the behavior on disconnect depends on whether the bus object is attached to an event loop or not\&. If the bus object is attached to an event loop (see -\fBsd_bus_attach_event\fR(3)), the event loop is closed when the bus object disconnects (as if calling -\fBsd_event_exit\fR(3))\&. Otherwise, -\fBexit\fR(3) -is called\&. The exit code passed to -\fBsd_event_exit()\fR -and -\fBexit()\fR -is -\fBEXIT_FAILURE\fR\&. If the bus object has already disconnected when enabling the exit behavior, the exit behavior is executed immediately\&. By default, the exit behavior is disabled\&. -.PP -\fBsd_bus_get_exit_on_disconnect()\fR -returns whether the exit on disconnect behavior is enabled for the given bus object\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_set_exit_on_disconnect()\fR -returns a non\-negative integer\&. On failure, it returns a negative errno\-style error code\&. -.PP -\fBsd_bus_get_exit_on_disconnect()\fR -returns a positive integer if the exit on disconnect behavior is enabled\&. Otherwise, it returns zero\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -A required parameter was -\fBNULL\fR\&. -.RE -.PP -\fB\-ENOPKG\fR -.RS 4 -The bus object could not be resolved\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus connection was created in a different process, library or module instance\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_attach_event\fR(3), -\fBsd-event\fR(3), -\fBsd_event_exit\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_set_fd.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_set_fd.3 deleted file mode 100644 index 1ecf5f61..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_set_fd.3 +++ /dev/null @@ -1,102 +0,0 @@ -'\" t -.TH "SD_BUS_SET_FD" "3" "" "systemd 254" "sd_bus_set_fd" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_set_fd \- Set the file descriptors to use for bus communication -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_set_fd('u -.BI "int sd_bus_set_fd(sd_bus\ *" "bus" ", int\ " "input_fd" ", int\ " "output_fd" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_set_fd()\fR -sets the file descriptors used to communicate by a bus connection object\&. Both -\fIinput_fd\fR -and -\fIoutput_fd\fR -must be valid file descriptors, referring to stream\-based file objects (e\&.g\&. a stream socket, a pair of pipes or FIFOs, or even a TTY device)\&. -\fIinput_fd\fR -must be readable, and -\fIoutput_fd\fR -must be writable\&. The same file descriptor may be used (and typically is used) as both the input and the output file descriptor\&. This function must be called before the bus connection is started via -\fBsd_bus_start\fR(3)\&. -.PP -The bus connection object will take possession of the passed file descriptors and will close them automatically when it is freed\&. Use -\fBsd_bus_set_close_on_exit\fR(3) -to turn off this behaviour\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_set_fd()\fR -returns a non\-negative integer\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -An invalid bus object was passed\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus connection was allocated in a parent process and is being reused in a child process after -\fBfork()\fR\&. -.RE -.PP -\fB\-EBADF\fR -.RS 4 -An invalid file descriptor was passed to -\fBsd_bus_set_fd()\fR\&. -.RE -.PP -\fB\-ENOPKG\fR -.RS 4 -The bus cannot be resolved\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -The bus connection has already been started\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_get_fd\fR(3), -\fBsd_bus_start\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_set_method_call_timeout.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_set_method_call_timeout.3 deleted file mode 100644 index 2e4c1654..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_set_method_call_timeout.3 +++ /dev/null @@ -1,94 +0,0 @@ -'\" t -.TH "SD_BUS_SET_METHOD_CALL_TIMEOUT" "3" "" "systemd 254" "sd_bus_set_method_call_timeout" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_set_method_call_timeout, sd_bus_get_method_call_timeout \- Set or query the default D\-Bus method call timeout of a bus object -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_set_method_call_timeout('u -.BI "int sd_bus_set_method_call_timeout(sd_bus\ *" "bus" ", uint64_t\ " "usec" ");" -.HP \w'int\ sd_bus_get_method_call_timeout('u -.BI "int sd_bus_get_method_call_timeout(sd_bus\ *" "bus" ", uint64_t\ *" "ret" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_set_method_call_timeout()\fR -sets the default D\-Bus method call timeout of -\fIbus\fR -to -\fIusec\fR -microseconds\&. -.PP -\fBsd_bus_get_method_call_timeout()\fR -queries the default D\-Bus method call timeout of -\fIbus\fR\&. If no method call timeout was set using -\fBsd_bus_set_method_call_timeout()\fR, the timeout is read from the -\fI$SYSTEMD_BUS_TIMEOUT\fR -environment variable\&. If this environment variable is unset or does not contain a valid timeout, the implementation falls back to a predefined method call timeout of 25 seconds\&. Note that -\fI$SYSTEMD_BUS_TIMEOUT\fR -is read once and cached so callers should not rely on being able to change the default method call timeout at runtime by changing the value of -\fI$SYSTEMD_BUS_TIMEOUT\fR\&. Instead, call -\fBsd_bus_set_method_call_timeout()\fR -to change the default method call timeout\&. -.SH "RETURN VALUE" -.PP -On success, these functions return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The parameters -\fIbus\fR -or -\fIret\fR -are -\fBNULL\fR\&. -.RE -.PP -\fB\-ENOPKG\fR -.RS 4 -Bus object -\fIbus\fR -could not be resolved\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_call\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_set_property.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_set_property.3 deleted file mode 100644 index bbf86bb2..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_set_property.3 +++ /dev/null @@ -1,113 +0,0 @@ -'\" t -.TH "SD_BUS_SET_PROPERTY" "3" "" "systemd 254" "sd_bus_set_property" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_set_property, sd_bus_set_propertyv, sd_bus_get_property, sd_bus_get_property_trivial, sd_bus_get_property_string, sd_bus_get_property_strv \- Set or query D\-Bus service properties -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_set_property('u -.BI "int sd_bus_set_property(sd_bus\ *" "bus" ", const\ char\ *" "destination" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "member" ", sd_bus_error\ *" "ret_error" ", const\ char\ *" "type" ", \&.\&.\&.);" -.HP \w'int\ sd_bus_set_propertyv('u -.BI "int sd_bus_set_propertyv(sd_bus\ *" "bus" ", const\ char\ *" "destination" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "member" ", sd_bus_error\ *" "ret_error" ", const\ char\ *" "type" ", va_list\ " "ap" ");" -.HP \w'int\ sd_bus_get_property('u -.BI "int sd_bus_get_property(sd_bus\ *" "bus" ", const\ char\ *" "destination" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "member" ", sd_bus_error\ *" "ret_error" ", sd_bus_message\ **" "reply" ", const\ char\ *" "type" ");" -.HP \w'int\ sd_bus_get_property_trivial('u -.BI "int sd_bus_get_property_trivial(sd_bus\ *" "bus" ", const\ char\ *" "destination" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "member" ", sd_bus_error\ *" "ret_error" ", char\ " "type" ", void\ *" "ret_ptr" ");" -.HP \w'int\ sd_bus_get_property_string('u -.BI "int sd_bus_get_property_string(sd_bus\ *" "bus" ", const\ char\ *" "destination" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "member" ", sd_bus_error\ *" "ret_error" ", char\ **" "ret" ");" -.HP \w'int\ sd_bus_get_property_strv('u -.BI "int sd_bus_get_property_strv(sd_bus\ *" "bus" ", const\ char\ *" "destination" ", const\ char\ *" "path" ", const\ char\ *" "interface" ", const\ char\ *" "member" ", sd_bus_error\ *" "ret_error" ", char\ ***" "ret" ");" -.SH "DESCRIPTION" -.PP -These functions set or query D\-Bus properties\&. D\-Bus properties are service fields exposed via the -\fBorg\&.freedesktop\&.DBus\&.Properties\fR -interface\&. Under the hood, these functions call methods of the -\fBorg\&.freedesktop\&.DBus\&.Properties\fR -interface and as a result their semantics are similar to -\fBsd_bus_call_method\fR(3)\&. -.PP -\fBsd_bus_set_property()\fR -sets a D\-Bus property\&. If setting the property fails or an internal error occurs, an error is returned and an extended description of the error is optionally stored in -\fIret_error\fR -if it is not -\fBNULL\fR\&. -\fItype\fR -and the arguments that follow it describe the new value of the property and must follow the format described in -\fBsd_bus_message_append\fR(3)\&. -.PP -\fBsd_bus_set_propertyv()\fR -is equivalent to -\fBsd_bus_set_property()\fR, except that it is called with a -"va_list" -instead of a variable number of arguments\&. -.PP -\fBsd_bus_get_property()\fR -queries a D\-Bus property\&. If retrieving the property fails or an internal error occurs, an error is returned and an extended description of the error is optionally stored in -\fIret_error\fR -if it is not -\fBNULL\fR\&. On success, the property is stored in -\fIreply\fR\&. -\fItype\fR -describes the property type and must follow the format described in -\fBsd_bus_message_append\fR(3)\&. -.PP -\fBsd_bus_get_property_trivial()\fR, -\fBsd_bus_get_property_string()\fR -and -\fBsd_bus_get_property_strv()\fR -are shorthands for -\fBsd_bus_get_property()\fR -that are used to query basic, string and string vector properties respectively\&. The caller is responsible for freeing the string and string vector results stored in -\fIret\fR -by -\fBsd_bus_get_property_string()\fR -and -\fBsd_bus_get_property_strv()\fR\&. -.SH "RETURN VALUE" -.PP -On success, these functions return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -See the -\fBsd_bus_call_method\fR(3) -man page for a list of possible errors\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_call_method\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_set_sender.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_set_sender.3 deleted file mode 100644 index 2ec24520..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_set_sender.3 +++ /dev/null @@ -1,82 +0,0 @@ -'\" t -.TH "SD_BUS_SET_SENDER" "3" "" "systemd 254" "sd_bus_set_sender" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_set_sender, sd_bus_get_sender \- Configure default sender for outgoing messages -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_set_sender('u -.BI "int sd_bus_set_sender(sd_bus\ *" "bus" ", const\ char*\ " "name" ");" -.HP \w'int\ sd_bus_get_sender('u -.BI "int sd_bus_get_sender(sd_bus\ *" "bus" ", const\ char**\ " "name" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_set_sender()\fR -configures the default sender service name to use for outgoing messages\&. The service name specified in the -\fIname\fR -parameter is set on all outgoing messages that are sent on the connection and have no sender set yet, for example through -\fBsd_bus_message_set_sender\fR(3)\&. Note that this function is only supported on direct connections, i\&.e\&. not on connections to a bus broker as the broker will fill in the sender service name automatically anyway\&. By default no sender name is configured, and hence messages are sent without sender field set\&. If the -\fIname\fR -parameter is specified as -\fBNULL\fR -the default sender service name is cleared, returning to the default state if a default sender service name was set before\&. If passed as non\-\fBNULL\fR -the specified name must be a valid unique or well\-known service name\&. -.PP -\fBsd_bus_get_sender()\fR -may be used to query the current default service name for outgoing messages\&. -.SH "RETURN VALUE" -.PP -On success, these functions return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ECHILD\fR -.RS 4 -The bus connection has been created in a different process, library or module instance\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -The specified bus connection object is a not a direct but a brokered connection\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_message_set_sender\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_set_server.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_set_server.3 deleted file mode 100644 index 0acdc7d7..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_set_server.3 +++ /dev/null @@ -1,163 +0,0 @@ -'\" t -.TH "SD_BUS_SET_SERVER" "3" "" "systemd 254" "sd_bus_set_server" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_set_server, sd_bus_is_server, sd_bus_get_bus_id, sd_bus_set_bus_client, sd_bus_is_bus_client, sd_bus_set_monitor, sd_bus_is_monitor \- Configure connection mode for a bus object -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_set_server('u -.BI "int sd_bus_set_server(sd_bus\ *" "bus" ", int\ " "b" ", sd_id128_t\ " "id" ");" -.HP \w'int\ sd_bus_is_server('u -.BI "int sd_bus_is_server(sd_bus\ *" "bus" ");" -.HP \w'int\ sd_bus_get_bus_id('u -.BI "int sd_bus_get_bus_id(sd_bus\ *" "bus" ", sd_id128_t\ *" "id" ");" -.HP \w'int\ sd_bus_set_bus_client('u -.BI "int sd_bus_set_bus_client(sd_bus\ *" "bus" ", int\ " "b" ");" -.HP \w'int\ sd_bus_is_bus_client('u -.BI "int sd_bus_is_bus_client(sd_bus\ *" "bus" ");" -.HP \w'int\ sd_bus_set_monitor('u -.BI "int sd_bus_set_monitor(sd_bus\ *" "bus" ", int\ " "b" ");" -.HP \w'int\ sd_bus_is_monitor('u -.BI "int sd_bus_is_monitor(sd_bus\ *" "bus" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_set_server()\fR -configures the bus object as a server for direct D\-Bus connections\&. -\fIb\fR -enables/disables the server mode\&. If zero, the server mode is disabled\&. Otherwise, the server mode is enabled\&. Configuring a bus object as a server is required to allow establishing direct connections between two peers without going via the D\-Bus daemon\&. -\fIid\fR -must contain a 128\-bit integer id for the server\&. If clients add a guid field to their D\-Bus address string, the server id must match this guid or the D\-Bus authentication handshake will fail\&. If no specific id is defined for the server, -\fBsd_id128_randomize\fR(3) -can be used to generate a random id instead\&. -.PP -\fBsd_bus_is_server()\fR -returns whether the server mode is enabled for the given bus object\&. -.PP -\fBsd_bus_get_bus_id()\fR -stores the D\-Bus server id configured using -\fBsd_bus_set_server()\fR -(for server bus objects) or received during D\-Bus authentication (for client bus objects) in -\fIid\fR\&. -.PP -\fBsd_bus_set_bus_client()\fR -configures the bus object as a D\-Bus daemon client\&. -\fIb\fR -enables/disables the client mode\&. If zero, the client mode is disabled and the bus object should connect directly to a D\-Bus server\&. Otherwise, the client mode is enabled and the bus object should connect to a D\-Bus daemon\&. When connecting to an existing bus using any of the functions in the -\fBsd_bus_open\fR(3) -family of functions or any of the functions in the -\fBsd_bus_default\fR(3) -family of functions, the bus object is automatically configured as a bus client\&. However, when connecting to a D\-Bus daemon by calling -\fBsd_bus_set_address\fR(3) -followed by -\fBsd_bus_start\fR(3), the bus object should be manually configured as a bus client using -\fBsd_bus_set_bus_client()\fR\&. By default, a bus object is not configured as a D\-Bus daemon client\&. -.PP -\fBsd_bus_is_bus_client()\fR -returns whether the client mode is enabled/disabled for the given bus object\&. -.PP -\fBsd_bus_set_monitor()\fR -configures the bus object as a D\-Bus monitor object\&. -\fIb\fR -enables/disables the monitor mode\&. If zero, the monitor mode is disabled\&. If non\-zero, the monitor mode is enabled\&. When the monitor mode is enabled, no messages may be sent via the bus object and it may not expose any objects on the bus\&. To start monitoring messages, call the -\fBorg\&.freedesktop\&.DBus\&.Monitoring\&.BecomeMonitor\fR -method of the D\-Bus daemon and pass a list of matches indicating which messages to intercept\&. See -\m[blue]\fBThe D\-Bus specification\fR\m[]\&\s-2\u[1]\d\s+2 -for more information\&. -.PP -\fBsd_bus_is_monitor()\fR -returns whether the monitor mode is enabled/disabled for the given bus object\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_set_server()\fR, -\fBsd_bus_get_bus_id()\fR, -\fBsd_bus_set_bus_client()\fR -and -\fBsd_bus_set_monitor()\fR -return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.PP -\fBsd_bus_is_server()\fR, -\fBsd_bus_is_bus_client()\fR -and -\fBsd_bus_is_monitor()\fR -return a positive integer when the server or client mode is enabled, respectively\&. Otherwise, they return zero\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ECHILD\fR -.RS 4 -The bus connection has been created in a different process, library or module instance\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -The bus connection has already been started\&. -.RE -.PP -\fB\-ENOPKG\fR -.RS 4 -The bus cannot be resolved\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -A required parameter was -\fBNULL\fR -or -\fIb\fR -was zero and -\fIid\fR -did not equal -\fBSD_ID128_NULL\fR\&. -.RE -.PP -\fB\-ENOTCONN\fR -.RS 4 -The bus is not connected\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3) -.SH "NOTES" -.IP " 1." 4 -The D-Bus specification -.RS 4 -\%https://dbus.freedesktop.org/doc/dbus-specification.html#bus-messages-become-monitor -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_set_watch_bind.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_set_watch_bind.3 deleted file mode 100644 index 4ebb77ca..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_set_watch_bind.3 +++ /dev/null @@ -1,95 +0,0 @@ -'\" t -.TH "SD_BUS_SET_WATCH_BIND" "3" "" "systemd 254" "sd_bus_set_watch_bind" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_set_watch_bind, sd_bus_get_watch_bind \- Control socket binding watching on bus connections -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_set_watch_bind('u -.BI "int sd_bus_set_watch_bind(sd_bus\ *" "bus" ", int\ " "b" ");" -.HP \w'int\ sd_bus_get_watch_bind('u -.BI "int sd_bus_get_watch_bind(sd_bus\ *" "bus" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_set_watch_bind()\fR -may be used to enable or disable client\-side watching of server socket binding for a bus connection object\&. If the -\fIb\fR -is true, the feature is enabled, otherwise disabled (which is the default)\&. When enabled, and the selected bus address refers to an -AF_UNIX -socket in the file system which does not exist while the connection attempt is made an -\fBinotify\fR(7) -watch is installed on it, waiting for the socket to appear\&. As soon as the socket appears the connection is made\&. This functionality is useful in particular in early\-boot programs that need to run before the system bus is available, but want to connect to it the instant it may be connected to\&. -.PP -\fBsd_bus_get_watch_bind()\fR -may be used to query the current setting of this feature\&. It returns zero when the feature is disabled, and positive if enabled\&. -.PP -Note that no timeout is applied while we wait for the socket to appear\&. This means that any synchronous remote operation (such as -\fBsd_bus_call\fR(3), -\fBsd_bus_add_match\fR(3) -or -\fBsd_bus_request_name\fR(3)), that is used on a connection with this feature enabled that hasn\*(Aqt been established yet, might block forever if the socket is never created\&. However, asynchronous remote operations (such as -\fBsd_bus_send\fR(3), -\fBsd_bus_call_async\fR(3), -\fBsd_bus_add_match_async\fR(3)) do not block in this case, and safely enqueue the requested operations to be dispatched the instant the connection is set up\&. -.PP -Use -\fBsd_bus_is_ready\fR(3) -to determine whether the connection is fully established, i\&.e\&. whether the peer socket has been bound, connected to and authenticated\&. Use -\fBsd_bus_set_connected_signal\fR(3) -to be notified when the connection is fully established\&. -.SH "RETURN VALUE" -.PP -On success, these functions return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ECHILD\fR -.RS 4 -The bus connection has been created in a different process, library or module instance\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBinotify\fR(7), -\fBsd_bus_call\fR(3), -\fBsd_bus_add_match\fR(3), -\fBsd_bus_request_name\fR(3), -\fBsd_bus_is_ready\fR(3), -\fBsd_bus_set_connected_signal\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_slot_get_bus.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_slot_get_bus.3 deleted file mode 100644 index 3d9ca032..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_slot_get_bus.3 +++ /dev/null @@ -1,83 +0,0 @@ -'\" t -.TH "SD_BUS_SLOT_GET_BUS" "3" "" "systemd 254" "sd_bus_slot_get_bus" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_slot_get_bus, sd_bus_slot_get_current_handler, sd_bus_slot_get_current_message, sd_bus_slot_get_current_userdata \- Query information attached to a bus slot object -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'typedef\ int\ (*sd_bus_message_handler_t)('u -.BI "typedef int (*sd_bus_message_handler_t)(sd_bus_message\ *" "m" ", void\ *" "userdata" ", sd_bus_error\ *" "ret_error" ");" -.HP \w'sd_bus\ *sd_bus_slot_get_bus('u -.BI "sd_bus *sd_bus_slot_get_bus(sd_bus_slot\ *" "slot" ");" -.HP \w'sd_bus_message_handler_t\ sd_bus_slot_get_current_handler('u -.BI "sd_bus_message_handler_t sd_bus_slot_get_current_handler(sd_bus_slot\ *" "slot" ");" -.HP \w'sd_bus_message\ *sd_bus_slot_get_current_message('u -.BI "sd_bus_message *sd_bus_slot_get_current_message(sd_bus_slot\ *" "slot" ");" -.HP \w'void\ *sd_bus_slot_get_current_userdata('u -.BI "void *sd_bus_slot_get_current_userdata(sd_bus_slot\ *" "slot" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_slot_get_bus()\fR -returns the bus object that message -\fIslot\fR -is attached to\&. -.PP -\fBsd_bus_slot_get_current_handler()\fR, -\fBsd_bus_slot_get_current_message()\fR -and -\fBsd_bus_slot_get_current_userdata()\fR -return the current handler, message and userdata respectively of the bus -\fIslot\fR -is attached to if we\*(Aqre currently executing the callback associated with -\fIslot\fR\&. -.SH "RETURN VALUE" -.PP -\fBsd_bus_slot_get_bus()\fR -always returns the bus object\&. -.PP -On success, -\fBsd_bus_slot_get_current_handler()\fR, -\fBsd_bus_slot_get_current_message()\fR -and -\fBsd_bus_slot_get_current_userdata()\fR -return the requested object\&. On failure, they return -\fBNULL\fR\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_slot_ref.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_slot_ref.3 deleted file mode 100644 index c281ee06..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_slot_ref.3 +++ /dev/null @@ -1,106 +0,0 @@ -'\" t -.TH "SD_BUS_SLOT_REF" "3" "" "systemd 254" "sd_bus_slot_ref" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_slot_ref, sd_bus_slot_unref, sd_bus_slot_unrefp \- Create and destroy references to a bus slot object -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'sd_bus_slot\ *sd_bus_slot_ref('u -.BI "sd_bus_slot *sd_bus_slot_ref(sd_bus_slot\ *" "slot" ");" -.HP \w'sd_bus_slot\ *sd_bus_slot_unref('u -.BI "sd_bus_slot *sd_bus_slot_unref(sd_bus_slot\ *" "slot" ");" -.HP \w'void\ sd_bus_slot_unrefp('u -.BI "void sd_bus_slot_unrefp(sd_bus_slot\ **" "slotp" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_slot_ref()\fR -increases the internal reference counter of -\fIslot\fR -by one\&. -.PP -\fBsd_bus_slot_unref()\fR -decreases the internal reference counter of -\fIslot\fR -by one\&. Once the reference count has dropped to zero, slot object is destroyed and cannot be used anymore, so further calls to -\fBsd_bus_slot_ref()\fR -or -\fBsd_bus_slot_unref()\fR -are illegal\&. -.PP -\fBsd_bus_slot_unrefp()\fR -is similar to -\fBsd_bus_slot_unref()\fR -but takes a pointer to a pointer to an -\fBsd_bus_slot\fR -object\&. This call is useful in conjunction with GCC\*(Aqs and LLVM\*(Aqs -\m[blue]\fBClean\-up Variable Attribute\fR\m[]\&\s-2\u[1]\d\s+2\&. See -\fBsd_bus_new\fR(3) -for an example how to use the cleanup attribute\&. -.PP -\fBsd_bus_slot_ref()\fR -and -\fBsd_bus_slot_unref()\fR -execute no operation if the passed in bus object address is -\fBNULL\fR\&. -\fBsd_bus_slot_unrefp()\fR -will first dereference its argument, which must not be -\fBNULL\fR, and will execute no operation if -\fIthat\fR -is -\fBNULL\fR\&. -.SH "RETURN VALUE" -.PP -\fBsd_bus_slot_ref()\fR -always returns the argument\&. -.PP -\fBsd_bus_slot_unref()\fR -always returns -\fBNULL\fR\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_new\fR(3), -\fBsd_bus_message_new\fR(3), -\fBsd_bus_call_method_async\fR(3) -.SH "NOTES" -.IP " 1." 4 -Clean-up Variable Attribute -.RS 4 -\%https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_slot_set_description.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_slot_set_description.3 deleted file mode 100644 index 7bff3e90..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_slot_set_description.3 +++ /dev/null @@ -1,88 +0,0 @@ -'\" t -.TH "SD_BUS_SLOT_SET_DESCRIPTION" "3" "" "systemd 254" "sd_bus_slot_set_description" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_slot_set_description, sd_bus_slot_get_description \- Set or query the description of bus slot objects -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_slot_set_description('u -.BI "int sd_bus_slot_set_description(sd_bus_slot*\ " "slot" ", const\ char\ *" "description" ");" -.HP \w'int\ sd_bus_slot_get_description('u -.BI "int sd_bus_slot_get_description(sd_bus_slot*\ " "bus" ", const\ char\ **" "description" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_slot_set_description()\fR -sets the description string that is used in logging to the specified string\&. The string is copied internally and freed when the bus slot object is deallocated\&. The -\fIdescription\fR -argument may be -\fBNULL\fR, in which case the description is unset\&. -.PP -\fBsd_bus_slot_get_description()\fR -returns a description string in -\fIdescription\fR\&. If the string is not set, e\&.g\&. with -\fBsd_bus_slot_set_description()\fR, and the slot is a bus match callback slot, the match string will be returned\&. Otherwise, -\fB\-ENXIO\fR -is returned\&. -.SH "RETURN VALUE" -.PP -On success, these functions return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -An required argument is -\fBNULL\fR\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -The bus slot object has no description\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3) -\fBsd_bus_slot_ref\fR(3), -\fBsd_bus_slot_set_userdata\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_slot_set_destroy_callback.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_slot_set_destroy_callback.3 deleted file mode 100644 index df0941a8..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_slot_set_destroy_callback.3 +++ /dev/null @@ -1,118 +0,0 @@ -'\" t -.TH "SD_BUS_SLOT_SET_DESTROY_CALLBACK" "3" "" "systemd 254" "sd_bus_slot_set_destroy_callback" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_slot_set_destroy_callback, sd_bus_slot_get_destroy_callback, sd_bus_track_set_destroy_callback, sd_bus_track_get_destroy_callback, sd_bus_destroy_t \- Define the callback function for resource cleanup -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'typedef\ int\ (*sd_bus_destroy_t)('u -.BI "typedef int (*sd_bus_destroy_t)(void\ *" "userdata" ");" -.HP \w'int\ sd_bus_slot_set_destroy_callback('u -.BI "int sd_bus_slot_set_destroy_callback(sd_bus_slot\ *" "slot" ", sd_bus_destroy_t\ " "callback" ");" -.HP \w'int\ sd_bus_slot_get_destroy_callback('u -.BI "int sd_bus_slot_get_destroy_callback(sd_bus_slot\ *" "slot" ", sd_bus_destroy_t\ *" "callback" ");" -.HP \w'int\ sd_bus_track_set_destroy_callback('u -.BI "int sd_bus_track_set_destroy_callback(sd_bus_track\ *" "track" ", sd_bus_destroy_t\ " "callback" ");" -.HP \w'int\ sd_bus_track_get_destroy_callback('u -.BI "int sd_bus_track_get_destroy_callback(sd_bus_track\ *" "track" ", sd_bus_destroy_t\ *" "callback" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_slot_set_destroy_callback()\fR -sets -\fIcallback\fR -as the callback function to be called right before the bus slot object -\fIslot\fR -is deallocated\&. The -\fIuserdata\fR -pointer from the slot object will be passed as the -\fIuserdata\fR -parameter\&. This pointer can be set by an argument to the constructor functions, see -\fBsd_bus_add_match\fR(3), or directly, see -\fBsd_bus_slot_set_userdata\fR(3)\&. This callback function is called even if -\fIuserdata\fR -is -\fBNULL\fR\&. Note that this callback is invoked at a time where the bus slot object itself is already invalidated, and executing operations or taking new references to the bus slot object is not permissible\&. -.PP -\fBsd_bus_slot_get_destroy_callback()\fR -returns the current callback for -\fIslot\fR -in the -\fIcallback\fR -parameter\&. -.PP -\fBsd_bus_track_set_destroy_callback()\fR -and -\fBsd_bus_track_get_destroy_callback()\fR -provide equivalent functionality for the -\fIuserdata\fR -pointer associated with bus peer tracking objects\&. For details about bus peer tracking objects, see -\fBsd_bus_track_new\fR(3)\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_slot_set_destroy_callback()\fR -and -\fBsd_bus_track_set_destroy_callback()\fR -return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.PP -\fBsd_bus_slot_get_destroy_callback()\fR -and -\fBsd_bus_track_get_destroy_callback()\fR -return positive if the destroy callback function is set, 0 if not\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The -\fIslot\fR -or -\fItrack\fR -parameter is -\fBNULL\fR\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_slot_set_floating\fR(3), -\fBsd_bus_add_match\fR(3), -\fBsd_bus_track_new\fR(3), -\fBsd_bus_slot_set_userdata\fR(3), -\fBsd_bus_track_set_userdata\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_slot_set_floating.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_slot_set_floating.3 deleted file mode 100644 index 50b68a6b..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_slot_set_floating.3 +++ /dev/null @@ -1,97 +0,0 @@ -'\" t -.TH "SD_BUS_SLOT_SET_FLOATING" "3" "" "systemd 254" "sd_bus_slot_set_floating" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_slot_set_floating, sd_bus_slot_get_floating \- Control whether a bus slot object is "floating" -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_slot_set_floating('u -.BI "int sd_bus_slot_set_floating(sd_bus_slot\ *" "slot" ", int\ " "b" ");" -.HP \w'int\ sd_bus_slot_get_floating('u -.BI "int sd_bus_slot_get_floating(sd_bus_slot\ *" "slot" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_slot_set_floating()\fR -controls whether the specified bus slot object -\fIslot\fR -shall be "floating" or not\&. A floating bus slot object\*(Aqs lifetime is bound to the lifetime of the bus object it is associated with, meaning that it remains allocated as long as the bus object itself and is freed automatically when the bus object is freed\&. Regular (i\&.e\&. non\-floating) bus slot objects keep the bus referenced, hence the bus object remains allocated at least as long as there remains at least one referenced bus slot object around\&. The floating state hence controls the direction of referencing between the bus object and the bus slot objects: if floating the bus pins the bus slot, and otherwise the bus slot pins the bus objects\&. Use -\fBsd_bus_slot_set_floating()\fR -to switch between both modes: if the -\fIb\fR -parameter is zero, the slot object is considered floating, otherwise it is made a regular (non\-floating) slot object\&. -.PP -Bus slot objects may be allocated with calls such as -\fBsd_bus_add_match\fR(3)\&. If the -\fIslot\fR -of these functions is non\-\fBNULL\fR -the slot object will be of the regular kind (i\&.e\&. non\-floating), otherwise it will be created floating\&. With -\fBsd_bus_slot_set_floating()\fR -a bus slot object allocated as regular can be converted into a floating object and back\&. This is particularly useful for creating a bus slot object, then changing parameters of it, and then turning it into a floating object, whose lifecycle is managed by the bus object\&. -.PP -\fBsd_bus_slot_get_floating()\fR -returns the current floating state of the specified bus slot object\&. It returns negative on error, zero if the bus slot object is a regular (non\-floating) object and positive otherwise\&. -.SH "RETURN VALUE" -.PP -On success, these functions return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The -\fIslot\fR -parameter is -\fBNULL\fR\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus connection has been created in a different process, library or module instance\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -The bus object the specified bus slot object is associated with has already been freed, and hence no change in the floating state can be made anymore\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_slot_set_destroy_callback\fR(3), -\fBsd_bus_add_match\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_slot_set_userdata.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_slot_set_userdata.3 deleted file mode 100644 index 6c83796a..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_slot_set_userdata.3 +++ /dev/null @@ -1,82 +0,0 @@ -'\" t -.TH "SD_BUS_SLOT_SET_USERDATA" "3" "" "systemd 254" "sd_bus_slot_set_userdata" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_slot_set_userdata, sd_bus_slot_get_userdata \- Set and query the value in the "userdata" field -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'void*\ sd_bus_slot_set_userdata('u -.BI "void* sd_bus_slot_set_userdata(sd_bus_slot*\ " "slot" ", void*\ " "userdata" ");" -.HP \w'void*\ sd_bus_slot_get_userdata('u -.BI "void* sd_bus_slot_get_userdata(sd_bus_slot*\ " "slot" ");" -.SH "DESCRIPTION" -.PP -The userdata pointer allows data to be passed between the point where a callback is registered, for example when a filter is added using -\fBsd_bus_add_filter\fR(3) -or an asynchronous function call is made using -\fBsd_bus_call_async\fR(3), and the point where the callback is called, without having any global state\&. The pointer has type -\fBvoid*\fR -and is not used by the sd\-bus functions in any way, except to pass to the callback function\&. -.PP -Usually, the userdata field is set when the slot object is initially registered\&. -\fBsd_bus_slot_set_userdata()\fR -may be used to change it later for the bus slot object -\fIslot\fR\&. Previous value of the field is returned\&. The argument and returned value may be -\fBNULL\fR\&. It will be passed as the -\fIuserdata\fR -argument to the callback function attached to the slot\&. -.PP -\fBsd_bus_slot_set_userdata()\fR -gets the value of the userdata field in the bus slot object -\fIslot\fR\&. -.SH "RETURN VALUE" -.PP -On success, these functions return the value of the userdata field before the function call\&. If the -\fIslot\fR -object is -\fBNULL\fR, -\fBNULL\fR -will be returned to signify an error, but this is not distinguishable from the userdata field value being -\fBNULL\fR\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_slot_set_destroy_callback\fR(3), -\fBsd_bus_add_match\fR(3), -\fBsd_bus_slot_get_current_userdata\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_start.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_start.3 deleted file mode 100644 index 543a59e3..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_start.3 +++ /dev/null @@ -1,112 +0,0 @@ -'\" t -.TH "SD_BUS_START" "3" "" "systemd 254" "sd_bus_start" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_start \- Initiate a bus connection to the D\-bus broker daemon -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_start('u -.BI "int sd_bus_start(sd_bus\ *" "bus" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_start()\fR -connects an existing bus connection object to the D\-Bus broker daemon, usually -\fBdbus-daemon\fR(1) -or -\fBdbus-broker\fR(1)\&. The mechanism to use for the connection must be configured before the call to -\fBsd_bus_start()\fR, using one of -\fBsd_bus_set_address\fR(3), -\fBsd_bus_set_fd\fR(3), or -\fBsd_bus_set_exec\fR(3)\&. -\fBsd_bus_start()\fR -will open the connection socket or spawn the executable as needed, and asynchronously start a -\fBorg\&.freedesktop\&.DBus\&.Hello()\fR -call\&. The answer to the Hello call will be processed later from -\fBsd_bus_process\fR(3)\&. If opening of the connection or queuing of the asynchronous call fail, the connection will be closed with -\fBsd_bus_close\fR(3)\&. -.PP -In most cases, it is better to use -\fBsd_bus_default_user\fR(3), -\fBsd_bus_default_system\fR(3) -or related calls instead of the more low\-level -\fBsd_bus_new()\fR -and -\fBsd_bus_start()\fR\&. The higher\-level functions not only allocate a bus object but also start the connection to a well\-known bus in a single function call\&. -.SH "RETURN VALUE" -.PP -On success, this function returns a non\-negative integer\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -\fB\-EINVAL\fR -.RS 4 -The input parameter -\fIbus\fR -is -\fBNULL\fR\&. -.RE -.PP -\fB\-ENOPKG\fR -.RS 4 -Bus object -\fIbus\fR -could not be resolved\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -The input parameter -\fIbus\fR -is in a wrong state (\fBsd_bus_start()\fR -may only be called once on a newly\-created bus object)\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus object -\fIbus\fR -was created in a different process\&. -.RE -.PP -In addition, other connection\-related errors may be returned\&. See -\fBsd_bus_send\fR(3)\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_default\fR(3), -\fBsd_bus_call_async\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_track_add_name.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_track_add_name.3 deleted file mode 100644 index 7ee7ae84..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_track_add_name.3 +++ /dev/null @@ -1,183 +0,0 @@ -'\" t -.TH "SD_BUS_TRACK_ADD_NAME" "3" "" "systemd 254" "sd_bus_track_add_name" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_track_add_name, sd_bus_track_add_sender, sd_bus_track_remove_name, sd_bus_track_remove_sender, sd_bus_track_count, sd_bus_track_count_sender, sd_bus_track_count_name, sd_bus_track_contains, sd_bus_track_first, sd_bus_track_next \- Add, remove and retrieve bus peers tracked in a bus peer tracking object -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_track_add_name('u -.BI "int sd_bus_track_add_name(sd_bus_track*\ " "t" ", const\ char*\ " "name" ");" -.HP \w'int\ sd_bus_track_add_sender('u -.BI "int sd_bus_track_add_sender(sd_bus_track*\ " "t" ", sd_bus_message*\ " "message" ");" -.HP \w'int\ sd_bus_track_remove_name('u -.BI "int sd_bus_track_remove_name(sd_bus_track*\ " "t" ", const\ char*\ " "name" ");" -.HP \w'int\ sd_bus_track_remove_sender('u -.BI "int sd_bus_track_remove_sender(sd_bus_track*\ " "t" ", sd_bus_message*\ " "message" ");" -.HP \w'unsigned\ sd_bus_track_count('u -.BI "unsigned sd_bus_track_count(sd_bus_track*\ " "t" ");" -.HP \w'int\ sd_bus_track_count_name('u -.BI "int sd_bus_track_count_name(sd_bus_track*\ " "t" ", const\ char*\ " "name" ");" -.HP \w'int\ sd_bus_track_count_sender('u -.BI "int sd_bus_track_count_sender(sd_bus_track*\ " "t" ", sd_bus_message*\ " "message" ");" -.HP \w'int\ sd_bus_track_contains('u -.BI "int sd_bus_track_contains(sd_bus_track*\ " "t" ", const\ char*\ " "name" ");" -.HP \w'const\ char*\ sd_bus_track_first('u -.BI "const char* sd_bus_track_first(sd_bus_track*\ " "t" ");" -.HP \w'const\ char*\ sd_bus_track_next('u -.BI "const char* sd_bus_track_next(sd_bus_track*\ " "t" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_track_add_name()\fR -adds a peer to track to a bus peer tracking object\&. The first argument should refer to a bus peer tracking object created with -\fBsd_bus_track_new\fR(3), the second name should refer to a D\-Bus peer name to track, either in unique or well\-known service format\&. If the name is not tracked yet it will be added to the list of names to track\&. If it already is being tracked and non\-recursive mode is enabled, no operation is executed by this call\&. If recursive mode is enabled a per\-name counter is increased by one each time this call is invoked, and -\fBsd_bus_track_remove_name()\fR -has to be called as many times as -\fBsd_bus_track_add_name()\fR -was invoked before in order to stop tracking of the name\&. Use -\fBsd_bus_track_set_recursive\fR(3) -to switch from the default non\-recursive mode to recursive mode, or back\&. Note that the specified name is tracked as it is, well\-known names are not resolved to unique names by this call\&. Note that multiple bus peer tracking objects may track the same name\&. -.PP -\fBsd_bus_track_remove_name()\fR -undoes the effect of -\fBsd_bus_track_add_name()\fR -and removes a bus peer name from the list of peers to watch\&. Depending on whether non\-recursive or recursive mode is enabled for the bus peer tracking object this call will either remove the name fully from the tracking object, or will simply decrement the per\-name counter by one, removing the name only when the counter reaches zero (see above)\&. Note that a bus peer disconnecting from the bus will implicitly remove its names fully from the bus peer tracking object, regardless of the current per\-name counter\&. -.PP -\fBsd_bus_track_add_sender()\fR -and -\fBsd_bus_track_remove_sender()\fR -are similar to -\fBsd_bus_track_add_name()\fR -and -\fBsd_bus_track_remove_name()\fR -but take a bus message as argument\&. The sender of this bus message is determined and added to/removed from the bus peer tracking object\&. As messages always originate from unique names, and never from well\-known names this means that this call will effectively only add unique names to the bus peer tracking object\&. -.PP -\fBsd_bus_track_count()\fR -returns the number of names currently being tracked by the specified bus peer tracking object\&. Note that this function always returns the actual number of names tracked, and hence if -\fBsd_bus_track_add_name()\fR -has been invoked multiple times for the same name it is only counted as one, regardless if recursive mode is used or not\&. -.PP -\fBsd_bus_track_count_name()\fR -returns the current per\-name counter for the specified name\&. If non\-recursive mode is used this returns either 1 or 0, depending on whether the specified name has been added to the tracking object before, or not\&. If recursive mode has been enabled, values larger than 1 may be returned too, in case -\fBsd_bus_track_add_name()\fR -has been called multiple times for the same name\&. -.PP -\fBsd_bus_track_count_sender()\fR -is similar to -\fBsd_bus_track_count_name()\fR, but takes a bus message object and returns the per\-name counter matching the sender of the message\&. -.PP -\fBsd_bus_track_contains()\fR -may be used to determine whether the specified name has been added at least once to the specified bus peer tracking object\&. -.PP -\fBsd_bus_track_first()\fR -and -\fBsd_bus_track_next()\fR -may be used to enumerate all names currently being tracked by the passed bus peer tracking object\&. -\fBsd_bus_track_first()\fR -returns the first entry in the object, and resets an internally maintained read index\&. Each subsequent invocation of -\fBsd_bus_track_next()\fR -returns the next name contained in the bus object\&. If the end is reached -\fBNULL\fR -is returned\&. If no names have been added to the object yet -\fBsd_bus_track_first()\fR -will return -\fBNULL\fR -immediately\&. The order in which names are returned is undefined; in particular which name is considered the first returned is not defined\&. If recursive mode is enabled and the same name has been added multiple times to the bus peer tracking object it is only returned once by this enumeration\&. If new names are added to or existing names removed from the bus peer tracking object while it is being enumerated the enumeration ends on the next invocation of -\fBsd_bus_track_next()\fR -as -\fBNULL\fR -is returned\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_track_add_name()\fR -and -\fBsd_bus_track_add_sender()\fR -return 0 if the specified name has already been added to the bus peer tracking object before and positive if it hasn\*(Aqt\&. On failure, they return a negative errno\-style error code\&. -.PP -\fBsd_bus_track_remove_name()\fR -and -\fBsd_bus_track_remove_sender()\fR -return positive if the specified name was previously tracked by the bus peer tracking object and has now been removed\&. In non\-recursive mode, 0 is returned if the specified name was not being tracked yet\&. In recursive mode -\fB\-EUNATCH\fR -is returned in this case\&. On failure, they return a negative errno\-style error code\&. -.PP -\fBsd_bus_track_count()\fR -returns the number of names currently being tracked, or 0 on failure\&. -.PP -\fBsd_bus_track_count_name()\fR -and -\fBsd_bus_track_count_sender()\fR -return the current per\-name counter for the specified name or the sender of the specified message\&. Zero is returned for names that are not being tracked yet, a positive value for names added at least once\&. Larger values than 1 are only returned in recursive mode\&. On failure, a negative errno\-style error code is returned\&. -.PP -\fBsd_bus_track_contains()\fR -returns the passed name if it exists in the bus peer tracking object\&. On failure, and if the name has not been added yet -\fBNULL\fR -is returned\&. -.PP -\fBsd_bus_track_first()\fR -and -\fBsd_bus_track_next()\fR -return the first/next name contained in the bus peer tracking object, and -\fBNULL\fR -if the end of the enumeration is reached and on error\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EUNATCH\fR -.RS 4 -\fBsd_bus_track_remove_name()\fR -or -\fBsd_bus_track_remove_sender()\fR -have been invoked for a name not previously added to the bus peer object\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -Specified parameter is invalid\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_track_new\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_track_new.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_track_new.3 deleted file mode 100644 index c965c54c..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_track_new.3 +++ /dev/null @@ -1,204 +0,0 @@ -'\" t -.TH "SD_BUS_TRACK_NEW" "3" "" "systemd 254" "sd_bus_track_new" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_track_new, sd_bus_track_ref, sd_bus_track_unref, sd_bus_track_unrefp, sd_bus_track_set_recursive, sd_bus_track_get_recursive, sd_bus_track_get_bus, sd_bus_track_get_userdata, sd_bus_track_set_userdata \- Track bus peers -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_track_new('u -.BI "int sd_bus_track_new(sd_bus*\ " "bus" ", sd_bus_track**\ " "ret" ", sd_bus_track_handler_t\ " "handler" ", void*\ " "userdata" ");" -.HP \w'sd_bus_track\ *sd_bus_track_ref('u -.BI "sd_bus_track *sd_bus_track_ref(sd_bus_track\ *" "t" ");" -.HP \w'sd_bus_track\ *sd_bus_track_unref('u -.BI "sd_bus_track *sd_bus_track_unref(sd_bus_track\ *" "t" ");" -.HP \w'void\ sd_bus_track_unrefp('u -.BI "void sd_bus_track_unrefp(sd_bus_track\ **" "t" ");" -.HP \w'int\ sd_bus_track_get_recursive('u -.BI "int sd_bus_track_get_recursive(sd_bus_track\ *" "t" ");" -.HP \w'int\ sd_bus_track_set_recursive('u -.BI "int sd_bus_track_set_recursive(sd_bus_track\ *" "t" ", int\ " "b" ");" -.HP \w'sd_bus*\ sd_bus_track_get_bus('u -.BI "sd_bus* sd_bus_track_get_bus(sd_bus_track\ *" "t" ");" -.HP \w'void*\ sd_bus_track_get_userdata('u -.BI "void* sd_bus_track_get_userdata(sd_bus_track\ *" "t" ");" -.HP \w'void*\ sd_bus_track_set_userdata('u -.BI "void* sd_bus_track_set_userdata(sd_bus_track\ *" "t" ", void\ *userdata);" -.SH "DESCRIPTION" -.PP -\fBsd_bus_track_new()\fR -creates a new bus peer tracking object\&. The object is allocated for the specified bus, and returned in the -\fI*ret\fR -parameter\&. After use, the object should be freed again by dropping the acquired reference with -\fBsd_bus_track_unref()\fR -(see below)\&. A bus peer tracking object may be used to keep track of peers on a specific IPC bus, for cases where peers are making use of one or more local objects, in order to control the lifecycle of the local objects and ensure they stay around as long as the peers needing them are around, and unreferenced (and possibly destroyed) as soon as all relevant peers have vanished\&. Each bus peer tracking object may be used to track zero, one or more peers add a time\&. References to specific bus peers are added via -\fBsd_bus_track_add_name\fR(3) -or -\fBsd_bus_track_add_sender()\fR\&. They may be dropped again via -\fBsd_bus_track_remove_name()\fR -and -\fBsd_bus_track_remove_sender()\fR\&. Alternatively, references on peers are removed automatically when they disconnect from the bus\&. If non\-\fBNULL\fR -the -\fIhandler\fR -may specify a function that is invoked whenever the last reference is dropped, regardless whether the reference is dropped explicitly via -\fBsd_bus_track_remove_name()\fR -or implicitly because the peer disconnected from the bus\&. The final argument -\fIuserdata\fR -may be used to attach a generic user data pointer to the object\&. This pointer is passed to the handler callback when it is invoked\&. -.PP -\fBsd_bus_track_ref()\fR -creates a new reference to a bus peer tracking object\&. This object will not be destroyed until -\fBsd_bus_track_unref()\fR -has been called as many times plus once more\&. Once the reference count has dropped to zero, the specified object cannot be used anymore, further calls to -\fBsd_bus_track_ref()\fR -or -\fBsd_bus_track_unref()\fR -on the same object are illegal\&. -.PP -\fBsd_bus_track_unref()\fR -destroys a reference to a bus peer tracking object\&. -.PP -\fBsd_bus_track_unrefp()\fR -is similar to -\fBsd_bus_track_unref()\fR -but takes a pointer to a pointer to an -\fBsd_bus_track\fR -object\&. This call is useful in conjunction with GCC\*(Aqs and LLVM\*(Aqs -\m[blue]\fBClean\-up Variable Attribute\fR\m[]\&\s-2\u[1]\d\s+2\&. Note that this function is defined as inline function\&. -.PP -\fBsd_bus_track_ref()\fR, -\fBsd_bus_track_unref()\fR -and -\fBsd_bus_track_unrefp()\fR -execute no operation if the passed in bus peer tracking object is -\fBNULL\fR\&. -.PP -Bus peer tracking objects may exist in two modes: by default they operate in non\-recursive mode, but may optionally be switched into recursive mode\&. If operating in the default non\-recursive mode a peer is either tracked or not tracked\&. In this mode invoking -\fBsd_bus_track_add_name()\fR -multiple times in a row for the same peer is fully equivalent to calling it just once, as the call adds the peer to the set of tracked peers if necessary, and executes no operation if the peer is already being tracked\&. A single invocation of -\fBsd_bus_track_remove_name()\fR -removes the reference on the peer again, regardless how many times -\fBsd_bus_track_add_name()\fR -was called before\&. If operating in recursive mode, the number of times -\fBsd_bus_track_add_name()\fR -is invoked for the same peer name is counted and -\fBsd_bus_track_remove_name()\fR -must be called the same number of times before the peer is not tracked anymore, with the exception when the tracked peer vanishes from the bus, in which case the count is irrelevant and the tracking of the specific peer is immediately removed\&. -\fBsd_bus_track_get_recursive()\fR -may be used to determine whether the bus peer tracking object is operating in recursive mode\&. -\fBsd_bus_track_set_recursive()\fR -may be used to enable or disable recursive mode\&. By default a bus peer tracking object operates in non\-recursive mode, and -\fBsd_bus_track_get_recursive()\fR -for a newly allocated object hence returns a value equal to zero\&. Use -\fBsd_bus_track_set_recursive()\fR -to enable recursive mode, right after allocation\&. It takes a boolean argument to enable or disable recursive mode\&. Note that tracking objects for which -\fBsd_bus_track_add_name()\fR -was already invoked at least once (and which hence track already one or more peers) may not be switched from recursive to non\-recursive mode anymore\&. -.PP -\fBsd_bus_track_get_bus()\fR -returns the bus object the bus peer tracking object belongs to\&. It returns the bus object initially passed to -\fBsd_bus_track_new()\fR -when the object was allocated\&. -.PP -\fBsd_bus_track_get_userdata()\fR -returns the generic user data pointer set on the bus peer tracking object at the time of creation using -\fBsd_bus_track_new()\fR -or at a later time, using -\fBsd_bus_track_set_userdata()\fR\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_bus_track_new()\fR -and -\fBsd_bus_track_set_recursive()\fR -return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.PP -\fBsd_bus_track_ref()\fR -always returns the argument\&. -.PP -\fBsd_bus_track_unref()\fR -always returns -\fBNULL\fR\&. -.PP -\fBsd_bus_track_get_recursive()\fR -returns 0 if non\-recursive mode is selected (default), and greater than 0 if recursive mode is selected\&. On failure a negative errno\-style error code is returned\&. -.PP -\fBsd_bus_track_get_bus()\fR -returns the bus object associated to the bus peer tracking object\&. -.PP -\fBsd_bus_track_get_userdata()\fR -returns the generic user data pointer associated with the bus peer tracking object\&. -\fBsd_bus_track_set_userdata()\fR -returns the previous user data pointer set\&. -.SH "REFERENCE OWNERSHIP" -.PP -The -\fBsd_bus_track_new()\fR -function creates a new object and the caller owns the sole reference\&. When not needed anymore, this reference should be destroyed with -\fBsd_bus_track_unref()\fR\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EBUSY\fR -.RS 4 -Bus peers have already been added to the bus peer tracking object and -\fBsd_bus_track_set_recursive()\fR -was called to change tracking mode\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -Specified parameter is invalid (\fBNULL\fR -in case of output parameters)\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3) -\fBsd_bus_track_add_name\fR(3) -.SH "NOTES" -.IP " 1." 4 -Clean-up Variable Attribute -.RS 4 -\%https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_bus_wait.3 b/upstream/opensuse-tumbleweed/man3/sd_bus_wait.3 deleted file mode 100644 index b5d1ffbf..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_bus_wait.3 +++ /dev/null @@ -1,101 +0,0 @@ -'\" t -.TH "SD_BUS_WAIT" "3" "" "systemd 254" "sd_bus_wait" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_bus_wait \- Wait for I/O on a bus connection -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_bus_wait('u -.BI "int sd_bus_wait(sd_bus\ *" "bus" ", uint64_t\ " "timeout_usec" ");" -.SH "DESCRIPTION" -.PP -\fBsd_bus_wait()\fR -synchronously waits for I/O on the specified bus connection object\&. This function is supposed to be called whenever -\fBsd_bus_process\fR(3) -returns zero, indicating that no work is pending on the connection\&. Internally, this call invokes -\fBppoll\fR(2), to wait for I/O on the bus connection\&. If the -\fItimeout_usec\fR -parameter is specified, the call will block at most for the specified amount of time in μs\&. Pass -\fBUINT64_MAX\fR -to permit it to sleep indefinitely\&. -.PP -After each invocation of -\fBsd_bus_wait()\fR -the -\fBsd_bus_process()\fR -call should be invoked in order to process any now pending I/O work\&. -.PP -Note that -\fBsd_bus_wait()\fR -is suitable only for simple programs as it does not permit waiting for other I/O events\&. For more complex programs either connect the bus connection object to an external event loop using -\fBsd_bus_get_fd\fR(3) -or to an -\fBsd-event\fR(3) -event loop using -\fBsd_bus_attach_event\fR(3)\&. -.SH "RETURN VALUE" -.PP -If any I/O was seen, a positive value is returned, zero otherwise\&. If an error occurs, a negative -\fIerrno\fR\-style error code is returned\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -An invalid bus object was passed\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The bus connection was allocated in a parent process and is being reused in a child process after -\fBfork()\fR\&. -.RE -.PP -\fB\-ENOTCONN\fR -.RS 4 -The bus connection has been terminated already\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-bus\fR(3), -\fBsd_bus_process\fR(3), -\fBsd_bus_get_fd\fR(3), -\fBsd-event\fR(3), -\fBsd_bus_attach_event\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_device_get_syspath.3 b/upstream/opensuse-tumbleweed/man3/sd_device_get_syspath.3 deleted file mode 100644 index 40b0da44..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_device_get_syspath.3 +++ /dev/null @@ -1,157 +0,0 @@ -'\" t -.TH "SD_DEVICE_GET_SYSPATH" "3" "" "systemd 254" "sd_device_get_syspath" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_device_get_syspath, sd_device_get_devpath, sd_device_get_sysname, sd_device_get_sysnum, sd_device_get_subsystem, sd_device_get_devtype, sd_device_get_devname, sd_device_get_devnum, sd_device_get_ifindex, sd_device_get_driver, sd_device_get_diskseq \- Returns various fields of device objects -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_device_get_syspath('u -.BI "int sd_device_get_syspath(sd_device\ *" "device" ", const\ char\ **" "ret" ");" -.HP \w'int\ sd_device_get_devpath('u -.BI "int sd_device_get_devpath(sd_device\ *" "device" ", const\ char\ **" "ret" ");" -.HP \w'int\ sd_device_get_sysname('u -.BI "int sd_device_get_sysname(sd_device\ *" "device" ", const\ char\ **" "ret" ");" -.HP \w'int\ sd_device_get_sysnum('u -.BI "int sd_device_get_sysnum(sd_device\ *" "device" ", const\ char\ **" "ret" ");" -.HP \w'int\ sd_device_get_subsystem('u -.BI "int sd_device_get_subsystem(sd_device\ *" "device" ", const\ char\ **" "ret" ");" -.HP \w'int\ sd_device_get_devtype('u -.BI "int sd_device_get_devtype(sd_device\ *" "device" ", const\ char\ **" "ret" ");" -.HP \w'int\ sd_device_get_devname('u -.BI "int sd_device_get_devname(sd_device\ *" "device" ", const\ char\ **" "ret" ");" -.HP \w'int\ sd_device_get_devnum('u -.BI "int sd_device_get_devnum(sd_device\ *" "device" ", dev_t\ *" "ret" ");" -.HP \w'int\ sd_device_get_ifindex('u -.BI "int sd_device_get_ifindex(sd_device\ *" "device" ", int\ *" "ret" ");" -.HP \w'int\ sd_device_get_driver('u -.BI "int sd_device_get_driver(sd_device\ *" "device" ", const\ char\ **" "ret" ");" -.HP \w'int\ sd_device_get_diskseq('u -.BI "int sd_device_get_diskseq(sd_device\ *" "device" ", uint64_t\ *" "ret" ");" -.SH "DESCRIPTION" -.PP -\fBsd_device_get_syspath()\fR -returns the sysfs path of the specified device record, including the -/sys -prefix\&. Example: -/sys/devices/virtual/tty/tty7 -.PP -\fBsd_device_get_devpath()\fR -returns the sysfs path of the specified device record, excluding the -/sys -prefix\&. Example: -/devices/virtual/tty/tty7 -.PP -\fBsd_device_get_sysname()\fR -returns the sysfs name of the specified device record, i\&.e\&. the last component of the sysfs path\&. Example: -"tty7" -for the device -/sys/devices/virtual/tty/tty7 -.PP -\fBsd_device_get_sysnum()\fR -returns the sysfs device number of the specified device record, i\&.e\&. the numeric suffix of the last component of the sysfs path\&. Example: -"7" -for the device -/sys/devices/virtual/tty/tty7 -.PP -\fBsd_device_get_subsystem()\fR -returns the kernel subsystem of the specified device record\&. This is a short string fitting into a filename, and thus does not contain a slash and cannot be empty\&. Example: -"tty", -"block" -or -"net"\&. -.PP -\fBsd_device_get_devtype()\fR -returns the device type of the specified device record, if the subsystem manages multiple types of devices\&. Example: for devices of the -"block" -subsystem this can be -"disk" -or -"partition" -.PP -\fBsd_device_get_devname()\fR -returns the device node path of the specified device record if the device has a device node\&. Example: for -/sys/devices/virtual/tty/tty7 -the string -/dev/tty7 -is typically returned\&. -.PP -\fBsd_device_get_devnum()\fR -returns the device node major/minor (i\&.e\&. -\fBdev_t\fR) of the specified device record if the device has a device node (i\&.e\&. the one returned by -\fBsd_device_get_devname()\fR)\&. For devices belonging to the -"block" -subsystem this refers to a block device node, in all other cases to a character device node\&. Example: for the -/sys/devices/virtual/tty/tty7 -device this typically returns the device number with major/minor -"4:7"\&. -.PP -\fBsd_device_get_ifindex()\fR -returns the network interface index of the specified device record, if the device encapsulates a network interface device, i\&.e\&. belongs to the -"net" -subsystem\&. Example: the -"lo" -interface typically has interface index 1\&. -.PP -\fBsd_device_get_driver()\fR -returns the kernel driver name attached to the device\&. Note that the driver field is set on the devices consumed by the driver, not on the device created by it\&. Example: a PCI device -/sys/bus/pci/devices/0000:00:1f\&.6 -might be attached to a driver -"e1000e"\&. -.PP -\fBsd_device_get_diskseq()\fR -returns the kernel disk sequence number of the block device\&. This number monotonically increases whenever a backing medium of a block device changes without the device name changing, and is relevant for block devices encapsulating devices with changing media (e\&.g\&. floppy or CD\-ROM), or loopback block devices\&. Only defined for block devices, i\&.e\&. those of subsystem -"block"\&. -.SH "RETURN VALUE" -.PP -On success, these calls return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -A specified parameter is invalid\&. -.RE -.PP -\fB\-ENOENT\fR -.RS 4 -The requested field is not present in the device record\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1) diff --git a/upstream/opensuse-tumbleweed/man3/sd_device_ref.3 b/upstream/opensuse-tumbleweed/man3/sd_device_ref.3 deleted file mode 100644 index ff91072d..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_device_ref.3 +++ /dev/null @@ -1,99 +0,0 @@ -'\" t -.TH "SD_DEVICE_REF" "3" "" "systemd 254" "sd_device_ref" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_device_ref, sd_device_unref, sd_device_unrefp \- Create or destroy references to a device object -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'sd_device*\ sd_device_ref('u -.BI "sd_device* sd_device_ref(sd_device\ *" "device" ");" -.HP \w'sd_device*\ sd_device_unref('u -.BI "sd_device* sd_device_unref(sd_device\ *" "device" ");" -.HP \w'void\ sd_device_unrefp('u -.BI "void sd_device_unrefp(sd_device\ **" "device" ");" -.PP -\fBsd_device_ref()\fR -increases the internal reference counter of -\fIdevice\fR -by one\&. -.PP -\fBsd_device_unref()\fR -decreases the internal reference counter of -\fIdevice\fR -by one\&. Once the reference count has dropped to zero, -\fIdevice\fR -is destroyed and cannot be used anymore, so further calls to -\fBsd_device_ref()\fR -or -\fBsd_device_unref()\fR -are illegal\&. -.PP -\fBsd_device_unrefp()\fR -is similar to -\fBsd_device_unref()\fR -but takes a pointer to a pointer to an -\fBsd_device\fR -object\&. This call is useful in conjunction with GCC\*(Aqs and LLVM\*(Aqs -\m[blue]\fBClean\-up Variable Attribute\fR\m[]\&\s-2\u[1]\d\s+2\&. Note that this function is defined as an inline function\&. Use a declaration like the following, in order to allocate a device object that is freed automatically as the code block is left: -.sp -.nf -{ - __attribute__((cleanup(sd_device_unrefp))) sd_device *device = NULL; - int r; - \&... - r = sd_device_new_from_syspath(&device, "\&..."); - if (r < 0) { - errno = \-r; - fprintf(stderr, "Failed to allocate device: %m\en"); - } - \&... -} -.fi -.PP -\fBsd_device_ref()\fR -and -\fBsd_device_unref()\fR -execute no operation if the argument is -\fBNULL\fR\&. -\fBsd_device_unrefp()\fR -will first dereference its argument, which must not be -\fBNULL\fR, and will execute no operation if -\fIthat\fR -is -\fBNULL\fR\&. -.SH "RETURN VALUE" -.PP -\fBsd_device_ref()\fR -always returns the argument, and -\fBsd_device_unref()\fR -always returns -\fBNULL\fR\&. -.SH "NOTES" -.IP " 1." 4 -Clean-up Variable Attribute -.RS 4 -\%https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_add_child.3 b/upstream/opensuse-tumbleweed/man3/sd_event_add_child.3 deleted file mode 100644 index ab5b1731..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_add_child.3 +++ /dev/null @@ -1,332 +0,0 @@ -'\" t -.TH "SD_EVENT_ADD_CHILD" "3" "" "systemd 254" "sd_event_add_child" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_add_child, sd_event_add_child_pidfd, sd_event_source_get_child_pid, sd_event_source_get_child_pidfd, sd_event_source_get_child_pidfd_own, sd_event_source_set_child_pidfd_own, sd_event_source_get_child_process_own, sd_event_source_set_child_process_own, sd_event_source_send_child_signal, sd_event_child_handler_t \- Add a child process state change event source to an event loop -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.sp -.ft B -.nf -typedef struct sd_event_source sd_event_source; -.fi -.ft -.HP \w'typedef\ int\ (*sd_event_child_handler_t)('u -.BI "typedef int (*sd_event_child_handler_t)(sd_event_source\ *" "s" ", const\ siginfo_t\ *" "si" ", void\ *" "userdata" ");" -.HP \w'int\ sd_event_add_child('u -.BI "int sd_event_add_child(sd_event\ *" "event" ", sd_event_source\ **" "source" ", pid_t\ " "pid" ", int\ " "options" ", sd_event_child_handler_t\ " "handler" ", void\ *" "userdata" ");" -.HP \w'int\ sd_event_add_child_pidfd('u -.BI "int sd_event_add_child_pidfd(sd_event\ *" "event" ", sd_event_source\ **" "source" ", int\ " "pidfd" ", int\ " "options" ", sd_event_child_handler_t\ " "handler" ", void\ *" "userdata" ");" -.HP \w'int\ sd_event_source_get_child_pid('u -.BI "int sd_event_source_get_child_pid(sd_event_source\ *" "source" ", pid_t\ *" "pid" ");" -.HP \w'int\ sd_event_source_get_child_pidfd('u -.BI "int sd_event_source_get_child_pidfd(sd_event_source\ *" "source" ");" -.HP \w'int\ sd_event_source_get_child_pidfd_own('u -.BI "int sd_event_source_get_child_pidfd_own(sd_event_source\ *" "source" ");" -.HP \w'int\ sd_event_source_set_child_pidfd_own('u -.BI "int sd_event_source_set_child_pidfd_own(sd_event_source\ *" "source" ", int\ " "own" ");" -.HP \w'int\ sd_event_source_get_child_process_own('u -.BI "int sd_event_source_get_child_process_own(sd_event_source\ *" "source" ");" -.HP \w'int\ sd_event_source_set_child_process_own('u -.BI "int sd_event_source_set_child_process_own(sd_event_source\ *" "source" ", int\ " "own" ");" -.HP \w'int\ sd_event_source_send_child_signal('u -.BI "int sd_event_source_send_child_signal(sd_event_source\ *" "source" ", int\ " "sig" ", const\ siginfo_t\ *" "info" ", unsigned\ " "flags" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_add_child()\fR -adds a new child process state change event source to an event loop\&. The event loop object is specified in the -\fIevent\fR -parameter, the event source object is returned in the -\fIsource\fR -parameter\&. The -\fIpid\fR -parameter specifies the PID of the process to watch, which must be a direct child process of the invoking process\&. The -\fIoptions\fR -parameter determines which state changes will be watched for\&. It must contain an OR\-ed mask of -\fBWEXITED\fR -(watch for the child process terminating), -\fBWSTOPPED\fR -(watch for the child process being stopped by a signal), and -\fBWCONTINUED\fR -(watch for the child process being resumed by a signal)\&. See -\fBwaitid\fR(2) -for further information\&. -.PP -The -\fIhandler\fR -must be a function to call when the process changes state or -\fBNULL\fR\&. The handler function will be passed the -\fIuserdata\fR -pointer, which may be chosen freely by the caller\&. The handler also receives a pointer to a -siginfo_t -structure containing information about the child process event\&. The handler may return negative to signal an error (see below), other return values are ignored\&. If -\fIhandler\fR -is -\fBNULL\fR, a default handler that calls -\fBsd_event_exit\fR(3) -will be used\&. -.PP -Only a single handler may be installed for a specific child process\&. The handler is enabled for a single event (\fBSD_EVENT_ONESHOT\fR), but this may be changed with -\fBsd_event_source_set_enabled\fR(3)\&. If the handler function returns a negative error code, it will either be disabled after the invocation, even if the -\fBSD_EVENT_ON\fR -mode was requested before, or it will cause the loop to terminate, see -\fBsd_event_source_set_exit_on_failure\fR(3)\&. -.PP -To destroy an event source object use -\fBsd_event_source_unref\fR(3), but note that the event source is only removed from the event loop when all references to the event source are dropped\&. To make sure an event source does not fire anymore, even when there\*(Aqs still a reference to it kept, consider setting the event source to -\fBSD_EVENT_OFF\fR -with -\fBsd_event_source_set_enabled\fR(3)\&. -.PP -The -\fBSIGCHLD\fR -signal must be blocked in all threads before this function is called (using -\fBsigprocmask\fR(2) -or -\fBpthread_sigmask\fR(3))\&. -.PP -If the second parameter of -\fBsd_event_add_child()\fR -is passed as -\fBNULL\fR -no reference to the event source object is returned\&. In this case the event source is considered "floating", and will be destroyed implicitly when the event loop itself is destroyed\&. -.PP -Note that the -\fIhandler\fR -function is invoked at a time where the child process is not reaped yet (and thus still is exposed as a zombie process by the kernel)\&. However, the child will be reaped automatically after the function returns\&. Child processes for which no child process state change event sources are installed will not be reaped by the event loop implementation\&. -.PP -If the -\fIhandler\fR -parameter to -\fBsd_event_add_child()\fR -is -\fBNULL\fR, and the event source fires, this will be considered a request to exit the event loop\&. In this case, the -\fIuserdata\fR -parameter, cast to an integer, is passed as the exit code parameter to -\fBsd_event_exit\fR(3)\&. -.PP -If both a child process state change event source and a -\fBSIGCHLD\fR -signal event source is installed in the same event loop, the configured event source priorities decide which event source is dispatched first\&. If the signal handler is processed first, it should leave the child processes for which child process state change event sources are installed unreaped\&. -.PP -\fBsd_event_add_child_pidfd()\fR -is similar to -\fBsd_event_add_child()\fR -but takes a file descriptor referencing the process ("pidfd") instead of the numeric PID\&. A suitable file descriptor may be acquired via -\fBpidfd_open\fR(2) -and related calls\&. The passed file descriptor is not closed when the event source is freed again, unless -\fBsd_event_source_set_child_pidfd_own()\fR -is used to turn this behaviour on\&. Note that regardless which of -\fBsd_event_add_child()\fR -and -\fBsd_event_add_child_pidfd()\fR -is used for allocating an event source, the watched process has to be a direct child process of the invoking process\&. Also in both cases -\fBSIGCHLD\fR -has to be blocked in the invoking process\&. -.PP -\fBsd_event_source_get_child_pid()\fR -retrieves the configured PID of a child process state change event source created previously with -\fBsd_event_add_child()\fR\&. It takes the event source object as the -\fIsource\fR -parameter and a pointer to a -\fBpid_t\fR -variable to return the process ID in\&. -.PP -\fBsd_event_source_get_child_pidfd()\fR -retrieves the file descriptor referencing the watched process ("pidfd") if this functionality is available\&. On kernels that support the concept the event loop will make use of pidfds to watch child processes, regardless if the individual event sources are allocated via -\fBsd_event_add_child()\fR -or -\fBsd_event_add_child_pidfd()\fR\&. If the latter call was used to allocate the event source, this function returns the file descriptor used for allocation\&. On kernels that do not support the pidfd concept this function will fail with -\fBEOPNOTSUPP\fR\&. This call takes the event source object as the -\fIsource\fR -parameter and returns the numeric file descriptor\&. -.PP -\fBsd_event_source_get_child_pidfd_own()\fR -may be used to query whether the pidfd the event source encapsulates shall be closed when the event source is freed\&. This function returns zero if the pidfd shall be left open, and positive if it shall be closed automatically\&. By default this setting defaults to on if the event source was allocated via -\fBsd_event_add_child()\fR -and off if it was allocated via -\fBsd_event_add_child_pidfd()\fR\&. The -\fBsd_event_source_set_child_pidfd_own()\fR -function may be used to change the setting and takes a boolean parameter with the new setting\&. -.PP -\fBsd_event_source_get_child_process_own()\fR -may be used to query whether the process the event source watches shall be killed (with -\fBSIGKILL\fR) and reaped when the event source is freed\&. This function returns zero if the process shell be left running, and positive if it shall be killed and reaped automatically\&. By default this setting defaults to off\&. The -\fBsd_event_source_set_child_process_own()\fR -function may be used to change the setting and takes a boolean parameter with the new setting\&. Note that currently if the calling process is terminated abnormally the watched process might survive even thought the event source ceases to exist\&. This behaviour might change eventually\&. -.PP -\fBsd_event_source_send_child_signal()\fR -may be used to send a UNIX signal to the watched process\&. If the pidfd concept is supported in the kernel, this is implemented via -\fBpidfd_send_signal\fR(2) -and otherwise via -\fBrt_sigqueueinfo\fR(2) -(or via -\fBkill\fR(2) -in case -\fIinfo\fR -is -\fBNULL\fR)\&. The specified parameters match those of these underlying system calls, except that the -\fIinfo\fR -is never modified (and is thus declared constant)\&. Like for the underlying system calls, the -\fIflags\fR -parameter currently must be zero\&. -.SH "RETURN VALUE" -.PP -On success, these functions return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ENOMEM\fR -.RS 4 -Not enough memory to allocate an object\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -An invalid argument has been passed\&. This includes specifying an empty mask in -\fIoptions\fR -or a mask which contains values different than a combination of -\fBWEXITED\fR, -\fBWSTOPPED\fR, and -\fBWCONTINUED\fR\&. -.RE -.PP -\fB\-EBUSY\fR -.RS 4 -A handler is already installed for this child process, or -\fBSIGCHLD\fR -is not blocked\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -The event loop is already terminated\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop has been created in a different process, library or module instance\&. -.RE -.PP -\fB\-EDOM\fR -.RS 4 -The passed event source is not a child process event source\&. -.RE -.PP -\fB\-EOPNOTSUPP\fR -.RS 4 -A pidfd was requested but the kernel does not support this concept\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "EXAMPLE" -.PP -\fBExample\ \&1.\ \&Exit loop when the child terminates\fR -.sp -.if n \{\ -.RS 4 -.\} -.nf -/* SPDX\-License\-Identifier: MIT\-0 */ - -#include -#include -#include -#include - -int main(int argc, char **argv) { - pid_t pid = fork(); - assert(pid >= 0); - - /* SIGCHLD signal must be blocked for sd_event_add_child to work */ - sigset_t ss; - sigemptyset(&ss); - sigaddset(&ss, SIGCHLD); - sigprocmask(SIG_BLOCK, &ss, NULL); - - if (pid == 0) /* child */ - sleep(1); - - else { /* parent */ - sd_event *e = NULL; - int r; - - /* Create the default event loop */ - sd_event_default(&e); - assert(e); - - /* We create a floating child event source (attached to \*(Aqe\*(Aq)\&. - * The default handler will be called with 666 as userdata, which - * will become the exit value of the loop\&. */ - r = sd_event_add_child(e, NULL, pid, WEXITED, NULL, (void*) 666); - assert(r >= 0); - - r = sd_event_loop(e); - assert(r == 666); - - sd_event_unref(e); - } - - return 0; -} -.fi -.if n \{\ -.RE -.\} -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-event\fR(3), -\fBsd_event_new\fR(3), -\fBsd_event_now\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_source_set_enabled\fR(3), -\fBsd_event_source_set_priority\fR(3), -\fBsd_event_source_set_userdata\fR(3), -\fBsd_event_source_set_description\fR(3), -\fBsd_event_source_set_floating\fR(3), -\fBwaitid\fR(2), -\fBsigprocmask\fR(2), -\fBpthread_sigmask\fR(3), -\fBpidfd_open\fR(2), -\fBpidfd_send_signal\fR(2), -\fBrt_sigqueueinfo\fR(2), -\fBkill\fR(2) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_add_defer.3 b/upstream/opensuse-tumbleweed/man3/sd_event_add_defer.3 deleted file mode 100644 index 006944d7..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_add_defer.3 +++ /dev/null @@ -1,163 +0,0 @@ -'\" t -.TH "SD_EVENT_ADD_DEFER" "3" "" "systemd 254" "sd_event_add_defer" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_add_defer, sd_event_add_post, sd_event_add_exit, sd_event_handler_t \- Add static event sources to an event loop -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.sp -.ft B -.nf -typedef struct sd_event_source sd_event_source; -.fi -.ft -.HP \w'typedef\ int\ (*sd_event_handler_t)('u -.BI "typedef int (*sd_event_handler_t)(sd_event_source\ *" "s" ", void\ *" "userdata" ");" -.HP \w'int\ sd_event_add_defer('u -.BI "int sd_event_add_defer(sd_event\ *" "event" ", sd_event_source\ **" "source" ", sd_event_handler_t\ " "handler" ", void\ *" "userdata" ");" -.HP \w'int\ sd_event_add_post('u -.BI "int sd_event_add_post(sd_event\ *" "event" ", sd_event_source\ **" "source" ", sd_event_handler_t\ " "handler" ", void\ *" "userdata" ");" -.HP \w'int\ sd_event_add_exit('u -.BI "int sd_event_add_exit(sd_event\ *" "event" ", sd_event_source\ **" "source" ", sd_event_handler_t\ " "handler" ", void\ *" "userdata" ");" -.SH "DESCRIPTION" -.PP -These three functions add new static event sources to an event loop\&. The event loop object is specified in the -\fIevent\fR -parameter, the event source object is returned in the -\fIsource\fR -parameter\&. The event sources are enabled statically and will "fire" when the event loop is run and the conditions described below are met\&. -.PP -The -\fIhandler\fR -is a function to call or -\fBNULL\fR\&. The handler function will be passed the -\fIuserdata\fR -pointer, which may be chosen freely by the caller\&. The handler may return negative to signal an error (see below), other return values are ignored\&. If -\fIhandler\fR -is -\fBNULL\fR, a default handler that calls -\fBsd_event_exit\fR(3) -will be used\&. -.PP -\fBsd_event_add_defer()\fR -adds a new event source that will be dispatched instantly, before the event loop goes to sleep again and waits for new events\&. By default, the handler will be called once (\fBSD_EVENT_ONESHOT\fR)\&. Note that if the event source is set to -\fBSD_EVENT_ON\fR -the event loop will never go to sleep again, but continuously call the handler, possibly interleaved with other event sources\&. -.PP -\fBsd_event_add_post()\fR -adds a new event source that is run before the event loop will sleep and wait for new events, but only after at least one other non\-post event source was dispatched\&. By default, the source is enabled permanently (\fBSD_EVENT_ON\fR)\&. Note that this event source type will still allow the event loop to go to sleep again, even if set to -\fBSD_EVENT_ON\fR, as long as no other event source is ever triggered\&. -.PP -\fBsd_event_add_exit()\fR -adds a new event source that will be dispatched when the event loop is terminated with -\fBsd_event_exit\fR(3)\&. -.PP -The -\fBsd_event_source_set_enabled\fR(3) -function may be used to enable the event source permanently (\fBSD_EVENT_ON\fR) or to make it fire just once (\fBSD_EVENT_ONESHOT\fR)\&. -.PP -If the handler function returns a negative error code, it will either be disabled after the invocation, even if the -\fBSD_EVENT_ON\fR -mode was requested before, or it will cause the loop to terminate, see -\fBsd_event_source_set_exit_on_failure\fR(3)\&. -.PP -To destroy an event source object use -\fBsd_event_source_unref\fR(3), but note that the event source is only removed from the event loop when all references to the event source are dropped\&. To make sure an event source does not fire anymore, even when there\*(Aqs still a reference to it kept, consider setting the event source to -\fBSD_EVENT_OFF\fR -with -\fBsd_event_source_set_enabled\fR(3)\&. -.PP -If the second parameter of these functions is passed as -\fBNULL\fR -no reference to the event source object is returned\&. In this case the event source is considered "floating", and will be destroyed implicitly when the event loop itself is destroyed\&. -.PP -If the -\fIhandler\fR -parameter to -\fBsd_event_add_defer()\fR -or -\fBsd_event_add_post()\fR -is -\fBNULL\fR, and the event source fires, this will be considered a request to exit the event loop\&. In this case, the -\fIuserdata\fR -parameter, cast to an integer, is passed as the exit code parameter to -\fBsd_event_exit\fR(3)\&. Similar functionality is not available for -\fBsd_event_add_exit()\fR, as these types of event sources are only dispatched when exiting anyway\&. -.SH "RETURN VALUE" -.PP -On success, these functions return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ENOMEM\fR -.RS 4 -Not enough memory to allocate an object\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -An invalid argument has been passed\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -The event loop is already terminated\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop has been created in a different process, library or module instance\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-event\fR(3), -\fBsd_event_new\fR(3), -\fBsd_event_now\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_source_set_enabled\fR(3), -\fBsd_event_source_set_priority\fR(3), -\fBsd_event_source_set_userdata\fR(3), -\fBsd_event_source_set_description\fR(3), -\fBsd_event_source_set_floating\fR(3), -\fBsd_event_exit\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_add_inotify.3 b/upstream/opensuse-tumbleweed/man3/sd_event_add_inotify.3 deleted file mode 100644 index b14a02be..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_add_inotify.3 +++ /dev/null @@ -1,273 +0,0 @@ -'\" t -.TH "SD_EVENT_ADD_INOTIFY" "3" "" "systemd 254" "sd_event_add_inotify" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_add_inotify, sd_event_add_inotify_fd, sd_event_source_get_inotify_mask, sd_event_inotify_handler_t \- Add an "inotify" file system inode event source to an event loop -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.sp -.ft B -.nf -typedef struct sd_event_source sd_event_source; -.fi -.ft -.HP \w'typedef\ int\ (*sd_event_inotify_handler_t)('u -.BI "typedef int (*sd_event_inotify_handler_t)(sd_event_source\ *" "s" ", const\ struct\ inotify_event\ *" "event" ", void\ *" "userdata" ");" -.HP \w'int\ sd_event_add_inotify('u -.BI "int sd_event_add_inotify(sd_event\ *" "event" ", sd_event_source\ **" "source" ", const\ char\ *" "path" ", uint32_t\ " "mask" ", sd_event_inotify_handler_t\ " "handler" ", void\ *" "userdata" ");" -.HP \w'int\ sd_event_add_inotify_fd('u -.BI "int sd_event_add_inotify_fd(sd_event\ *" "event" ", sd_event_source\ **" "source" ", int\ " "fd" ", uint32_t\ " "mask" ", sd_event_inotify_handler_t\ " "handler" ", void\ *" "userdata" ");" -.HP \w'int\ sd_event_source_get_inotify_mask('u -.BI "int sd_event_source_get_inotify_mask(sd_event_source\ *" "source" ", uint32_t\ *" "mask" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_add_inotify()\fR -adds a new -\fBinotify\fR(7) -file system inode event source to an event loop\&. The event loop object is specified in the -\fIevent\fR -parameter, the event source object is returned in the -\fIsource\fR -parameter\&. The -\fIpath\fR -parameter specifies the path of the file system inode to watch\&. The -\fImask\fR -parameter specifies which types of inode events to watch specifically\&. It must contain an OR\-ed combination of -\fBIN_ACCESS\fR, -\fBIN_ATTRIB\fR, -\fBIN_CLOSE_WRITE\fR, \&... flags\&. See -\fBinotify\fR(7) -for further information\&. -.PP -The -\fIhandler\fR -must reference a function to call when the inode changes or -\fBNULL\fR\&. The handler function will be passed the -\fIuserdata\fR -pointer, which may be chosen freely by the caller\&. The handler also receives a pointer to a -struct inotify_event -structure containing information about the inode event\&. The handler may return negative to signal an error (see below), other return values are ignored\&. If -\fIhandler\fR -is -\fBNULL\fR, a default handler that calls -\fBsd_event_exit\fR(3) -will be used\&. -.PP -\fBsd_event_add_inotify_fd()\fR -is identical to -\fBsd_event_add_inotify()\fR, except that it takes a file descriptor to an inode (possibly an -\fBO_PATH\fR -one, but any other will do too) instead of a path in the file system\&. -.PP -If multiple event sources are installed for the same inode the backing inotify watch descriptor is automatically shared\&. The mask parameter may contain any flag defined by the inotify API, with the exception of -\fBIN_MASK_ADD\fR\&. -.PP -The handler is enabled continuously (\fBSD_EVENT_ON\fR), but this may be changed with -\fBsd_event_source_set_enabled\fR(3)\&. Alternatively, the -\fBIN_ONESHOT\fR -mask flag may be used to request -\fBSD_EVENT_ONESHOT\fR -mode\&. If the handler function returns a negative error code, it will be disabled after the invocation, even if the -\fBSD_EVENT_ON\fR -mode was requested before\&. -.PP -As a special limitation the priority of inotify event sources may only be altered (see -\fBsd_event_source_set_priority\fR(3)) in the time between creation of the event source object with -\fBsd_event_add_inotify()\fR -and the beginning of the next event loop iteration\&. Attempts of changing the priority any later will be refused\&. Consider freeing and allocating a new inotify event source to change the priority at that point\&. -.PP -To destroy an event source object use -\fBsd_event_source_unref\fR(3), but note that the event source is only removed from the event loop when all references to the event source are dropped\&. To make sure an event source does not fire anymore, even when there\*(Aqs still a reference to it kept, consider disabling it with -\fBsd_event_source_set_enabled\fR(3)\&. -.PP -If the second parameter of -\fBsd_event_add_inotify()\fR -is passed as -\fBNULL\fR -no reference to the event source object is returned\&. In this case the event source is considered "floating", and will be destroyed implicitly when the event loop itself is destroyed\&. -.PP -If the -\fIhandler\fR -parameter to -\fBsd_event_add_inotify()\fR -is -\fBNULL\fR, and the event source fires, this will be considered a request to exit the event loop\&. In this case, the -\fIuserdata\fR -parameter, cast to an integer, is passed as the exit code parameter to -\fBsd_event_exit\fR(3)\&. -.PP -\fBsd_event_source_get_inotify_mask()\fR -retrieves the configured inotify watch mask of an event source created previously with -\fBsd_event_add_inotify()\fR\&. It takes the event source object as the -\fIsource\fR -parameter and a pointer to a -\fBuint32_t\fR -variable to return the mask in\&. -.SH "RETURN VALUE" -.PP -On success, these functions return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ENOMEM\fR -.RS 4 -Not enough memory to allocate an object\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -An invalid argument has been passed\&. This includes specifying a mask with -\fBIN_MASK_ADD\fR -set\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -The event loop is already terminated\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop has been created in a different process, library or module instance\&. -.RE -.PP -\fB\-EDOM\fR -.RS 4 -The passed event source is not an inotify process event source\&. -.RE -.PP -\fB\-EBADF\fR -.RS 4 -The passed file descriptor is not valid\&. -.RE -.PP -\fB\-ENOSYS\fR -.RS 4 -\fBsd_event_add_inotify_fd()\fR -was called without -/proc/ -mounted\&. -.RE -.SH "EXAMPLES" -.PP -\fBExample\ \&1.\ \&A simple program that uses inotify to monitor one or two directories\fR -.sp -.if n \{\ -.RS 4 -.\} -.nf -/* SPDX\-License\-Identifier: MIT\-0 */ - -#include -#include -#include - -#include - -#define _cleanup_(f) __attribute__((cleanup(f))) - -static int inotify_handler(sd_event_source *source, - const struct inotify_event *event, - void *userdata) { - - const char *desc = NULL; - - sd_event_source_get_description(source, &desc); - - if (event\->mask & IN_Q_OVERFLOW) - printf("inotify\-handler <%s>: overflow\en", desc); - else if (event\->mask & IN_CREATE) - printf("inotify\-handler <%s>: create on %s\en", desc, event\->name); - else if (event\->mask & IN_DELETE) - printf("inotify\-handler <%s>: delete on %s\en", desc, event\->name); - else if (event\->mask & IN_MOVED_TO) - printf("inotify\-handler <%s>: moved\-to on %s\en", desc, event\->name); - - /* Terminate the program if an "exit" file appears */ - if ((event\->mask & (IN_CREATE|IN_MOVED_TO)) && - strcmp(event\->name, "exit") == 0) - sd_event_exit(sd_event_source_get_event(source), 0); - - return 1; -} - -int main(int argc, char **argv) { - _cleanup_(sd_event_unrefp) sd_event *event = NULL; - _cleanup_(sd_event_source_unrefp) sd_event_source *source1 = NULL, *source2 = NULL; - - const char *path1 = argc > 1 ? argv[1] : "/tmp"; - const char *path2 = argc > 2 ? argv[2] : NULL; - - /* Note: failure handling is omitted for brevity */ - - sd_event_default(&event); - - sd_event_add_inotify(event, &source1, path1, - IN_CREATE | IN_DELETE | IN_MODIFY | IN_MOVED_TO, - inotify_handler, NULL); - if (path2) - sd_event_add_inotify(event, &source2, path2, - IN_CREATE | IN_DELETE | IN_MODIFY | IN_MOVED_TO, - inotify_handler, NULL); - - sd_event_loop(event); - - return 0; -} -.fi -.if n \{\ -.RE -.\} -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-event\fR(3), -\fBsd_event_new\fR(3), -\fBsd_event_now\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_source_set_enabled\fR(3), -\fBsd_event_source_set_priority\fR(3), -\fBsd_event_source_set_userdata\fR(3), -\fBsd_event_source_set_description\fR(3), -\fBsd_event_source_set_floating\fR(3), -\fBwaitid\fR(2) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_add_io.3 b/upstream/opensuse-tumbleweed/man3/sd_event_add_io.3 deleted file mode 100644 index 26fc5753..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_add_io.3 +++ /dev/null @@ -1,241 +0,0 @@ -'\" t -.TH "SD_EVENT_ADD_IO" "3" "" "systemd 254" "sd_event_add_io" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_add_io, sd_event_source_get_io_events, sd_event_source_set_io_events, sd_event_source_get_io_revents, sd_event_source_get_io_fd, sd_event_source_set_io_fd, sd_event_source_get_io_fd_own, sd_event_source_set_io_fd_own, sd_event_source, sd_event_io_handler_t \- Add an I/O event source to an event loop -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.sp -.ft B -.nf -typedef struct sd_event_source sd_event_source; -.fi -.ft -.HP \w'typedef\ int\ (*sd_event_io_handler_t)('u -.BI "typedef int (*sd_event_io_handler_t)(sd_event_source\ *" "s" ", int\ " "fd" ", uint32_t\ " "revents" ", void\ *" "userdata" ");" -.HP \w'int\ sd_event_add_io('u -.BI "int sd_event_add_io(sd_event\ *" "event" ", sd_event_source\ **" "source" ", int\ " "fd" ", uint32_t\ " "events" ", sd_event_io_handler_t\ " "handler" ", void\ *" "userdata" ");" -.HP \w'int\ sd_event_source_get_io_events('u -.BI "int sd_event_source_get_io_events(sd_event_source\ *" "source" ", uint32_t\ *" "events" ");" -.HP \w'int\ sd_event_source_set_io_events('u -.BI "int sd_event_source_set_io_events(sd_event_source\ *" "source" ", uint32_t\ " "events" ");" -.HP \w'int\ sd_event_source_get_io_revents('u -.BI "int sd_event_source_get_io_revents(sd_event_source\ *" "source" ", uint32_t\ *" "revents" ");" -.HP \w'int\ sd_event_source_get_io_fd('u -.BI "int sd_event_source_get_io_fd(sd_event_source\ *" "source" ");" -.HP \w'int\ sd_event_source_set_io_fd('u -.BI "int sd_event_source_set_io_fd(sd_event_source\ *" "source" ", int\ " "fd" ");" -.HP \w'int\ sd_event_source_get_io_fd_own('u -.BI "int sd_event_source_get_io_fd_own(sd_event_source\ *" "source" ");" -.HP \w'int\ sd_event_source_set_io_fd_own('u -.BI "int sd_event_source_set_io_fd_own(sd_event_source\ *" "source" ", int\ " "b" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_add_io()\fR -adds a new I/O event source to an event loop\&. The event loop object is specified in the -\fIevent\fR -parameter, the event source object is returned in the -\fIsource\fR -parameter\&. The -\fIfd\fR -parameter takes the UNIX file descriptor to watch, which may refer to a socket, a FIFO, a message queue, a serial connection, a character device, or any other file descriptor compatible with Linux -\fBepoll\fR(7)\&. The -\fIevents\fR -parameter takes a bit mask of events to watch for, a combination of the following event flags: -\fBEPOLLIN\fR, -\fBEPOLLOUT\fR, -\fBEPOLLRDHUP\fR, -\fBEPOLLPRI\fR, and -\fBEPOLLET\fR, see -\fBepoll_ctl\fR(2) -for details\&. -.PP -The -\fIhandler\fR -is a function to call when the event source is triggered or -\fBNULL\fR\&. The -\fIuserdata\fR -pointer will be passed to the handler function, and may be chosen freely by the caller\&. The handler will also be passed the file descriptor the event was seen on, as well as the actual event flags\&. It\*(Aqs generally a subset of the events watched, however may additionally include -\fBEPOLLERR\fR -and -\fBEPOLLHUP\fR\&. The handler may return negative to signal an error (see below), other return values are ignored\&. If -\fIhandler\fR -is -\fBNULL\fR, a default handler that calls -\fBsd_event_exit\fR(3) -will be used\&. -.PP -By default, an event source will stay enabled continuously (\fBSD_EVENT_ON\fR), but this may be changed with -\fBsd_event_source_set_enabled\fR(3)\&. If the handler function returns a negative error code, it will either be disabled after the invocation, even if the -\fBSD_EVENT_ON\fR -mode was requested before, or it will cause the loop to terminate, see -\fBsd_event_source_set_exit_on_failure\fR(3)\&. Note that an event source set to -\fBSD_EVENT_ON\fR -will fire continuously unless data is read from or written to the file descriptor to reset the mask of events seen\&. -.PP -Setting the I/O event mask to watch for to 0 does not mean that the event source won\*(Aqt be triggered anymore, as -\fBEPOLLHUP\fR -and -\fBEPOLLERR\fR -may be triggered even with a zero event mask\&. To temporarily disable an I/O event source use -\fBsd_event_source_set_enabled\fR(3) -with -\fBSD_EVENT_OFF\fR -instead\&. -.PP -To destroy an event source object use -\fBsd_event_source_unref\fR(3), but note that the event source is only removed from the event loop when all references to the event source are dropped\&. To make sure an event source does not fire anymore, even if it is still referenced, disable the event source using -\fBsd_event_source_set_enabled\fR(3) -with -\fBSD_EVENT_OFF\fR\&. -.PP -If the second parameter of -\fBsd_event_add_io()\fR -is -\fBNULL\fR -no reference to the event source object is returned\&. In this case the event source is considered "floating", and will be destroyed implicitly when the event loop itself is destroyed\&. -.PP -If the -\fIhandler\fR -to -\fBsd_event_add_io()\fR -is -\fBNULL\fR, and the event source fires, this will be considered a request to exit the event loop\&. In this case, the -\fIuserdata\fR -parameter, cast to an integer, is passed as the exit code parameter to -\fBsd_event_exit\fR(3)\&. -.PP -Note that this call does not take possession of the file descriptor passed in, ownership (and thus the duty to close it when it is no longer needed) remains with the caller\&. However, with the -\fBsd_event_source_set_io_fd_own()\fR -call (see below) the event source may optionally take ownership of the file descriptor after the event source has been created\&. In that case the file descriptor is closed automatically as soon as the event source is released\&. -.PP -It is recommended to use -\fBsd_event_add_io()\fR -only in conjunction with file descriptors that have -\fBO_NONBLOCK\fR -set, to ensure that all I/O operations from invoked handlers are properly asynchronous and non\-blocking\&. Using file descriptors without -\fBO_NONBLOCK\fR -might result in unexpected starvation of other event sources\&. See -\fBfcntl\fR(2) -for details on enabling -\fBO_NONBLOCK\fR -mode\&. -.PP -\fBsd_event_source_get_io_events()\fR -retrieves the configured mask of watched I/O events of an event source created previously with -\fBsd_event_add_io()\fR\&. It takes the event source object and a pointer to a variable to store the mask in\&. -.PP -\fBsd_event_source_set_io_events()\fR -configures the mask of watched I/O events of an event source created previously with -\fBsd_event_add_io()\fR\&. It takes the event source object and the new event mask\&. -.PP -\fBsd_event_source_get_io_revents()\fR -retrieves the I/O event mask of currently seen but undispatched events from an event source created previously with -\fBsd_event_add_io()\fR\&. It takes the event source object and a pointer to a variable to store the event mask in\&. When called from a handler function on the handler\*(Aqs event source object this will return the same mask as passed to the handler\*(Aqs -\fIrevents\fR -parameter\&. This call is primarily useful to check for undispatched events of an event source from the handler of an unrelated (possibly higher priority) event source\&. Note the relation between -\fBsd_event_source_get_pending()\fR -and -\fBsd_event_source_get_io_revents()\fR: both functions will report non\-zero results when there\*(Aqs an event pending for the event source, but the former applies to all event source types, the latter only to I/O event sources\&. -.PP -\fBsd_event_source_get_io_fd()\fR -retrieves the UNIX file descriptor of an event source created previously with -\fBsd_event_add_io()\fR\&. It takes the event source object and returns the non\-negative file descriptor or a negative error number on error (see below)\&. -.PP -\fBsd_event_source_set_io_fd()\fR -changes the UNIX file descriptor of an I/O event source created previously with -\fBsd_event_add_io()\fR\&. It takes the event source object and the new file descriptor\&. -.PP -\fBsd_event_source_set_io_fd_own()\fR -controls whether the file descriptor of the event source shall be closed automatically when the event source is freed, i\&.e\&. whether it shall be considered \*(Aqowned\*(Aq by the event source object\&. By default it is not closed automatically, and the application has to do this on its own\&. The -\fIb\fR -parameter is a boolean parameter: if zero, the file descriptor is not closed automatically when the event source is freed, otherwise it is closed\&. -.PP -\fBsd_event_source_get_io_fd_own()\fR -may be used to query the current setting of the file descriptor ownership boolean flag as set with -\fBsd_event_source_set_io_fd_own()\fR\&. It returns positive if the file descriptor is closed automatically when the event source is destroyed, zero if not, and negative on error\&. -.SH "RETURN VALUE" -.PP -On success, these functions return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned values may indicate the following problems: -.PP -\fB\-ENOMEM\fR -.RS 4 -Not enough memory to allocate an object\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -An invalid argument has been passed\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -The event loop is already terminated\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop has been created in a different process, library or module instance\&. -.RE -.PP -\fB\-EDOM\fR -.RS 4 -The passed event source is not an I/O event source\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-event\fR(3), -\fBsd_event_new\fR(3), -\fBsd_event_now\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_source_set_enabled\fR(3), -\fBsd_event_source_set_priority\fR(3), -\fBsd_event_source_set_userdata\fR(3), -\fBsd_event_source_set_description\fR(3), -\fBsd_event_source_get_pending\fR(3), -\fBsd_event_source_set_floating\fR(3), -\fBepoll_ctl\fR(2), -\fBepoll\fR(7) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_add_memory_pressure.3 b/upstream/opensuse-tumbleweed/man3/sd_event_add_memory_pressure.3 deleted file mode 100644 index 417c5cb5..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_add_memory_pressure.3 +++ /dev/null @@ -1,317 +0,0 @@ -'\" t -.TH "SD_EVENT_ADD_MEMORY_PRESSURE" "3" "" "systemd 254" "sd_event_add_memory_pressure" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_add_memory_pressure, sd_event_source_set_memory_pressure_type, sd_event_source_set_memory_pressure_period, sd_event_trim_memory \- Add and configure an event source run as result of memory pressure -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.sp -.ft B -.nf -typedef struct sd_event_source sd_event_source; -.fi -.ft -.HP \w'int\ sd_event_add_memory_pressure('u -.BI "int sd_event_add_memory_pressure(sd_event\ *" "event" ", sd_event_source\ **" "ret_source" ", sd_event_handler_t\ " "handler" ", void\ *" "userdata" ");" -.HP \w'int\ sd_event_source_set_memory_pressure_type('u -.BI "int sd_event_source_set_memory_pressure_type(sd_event_source\ *" "source" ", const\ char\ *" "type" ");" -.HP \w'int\ sd_event_source_set_memory_pressure_period('u -.BI "int sd_event_source_set_memory_pressure_period(sd_event_source\ *" "source" ", uint64_t\ " "threshold_usec" ", uint64_t\ " "window_usec" ");" -.HP \w'int\ sd_event_trim_memory('u -.BI "int sd_event_trim_memory(void);" -.SH "DESCRIPTION" -.PP -\fBsd_event_add_memory_pressure()\fR -adds a new event source that is triggered whenever memory pressure is seen\&. This functionality is built around the Linux kernel\*(Aqs -\m[blue]\fBPressure Stall Information (PSI)\fR\m[]\&\s-2\u[1]\d\s+2 -logic\&. -.PP -Expects an event loop object as first parameter, and returns the allocated event source object in the second parameter, on success\&. The -\fIhandler\fR -parameter is a function to call when memory pressure is seen, or -\fBNULL\fR\&. The handler function will be passed the -\fIuserdata\fR -pointer, which may be chosen freely by the caller\&. The handler may return negative to signal an error (see below), other return values are ignored\&. If -\fIhandler\fR -is -\fBNULL\fR, a default handler that compacts allocation caches maintained by -libsystemd -as well as glibc (via -\fBmalloc_trim\fR(3)) will be used\&. -.PP -To destroy an event source object use -\fBsd_event_source_unref\fR(3), but note that the event source is only removed from the event loop when all references to the event source are dropped\&. To make sure an event source does not fire anymore, even if it is still referenced, disable the event source using -\fBsd_event_source_set_enabled\fR(3) -with -\fBSD_EVENT_OFF\fR\&. -.PP -If the second parameter of -\fBsd_event_add_memory_pressure()\fR -is -\fBNULL\fR -no reference to the event source object is returned\&. In this case the event source is considered "floating", and will be destroyed implicitly when the event loop itself is destroyed\&. -.PP -The event source will fire according to the following logic: -.sp -.RS 4 -.ie n \{\ -\h'-04' 1.\h'+01'\c -.\} -.el \{\ -.sp -1 -.IP " 1." 4.2 -.\} -If the -\fI$MEMORY_PRESSURE_WATCH\fR/\fI$MEMORY_PRESSURE_WRITE\fR -environment variables are set at the time the event source is established, it will watch the file, FIFO or AF_UNIX socket specified via -\fI$MEMORY_PRESSURE_WATCH\fR -(which must contain an absolute path name) for -\fBPOLLPRI\fR -(in case it is a regular file) or -\fBPOLLIN\fR -events (otherwise)\&. After opening the inode, it will write the (decoded) Base64 data provided via -\fI$MEMORY_PRESSURE_WRITE\fR -into it before it starts polling on it (the variable may be unset in which case this is skipped)\&. Typically, if used, -\fI$MEMORY_PRESSURE_WATCH\fR -will contain a path such as -/proc/pressure/memory -or a path to a specific -memory\&.pressure -file in the control group file system (cgroupfs)\&. -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04' 2.\h'+01'\c -.\} -.el \{\ -.sp -1 -.IP " 2." 4.2 -.\} -If these environment variables are not set, the local PSI interface file -memory\&.pressure -of the control group the invoking process is running in is used\&. -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04' 3.\h'+01'\c -.\} -.el \{\ -.sp -1 -.IP " 3." 4.2 -.\} -If that file does not exist, the system\-wide PSI interface file -/proc/pressure/memory -is watched instead\&. -.RE -.PP -Or in other words: preferably any explicit configuration passed in by an invoking service manager (or similar) is used as notification source, before falling back to local notifications of the service, and finally to global notifications of the system\&. -.PP -Well\-behaving services and applications are recommended to react to memory pressure events by executing one or more of the following operations, in order to ensure optimal behaviour even on loaded and resource\-constrained systems: -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -Release allocation caches such as -\fBmalloc_trim()\fR -or similar, both implemented in the libraries consumed by the program and in private allocation caches of the program itself\&. -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -Release any other form of in\-memory caches that can easily be recovered if needed (e\&.g\&. browser caches)\&. -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -Terminate idle worker threads or processes, or similar\&. -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -Even exit entirely from the program if it is idle and can be automatically started when needed (for example via socket or bus activation)\&. -.RE -.PP -Any of the suggested operations should help easing memory pressure situations and allowing the system to make progress by reclaiming the memory for other purposes\&. -.PP -This event source typically fires on memory pressure stalls, i\&.e\&. when operational latency above a configured threshold already has been seen\&. This should be taken into consideration when discussing whether later latency to re\-aquire any released resources is acceptable: it\*(Aqs usually more important to think of the latencies that already happened than those coming up in future\&. -.PP -The -\fBsd_event_source_set_memory_pressure_type()\fR -and -\fBsd_event_source_set_memory_pressure_period()\fR -functions can be used to fine\-tune the PSI parameters for pressure notifications\&. The former takes either -"some", -"full" -as second parameter, the latter takes threshold and period times in microseconds as parameters\&. For details about these three parameters see the PSI documentation\&. Note that these two calls must be invoked immediately after allocating the event source, as they must be configured before polling begins\&. Also note that these calls will fail if memory pressure parameterization has been passed in via the -\fI$MEMORY_PRESSURE_WATCH\fR/\fI$MEMORY_PRESSURE_WRITE\fR -environment variables (or in other words: configuration supplied by a service manager wins over internal settings)\&. -.PP -The -\fBsd_event_trim_memory()\fR -function releases various internal allocation caches maintained by -libsystemd -and then invokes glibc\*(Aqs -\fBmalloc_trim\fR(3)\&. This makes the operation executed when the handler function parameter of -\fBsd_event_add_memory_pressure\fR -is passed as -\fBNULL\fR -directly accessible for invocation at any time (see above)\&. This function will log a structured log message at -\fBLOG_DEBUG\fR -level (with message ID f9b0be465ad540d0850ad32172d57c21) about the memory pressure operation\&. -.PP -For further details see -\m[blue]\fBMemory Pressure Handling in systemd\fR\m[]\&\s-2\u[2]\d\s+2\&. -.SH "RETURN VALUE" -.PP -On success, these functions return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ENOMEM\fR -.RS 4 -Not enough memory to allocate an object\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -An invalid argument has been passed\&. -.RE -.PP -\fB\-EHOSTDOWN\fR -.RS 4 -The -\fI$MEMORY_PRESSURE_WATCH\fR -variable has been set to the literal string -/dev/null, in order to explicitly disable memory pressure handling\&. -.RE -.PP -\fB\-EBADMSG\fR -.RS 4 -The -\fI$MEMORY_PRESSURE_WATCH\fR -variable has been set to an invalid string, for example a relative rather than an absolute path\&. -.RE -.PP -\fB\-ENOTTY\fR -.RS 4 -The -\fI$MEMORY_PRESSURE_WATCH\fR -variable points to a regular file outside of the procfs or cgroupfs file systems\&. -.RE -.PP -\fB\-EOPNOTSUPP\fR -.RS 4 -No configuration via -\fI$MEMORY_PRESSURE_WATCH\fR -has been specified and the local kernel does not support the PSI interface\&. -.RE -.PP -\fB\-EBUSY\fR -.RS 4 -This is returned by -\fBsd_event_source_set_memory_pressure_type()\fR -and -\fBsd_event_source_set_memory_pressure_period()\fR -if invoked on event sources at a time later than immediately after allocating them\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -The event loop is already terminated\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop has been created in a different process, library or module instance\&. -.RE -.PP -\fB\-EDOM\fR -.RS 4 -The passed event source is not a signal event source\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-event\fR(3), -\fBsd_event_new\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_source_set_enabled\fR(3), -\fBsd_event_source_set_description\fR(3), -\fBsd_event_source_set_userdata\fR(3), -\fBsd_event_source_set_floating\fR(3) -.SH "NOTES" -.IP " 1." 4 -Pressure Stall Information (PSI) -.RS 4 -\%https://docs.kernel.org/accounting/psi.html -.RE -.IP " 2." 4 -Memory Pressure Handling in systemd -.RS 4 -\%https://systemd.io/MEMORY_PRESSURE -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_add_signal.3 b/upstream/opensuse-tumbleweed/man3/sd_event_add_signal.3 deleted file mode 100644 index b649a88d..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_add_signal.3 +++ /dev/null @@ -1,183 +0,0 @@ -'\" t -.TH "SD_EVENT_ADD_SIGNAL" "3" "" "systemd 254" "sd_event_add_signal" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_add_signal, sd_event_source_get_signal, sd_event_signal_handler_t, SD_EVENT_SIGNAL_PROCMASK \- Add a UNIX process signal event source to an event loop -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.sp -.ft B -.nf -typedef struct sd_event_source sd_event_source; -.fi -.ft -.sp -.ft B -.nf -\fBSD_EVENT_SIGNAL_PROCMASK\fR -.fi -.ft -.HP \w'typedef\ int\ (*sd_event_signal_handler_t)('u -.BI "typedef int (*sd_event_signal_handler_t)(sd_event_source\ *" "s" ", const\ struct\ signalfd_siginfo\ *" "si" ", void\ *" "userdata" ");" -.HP \w'int\ sd_event_add_signal('u -.BI "int sd_event_add_signal(sd_event\ *" "event" ", sd_event_source\ **" "source" ", int\ " "signal" ", sd_event_signal_handler_t\ " "handler" ", void\ *" "userdata" ");" -.HP \w'int\ sd_event_source_get_signal('u -.BI "int sd_event_source_get_signal(sd_event_source\ *" "source" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_add_signal()\fR -adds a new UNIX process signal event source to an event loop\&. The event loop object is specified in the -\fIevent\fR -parameter, and the event source object is returned in the -\fIsource\fR -parameter\&. The -\fIsignal\fR -parameter specifies the numeric signal to be handled (see -\fBsignal\fR(7))\&. -.PP -The -\fIhandler\fR -parameter is a function to call when the signal is received or -\fBNULL\fR\&. The handler function will be passed the -\fIuserdata\fR -pointer, which may be chosen freely by the caller\&. The handler also receives a pointer to a -signalfd_siginfo -structure containing information about the received signal\&. See -\fBsignalfd\fR(2) -for further information\&. The handler may return negative to signal an error (see below), other return values are ignored\&. If -\fIhandler\fR -is -\fBNULL\fR, a default handler that calls -\fBsd_event_exit\fR(3) -will be used\&. -.PP -Only a single handler may be installed for a specific signal\&. The signal must be blocked in all threads before this function is called (using -\fBsigprocmask\fR(2) -or -\fBpthread_sigmask\fR(3))\&. For convenience, if the special flag -\fBSD_EVENT_SIGNAL_PROCMASK\fR -is ORed into the specified signal the signal will be automatically masked as necessary, for the calling thread\&. Note that this only works reliably if the signal is already masked in all other threads of the process, or if there are no other threads at the moment of invocation\&. -.PP -By default, the event source is enabled permanently (\fBSD_EVENT_ON\fR), but this may be changed with -\fBsd_event_source_set_enabled\fR(3)\&. If the handler function returns a negative error code, it will either be disabled after the invocation, even if the -\fBSD_EVENT_ON\fR -mode was requested before, or it will cause the loop to terminate, see -\fBsd_event_source_set_exit_on_failure\fR(3)\&. -.PP -To destroy an event source object use -\fBsd_event_source_unref\fR(3), but note that the event source is only removed from the event loop when all references to the event source are dropped\&. To make sure an event source does not fire anymore, even if it is still referenced, disable the event source using -\fBsd_event_source_set_enabled\fR(3) -with -\fBSD_EVENT_OFF\fR\&. -.PP -If the second parameter of -\fBsd_event_add_signal()\fR -is -\fBNULL\fR -no reference to the event source object is returned\&. In this case the event source is considered "floating", and will be destroyed implicitly when the event loop itself is destroyed\&. -.PP -If the -\fIhandler\fR -parameter to -\fBsd_event_add_signal()\fR -is -\fBNULL\fR, and the event source fires, this will be considered a request to exit the event loop\&. In this case, the -\fIuserdata\fR -parameter, cast to an integer, is passed as the exit code parameter to -\fBsd_event_exit\fR(3)\&. -.PP -\fBsd_event_source_get_signal()\fR -returns the configured signal number of an event source created previously with -\fBsd_event_add_signal()\fR\&. It takes the event source object as the -\fIsource\fR -parameter\&. -.SH "RETURN VALUE" -.PP -On success, these functions return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ENOMEM\fR -.RS 4 -Not enough memory to allocate an object\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -An invalid argument has been passed\&. -.RE -.PP -\fB\-EBUSY\fR -.RS 4 -A handler is already installed for this signal or the signal was not blocked previously\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -The event loop is already terminated\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop has been created in a different process, library or module instance\&. -.RE -.PP -\fB\-EDOM\fR -.RS 4 -The passed event source is not a signal event source\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-event\fR(3), -\fBsd_event_new\fR(3), -\fBsd_event_now\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_source_set_enabled\fR(3), -\fBsd_event_source_set_description\fR(3), -\fBsd_event_source_set_userdata\fR(3), -\fBsd_event_source_set_floating\fR(3), -\fBsignal\fR(7), -\fBsignalfd\fR(2), -\fBsigprocmask\fR(2), -\fBpthread_sigmask\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_add_time.3 b/upstream/opensuse-tumbleweed/man3/sd_event_add_time.3 deleted file mode 100644 index d833d2ec..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_add_time.3 +++ /dev/null @@ -1,254 +0,0 @@ -'\" t -.TH "SD_EVENT_ADD_TIME" "3" "" "systemd 254" "sd_event_add_time" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_add_time, sd_event_add_time_relative, sd_event_source_get_time, sd_event_source_set_time, sd_event_source_set_time_relative, sd_event_source_get_time_accuracy, sd_event_source_set_time_accuracy, sd_event_source_get_time_clock, sd_event_time_handler_t \- Add a timer event source to an event loop -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.sp -.ft B -.nf -typedef struct sd_event_source sd_event_source; -.fi -.ft -.HP \w'typedef\ int\ (*sd_event_time_handler_t)('u -.BI "typedef int (*sd_event_time_handler_t)(sd_event_source\ *" "s" ", uint64_t\ " "usec" ", void\ *" "userdata" ");" -.HP \w'int\ sd_event_add_time('u -.BI "int sd_event_add_time(sd_event\ *" "event" ", sd_event_source\ **" "source" ", clockid_t\ " "clock" ", uint64_t\ " "usec" ", uint64_t\ " "accuracy" ", sd_event_time_handler_t\ " "handler" ", void\ *" "userdata" ");" -.HP \w'int\ sd_event_add_time_relative('u -.BI "int sd_event_add_time_relative(sd_event\ *" "event" ", sd_event_source\ **" "source" ", clockid_t\ " "clock" ", uint64_t\ " "usec" ", uint64_t\ " "accuracy" ", sd_event_time_handler_t\ " "handler" ", void\ *" "userdata" ");" -.HP \w'int\ sd_event_source_get_time('u -.BI "int sd_event_source_get_time(sd_event_source\ *" "source" ", uint64_t\ *" "usec" ");" -.HP \w'int\ sd_event_source_set_time('u -.BI "int sd_event_source_set_time(sd_event_source\ *" "source" ", uint64_t\ " "usec" ");" -.HP \w'int\ sd_event_source_set_time_relative('u -.BI "int sd_event_source_set_time_relative(sd_event_source\ *" "source" ", uint64_t\ " "usec" ");" -.HP \w'int\ sd_event_source_get_time_accuracy('u -.BI "int sd_event_source_get_time_accuracy(sd_event_source\ *" "source" ", uint64_t\ *" "usec" ");" -.HP \w'int\ sd_event_source_set_time_accuracy('u -.BI "int sd_event_source_set_time_accuracy(sd_event_source\ *" "source" ", uint64_t\ " "usec" ");" -.HP \w'int\ sd_event_source_get_time_clock('u -.BI "int sd_event_source_get_time_clock(sd_event_source\ *" "source" ", clockid_t\ *" "clock" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_add_time()\fR -adds a new timer event source to an event loop\&. The event loop object is specified in the -\fIevent\fR -parameter, the event source object is returned in the -\fIsource\fR -parameter\&. The -\fIclock\fR -parameter takes a clock identifier, one of -\fBCLOCK_REALTIME\fR, -\fBCLOCK_MONOTONIC\fR, -\fBCLOCK_BOOTTIME\fR, -\fBCLOCK_REALTIME_ALARM\fR, or -\fBCLOCK_BOOTTIME_ALARM\fR\&. See -\fBtimerfd_create\fR(2) -for details regarding the various types of clocks\&. The -\fIusec\fR -parameter specifies the earliest time, in microseconds (μs), relative to the clock\*(Aqs epoch, when the timer shall be triggered\&. If a time already in the past is specified (including -\fB0\fR), this timer source "fires" immediately and is ready to be dispatched\&. If the parameter is specified as -\fBUINT64_MAX\fR -the timer event will never elapse, which may be used as an alternative to explicitly disabling a timer event source with -\fBsd_event_source_set_enabled\fR(3)\&. The -\fIaccuracy\fR -parameter specifies an additional accuracy value in μs specifying how much the timer event may be delayed\&. Use -\fB0\fR -to select the default accuracy (250ms)\&. Use 1μs for maximum accuracy\&. Consider specifying 60000000μs (1min) or larger for long\-running events that may be delayed substantially\&. Picking higher accuracy values allows the system to coalesce timer events more aggressively, improving power efficiency\&. -.PP -The -\fIhandler\fR -is a function to call when the timer elapses or -\fBNULL\fR\&. The -\fIuserdata\fR -pointer will be passed to the handler function, and may be chosen freely by the caller\&. The configured trigger time is also passed to the handler, even if the call actually happens slightly later, subject to the specified accuracy value, the kernel timer slack (see -\fBprctl\fR(2)), and additional scheduling latencies\&. To query the actual time the handler was called use -\fBsd_event_now\fR(3)\&. The handler may return negative to signal an error (see below), other return values are ignored\&. If -\fIhandler\fR -is -\fBNULL\fR, a default handler that calls -\fBsd_event_exit\fR(3) -will be used\&. -.PP -By default, the timer will elapse once (\fBSD_EVENT_ONESHOT\fR), but this may be changed with -\fBsd_event_source_set_enabled\fR(3)\&. If the handler function returns a negative error code, it will either be disabled after the invocation, even if the -\fBSD_EVENT_ON\fR -mode was requested before, or it will cause the loop to terminate, see -\fBsd_event_source_set_exit_on_failure\fR(3)\&. Note that a timer event set to -\fBSD_EVENT_ON\fR -will fire continuously unless its configured time is updated using -\fBsd_event_source_set_time()\fR\&. -.PP -\fBsd_event_add_time_relative()\fR -is like -\fBsd_event_add_time()\fR, but takes a relative time specification\&. It\*(Aqs relative to the current time of the event loop iteration, as returned by -\fBsd_event_now\fR(3)\&. -.PP -To destroy an event source object use -\fBsd_event_source_unref\fR(3), but note that the event source is only removed from the event loop when all references to the event source are dropped\&. To make sure an event source does not fire anymore, even if it is still referenced, disable the event source using -\fBsd_event_source_set_enabled\fR(3) -with -\fBSD_EVENT_OFF\fR\&. -.PP -If the second parameter of -\fBsd_event_add_time()\fR -is -\fBNULL\fR -no reference to the event source object is returned\&. In this case the event source is considered "floating", and will be destroyed implicitly when the event loop itself is destroyed\&. -.PP -If the -\fIhandler\fR -parameter to -\fBsd_event_add_time()\fR -is -\fBNULL\fR, and the event source fires, this will be considered a request to exit the event loop\&. In this case, the -\fIuserdata\fR -parameter, cast to an integer, is passed as the exit code parameter to -\fBsd_event_exit\fR(3)\&. -.PP -Use -\fBCLOCK_BOOTTIME_ALARM\fR -and -\fBCLOCK_REALTIME_ALARM\fR -to define event sources that may wake up the system from suspend\&. -.PP -In order to set up relative timers (that is, relative to the current time), retrieve the current time via -\fBsd_event_now\fR(3), add the desired timespan to it, and use the result as the -\fIusec\fR -parameter to -\fBsd_event_add_time()\fR\&. -.PP -In order to set up repetitive timers (that is, timers that are triggered in regular intervals), set up the timer normally, for the first invocation\&. Each time the event handler is invoked, update the timer\*(Aqs trigger time with -\fBsd_event_source_set_time\fR(3) -for the next timer iteration, and reenable the timer using -\fBsd_event_source_set_enabled()\fR\&. To calculate the next point in time to pass to -\fBsd_event_source_set_time()\fR, either use as base the -\fIusec\fR -parameter passed to the timer callback, or the timestamp returned by -\fBsd_event_now()\fR\&. In the former case timer events will be regular, while in the latter case the scheduling latency will keep accumulating on the timer\&. -.PP -\fBsd_event_source_get_time()\fR -retrieves the configured time value of an event source created previously with -\fBsd_event_add_time()\fR -or -\fBsd_event_add_time_relative()\fR\&. It takes the event source object and a pointer to a variable to store the time in, relative to the selected clock\*(Aqs epoch, in μs\&. The returned value is relative to the epoch, even if the event source was created with a relative time via -\fBsd_event_add_time_relative()\fR\&. -.PP -\fBsd_event_source_set_time()\fR -changes the time of an event source created previously with -\fBsd_event_add_time()\fR -or -\fBsd_event_add_time_relative()\fR\&. It takes the event source object and a time relative to the selected clock\*(Aqs epoch, in μs\&. -.PP -\fBsd_event_source_set_time_relative()\fR -is similar to -\fBsd_event_source_set_time()\fR, but takes a time relative to the current time of the event loop iteration, as returned by -\fBsd_event_now()\fR\&. -.PP -\fBsd_event_source_get_time_accuracy()\fR -retrieves the configured accuracy value of an event source created previously with -\fBsd_event_add_time()\fR\&. It takes the event source object and a pointer to a variable to store the accuracy in\&. The accuracy is specified in μs\&. -.PP -\fBsd_event_source_set_time_accuracy()\fR -changes the configured accuracy of a timer event source created previously with -\fBsd_event_add_time()\fR\&. It takes the event source object and accuracy, in μs\&. -.PP -\fBsd_event_source_get_time_clock()\fR -retrieves the configured clock of an event source created previously with -\fBsd_event_add_time()\fR\&. It takes the event source object and a pointer to a variable to store the clock identifier in\&. -.SH "RETURN VALUE" -.PP -On success, these functions return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned values may indicate the following problems: -.PP -\fB\-ENOMEM\fR -.RS 4 -Not enough memory to allocate an object\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -An invalid argument has been passed\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -The event loop is already terminated\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop has been created in a different process, library or module instance\&. -.RE -.PP -\fB\-EOPNOTSUPP\fR -.RS 4 -The selected clock is not supported by the event loop implementation\&. -.RE -.PP -\fB\-EDOM\fR -.RS 4 -The passed event source is not a timer event source\&. -.RE -.PP -\fB\-EOVERFLOW\fR -.RS 4 -The passed relative time is outside of the allowed range for time values (i\&.e\&. the specified value added to the current time is outside the 64 bit unsigned integer range)\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-event\fR(3), -\fBsd_event_new\fR(3), -\fBsd_event_now\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_source_set_enabled\fR(3), -\fBsd_event_source_set_priority\fR(3), -\fBsd_event_source_set_userdata\fR(3), -\fBsd_event_source_set_description\fR(3), -\fBsd_event_source_set_floating\fR(3), -\fBclock_gettime\fR(2), -\fBtimerfd_create\fR(2), -\fBprctl\fR(2) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_exit.3 b/upstream/opensuse-tumbleweed/man3/sd_event_exit.3 deleted file mode 100644 index a6672ad2..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_exit.3 +++ /dev/null @@ -1,124 +0,0 @@ -'\" t -.TH "SD_EVENT_EXIT" "3" "" "systemd 254" "sd_event_exit" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_exit, sd_event_get_exit_code \- Ask the event loop to exit -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_event_exit('u -.BI "int sd_event_exit(sd_event\ *" "event" ", int\ " "code" ");" -.HP \w'int\ sd_event_get_exit_code('u -.BI "int sd_event_get_exit_code(sd_event\ *" "event" ", int\ *" "code" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_exit()\fR -requests the event loop specified in the -\fIevent\fR -event loop object to exit\&. The -\fIcode\fR -parameter may be any integer value and is returned as\-is by -\fBsd_event_loop\fR(3) -after the last event loop iteration\&. It may also be queried using -\fBsd_event_get_exit_code()\fR, see below\&. -.PP -When exiting is requested the event loop will stop listening for and dispatching regular event sources\&. Instead it will proceed with executing only event sources registered with -\fBsd_event_add_exit\fR(3) -in the order defined by their priority\&. After all exit event sources have been dispatched the event loop is terminated\&. -.PP -If -\fBsd_event_exit()\fR -is invoked a second time while the event loop is still processing exit event sources, the exit code stored in the event loop object is updated, but otherwise no further operation is executed\&. -.PP -\fBsd_event_get_exit_code()\fR -may be used to query the exit code passed into -\fBsd_event_exit()\fR -earlier\&. -.PP -While the full positive and negative integer ranges may be used for the exit code, care should be taken not pick exit codes that conflict with regular exit codes returned by -\fBsd_event_loop()\fR, if these exit codes shall be distinguishable\&. -.PP -Note that for most event source types passing the callback pointer as -\fBNULL\fR -in the respective constructor call (i\&.e\&. in -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), \&...) has the effect of -\fBsd_event_exit()\fR -being invoked once the event source triggers, with the specified userdata pointer cast to an integer as the exit code parameter\&. This is useful to automatically terminate an event loop after some condition, such as a time\-out or reception of -\fBSIGTERM\fR -or similar\&. See the documentation for the respective constructor call for details\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_event_exit()\fR -and -\fBsd_event_get_exit_code()\fR -return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The event loop object or error code pointer are invalid\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop was created in a different process, library or module instance\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -The event loop has exited already and all exit handlers are already processed\&. -.RE -.PP -\fB\-ENODATA\fR -.RS 4 -The event loop has not been requested to exit yet\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-event\fR(3), -\fBsd_event_new\fR(3), -\fBsd_event_add_exit\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_add_inotify\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_get_fd.3 b/upstream/opensuse-tumbleweed/man3/sd_event_get_fd.3 deleted file mode 100644 index 09ac8685..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_get_fd.3 +++ /dev/null @@ -1,148 +0,0 @@ -'\" t -.TH "SD_EVENT_GET_FD" "3" "" "systemd 254" "sd_event_get_fd" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_get_fd \- Obtain a file descriptor to poll for event loop events -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_event_get_fd('u -.BI "int sd_event_get_fd(sd_event\ *" "event" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_get_fd()\fR -returns the file descriptor that an event loop object returned by the -\fBsd_event_new\fR(3) -function uses to wait for events\&. This file descriptor may itself be polled for -\fBPOLLIN\fR/\fBEPOLLIN\fR -events\&. This makes it possible to embed an -\fBsd-event\fR(3) -event loop into another, possibly foreign, event loop\&. -.PP -The returned file descriptor refers to an -\fBepoll\fR(7) -object\&. It is recommended not to alter it by invoking -\fBepoll_ctl\fR(2) -on it, in order to avoid interference with the event loop\*(Aqs inner logic and assumptions\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_event_get_fd()\fR -returns a non\-negative file descriptor\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -\fIevent\fR -is not a valid pointer to an -sd_event -structure\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop has been created in a different process, library or module instance\&. -.RE -.SH "EXAMPLES" -.PP -\fBExample\ \&1.\ \&Integration in the GLib event loop\fR -.sp -.if n \{\ -.RS 4 -.\} -.nf -/* SPDX\-License\-Identifier: MIT\-0 */ - -#include -#include -#include - -typedef struct SDEventSource { - GSource source; - GPollFD pollfd; - sd_event *event; -} SDEventSource; - -static gboolean event_prepare(GSource *source, gint *timeout_) { - return sd_event_prepare(((SDEventSource *)source)\->event) > 0; -} - -static gboolean event_check(GSource *source) { - return sd_event_wait(((SDEventSource *)source)\->event, 0) > 0; -} - -static gboolean event_dispatch(GSource *source, GSourceFunc callback, gpointer user_data) { - return sd_event_dispatch(((SDEventSource *)source)\->event) > 0; -} - -static void event_finalize(GSource *source) { - sd_event_unref(((SDEventSource *)source)\->event); -} - -static GSourceFuncs event_funcs = { - \&.prepare = event_prepare, - \&.check = event_check, - \&.dispatch = event_dispatch, - \&.finalize = event_finalize, -}; - -GSource *g_sd_event_create_source(sd_event *event) { - SDEventSource *source; - - source = (SDEventSource *)g_source_new(&event_funcs, sizeof(SDEventSource)); - - source\->event = sd_event_ref(event); - source\->pollfd\&.fd = sd_event_get_fd(event); - source\->pollfd\&.events = G_IO_IN | G_IO_HUP | G_IO_ERR; - - g_source_add_poll((GSource *)source, &source\->pollfd); - - return (GSource *)source; -} -.fi -.if n \{\ -.RE -.\} -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsd-event\fR(3), -\fBsd_event_new\fR(3), -\fBsd_event_wait\fR(3), -\fBepoll_ctl\fR(2), -\fBepoll\fR(7) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_new.3 b/upstream/opensuse-tumbleweed/man3/sd_event_new.3 deleted file mode 100644 index c58464d5..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_new.3 +++ /dev/null @@ -1,186 +0,0 @@ -'\" t -.TH "SD_EVENT_NEW" "3" "" "systemd 254" "sd_event_new" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_new, sd_event_default, sd_event_ref, sd_event_unref, sd_event_unrefp, sd_event_get_tid, sd_event \- Acquire and release an event loop object -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.sp -.ft B -.nf -typedef struct sd_event sd_event; -.fi -.ft -.HP \w'int\ sd_event_new('u -.BI "int sd_event_new(sd_event\ **" "event" ");" -.HP \w'int\ sd_event_default('u -.BI "int sd_event_default(sd_event\ **" "event" ");" -.HP \w'sd_event\ *sd_event_ref('u -.BI "sd_event *sd_event_ref(sd_event\ *" "event" ");" -.HP \w'sd_event\ *sd_event_unref('u -.BI "sd_event *sd_event_unref(sd_event\ *" "event" ");" -.HP \w'void\ sd_event_unrefp('u -.BI "void sd_event_unrefp(sd_event\ **" "event" ");" -.HP \w'int\ sd_event_get_tid('u -.BI "int sd_event_get_tid(sd_event\ *" "event" ", pid_t\ *" "tid" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_new()\fR -allocates a new event loop object\&. The event loop object is returned in the -\fIevent\fR -parameter\&. After use, drop the returned reference with -\fBsd_event_unref()\fR\&. When the last reference is dropped, the object is freed\&. -.PP -\fBsd_event_default()\fR -acquires a reference to the default event loop object of the calling thread, possibly allocating a new object if no default event loop object has been allocated yet for the thread\&. After use, drop the returned reference with -\fBsd_event_unref()\fR\&. When the last reference is dropped, the event loop is freed\&. If this function is called while the object returned from a previous call from the same thread is still referenced, the same object is returned again, but the reference is increased by one\&. It is recommended to use this call instead of -\fBsd_event_new()\fR -in order to share event loop objects between various components that are dispatched in the same thread\&. All threads have exactly either zero or one default event loop objects associated, but never more\&. -.PP -After allocating an event loop object, add event sources to it with -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_add_post\fR(3) -or -\fBsd_event_add_exit\fR(3), and then execute the event loop using -\fBsd_event_loop\fR(3)\&. -.PP -\fBsd_event_ref()\fR -increases the reference count of the specified event loop object by one\&. -.PP -\fBsd_event_unref()\fR -decreases the reference count of the specified event loop object by one\&. If the count hits zero, the object is freed\&. Note that it is freed regardless of whether it is the default event loop object for a thread or not\&. This means that allocating an event loop with -\fBsd_event_default()\fR, then releasing it, and then acquiring a new one with -\fBsd_event_default()\fR -will result in two distinct objects\&. Note that, in order to free an event loop object, all remaining event sources of the event loop also need to be freed as each keeps a reference to it\&. -.PP -\fBsd_event_unrefp()\fR -is similar to -\fBsd_event_unref()\fR -but takes a pointer to a pointer to an -\fBsd_event\fR -object\&. This call is useful in conjunction with GCC\*(Aqs and LLVM\*(Aqs -\m[blue]\fBClean\-up Variable Attribute\fR\m[]\&\s-2\u[1]\d\s+2\&. Note that this function is defined as inline function\&. Use a declaration like the following, in order to allocate an event loop object that is freed automatically as the code block is left: -.sp -.if n \{\ -.RS 4 -.\} -.nf -{ - __attribute__((cleanup(sd_event_unrefp))) sd_event *event = NULL; - int r; - \&... - r = sd_event_default(&event); - if (r < 0) { - errno = \-r; - fprintf(stderr, "Failed to allocate event loop: %m\en"); - } - \&... -} -.fi -.if n \{\ -.RE -.\} -.PP -\fBsd_event_ref()\fR, -\fBsd_event_unref()\fR -and -\fBsd_event_unrefp()\fR -execute no operation if the passed in event loop object is -\fBNULL\fR\&. -.PP -\fBsd_event_get_tid()\fR -retrieves the thread identifier ("TID") of the thread the specified event loop object is associated with\&. This call is only supported for event loops allocated with -\fBsd_event_default()\fR, and returns the identifier for the thread the event loop is the default event loop of\&. See -\fBgettid\fR(2) -for more information on thread identifiers\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_event_new()\fR, -\fBsd_event_default()\fR -and -\fBsd_event_get_tid()\fR -return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. -\fBsd_event_ref()\fR -always returns a pointer to the event loop object passed in\&. -\fBsd_event_unref()\fR -always returns -\fBNULL\fR\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ENOMEM\fR -.RS 4 -Not enough memory to allocate the object\&. -.RE -.PP -\fB\-EMFILE\fR -.RS 4 -The maximum number of event loops has been allocated\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -\fBsd_event_get_tid()\fR -was invoked on an event loop object that was not allocated with -\fBsd_event_default()\fR\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-event\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_run\fR(3), -\fBgettid\fR(2) -.SH "NOTES" -.IP " 1." 4 -Clean-up Variable Attribute -.RS 4 -\%https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_now.3 b/upstream/opensuse-tumbleweed/man3/sd_event_now.3 deleted file mode 100644 index 50490148..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_now.3 +++ /dev/null @@ -1,98 +0,0 @@ -'\" t -.TH "SD_EVENT_NOW" "3" "" "systemd 254" "sd_event_now" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_now \- Retrieve current event loop iteration timestamp -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_event_now('u -.BI "int sd_event_now(sd_event\ *" "event" ", clockid_t\ " "clock" ", uint64_t\ *" "usec" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_now()\fR -returns the time when the most recent event loop iteration began\&. A timestamp is taken right after returning from the event sleep, and before dispatching any event sources\&. The -\fIevent\fR -parameter specifies the event loop object to retrieve the timestamp from\&. The -\fIclock\fR -parameter specifies the clock to retrieve the timestamp for, and is one of -\fBCLOCK_REALTIME\fR -(or equivalently -\fBCLOCK_REALTIME_ALARM\fR), -\fBCLOCK_MONOTONIC\fR, or -\fBCLOCK_BOOTTIME\fR -(or equivalently -\fBCLOCK_BOOTTIME_ALARM\fR), see -\fBclock_gettime\fR(2) -for more information on the various clocks\&. The retrieved timestamp is stored in the -\fIusec\fR -parameter, in μs since the clock\*(Aqs epoch\&. If this function is invoked before the first event loop iteration, the current time is returned, as reported by -\fBclock_gettime()\fR\&. To distinguish this case from a regular invocation the return value will be positive, and zero when the returned timestamp refers to an actual event loop iteration\&. -.SH "RETURN VALUE" -.PP -If the first event loop iteration has not run yet -\fBsd_event_now()\fR -writes current time to -\fIusec\fR -and returns a positive return value\&. Otherwise, it will write the requested timestamp to -\fIusec\fR -and return 0\&. On failure, the call returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned values may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -An invalid parameter was passed\&. -.RE -.PP -\fB\-EOPNOTSUPP\fR -.RS 4 -Unsupported clock type\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop object was created in a different process, library or module instance\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-event\fR(3), -\fBsd_event_new\fR(3), -\fBsd_event_add_time\fR(3), -\fBclock_gettime\fR(2) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_run.3 b/upstream/opensuse-tumbleweed/man3/sd_event_run.3 deleted file mode 100644 index ccd4de1f..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_run.3 +++ /dev/null @@ -1,145 +0,0 @@ -'\" t -.TH "SD_EVENT_RUN" "3" "" "systemd 254" "sd_event_run" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_run, sd_event_loop \- Run an event loop -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_event_run('u -.BI "int sd_event_run(sd_event\ *" "event" ", uint64_t\ " "usec" ");" -.HP \w'int\ sd_event_loop('u -.BI "int sd_event_loop(sd_event\ *" "event" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_run()\fR -may be used to run a single iteration of the event loop specified in the -\fIevent\fR -parameter\&. The function waits until an event to process is available, and dispatches the registered handler for it\&. The -\fIusec\fR -parameter specifies the maximum time (in microseconds) to wait for an event\&. Use -\fB(uint64_t) \-1\fR -to specify an infinite timeout\&. -.PP -\fBsd_event_loop()\fR -invokes -\fBsd_event_run()\fR -in a loop, thus implementing the actual event loop\&. The call returns as soon as exiting was requested using -\fBsd_event_exit\fR(3)\&. -.PP -The event loop object -\fIevent\fR -is created with -\fBsd_event_new\fR(3)\&. Events sources to wait for and their handlers may be registered with -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_add_post\fR(3) -and -\fBsd_event_add_exit\fR(3)\&. -.PP -For low\-level control of event loop execution, use -\fBsd_event_prepare\fR(3), -\fBsd_event_wait\fR(3) -and -\fBsd_event_dispatch\fR(3) -which are wrapped by -\fBsd_event_run()\fR\&. Along with -\fBsd_event_get_fd\fR(3), these functions allow integration of an -\fBsd-event\fR(3) -event loop into foreign event loop implementations\&. -.SH "RETURN VALUE" -.PP -On failure, these functions return a negative errno\-style error code\&. -\fBsd_event_run()\fR -returns a positive, non\-zero integer if an event source was dispatched, and zero when the specified timeout hit before an event source has seen any event, and hence no event source was dispatched\&. -\fBsd_event_loop()\fR -returns the exit code specified when invoking -\fBsd_event_exit()\fR\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The -\fIevent\fR -parameter is invalid or -\fBNULL\fR\&. -.RE -.PP -\fB\-EBUSY\fR -.RS 4 -The event loop object is not in the right state (see -\fBsd_event_prepare\fR(3) -for an explanation of possible states)\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -The event loop is already terminated\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop has been created in a different process, library or module instance\&. -.RE -.PP -Other errors are possible, too\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-event\fR(3), -\fBsd_event_new\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_exit\fR(3), -\fBsd_event_get_fd\fR(3), -\fBsd_event_wait\fR(3), -\m[blue]\fBGLib Main Event Loop\fR\m[]\&\s-2\u[1]\d\s+2 -.SH "NOTES" -.IP " 1." 4 -GLib Main Event Loop -.RS 4 -\%https://developer.gnome.org/glib/unstable/glib-The-Main-Event-Loop.html -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_set_signal_exit.3 b/upstream/opensuse-tumbleweed/man3/sd_event_set_signal_exit.3 deleted file mode 100644 index c6446119..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_set_signal_exit.3 +++ /dev/null @@ -1,86 +0,0 @@ -'\" t -.TH "SD_EVENT_SET_SIGNAL_EXIT" "3" "" "systemd 254" "sd_event_set_signal_exit" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_set_signal_exit \- Automatically leave event loop on \fBSIGINT\fR and \fBSIGTERM\fR -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_event_set_signal_exit('u -.BI "int sd_event_set_signal_exit(sd_event\ *" "event" ", int\ b);" -.SH "DESCRIPTION" -.PP -\fBsd_event_set_signal_exit()\fR -may be used to ensure the event loop terminates once a -\fBSIGINT\fR -or -\fBSIGTERM\fR -signal is received\&. It is a convencience wrapper around invocations of -\fBsd_event_add_signal\fR(3) -for both signals\&. The two signals are automatically added to the calling thread\*(Aqs signal mask (if a program is multi\-threaded care should be taken to either invoke this function before the first thread is started or to manually block the two signals process\-wide first)\&. -.PP -If the parameter -\fIb\fR -is specified as true, the event loop will terminate on -\fBSIGINT\fR -and -\fBSIGTERM\fR\&. If specified as false, it will no longer\&. When this functionality is turned off the calling thread\*(Aqs signal mask is restored to match the state before it was turned on, for the two signals\&. By default the two signals are not handled by the event loop, and Linux\*(Aq default signal handling for them is in effect\&. -.PP -It\*(Aqs customary for UNIX programs to exit on either of these two signals, hence it\*(Aqs typically a good idea to enable this functionality for the main event loop of a program\&. -.SH "RETURN VALUE" -.PP -\fBsd_event_set_signal_exit()\fR -returns a positive non\-zero value when the setting was successfully changed\&. It returns a zero when the specified setting was already in effect\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop has been created in a different process, library or module instance\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -The passed event loop object was invalid\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-event\fR(3), -\fBsd_event_new\fR(3), -\fBsd_event_add_signal\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_set_watchdog.3 b/upstream/opensuse-tumbleweed/man3/sd_event_set_watchdog.3 deleted file mode 100644 index 41a2c402..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_set_watchdog.3 +++ /dev/null @@ -1,117 +0,0 @@ -'\" t -.TH "SD_EVENT_SET_WATCHDOG" "3" "" "systemd 254" "sd_event_set_watchdog" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_set_watchdog, sd_event_get_watchdog \- Enable event loop watchdog support -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_event_set_watchdog('u -.BI "int sd_event_set_watchdog(sd_event\ *" "event" ", int\ b);" -.HP \w'int\ sd_event_get_watchdog('u -.BI "int sd_event_get_watchdog(sd_event\ *" "event" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_set_watchdog()\fR -may be used to enable or disable automatic watchdog notification support in the event loop object specified in the -\fIevent\fR -parameter\&. Specifically, depending on the -\fIb\fR -boolean argument this will make sure the event loop wakes up in regular intervals and sends watchdog notification messages to the service manager, if this was requested by the service manager\&. Watchdog support is determined with -\fBsd_watchdog_enabled\fR(3), and watchdog messages are sent with -\fBsd_notify\fR(3)\&. See the -\fIWatchdogSec=\fR -setting in -\fBsystemd.service\fR(5) -for details on how to enable watchdog support for a service and the protocol used\&. The wake\-up interval is chosen as half the watchdog timeout declared by the service manager via the -\fI$WATCHDOG_USEC\fR -environment variable\&. If the service manager did not request watchdog notifications, or if the process was not invoked by the service manager this call with a true -\fIb\fR -parameter executes no operation\&. Passing a false -\fIb\fR -parameter will disable the automatic sending of watchdog notification messages if it was enabled before\&. Newly allocated event loop objects have this feature disabled\&. -.PP -The first watchdog notification message is sent immediately when -\fBsd_event_set_watchdog()\fR -is invoked with a true -\fIb\fR -parameter\&. -.PP -The watchdog logic is designed to allow the service manager to automatically detect services that ceased processing of incoming events, and thus appear "hung"\&. Watchdog notifications are sent out only at the beginning of each event loop iteration\&. If an event source dispatch function blocks for an excessively long time and does not return execution to the event loop quickly, this might hence cause the notification message to be delayed, and possibly result in abnormal program termination, as configured in the service unit file\&. -.PP -\fBsd_event_get_watchdog()\fR -may be used to determine whether watchdog support was previously requested by a call to -\fBsd_event_set_watchdog()\fR -with a true -\fIb\fR -parameter and successfully enabled\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_event_set_watchdog()\fR -and -\fBsd_event_get_watchdog()\fR -return a non\-zero positive integer if the service manager requested watchdog support and watchdog support was successfully enabled\&. They return zero if the service manager did not request watchdog support, or if watchdog support was explicitly disabled with a false -\fIb\fR -parameter\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop has been created in a different process, library or module instance\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -The passed event loop object was invalid\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-event\fR(3), -\fBsd_event_new\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_watchdog_enabled\fR(3), -\fBsd_notify\fR(3), -\fBsystemd.service\fR(5) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_source_get_event.3 b/upstream/opensuse-tumbleweed/man3/sd_event_source_get_event.3 deleted file mode 100644 index 900e1757..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_source_get_event.3 +++ /dev/null @@ -1,69 +0,0 @@ -'\" t -.TH "SD_EVENT_SOURCE_GET_EVENT" "3" "" "systemd 254" "sd_event_source_get_event" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_source_get_event \- Retrieve the event loop of an event source -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'sd_event*\ sd_event_source_get_event('u -.BI "sd_event* sd_event_source_get_event(sd_event_source\ *" "source" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_source_get_event()\fR -may be used to retrieve the event loop object the event source object specified as -\fIsource\fR -is associated with\&. The event loop object is specified when creating an event source object with calls such as -\fBsd_event_add_io\fR(3) -or -\fBsd_event_add_time\fR(3)\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_event_source_get_event()\fR -returns the associated event loop object\&. On failure, it returns -\fBNULL\fR\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsd-event\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_source_set_userdata\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_source_get_pending.3 b/upstream/opensuse-tumbleweed/man3/sd_event_source_get_pending.3 deleted file mode 100644 index 49b60b98..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_source_get_pending.3 +++ /dev/null @@ -1,114 +0,0 @@ -'\" t -.TH "SD_EVENT_SOURCE_GET_PENDING" "3" "" "systemd 254" "sd_event_source_get_pending" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_source_get_pending \- Determine pending state of event sources -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_event_source_get_pending('u -.BI "int sd_event_source_get_pending(sd_event_source\ *" "source" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_source_get_pending()\fR -may be used to determine whether the event source object specified as -\fIsource\fR -has seen events but has not been dispatched yet (and thus is marked "pending")\&. -.PP -Event source objects initially are not marked pending, when they are created with calls such as -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), with the exception of those created with -\fBsd_event_add_defer\fR(3) -which are immediately marked pending, and -\fBsd_event_add_exit\fR(3) -for which the "pending" concept is not defined\&. For details see the respective manual pages\&. -.PP -In each event loop iteration one event source of those marked pending is dispatched, in the order defined by the event source priority, as set with -\fBsd_event_source_set_priority\fR(3)\&. -.PP -For I/O event sources, as created with -\fBsd_event_add_io\fR(3), the call -\fBsd_event_source_get_io_revents\fR(3) -may be used to query the type of event pending in more detail\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_event_source_get_pending()\fR -returns an integer greater than zero when the event source is marked pending, and zero when the event source is not marked pending\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -\fIsource\fR -is not a valid pointer to an -sd_event_source -object\&. -.RE -.PP -\fB\-EDOM\fR -.RS 4 -\fIsource\fR -refers to an event source object created with -\fBsd_event_add_exit\fR(3)\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Not enough memory\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -The event loop is already terminated\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop has been created in a different process, library or module instance\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsd-event\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_source_unref\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_source_set_description.3 b/upstream/opensuse-tumbleweed/man3/sd_event_source_set_description.3 deleted file mode 100644 index 4e186ed5..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_source_set_description.3 +++ /dev/null @@ -1,120 +0,0 @@ -'\" t -.TH "SD_EVENT_SOURCE_SET_DESCRIPTION" "3" "" "systemd 254" "sd_event_source_set_description" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_source_set_description, sd_event_source_get_description \- Set or retrieve descriptive names of event sources -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_event_source_set_description('u -.BI "int sd_event_source_set_description(sd_event_source\ *" "source" ", const\ char\ *" "description" ");" -.HP \w'int\ sd_event_source_get_description('u -.BI "int sd_event_source_get_description(sd_event_source\ *" "source" ", const\ char\ **" "description" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_source_set_description()\fR -may be used to set an arbitrary descriptive name for the event source object specified as -\fIsource\fR\&. This name will be used in debugging messages generated by -\fBsd-event\fR(3) -for this event source, and may be queried using -\fBsd_event_source_get_description()\fR -for debugging purposes\&. The -\fIdescription\fR -parameter shall point to a -\fBNUL\fR\-terminated string or be -\fBNULL\fR\&. In the latter case, the descriptive name will be unset\&. The string is copied internally, hence the -\fIdescription\fR -argument is not referenced after the function returns\&. -.PP -\fBsd_event_source_get_description()\fR -may be used to query the current descriptive name assigned to the event source object -\fIsource\fR\&. It returns a pointer to the current name in -\fIdescription\fR, stored in memory internal to the event source\&. The memory is invalidated when the event source is destroyed or the descriptive name is changed\&. -.PP -Event source objects generally have no description set when they are created, except for UNIX signal event sources created with -\fBsd_event_add_signal\fR(3), whose descriptive name is initialized to the signal\*(Aqs C constant name (e\&.g\&. -"SIGINT" -or -"SIGTERM")\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_event_source_set_description()\fR -and -\fBsd_event_source_get_description()\fR -return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -\fIsource\fR -is not a valid pointer to an -sd_event_source -object or the -\fIdescription\fR -argument for -\fBsd_event_source_get_description()\fR -is -\fBNULL\fR\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Not enough memory to copy the name\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop has been created in a different process, library or module instance\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -No name was set for the event source\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsd-event\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_source_set_userdata\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_source_set_destroy_callback.3 b/upstream/opensuse-tumbleweed/man3/sd_event_source_set_destroy_callback.3 deleted file mode 100644 index 51ceda69..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_source_set_destroy_callback.3 +++ /dev/null @@ -1,102 +0,0 @@ -'\" t -.TH "SD_EVENT_SOURCE_SET_DESTROY_CALLBACK" "3" "" "systemd 254" "sd_event_source_set_destroy_callback" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_source_set_destroy_callback, sd_event_source_get_destroy_callback, sd_event_destroy_t \- Define the callback function for resource cleanup -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'typedef\ int\ (*sd_event_destroy_t)('u -.BI "typedef int (*sd_event_destroy_t)(void\ *" "userdata" ");" -.HP \w'int\ sd_event_source_set_destroy_callback('u -.BI "int sd_event_source_set_destroy_callback(sd_event_source\ *" "source" ", sd_event_destroy_t\ " "callback" ");" -.HP \w'int\ sd_event_source_get_destroy_callback('u -.BI "int sd_event_source_get_destroy_callback(sd_event_source\ *" "source" ", sd_event_destroy_t\ *" "callback" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_source_set_destroy_callback()\fR -sets -\fIcallback\fR -as the callback function to be called right before the event source object -\fIsource\fR -is deallocated\&. The -\fIuserdata\fR -pointer from the event source object will be passed as the -\fIuserdata\fR -parameter\&. This pointer can be set by an argument to the constructor functions, see -\fBsd_event_add_io\fR(3), or directly, see -\fBsd_event_source_set_userdata\fR(3)\&. This callback function is called even if -\fIuserdata\fR -is -\fBNULL\fR\&. Note that this callback is invoked at a time where the event source object itself is already invalidated, and executing operations or taking new references to the event source object is not permissible\&. -.PP -\fBsd_event_source_get_destroy_callback()\fR -returns the current callback for -\fIsource\fR -in the -\fIcallback\fR -parameter\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_event_source_set_destroy_callback()\fR -returns 0 or a positive integer\&. On failure, it returns a negative errno\-style error code\&. -.PP -\fBsd_event_source_get_destroy_callback()\fR -returns positive if the destroy callback function is set, 0 if not\&. On failure, returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The -\fIsource\fR -parameter is -\fBNULL\fR\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-event\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_source_set_userdata\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_source_set_enabled.3 b/upstream/opensuse-tumbleweed/man3/sd_event_source_set_enabled.3 deleted file mode 100644 index e1c4a4a5..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_source_set_enabled.3 +++ /dev/null @@ -1,152 +0,0 @@ -'\" t -.TH "SD_EVENT_SOURCE_SET_ENABLED" "3" "" "systemd 254" "sd_event_source_set_enabled" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_source_set_enabled, sd_event_source_get_enabled, SD_EVENT_ON, SD_EVENT_OFF, SD_EVENT_ONESHOT \- Enable or disable event sources -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.sp -.ft B -.nf -enum { - \fBSD_EVENT_OFF\fR = 0, - \fBSD_EVENT_ON\fR = 1, - \fBSD_EVENT_ONESHOT\fR = \-1, -}; -.fi -.ft -.HP \w'int\ sd_event_source_set_enabled('u -.BI "int sd_event_source_set_enabled(sd_event_source\ *" "source" ", int\ " "enabled" ");" -.HP \w'int\ sd_event_source_get_enabled('u -.BI "int sd_event_source_get_enabled(sd_event_source\ *" "source" ", int\ *" "enabled" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_source_set_enabled()\fR -may be used to enable or disable the event source object specified as -\fIsource\fR\&. The -\fIenabled\fR -parameter takes one of -\fBSD_EVENT_ON\fR -(to enable), -\fBSD_EVENT_OFF\fR -(to disable) or -\fBSD_EVENT_ONESHOT\fR\&. If invoked with -\fBSD_EVENT_ONESHOT\fR -the event source will be enabled but automatically reset to -\fBSD_EVENT_OFF\fR -after one dispatch\&. For -\fBSD_EVENT_OFF\fR, the event source -\fIsource\fR -may be -\fBNULL\fR, in which case the function does nothing\&. Otherwise, -\fIsource\fR -must be a valid pointer to an -sd_event_source -object\&. -.PP -Event sources that are disabled will not result in event loop wakeups and will not be dispatched, until they are enabled again\&. -.PP -\fBsd_event_source_get_enabled()\fR -may be used to query whether the event source object -\fIsource\fR -is currently enabled or not\&. If both the -\fIsource\fR -and the output parameter -\fIenabled\fR -are -\fBNULL\fR, this function returns false\&. Otherwise, -\fIsource\fR -must be a valid pointer to an -sd_event_source -object\&. If the output parameter -\fIenabled\fR -is not -\fBNULL\fR, it is set to the enablement state (one of -\fBSD_EVENT_ON\fR, -\fBSD_EVENT_OFF\fR, -\fBSD_EVENT_ONESHOT\fR)\&. The function also returns true if the event source is not disabled\&. -.PP -Event source objects are enabled when they are first created with calls such as -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3)\&. However, depending on the event source type they are enabled continuously (\fBSD_EVENT_ON\fR) or only for a single invocation of the event source handler (\fBSD_EVENT_ONESHOT\fR)\&. For details see the respective manual pages\&. -.PP -As event source objects stay active and may be dispatched as long as there is at least one reference to them, in many cases it is a good idea to combine a call to -\fBsd_event_source_unref\fR(3) -with a prior call to -\fBsd_event_source_set_enabled()\fR -with -\fBSD_EVENT_OFF\fR, to ensure the event source is not dispatched again until all other remaining references are dropped\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_event_source_set_enabled()\fR -returns a non\-negative integer\&. -\fBsd_event_source_get_enabled()\fR -returns zero if the source is disabled (\fBSD_EVENT_OFF\fR) and a positive integer otherwise\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -\fIsource\fR -is not a valid pointer to an -sd_event_source -object\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Not enough memory\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop has been created in a different process, library or module instance\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsd-event\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_source_unref\fR(3), -\fBsd_event_source_set_ratelimit\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_source_set_exit_on_failure.3 b/upstream/opensuse-tumbleweed/man3/sd_event_source_set_exit_on_failure.3 deleted file mode 100644 index d00af57c..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_source_set_exit_on_failure.3 +++ /dev/null @@ -1,89 +0,0 @@ -'\" t -.TH "SD_EVENT_SOURCE_SET_EXIT_ON_FAILURE" "3" "" "systemd 254" "sd_event_source_set_exit_on_failure" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_source_set_exit_on_failure, sd_event_source_get_exit_on_failure \- Set or retrieve the exit\-on\-failure feature of event sources -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_event_source_set_exit_on_failure('u -.BI "int sd_event_source_set_exit_on_failure(sd_event_source\ *" "source" ", int\ " "b" ");" -.HP \w'int\ sd_event_source_get_exit_on_failure('u -.BI "int sd_event_source_get_exit_on_failure(sd_event_source\ *" "source" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_source_set_exit_on_failure()\fR -may be used to set/unset the exit\-on\-failure flag of the event source object specified as -\fIsource\fR\&. The flag defaults to off\&. If on and the callback function set for the event source returns a failure code (i\&.e\&. a negative value) the event loop is exited too, using the callback return code as the exit code for -\fBsd_event_exit\fR(3)\&. If off, the event source is disabled but the event loop continues to run\&. Setting this flag is useful for "dominant" event sources that define the purpose and reason for the event loop, and whose failure hence should propagate to the event loop itself \(em as opposed to "auxiliary" event sources whose failures should remain local and affect the event source, but not propagate further\&. -.PP -\fBsd_event_source_get_exit_on_failure()\fR -may be used to query the flag currently set for the event source object -\fIsource\fR\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_event_source_set_exit_on_failure()\fR -returns a non\-negative integer\&. -\fBsd_event_source_get_exit_on_failure()\fR -returns 0 if the flag is off, > 0 if the flag is on\&. On failure, both return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -\fIsource\fR -is not a valid pointer to an -sd_event_source -object\&. -.RE -.PP -\fB\-EDOM\fR -.RS 4 -The event source refers to an exit event source (as created with -\fBsd_event_add_exit\fR(3)), for which this functionality is not supported\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsd-event\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_source_set_floating.3 b/upstream/opensuse-tumbleweed/man3/sd_event_source_set_floating.3 deleted file mode 100644 index 5324ab2b..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_source_set_floating.3 +++ /dev/null @@ -1,95 +0,0 @@ -'\" t -.TH "SD_EVENT_SOURCE_SET_FLOATING" "3" "" "systemd 254" "sd_event_source_set_floating" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_source_set_floating, sd_event_source_get_floating \- Set or retrieve \*(Aqfloating\*(Aq state of event sources -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_event_source_set_floating('u -.BI "int sd_event_source_set_floating(sd_event_source\ *" "source" ", int\ " "floating" ");" -.HP \w'int\ sd_event_source_get_floating('u -.BI "int sd_event_source_get_floating(sd_event_source\ *" "source" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_source_set_floating()\fR -takes a boolean and sets the \*(Aqfloating\*(Aq state of the specified event source object\&. This is used to change the direction of reference counts for the object and the event loop it is associated with\&. In non\-floating mode, the event source object holds a reference to the event loop object, but not vice versa\&. The creator of the event source object must hold a reference to it as long as the source should exist\&. In floating mode, the event loop holds a reference to the source object, and will decrease the reference count when being freed\&. This means that a reference to the event loop should be held to prevent both from being destroyed\&. -.PP -Various calls that allocate event source objects (i\&.e\&. -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3) -and similar) will automatically set an event source object to \*(Aqfloating\*(Aq mode if the caller passed -\fBNULL\fR -in the parameter used to return a reference to the event source object\&. Nevertheless, it may be necessary to gain temporary access to the source object, for example to adjust event source properties after allocation (e\&.g\&. its priority or description string)\&. In those cases the object may be created in non\-floating mode, and the returned reference used to adjust the properties, and the object marked as floating afterwards, and the reference in the caller dropped\&. -.PP -\fBsd_event_source_get_floating()\fR -may be used to query the current \*(Aqfloating\*(Aq state of the event source object -\fIsource\fR\&. It returns zero if \*(Aqfloating\*(Aq mode is off, positive if it is on\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_event_source_set_floating()\fR -and -\fBsd_event_source_get_floating()\fR -return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -\fIsource\fR -is not a valid pointer to an -sd_event_source -object\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop has been created in a different process, library or module instance\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsd-event\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_source_set_description\fR(3), -\fBsd_event_source_set_priority\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_source_set_prepare.3 b/upstream/opensuse-tumbleweed/man3/sd_event_source_set_prepare.3 deleted file mode 100644 index ee8430ef..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_source_set_prepare.3 +++ /dev/null @@ -1,113 +0,0 @@ -'\" t -.TH "SD_EVENT_SOURCE_SET_PREPARE" "3" "" "systemd 254" "sd_event_source_set_prepare" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_source_set_prepare \- Set a preparation callback for event sources -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_event_source_set_prepare('u -.BI "int sd_event_source_set_prepare(sd_event_source\ *" "source" ", sd_event_handler_t\ " "callback" ");" -.HP \w'typedef\ int\ (*sd_event_handler_t)('u -.BI "typedef int (*sd_event_handler_t)(sd_event_source\ *" "s" ", void\ *" "userdata" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_source_set_prepare()\fR -may be used to set a preparation callback for the event source object specified as -\fIsource\fR\&. The callback function specified as -\fIcallback\fR -will be invoked immediately before the event loop goes to sleep to wait for incoming events\&. It is invoked with the user data pointer passed when the event source was created\&. The event source will be disabled if the callback function returns a negative error code\&. The callback function may be used to reconfigure the precise events to wait for\&. If the -\fIcallback\fR -parameter is passed as -\fBNULL\fR -the callback function is reset\&. -.PP -Event source objects have no preparation callback associated when they are first created with calls such as -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3)\&. Preparation callback functions are supported for all event source types with the exception of those created with -\fBsd_event_add_exit\fR(3)\&. Preparation callback functions are dispatched in the order indicated by the event source\*(Aqs priority field, as set with -\fBsd_event_source_set_priority\fR(3)\&. Preparation callbacks of disabled event sources (see -\fBsd_event_source_set_enabled\fR(3)) are not invoked\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_event_source_set_prepare()\fR -returns a non\-negative integer\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -\fIsource\fR -is not a valid pointer to an -sd_event_source -object\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -The event loop is already terminated\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Not enough memory\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop has been created in a different process, library or module instance\&. -.RE -.PP -\fB\-EDOM\fR -.RS 4 -The specified event source has been created with -\fBsd_event_add_exit\fR(3)\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsd-event\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_source_set_enabled\fR(3), -\fBsd_event_source_set_priority\fR(3), -\fBsd_event_source_set_userdata\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_source_set_priority.3 b/upstream/opensuse-tumbleweed/man3/sd_event_source_set_priority.3 deleted file mode 100644 index 3a265c27..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_source_set_priority.3 +++ /dev/null @@ -1,125 +0,0 @@ -'\" t -.TH "SD_EVENT_SOURCE_SET_PRIORITY" "3" "" "systemd 254" "sd_event_source_set_priority" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_source_set_priority, sd_event_source_get_priority, SD_EVENT_PRIORITY_IMPORTANT, SD_EVENT_PRIORITY_NORMAL, SD_EVENT_PRIORITY_IDLE \- Set or retrieve the priority of event sources -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.sp -.ft B -.nf -enum { - \fBSD_EVENT_PRIORITY_IMPORTANT\fR = \-100, - \fBSD_EVENT_PRIORITY_NORMAL\fR = 0, - \fBSD_EVENT_PRIORITY_IDLE\fR = 100, -}; -.fi -.ft -.HP \w'int\ sd_event_source_set_priority('u -.BI "int sd_event_source_set_priority(sd_event_source\ *" "source" ", int64_t\ " "priority" ");" -.HP \w'int\ sd_event_source_get_priority('u -.BI "int sd_event_source_get_priority(sd_event_source\ *" "source" ", int64_t\ *" "priority" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_source_set_priority()\fR -may be used to set the priority for the event source object specified as -\fIsource\fR\&. The priority is specified as an arbitrary signed 64\-bit integer\&. The priority is initialized to -\fBSD_EVENT_PRIORITY_NORMAL\fR -(0) when the event source is allocated with a call such as -\fBsd_event_add_io\fR(3) -or -\fBsd_event_add_time\fR(3), and may be changed with this call\&. If multiple event sources have seen events at the same time, they are dispatched in the order indicated by the event sources\*(Aq priorities\&. Event sources with smaller priority values are dispatched first\&. As well\-known points of reference, the constants -\fBSD_EVENT_PRIORITY_IMPORTANT\fR -(\-100), -\fBSD_EVENT_PRIORITY_NORMAL\fR -(0) and -\fBSD_EVENT_PRIORITY_IDLE\fR -(100) may be used to indicate event sources that shall be dispatched early, normally or late\&. It is recommended to specify priorities based on these definitions, and relative to them \(em however, the full 64\-bit signed integer range is available for ordering event sources\&. -.PP -Priorities define the order in which event sources that have seen events are dispatched\&. Care should be taken to ensure that high\-priority event sources (those with negative priority values assigned) do not cause starvation of low\-priority event sources (those with positive priority values assigned)\&. -.PP -The order in which event sources with the same priority are dispatched is undefined, but the event loop generally tries to dispatch them in the order it learnt about events on them\&. As the backing kernel primitives do not provide accurate information about the order in which events occurred this is not necessarily reliable\&. However, it is guaranteed that if events are seen on multiple same\-priority event sources at the same time, each one is not dispatched again until all others have been dispatched once\&. This behavior guarantees that within each priority particular event sources do not starve or dominate the event loop\&. -.PP -The priority of event sources may be changed at any time of their lifetime, with the exception of inotify event sources (i\&.e\&. those created with -\fBsd_event_add_inotify\fR(3)) whose priority may only be changed in the time between their initial creation and the first subsequent event loop iteration\&. -.PP -\fBsd_event_source_get_priority()\fR -may be used to query the current priority assigned to the event source object -\fIsource\fR\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_event_source_set_priority()\fR -and -\fBsd_event_source_get_priority()\fR -return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -\fIsource\fR -is not a valid pointer to an -sd_event_source -object\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Not enough memory\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -The event loop is already terminated\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop has been created in a different process, library or module instance\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsd-event\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_source_set_ratelimit.3 b/upstream/opensuse-tumbleweed/man3/sd_event_source_set_ratelimit.3 deleted file mode 100644 index 43003926..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_source_set_ratelimit.3 +++ /dev/null @@ -1,127 +0,0 @@ -'\" t -.TH "SD_EVENT_SOURCE_SET_RATELIMIT" "3" "" "systemd 254" "sd_event_source_set_ratelimit" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_source_set_ratelimit, sd_event_source_get_ratelimit, sd_event_source_is_ratelimited, sd_event_source_set_ratelimit_expire_callback, sd_event_source_leave_ratelimit \- Configure rate limiting on event sources -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_event_source_set_ratelimit('u -.BI "int sd_event_source_set_ratelimit(sd_event_source\ *" "source" ", uint64_t\ " "interval_usec" ", unsigned\ " "burst" ");" -.HP \w'int\ sd_event_source_get_ratelimit('u -.BI "int sd_event_source_get_ratelimit(sd_event_source\ *" "source" ", uint64_t*\ " "ret_interval_usec" ", unsigned*\ " "ret_burst" ");" -.HP \w'int\ sd_event_source_is_ratelimited('u -.BI "int sd_event_source_is_ratelimited(sd_event_source\ *" "source" ");" -.HP \w'int\ sd_event_source_set_ratelimit_expire_callback('u -.BI "int sd_event_source_set_ratelimit_expire_callback(sd_event_source\ *" "source" ", sd_event_handler_t" "callback" ");" -.HP \w'int\ sd_event_source_leave_ratelimit('u -.BI "int sd_event_source_leave_ratelimit(sd_event_source\ *" "source" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_source_set_ratelimit()\fR -may be used to enforce rate limiting on an event source\&. When used an event source will be temporarily turned off when it fires more often then a specified burst number within a specified time interval\&. This is useful as simple mechanism to avoid event source starvation if high priority event sources fire very frequently\&. -.PP -Pass the event source to operate on as first argument, a time interval in microseconds as second argument and a maximum dispatch limit ("burst") as third parameter\&. Whenever the event source is dispatched more often than the specified burst within the specified interval it is placed in a mode similar to being disabled with -\fBsd_event_source_set_enabled\fR(3) -and the -\fBSD_EVENT_OFF\fR -parameter\&. However it is disabled only temporarily \(en once the specified interval is over regular operation resumes\&. It is again disabled temporarily once the specified rate limiting is hit the next time\&. If either the interval or the burst value are specified as zero, rate limiting is turned off\&. By default event sources do not have rate limiting enabled\&. Note that rate limiting and disabling via -\fBsd_event_source_set_enabled()\fR -are independent of each other, and an event source will only effect event loop wake\-ups and is dispatched while it both is enabled and rate limiting is not in effect\&. -.PP -\fBsd_event_source_get_ratelimit()\fR -may be used to query the current rate limiting parameters set on the event source object -\fIsource\fR\&. The previously set interval and burst vales are returned in the second and third argument\&. -.PP -\fBsd_event_source_is_ratelimited()\fR -may be used to query whether the event source is currently affected by rate limiting, i\&.e\&. it has recently hit the rate limit and is currently temporarily disabled due to that\&. -.PP -\fBsd_event_source_set_ratelimit_expire_callback()\fR -may be used to set a callback function that is invoked every time the event source leaves rate limited state\&. Note that function is called in the same event loop iteration in which state transition occurred\&. -.PP -\fBsd_event_source_leave_ratelimit()\fR -may be used to immediately reenable an event source that was temporarily disabled due to rate limiting\&. This will reset the ratelimit counters for the current time interval\&. -.PP -Rate limiting is currently implemented for I/O, timer, signal, defer and inotify event sources\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_event_source_set_ratelimit()\fR, -\fBsd_event_source_set_ratelimit_expire_callback\fR -and -\fBsd_event_source_get_ratelimit()\fR -return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -\fBsd_event_source_is_ratelimited()\fR -returns zero if rate limiting is currently not in effect and greater than zero if it is in effect; it returns a negative errno\-style error code on failure\&. -\fBsd_event_source_leave_ratelimit()\fR -returns zero if rate limiting wasn\*(Aqt in effect on the specified event source, and positive if it was and rate limiting is now turned off again; it returns a negative errno\-style error code on failure\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -\fIsource\fR -is not a valid pointer to an -sd_event_source -object\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop has been created in a different process, library or module instance\&. -.RE -.PP -\fB\-EDOM\fR -.RS 4 -It was attempted to use the rate limiting feature on an event source type that does not support rate limiting\&. -.RE -.PP -\fB\-ENOEXEC\fR -.RS 4 -\fBsd_event_source_get_ratelimit()\fR -was called on an event source that doesn\*(Aqt have rate limiting configured\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsd-event\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_source_set_enabled\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_source_set_userdata.3 b/upstream/opensuse-tumbleweed/man3/sd_event_source_set_userdata.3 deleted file mode 100644 index e4accc63..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_source_set_userdata.3 +++ /dev/null @@ -1,80 +0,0 @@ -'\" t -.TH "SD_EVENT_SOURCE_SET_USERDATA" "3" "" "systemd 254" "sd_event_source_set_userdata" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_source_set_userdata, sd_event_source_get_userdata \- Set or retrieve user data pointer of event sources -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'void*\ sd_event_source_set_userdata('u -.BI "void* sd_event_source_set_userdata(sd_event_source\ *" "source" ", void\ *" "userdata" ");" -.HP \w'void*\ sd_event_source_get_userdata('u -.BI "void* sd_event_source_get_userdata(sd_event_source\ *" "source" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_source_set_userdata()\fR -may be used to set an arbitrary user data pointer for the event source object specified as -\fIsource\fR\&. The user data pointer is usually specified when creating an event source object with calls such as -\fBsd_event_add_io\fR(3) -or -\fBsd_event_add_time\fR(3), and may be updated with this call\&. The user data pointer is also passed to all handler callback functions associated with the event source\&. The -\fIuserdata\fR -parameter specifies the new user data pointer to set, the function returns the previous user data pointer\&. Note that -\fBNULL\fR -is a valid user data pointer\&. -.PP -\fBsd_event_source_get_userdata()\fR -may be used to query the current user data pointer assigned to the event source object -\fIsource\fR\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_event_source_set_userdata()\fR -and -\fBsd_event_source_get_userdata()\fR -return the previously set user data pointer\&. On failure, they return -\fBNULL\fR\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsd-event\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_source_set_description\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_source_unref.3 b/upstream/opensuse-tumbleweed/man3/sd_event_source_unref.3 deleted file mode 100644 index 956aa739..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_source_unref.3 +++ /dev/null @@ -1,129 +0,0 @@ -'\" t -.TH "SD_EVENT_SOURCE_UNREF" "3" "" "systemd 254" "sd_event_source_unref" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_source_unref, sd_event_source_unrefp, sd_event_source_ref, sd_event_source_disable_unref, sd_event_source_disable_unrefp \- Increase or decrease event source reference counters -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'sd_event_source*\ sd_event_source_unref('u -.BI "sd_event_source* sd_event_source_unref(sd_event_source\ *" "source" ");" -.HP \w'void\ sd_event_source_unrefp('u -.BI "void sd_event_source_unrefp(sd_event_source\ **" "source" ");" -.HP \w'sd_event_source*\ sd_event_source_ref('u -.BI "sd_event_source* sd_event_source_ref(sd_event_source\ *" "source" ");" -.HP \w'sd_event_source*\ sd_event_source_disable_unref('u -.BI "sd_event_source* sd_event_source_disable_unref(sd_event_source\ *" "source" ");" -.HP \w'void\ sd_event_source_disable_unrefp('u -.BI "void sd_event_source_disable_unrefp(sd_event_source\ **" "source" ");" -.SH "DESCRIPTION" -.PP -\fBsd_event_source_unref()\fR -may be used to decrement by one the internal reference counter of the event source object specified as -\fIsource\fR\&. The reference counter is initially set to one, when the event source is created with calls such as -\fBsd_event_add_io\fR(3) -or -\fBsd_event_add_time\fR(3)\&. When the reference counter reaches zero, the object is detached from the event loop object and destroyed\&. -.PP -\fBsd_event_source_unrefp()\fR -is similar to -\fBsd_event_source_unref()\fR -but takes a pointer to a pointer to an -\fBsd_event_source\fR -object\&. This call is useful in conjunction with GCC\*(Aqs and LLVM\*(Aqs -\m[blue]\fBClean\-up Variable Attribute\fR\m[]\&\s-2\u[1]\d\s+2\&. Note that this function is defined as inline function\&. -.PP -\fBsd_event_source_ref()\fR -may be used to increase by one the internal reference counter of the event source object specified as -\fIsource\fR\&. -.PP -\fBsd_event_source_unref()\fR, -\fBsd_bus_creds_unrefp()\fR -and -\fBsd_bus_creds_ref()\fR -execute no operation if the passed event source object is -\fBNULL\fR\&. -.PP -Note that event source objects stay alive and may be dispatched as long as they have a reference counter greater than zero\&. In order to drop a reference of an event source and make sure the associated event source handler function is not called anymore it is recommended to combine a call of -\fBsd_event_source_unref()\fR -with a prior call to -\fBsd_event_source_set_enabled()\fR -with -\fBSD_EVENT_OFF\fR -or call -\fBsd_event_source_disable_unref()\fR, see below\&. -.PP -\fBsd_event_source_disable_unref()\fR -combines a call to -\fBsd_event_source_set_enabled()\fR -with -\fBSD_EVENT_OFF\fR -with -\fBsd_event_source_unref()\fR\&. This ensures that the source is disabled before the local reference to it is lost\&. The -\fIsource\fR -parameter is allowed to be -\fBNULL\fR\&. -.PP -\fBsd_event_source_disable_unrefp()\fR -is similar to -\fBsd_event_source_unrefp()\fR, but in addition disables the source first\&. This call is useful in conjunction with GCC\*(Aqs and LLVM\*(Aqs -\m[blue]\fBClean\-up Variable Attribute\fR\m[]\&\s-2\u[1]\d\s+2\&. Note that this function is defined as inline function\&. -.SH "RETURN VALUE" -.PP -\fBsd_event_source_unref()\fR -and -\fBsd_event_source_disable_unref()\fR -always return -\fBNULL\fR\&. -\fBsd_event_source_ref()\fR -always returns the event source object passed in\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsd-event\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_source_set_enabled\fR(3) -.SH "NOTES" -.IP " 1." 4 -Clean-up Variable Attribute -.RS 4 -\%https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_event_wait.3 b/upstream/opensuse-tumbleweed/man3/sd_event_wait.3 deleted file mode 100644 index fe376311..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_event_wait.3 +++ /dev/null @@ -1,284 +0,0 @@ -'\" t -.TH "SD_EVENT_WAIT" "3" "" "systemd 254" "sd_event_wait" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_event_wait, sd_event_prepare, sd_event_dispatch, sd_event_get_state, sd_event_get_iteration, SD_EVENT_INITIAL, SD_EVENT_PREPARING, SD_EVENT_ARMED, SD_EVENT_PENDING, SD_EVENT_RUNNING, SD_EVENT_EXITING, SD_EVENT_FINISHED \- Low\-level event loop operations -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.sp -.ft B -.nf -enum { - \fBSD_EVENT_INITIAL\fR, - \fBSD_EVENT_PREPARING\fR, - \fBSD_EVENT_ARMED\fR, - \fBSD_EVENT_PENDING\fR, - \fBSD_EVENT_RUNNING\fR, - \fBSD_EVENT_EXITING\fR, - \fBSD_EVENT_FINISHED\fR, -}; -.fi -.ft -.HP \w'int\ sd_event_prepare('u -.BI "int sd_event_prepare(sd_event\ *" "event" ");" -.HP \w'int\ sd_event_wait('u -.BI "int sd_event_wait(sd_event\ *" "event" ", uint64_t\ " "usec" ");" -.HP \w'int\ sd_event_dispatch('u -.BI "int sd_event_dispatch(sd_event\ *" "event" ");" -.HP \w'int\ sd_event_get_state('u -.BI "int sd_event_get_state(sd_event\ *" "event" ");" -.HP \w'int\ sd_event_get_iteration('u -.BI "int sd_event_get_iteration(sd_event\ *" "event" ", uint64_t\ *" "ret" ");" -.SH "DESCRIPTION" -.PP -The low\-level -\fBsd_event_prepare()\fR, -\fBsd_event_wait()\fR -and -\fBsd_event_dispatch()\fR -functions may be used to execute specific phases of an event loop\&. See -\fBsd_event_run\fR(3) -and -\fBsd_event_loop\fR(3) -for higher\-level functions that execute individual but complete iterations of an event loop or run it continuously\&. -.PP -\fBsd_event_prepare()\fR -checks for pending events and arms necessary timers\&. If any events are ready to be processed ("pending"), it returns a positive, non\-zero value, and the caller should process these events with -\fBsd_event_dispatch()\fR\&. -.PP -\fBsd_event_dispatch()\fR -dispatches the highest priority event source that has a pending event\&. On success, -\fBsd_event_dispatch()\fR -returns either zero, which indicates that no further event sources may be dispatched and exiting of the event loop was requested via -\fBsd_event_exit\fR(3); or a positive non\-zero value, which means that an event source was dispatched and the loop returned to its initial state, and the caller should initiate the next event loop iteration by invoking -\fBsd_event_prepare()\fR -again\&. -.PP -In case -\fBsd_event_prepare()\fR -returned zero, -\fBsd_event_wait()\fR -should be called to wait for further events or a timeout\&. If any events are ready to be processed, it returns a positive, non\-zero value, and the events should be dispatched with -\fBsd_event_dispatch()\fR\&. Otherwise, the event loop returned to its initial state and the next event loop iteration should be initiated by invoking -\fBsd_event_prepare()\fR -again\&. -.PP -\fBsd_event_get_state()\fR -may be used to determine the state the event loop is currently in\&. It returns one of the states described below\&. -.PP -\fBsd_event_get_iteration()\fR -may be used to determine the current iteration of the event loop\&. It returns an unsigned 64\-bit integer containing a counter that increases monotonically with each iteration of the event loop, starting with 0\&. The counter is increased at the time of the -\fBsd_event_prepare()\fR -invocation\&. -.PP -All five functions take, as the first argument, the event loop object -\fIevent\fR -that has been created with -\fBsd_event_new()\fR\&. The timeout for -\fBsd_event_wait()\fR -is specified in -\fIusec\fR -in microseconds\&. -\fB(uint64_t) \-1\fR -may be used to specify an infinite timeout\&. -.SH "STATE MACHINE" -.PP -The event loop knows the following states, that may be queried with -\fBsd_event_get_state()\fR\&. -.PP -\fBSD_EVENT_INITIAL\fR -.RS 4 -The initial state the event loop is in, before each event loop iteration\&. Use -\fBsd_event_prepare()\fR -to transition the event loop into the -\fBSD_EVENT_ARMED\fR -or -\fBSD_EVENT_PENDING\fR -states\&. -.RE -.PP -\fBSD_EVENT_PREPARING\fR -.RS 4 -An event source is currently being prepared, i\&.e\&. the preparation handler is currently being executed, as set with -\fBsd_event_source_set_prepare\fR(3)\&. This state is only seen in the event source preparation handler that is invoked from the -\fBsd_event_prepare()\fR -call and is immediately followed by -\fBSD_EVENT_ARMED\fR -or -\fBSD_EVENT_PENDING\fR\&. -.RE -.PP -\fBSD_EVENT_ARMED\fR -.RS 4 -\fBsd_event_prepare()\fR -has been called and no event sources were ready to be dispatched\&. Use -\fBsd_event_wait()\fR -to wait for new events, and transition into -\fBSD_EVENT_PENDING\fR -or back into -\fBSD_EVENT_INITIAL\fR\&. -.RE -.PP -\fBSD_EVENT_PENDING\fR -.RS 4 -\fBsd_event_prepare()\fR -or -\fBsd_event_wait()\fR -have been called and there were event sources with events pending\&. Use -\fBsd_event_dispatch()\fR -to dispatch the highest priority event source and transition back to -\fBSD_EVENT_INITIAL\fR, or -\fBSD_EVENT_FINISHED\fR\&. -.RE -.PP -\fBSD_EVENT_RUNNING\fR -.RS 4 -A regular event source is currently being dispatched\&. This state is only seen in the event source handler that is invoked from the -\fBsd_event_dispatch()\fR -call, and is immediately followed by -\fBSD_EVENT_INITIAL\fR -or -\fBSD_EVENT_FINISHED\fR -as soon the event source handler returns\&. Note that during dispatching of exit event sources the -\fBSD_EVENT_EXITING\fR -state is seen instead\&. -.RE -.PP -\fBSD_EVENT_EXITING\fR -.RS 4 -Similar to -\fBSD_EVENT_RUNNING\fR -but is the state in effect while dispatching exit event sources\&. It is followed by -\fBSD_EVENT_INITIAL\fR -or -\fBSD_EVENT_FINISHED\fR -as soon as the event handler returns\&. -.RE -.PP -\fBSD_EVENT_FINISHED\fR -.RS 4 -The event loop has exited\&. All exit event sources have run\&. If the event loop is in this state it serves no purpose anymore, and should be freed\&. -.RE -.PP -A simplified flow chart of the states and the calls to transition between them is shown below\&. Note that -\fBSD_EVENT_PREPARING\fR, -\fBSD_EVENT_RUNNING\fR -and -\fBSD_EVENT_EXITING\fR -are not shown here\&. -.sp -.if n \{\ -.RS 4 -.\} -.nf - INITIAL \-<\-\-\-<\-\-\-<\-\-\-<\-\-\-<\-\-\-<\-\-\-<\-\-\-<\-\-\-<\-\-\-<\-\-\-<\-\-\-<\-\-\-\e - | | - | ^ - | | - v ret == 0 | - sd_event_prepare() >\-\-\->\-\-\->\-\-\->\-\-\->\- ARMED | - | | ^ - | ret > 0 | | - | | | - v v ret == 0 | - PENDING <\-\-\-<\-\-\-<\-\-\-<\-\-\-<\-\-\-< sd_event_wait() >\-\-\->\-\-\->\-\-+ - | ret > 0 ^ - | | - | | - v | - sd_event_dispatch() >\-\-\->\-\-\->\-\-\->\-\-\->\-\-\->\-\-\->\-\-\->\-\-\->\-\-\->\-\-\->/ - | ret > 0 - | ret == 0 - | - v - FINISHED - -.fi -.if n \{\ -.RE -.\} -.SH "RETURN VALUE" -.PP -On success, these functions return 0 or a positive integer\&. On failure, they return a negative errno\-style error code\&. In case of -\fBsd_event_prepare()\fR -and -\fBsd_event_wait()\fR, a positive, non\-zero return code indicates that events are ready to be processed and zero indicates that no events are ready\&. In case of -\fBsd_event_dispatch()\fR, a positive, non\-zero return code indicates that the event loop returned to its initial state and zero indicates the event loop has exited\&. -\fBsd_event_get_state()\fR -returns a positive or zero state on success\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -The -\fIevent\fR -parameter is invalid or -\fBNULL\fR\&. -.RE -.PP -\fB\-EBUSY\fR -.RS 4 -The event loop object is not in the right state\&. -.RE -.PP -\fB\-ESTALE\fR -.RS 4 -The event loop is already terminated\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The event loop has been created in a different process, library or module instance\&. -.RE -.PP -Other errors are possible, too\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd_event_new\fR(3), -\fBsd_event_add_io\fR(3), -\fBsd_event_add_time\fR(3), -\fBsd_event_add_signal\fR(3), -\fBsd_event_add_child\fR(3), -\fBsd_event_add_inotify\fR(3), -\fBsd_event_add_defer\fR(3), -\fBsd_event_run\fR(3), -\fBsd_event_get_fd\fR(3), -\fBsd_event_source_set_prepare\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_get_seats.3 b/upstream/opensuse-tumbleweed/man3/sd_get_seats.3 deleted file mode 100644 index dd47c95c..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_get_seats.3 +++ /dev/null @@ -1,95 +0,0 @@ -'\" t -.TH "SD_GET_SEATS" "3" "" "systemd 254" "sd_get_seats" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_get_seats, sd_get_sessions, sd_get_uids, sd_get_machine_names \- Determine available seats, sessions, logged in users and virtual machines/containers -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_get_seats('u -.BI "int sd_get_seats(char\ ***" "seats" ");" -.HP \w'int\ sd_get_sessions('u -.BI "int sd_get_sessions(char\ ***" "sessions" ");" -.HP \w'int\ sd_get_uids('u -.BI "int sd_get_uids(uid_t\ **" "users" ");" -.HP \w'int\ sd_get_machine_names('u -.BI "int sd_get_machine_names(char\ ***" "machines" ");" -.SH "DESCRIPTION" -.PP -\fBsd_get_seats()\fR -may be used to determine all currently available local seats\&. Returns the number of seat identifiers and if the input pointer is non\-\fBNULL\fR, a -\fBNULL\fR\-terminated array of seat identifiers is stored at the address\&. The returned array and all strings it references need to be freed with the libc -\fBfree\fR(3) -call after use\&. Note that instead of an empty array -\fBNULL\fR -may be returned and should be considered equivalent to an empty array\&. -.PP -Similarly, -\fBsd_get_sessions()\fR -may be used to determine all current login sessions\&. -.PP -Similarly, -\fBsd_get_uids()\fR -may be used to determine all Unix users who currently have login sessions\&. -.PP -Similarly, -\fBsd_get_machine_names()\fR -may be used to determine all current virtual machines and containers on the system\&. -.PP -Note that the returned lists are not sorted and in an undefined order\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_get_seats()\fR, -\fBsd_get_sessions()\fR, -\fBsd_get_uids()\fR -and -\fBsd_get_machine_names()\fR -return the number of entries in the arrays\&. On failure, these calls return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-login\fR(3), -\fBsd_session_get_seat\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_hwdb_get.3 b/upstream/opensuse-tumbleweed/man3/sd_hwdb_get.3 deleted file mode 100644 index a9bbbb04..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_hwdb_get.3 +++ /dev/null @@ -1,177 +0,0 @@ -'\" t -.TH "SD_HWDB_GET" "3" "" "systemd 254" "sd_hwdb_get" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_hwdb_get, sd_hwdb_seek, sd_hwdb_enumerate, SD_HWDB_FOREACH_PROPERTY \- Seek to a location in hwdb or access entries -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_hwdb_get('u -.BI "int sd_hwdb_get(sd_hwdb\ *" "hwdb" ", const\ char\ *" "modalias" ", const\ char\ *" "key" ", const\ char\ **" "value" ");" -.HP \w'int\ sd_hwdb_seek('u -.BI "int sd_hwdb_seek(sd_hwdb\ *" "hwdb" ", const\ char\ *" "modalias" ");" -.HP \w'int\ sd_hwdb_enumerate('u -.BI "int sd_hwdb_enumerate(sd_hwdb\ *" "hwdb" ", const\ char\ **" "key" ", const\ char\ **" "value" ");" -.HP \w'SD_HWDB_FOREACH_PROPERTY('u -.BI "SD_HWDB_FOREACH_PROPERTY(hwdb, modalias, key, value);" -.SH "DESCRIPTION" -.PP -\fBsd_hwdb_get()\fR -queries the -\fIhwdb\fR -object created earlier with -\fBsd_hwdb_new\fR(3) -for entries matching the specified string -\fImodalias\fR, and returns the value corresponding to the key -\fIkey\fR\&. The value is returned as a -\fBNUL\fR\-terminated string in -\fIvalue\fR\&. It must not be modified by the caller and is valid as long as a reference to -\fIhwdb\fR -is kept\&. When multiple patterns in the database match -\fImodalias\fR, the one with the highest priority is used\&. See -\fBhwdb\fR(7) -for details\&. -.PP -\fBsd_hwdb_seek()\fR -selects entries matching the specified string -\fImodalias\fR\&. Subsequent queries with -\fBsd_hwdb_enumerate()\fR -will access the key\-value pairs for that string\&. -.PP -\fBsd_hwdb_enumerate()\fR -returns (in turn) all the key\-value pairs defined for the string used with -\fBsd_hwdb_seek()\fR\&. Each pair is returned as -\fBNUL\fR\-terminated strings in -\fIkey\fR -and -\fIvalue\fR\&. The strings must not be modified by the caller and are valid as long as a reference to -\fIhwdb\fR -is kept\&. When multiple patterns in the database match -\fImodalias\fR, the combination of all matching key\-value pairs is used\&. See -\fBhwdb\fR(7) -for details\&. -.PP -The -\fBSD_HWDB_FOREACH_PROPERTY()\fR -macro combines -\fBsd_hwdb_seek()\fR -and -\fBsd_hwdb_enumerate()\fR\&. No error handling is performed and iteration simply stops on error\&. See the example below\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_hwdb_get()\fR -and -\fBsd_hwdb_seek()\fR -return a non\-negative integer\&. On failure, they return a negative errno\-style error code\&. -.PP -\fBsd_hwdb_enumerate()\fR -returns a positive integer if another key\-value pair was found or zero if all entries have already been enumerated\&. On failure, it returns a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -A parameter is -\fBNULL\fR\&. -.RE -.PP -\fB\-ENOENT\fR -.RS 4 -An entry for the specified -\fImodalias\fR -was not found\&. -.RE -.PP -\fB\-EAGAIN\fR -.RS 4 -\fBsd_hwdb_seek()\fR -was not called before -\fBsd_hwdb_enumerate()\fR\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "EXAMPLES" -.PP -\fBExample\ \&1.\ \&Look up hwdb entries for a USB device\fR -.sp -.if n \{\ -.RS 4 -.\} -.nf -/* SPDX\-License\-Identifier: MIT\-0 */ - -#include -#include -#include - -int print_usb_properties(uint16_t vid, uint16_t pid) { - char match[STRLEN("usb:vp") + DECIMAL_STR_MAX(uint16_t) * 2]; - sd_hwdb *hwdb; - const char *key, *value; - int r; - - /* Match this USB vendor and product ID combination */ - xsprintf(match, "usb:v%04Xp%04X", vid, pid); - - r = sd_hwdb_new(&hwdb); - if (r < 0) - return r; - - SD_HWDB_FOREACH_PROPERTY(hwdb, match, key, value) - printf("%s: \e"%s\e" → \e"%s\e"\en", match, key, value); - - sd_hwdb_unref(hwdb); - return 0; -} - -int main(int argc, char **argv) { - print_usb_properties(0x046D, 0xC534); - return 0; -} -.fi -.if n \{\ -.RE -.\} -.PP -The effect is similar to calling -\fBsystemd\-hwdb query usb:v046DpC534\fR\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsystemd-udevd.service\fR(8), -\fBsd-hwdb\fR(3), -\fBsystemd-hwdb\fR(8) diff --git a/upstream/opensuse-tumbleweed/man3/sd_hwdb_new.3 b/upstream/opensuse-tumbleweed/man3/sd_hwdb_new.3 deleted file mode 100644 index 5df62f2f..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_hwdb_new.3 +++ /dev/null @@ -1,116 +0,0 @@ -'\" t -.TH "SD_HWDB_NEW" "3" "" "systemd 254" "sd_hwdb_new" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_hwdb_new, sd_hwdb_new_from_path, sd_hwdb_ref, sd_hwdb_unref \- Create a new hwdb object and create or destroy references to it -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_hwdb_new('u -.BI "int sd_hwdb_new(sd_hwdb\ **" "hwdb" ");" -.HP \w'int\ sd_hwdb_new_from_path('u -.BI "int sd_hwdb_new_from_path(const\ char\ *" "path" ", sd_hwdb\ **" "hwdb" ");" -.HP \w'sd_hwdb*\ sd_hwdb_ref('u -.BI "sd_hwdb* sd_hwdb_ref(sd_hwdb\ *" "hwdb" ");" -.HP \w'sd_hwdb*\ sd_hwdb_unref('u -.BI "sd_hwdb* sd_hwdb_unref(sd_hwdb\ *" "hwdb" ");" -.SH "DESCRIPTION" -.PP -\fBsd_hwdb_new()\fR -creates a new hwdb object to access the binary hwdb database\&. Upon initialization, the file containing the binary representation of the hardware database is located and opened\&. The new object is returned in -\fIhwdb\fR\&. -.PP -\fBsd_hwdb_new_from_path()\fR -may be used to specify the path from which the binary hardware database should be opened\&. -.PP -The -\fIhwdb\fR -object is reference counted\&. -\fBsd_hwdb_ref()\fR -and -\fBsd_hwdb_unref()\fR -may be used to get a new reference or destroy an existing reference to an object\&. The caller must dispose of the reference acquired with -\fBsd_hwdb_new()\fR -by calling -\fBsd_hwdb_unref()\fR -when done with the object\&. -.PP -Use -\fBsd_hwdb_seek\fR(3), -\fBsd_hwdb_get\fR(3), and -\fBsd_hwdb_enumerate\fR(3) -to access entries\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_hwdb_new()\fR -and -\fBsd_hwdb_new_from_path()\fR -return a non\-negative integer\&. On failure, a negative errno\-style error code is returned\&. -.PP -\fBsd_hwdb_ref()\fR -always returns the argument\&. -.PP -\fBsd_hwdb_unref()\fR -always returns -\fBNULL\fR\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ENOENT\fR -.RS 4 -The binary hardware database file could not be located\&. See -\fBsystemd-hwdb\fR(8) -for more information\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -The located binary hardware database file is in an incompatible format\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsystemd-udevd.service\fR(8), -\fBsd-hwdb\fR(3), -\fBsystemd-hwdb\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_id128_get_machine.3 b/upstream/opensuse-tumbleweed/man3/sd_id128_get_machine.3 deleted file mode 100644 index b4c6db39..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_id128_get_machine.3 +++ /dev/null @@ -1,257 +0,0 @@ -'\" t -.TH "SD_ID128_GET_MACHINE" "3" "" "systemd 254" "sd_id128_get_machine" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_id128_get_machine, sd_id128_get_machine_app_specific, sd_id128_get_boot, sd_id128_get_boot_app_specific, sd_id128_get_invocation \- Retrieve 128\-bit IDs -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_id128_get_machine('u -.BI "int sd_id128_get_machine(sd_id128_t\ *" "ret" ");" -.HP \w'int\ sd_id128_get_machine_app_specific('u -.BI "int sd_id128_get_machine_app_specific(sd_id128_t\ " "app_id" ", sd_id128_t\ *" "ret" ");" -.HP \w'int\ sd_id128_get_boot('u -.BI "int sd_id128_get_boot(sd_id128_t\ *" "ret" ");" -.HP \w'int\ sd_id128_get_boot_app_specific('u -.BI "int sd_id128_get_boot_app_specific(sd_id128_t\ " "app_id" ", sd_id128_t\ *" "ret" ");" -.HP \w'int\ sd_id128_get_invocation('u -.BI "int sd_id128_get_invocation(sd_id128_t\ *" "ret" ");" -.SH "DESCRIPTION" -.PP -\fBsd_id128_get_machine()\fR -returns the machine ID of the executing host\&. This reads and parses the -\fBmachine-id\fR(5) -file\&. This function caches the machine ID internally to make retrieving the machine ID a cheap operation\&. This ID may be used wherever a unique identifier for the local system is needed\&. However, it is recommended to use this ID as\-is only in trusted environments\&. In untrusted environments it is recommended to derive an application specific ID from this machine ID, in an irreversible (cryptographically secure) way\&. To make this easy -\fBsd_id128_get_machine_app_specific()\fR -is provided, see below\&. -.PP -\fBsd_id128_get_machine_app_specific()\fR -is similar to -\fBsd_id128_get_machine()\fR, but retrieves a machine ID that is specific to the application that is identified by the indicated application ID\&. It is recommended to use this function instead of -\fBsd_id128_get_machine()\fR -when passing an ID to untrusted environments, in order to make sure that the original machine ID may not be determined externally\&. This way, the ID used by the application remains stable on a given machine, but cannot be easily correlated with IDs used in other applications on the same machine\&. The application\-specific ID should be generated via a tool like -\fBsystemd\-id128 new\fR, and may be compiled into the application\&. This function will return the same application\-specific ID for each combination of machine ID and application ID\&. Internally, this function calculates HMAC\-SHA256 of the application ID, keyed by the machine ID\&. -.PP -\fBsd_id128_get_boot()\fR -returns the boot ID of the executing kernel\&. This reads and parses the -/proc/sys/kernel/random/boot_id -file exposed by the kernel\&. It is randomly generated early at boot and is unique for every running kernel instance\&. See -\fBrandom\fR(4) -for more information\&. This function also internally caches the returned ID to make this call a cheap operation\&. It is recommended to use this ID as\-is only in trusted environments\&. In untrusted environments it is recommended to derive an application specific ID using -\fBsd_id128_get_boot_app_specific()\fR, see below\&. -.PP -\fBsd_id128_get_boot_app_specific()\fR -is analogous to -\fBsd_id128_get_machine_app_specific()\fR -but returns an ID that changes between boots\&. Some machines may be used for a long time without rebooting, hence the boot ID may remain constant for a long time, and has properties similar to the machine ID during that time\&. -.PP -\fBsd_id128_get_invocation()\fR -returns the invocation ID of the currently executed service\&. In its current implementation, this tries to read and parse the following: -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -The -\fI$INVOCATION_ID\fR -environment variable that the service manager sets when activating a service\&. -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -An entry in the kernel keyring that the system service manager sets when activating a service\&. -.RE -.sp -See -\fBsystemd.exec\fR(5) -for details\&. The ID is cached internally\&. In future a different mechanism to determine the invocation ID may be added\&. -.PP -Note that -\fBsd_id128_get_machine_app_specific()\fR, -\fBsd_id128_get_boot()\fR, -\fBsd_id128_get_boot_app_specific()\fR, and -\fBsd_id128_get_invocation()\fR -always return UUID Variant 1 Version 4 compatible IDs\&. -\fBsd_id128_get_machine()\fR -will also return a UUID Variant 1 Version 4 compatible ID on new installations but might not on older\&. It is possible to convert the machine ID non\-reversibly into a UUID Variant 1 Version 4 compatible one\&. For more information, see -\fBmachine-id\fR(5)\&. It is hence guaranteed that these functions will never return the ID consisting of all zero or all one bits (\fBSD_ID128_NULL\fR, -\fBSD_ID128_ALLF\fR) \(em with the possible exception of -\fBsd_id128_get_machine()\fR, as mentioned\&. -.PP -For more information about the -"sd_id128_t" -type see -\fBsd-id128\fR(3)\&. -.SH "RETURN VALUE" -.PP -Those calls return 0 on success (in which case -\fIret\fR -is filled in), or a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ENOENT\fR -.RS 4 -Returned by -\fBsd_id128_get_machine()\fR -and -\fBsd_id128_get_machine_app_specific()\fR -when -/etc/machine\-id -is missing\&. -.RE -.PP -\fB\-ENOMEDIUM\fR -.RS 4 -Returned by -\fBsd_id128_get_machine()\fR -and -\fBsd_id128_get_machine_app_specific()\fR -when -/etc/machine\-id -is empty or all zeros\&. Also returned by -\fBsd_id128_get_invocation()\fR -when the invocation ID is all zeros\&. -.RE -.PP -\fB\-ENOPKG\fR -.RS 4 -Returned by -\fBsd_id128_get_machine()\fR -and -\fBsd_id128_get_machine_app_specific()\fR -when the content of -/etc/machine\-id -is -"uninitialized"\&. -.RE -.PP -\fB\-ENOSYS\fR -.RS 4 -Returned by -\fBsd_id128_get_boot()\fR -and -\fBsd_id128_get_boot_app_specific()\fR -when -/proc/ -is not mounted\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -Returned by -\fBsd_id128_get_invocation()\fR -if no invocation ID is set\&. -.RE -.PP -\fB\-EUCLEAN\fR -.RS 4 -Returned by any of the functions described here when the configured value has invalid format\&. -.RE -.PP -\fB\-EPERM\fR -.RS 4 -Requested information could not be retrieved because of insufficient permissions\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "EXAMPLES" -.PP -\fBExample\ \&1.\ \&Application\-specific machine ID\fR -.PP -First, generate the application ID: -.sp -.if n \{\ -.RS 4 -.\} -.nf -$ systemd\-id128 \-p new -As string: -c273277323db454ea63bb96e79b53e97 - -As UUID: -c2732773\-23db\-454e\-a63b\-b96e79b53e97 - -As man:sd\-id128(3) macro: -#define MESSAGE_XYZ SD_ID128_MAKE(c2,73,27,73,23,db,45,4e,a6,3b,b9,6e,79,b5,3e,97) -\&.\&.\&. -.fi -.if n \{\ -.RE -.\} -.PP -Then use the new identifier in an example application: -.sp -.if n \{\ -.RS 4 -.\} -.nf -/* SPDX\-License\-Identifier: MIT\-0 */ - -#include -#include - -#define OUR_APPLICATION_ID SD_ID128_MAKE(c2,73,27,73,23,db,45,4e,a6,3b,b9,6e,79,b5,3e,97) - -int main(int argc, char *argv[]) { - sd_id128_t id; - sd_id128_get_machine_app_specific(OUR_APPLICATION_ID, &id); - printf("Our application ID: " SD_ID128_FORMAT_STR "\en", SD_ID128_FORMAT_VAL(id)); - return 0; -} -.fi -.if n \{\ -.RE -.\} -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsystemd-id128\fR(1), -\fBsd-id128\fR(3), -\fBmachine-id\fR(5), -\fBsystemd.exec\fR(5), -\fBsd_id128_randomize\fR(3), -\fBrandom\fR(4) diff --git a/upstream/opensuse-tumbleweed/man3/sd_id128_randomize.3 b/upstream/opensuse-tumbleweed/man3/sd_id128_randomize.3 deleted file mode 100644 index 9a6bf939..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_id128_randomize.3 +++ /dev/null @@ -1,79 +0,0 @@ -'\" t -.TH "SD_ID128_RANDOMIZE" "3" "" "systemd 254" "sd_id128_randomize" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_id128_randomize \- Generate 128\-bit IDs -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_id128_randomize('u -.BI "int sd_id128_randomize(sd_id128_t\ *" "ret" ");" -.SH "DESCRIPTION" -.PP -\fBsd_id128_randomize()\fR -generates a new randomized 128\-bit ID and returns it in -\fIret\fR\&. Every invocation returns a new randomly generated ID\&. This uses the -\fBgetrandom\fR(2) -kernel random number generator\&. -.PP -Note that -\fBsd_id128_randomize()\fR -always returns a UUID Variant 1 Version 4 compatible ID\&. It is hence guaranteed that this function will never return the ID consisting of all zero or all one bits (\fBSD_ID128_NULL\fR, -\fBSD_ID128_ALLF\fR)\&. -.PP -For more information about the -"sd_id128_t" -type, see -\fBsd-id128\fR(3)\&. -.PP -\fBsystemd-id128\fR(1)\*(Aqs -\fBnew\fR -command may be used as a command line front\-end for -\fBsd_id128_randomize()\fR\&. -.SH "RETURN VALUE" -.PP -The call returns 0 on success (in which case -\fIret\fR -is filled in), or a negative errno\-style error code\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-id128\fR(3), -\fBmachine-id\fR(5), -\fBgetrandom\fR(2), -\fBrandom\fR(4), -\fBsd_id128_get_machine\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_id128_to_string.3 b/upstream/opensuse-tumbleweed/man3/sd_id128_to_string.3 deleted file mode 100644 index 1b52e376..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_id128_to_string.3 +++ /dev/null @@ -1,135 +0,0 @@ -'\" t -.TH "SD_ID128_TO_STRING" "3" "" "systemd 254" "sd_id128_to_string" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_id128_to_string, SD_ID128_TO_STRING, SD_ID128_STRING_MAX, sd_id128_to_uuid_string, SD_ID128_TO_UUID_STRING, SD_ID128_UUID_STRING_MAX, sd_id128_from_string \- Format or parse 128\-bit IDs as strings -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.sp -.ft B -.nf -#define SD_ID128_STRING_MAX 33U -.fi -.ft -.sp -.ft B -.nf -#define SD_ID128_UUID_STRING_MAX 37U -.fi -.ft -.sp -.ft B -.nf -#define SD_ID128_TO_STRING(id) \&... -.fi -.ft -.sp -.ft B -.nf -#define SD_ID128_TO_UUID_STRING(id) \&... -.fi -.ft -.HP \w'char\ *sd_id128_to_string('u -.BI "char *sd_id128_to_string(sd_id128_t\ " "id" ",\ char\ " "s" "[static\ SD_ID128_STRING_MAX]);" -.HP \w'char\ *sd_id128_uuid_string('u -.BI "char *sd_id128_uuid_string(sd_id128_t\ " "id" ",\ char\ " "s" "[static\ SD_ID128_UUID_STRING_MAX]);" -.HP \w'int\ sd_id128_from_string('u -.BI "int sd_id128_from_string(const\ char\ *" "s" ",\ sd_id128_t\ *" "ret" ");" -.SH "DESCRIPTION" -.PP -\fBsd_id128_to_string()\fR -formats a 128\-bit ID as a character string\&. It expects the ID and a string array capable of storing 33 characters (\fBSD_ID128_STRING_MAX\fR)\&. The ID will be formatted as 32 lowercase hexadecimal digits and be terminated by a -\fBNUL\fR -byte\&. -.PP -\fBSD_ID128_TO_STRING()\fR -is a macro that wraps -\fBsd_id128_to_string()\fR -and passes an appropriately sized buffer as second argument, allocated as C99 compound literal\&. Each use will thus implicitly acquire a suitable buffer on the stack which remains valid until the end of the current code block\&. This is usually the simplest way to acquire a string representation of a 128\-bit ID in a buffer that is valid in the current code block\&. -.PP -\fBsd_id128_to_uuid_string()\fR -and -\fBSD_ID128_TO_UUID_STRING()\fR -are similar to these two functions/macros, but format the 128\-bit values as RFC4122 UUIDs, i\&.e\&. a series of 36 lowercase hexadeciaml digits and dashes, terminated by a -\fBNUL\fR -byte\&. -.PP -\fBsd_id128_from_string()\fR -implements the reverse operation: it takes a 33 character string with 32 hexadecimal digits (either lowercase or uppercase, terminated by -\fBNUL\fR) and parses them back into a 128\-bit ID returned in -\fIret\fR\&. Alternatively, this call can also parse a 37\-character string with a 128\-bit ID formatted as RFC UUID\&. If -\fIret\fR -is passed as -\fBNULL\fR -the function will validate the passed ID string, but not actually return it in parsed form\&. -.PP -Note that when formatting and parsing 36 character UUIDs this is done strictly in Big Endian byte order, i\&.e\&. according to -\m[blue]\fBRFC4122\fR\m[]\&\s-2\u[1]\d\s+2 -Variant 1 rules, even if the UUID encodes a different variant\&. This matches behaviour in various other Linux userspace tools\&. It\*(Aqs probably wise to avoid UUIDs of other variant types\&. -.PP -For more information about the -"sd_id128_t" -type see -\fBsd-id128\fR(3)\&. Note that these calls operate the same way on all architectures, i\&.e\&. the results do not depend on endianness\&. -.PP -When formatting a 128\-bit ID into a string, it is often easier to use a format string for -\fBprintf\fR(3)\&. This is easily done using the -\fBSD_ID128_FORMAT_STR\fR -and -\fBSD_ID128_FORMAT_VAL()\fR -macros\&. For more information see -\fBsd-id128\fR(3)\&. -.SH "RETURN VALUE" -.PP -\fBsd_id128_to_string()\fR -always succeeds and returns a pointer to the string array passed in\&. -\fBsd_id128_from_string()\fR -returns 0 on success, in which case -\fIret\fR -is filled in, or a negative errno\-style error code\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-id128\fR(3), -\fBprintf\fR(3) -.SH "NOTES" -.IP " 1." 4 -RFC4122 -.RS 4 -\%https://tools.ietf.org/html/rfc4122 -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_is_fifo.3 b/upstream/opensuse-tumbleweed/man3/sd_is_fifo.3 deleted file mode 100644 index bb6d672e..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_is_fifo.3 +++ /dev/null @@ -1,162 +0,0 @@ -'\" t -.TH "SD_IS_FIFO" "3" "" "systemd 254" "sd_is_fifo" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_is_fifo, sd_is_socket, sd_is_socket_inet, sd_is_socket_unix, sd_is_socket_sockaddr, sd_is_mq, sd_is_special \- Check the type of a file descriptor -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_is_fifo('u -.BI "int sd_is_fifo(int\ " "fd" ", const\ char\ *" "path" ");" -.HP \w'int\ sd_is_socket('u -.BI "int sd_is_socket(int\ " "fd" ", int\ " "family" ", int\ " "type" ", int\ " "listening" ");" -.HP \w'int\ sd_is_socket_inet('u -.BI "int sd_is_socket_inet(int\ " "fd" ", int\ " "family" ", int\ " "type" ", int\ " "listening" ", uint16_t\ " "port" ");" -.HP \w'int\ sd_is_socket_sockaddr('u -.BI "int sd_is_socket_sockaddr(int\ " "fd" ", int\ " "type" ", const\ struct\ sockaddr\ *" "addr" ", unsigned\ " "addr_len" ", int\ " "listening" ");" -.HP \w'int\ sd_is_socket_unix('u -.BI "int sd_is_socket_unix(int\ " "fd" ", int\ " "type" ", int\ " "listening" ", const\ char\ *" "path" ", size_t\ " "length" ");" -.HP \w'int\ sd_is_mq('u -.BI "int sd_is_mq(int\ " "fd" ", const\ char\ *" "path" ");" -.HP \w'int\ sd_is_special('u -.BI "int sd_is_special(int\ " "fd" ", const\ char\ *" "path" ");" -.SH "DESCRIPTION" -.PP -\fBsd_is_fifo()\fR -may be called to check whether the specified file descriptor refers to a FIFO or pipe\&. If the -\fIpath\fR -parameter is not -\fBNULL\fR, it is checked whether the FIFO is bound to the specified file system path\&. -.PP -\fBsd_is_socket()\fR -may be called to check whether the specified file descriptor refers to a socket\&. If the -\fIfamily\fR -parameter is not -\fBAF_UNSPEC\fR, it is checked whether the socket is of the specified family (\fBAF_UNIX\fR, -\fBAF_INET\fR, \&...)\&. If the -\fItype\fR -parameter is not 0, it is checked whether the socket is of the specified type (\fBSOCK_STREAM\fR, -\fBSOCK_DGRAM\fR, \&...)\&. If the -\fIlistening\fR -parameter is positive, it is checked whether the socket is in accepting mode, i\&.e\&. -\fBlisten()\fR -has been called for it\&. If -\fIlistening\fR -is 0, it is checked whether the socket is not in this mode\&. If the parameter is negative, no such check is made\&. The -\fIlistening\fR -parameter should only be used for stream sockets and should be set to a negative value otherwise\&. -.PP -\fBsd_is_socket_inet()\fR -is similar to -\fBsd_is_socket()\fR, but optionally checks the IPv4 or IPv6 port number the socket is bound to, unless -\fIport\fR -is zero\&. For this call -\fIfamily\fR -must be passed as either -\fBAF_UNSPEC\fR, -\fBAF_INET\fR, or -\fBAF_INET6\fR\&. -.PP -\fBsd_is_socket_sockaddr()\fR -is similar to -\fBsd_is_socket_inet()\fR, but checks if the socket is bound to the address specified by -\fIaddr\fR\&. The -\fIfamily\fR -specified by -\fIaddr\fR -must be either -\fBAF_INET\fR -or -\fBAF_INET6\fR -and -\fIaddr_len\fR -must be large enough for that family\&. If -\fIaddr\fR -specifies a non\-zero port, it is also checked if the socket is bound to this port\&. In addition, for IPv6, if -\fIaddr\fR -specifies non\-zero -\fIsin6_flowinfo\fR -or -\fIsin6_scope_id\fR, it is checked if the socket has the same values\&. -.PP -\fBsd_is_socket_unix()\fR -is similar to -\fBsd_is_socket()\fR -but optionally checks the -\fBAF_UNIX\fR -path the socket is bound to, unless the -\fIpath\fR -parameter is -\fBNULL\fR\&. For normal file system -\fBAF_UNIX\fR -sockets, set the -\fIlength\fR -parameter to 0\&. For Linux abstract namespace sockets, set the -\fIlength\fR -to the size of the address, including the initial 0 byte, and set the -\fIpath\fR -to the initial 0 byte of the socket address\&. -.PP -\fBsd_is_mq()\fR -may be called to check whether the specified file descriptor refers to a POSIX message queue\&. If the -\fIpath\fR -parameter is not -\fBNULL\fR, it is checked whether the message queue is bound to the specified name\&. -.PP -\fBsd_is_special()\fR -may be called to check whether the specified file descriptor refers to a special file\&. If the -\fIpath\fR -parameter is not -\fBNULL\fR, it is checked whether the file descriptor is bound to the specified filename\&. Special files in this context are character device nodes and files in -/proc/ -or -/sys/\&. -.SH "RETURN VALUE" -.PP -On failure, these calls return a negative errno\-style error code\&. If the file descriptor is of the specified type and bound to the specified address, a positive return value is returned, otherwise zero\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -Internally, these functions use a combination of -\fBfstat\fR(2) -and -\fBgetsockname\fR(2) -to check the file descriptor type and where it is bound to\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-daemon\fR(3), -\fBsd_listen_fds\fR(3), -\fBsystemd.service\fR(5), -\fBsystemd.socket\fR(5), -\fBip\fR(7), -\fBipv6\fR(7), -\fBunix\fR(7), -\fBfifo\fR(7), -\fBmq_overview\fR(7), -\fBsocket\fR(7)\&. diff --git a/upstream/opensuse-tumbleweed/man3/sd_journal_add_match.3 b/upstream/opensuse-tumbleweed/man3/sd_journal_add_match.3 deleted file mode 100644 index 30392cf5..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_journal_add_match.3 +++ /dev/null @@ -1,151 +0,0 @@ -'\" t -.TH "SD_JOURNAL_ADD_MATCH" "3" "" "systemd 254" "sd_journal_add_match" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_journal_add_match, sd_journal_add_disjunction, sd_journal_add_conjunction, sd_journal_flush_matches \- Add or remove entry matches -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_journal_add_match('u -.BI "int sd_journal_add_match(sd_journal\ *" "j" ", const\ void\ *" "data" ", size_t\ " "size" ");" -.HP \w'int\ sd_journal_add_disjunction('u -.BI "int sd_journal_add_disjunction(sd_journal\ *" "j" ");" -.HP \w'int\ sd_journal_add_conjunction('u -.BI "int sd_journal_add_conjunction(sd_journal\ *" "j" ");" -.HP \w'void\ sd_journal_flush_matches('u -.BI "void sd_journal_flush_matches(sd_journal\ *" "j" ");" -.SH "DESCRIPTION" -.PP -\fBsd_journal_add_match()\fR -adds a match by which to filter the entries of the journal file\&. Matches applied with this call will filter what can be iterated through and read from the journal file via calls like -\fBsd_journal_next\fR(3) -and -\fBsd_journal_get_data\fR(3)\&. Parameter -\fIdata\fR -must be of the form -"\fIFIELD\fR=\fIvalue\fR", where the -\fIFIELD\fR -part is a short uppercase string consisting only of 0\(en9, A\(enZ and the underscore; it may not begin with two underscores or be the empty string\&. The -\fIvalue\fR -part may be anything, including binary\&. Parameter -\fIsize\fR -specifies the number of bytes in -\fIdata\fR -(i\&.e\&. the length of -\fIFIELD\fR, plus one, plus the length of -\fIvalue\fR)\&. Parameter -\fIsize\fR -may also be specified as -\fB0\fR, in which case -\fIdata\fR -must be a -\fBNUL\fR\-terminated string, and the bytes before the terminating zero are used as the match\&. -.PP -If a match is applied, only entries with this field set will be iterated\&. Multiple matches may be active at the same time: If they apply to different fields, only entries with both fields set like this will be iterated\&. If they apply to the same fields, only entries where the field takes one of the specified values will be iterated\&. Well known fields are documented in -\fBsystemd.journal-fields\fR(7)\&. Whenever a new match is added the current entry position is reset, and -\fBsd_journal_next\fR(3) -(or a similar call) needs to be called before entries can be read again\&. -.PP -\fBsd_journal_add_disjunction()\fR -may be used to insert a disjunction (i\&.e\&. logical OR) in the match list\&. If this call is invoked, all previously added matches since the last invocation of -\fBsd_journal_add_disjunction()\fR -or -\fBsd_journal_add_conjunction()\fR -are combined in an OR with all matches added afterwards, until -\fBsd_journal_add_disjunction()\fR -or -\fBsd_journal_add_conjunction()\fR -is invoked again to begin the next OR or AND term\&. -.PP -\fBsd_journal_add_conjunction()\fR -may be used to insert a conjunction (i\&.e\&. logical AND) in the match list\&. If this call is invoked, all previously added matches since the last invocation of -\fBsd_journal_add_conjunction()\fR -are combined in an AND with all matches added afterwards, until -\fBsd_journal_add_conjunction()\fR -is invoked again to begin the next AND term\&. The combination of -\fBsd_journal_add_match()\fR, -\fBsd_journal_add_disjunction()\fR -and -\fBsd_journal_add_conjunction()\fR -may be used to build complex search terms, even though full logical expressions are not available\&. Note that -\fBsd_journal_add_conjunction()\fR -operates one level \*(Aqhigher\*(Aq than -\fBsd_journal_add_disjunction()\fR\&. It is hence possible to build an expression of AND terms, consisting of OR terms, consisting of AND terms, consisting of OR terms of matches (the latter OR expression is implicitly created for matches with the same field name, see above)\&. -.PP -\fBsd_journal_flush_matches()\fR -may be used to flush all matches, disjunction and conjunction terms again\&. After this call all filtering is removed and all entries in the journal will be iterated again\&. -.PP -Note that filtering via matches only applies to the way the journal is read, it has no effect on storage on disk\&. -.SH "RETURN VALUE" -.PP -\fBsd_journal_add_match()\fR, -\fBsd_journal_add_disjunction()\fR -and -\fBsd_journal_add_conjunction()\fR -return 0 on success or a negative errno\-style error code\&. -\fBsd_journal_flush_matches()\fR -returns nothing\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "EXAMPLES" -.PP -The following example adds matches to a journal context object to iterate only through messages generated by the Avahi service at the four error log levels, plus all messages of the message ID 03bb1dab98ab4ecfbf6fff2738bdd964 coming from any service (this example lacks the necessary error checking): -.sp -.if n \{\ -.RS 4 -.\} -.nf -\&... -int add_matches(sd_journal *j) { - sd_journal_add_match(j, "_SYSTEMD_UNIT=avahi\-daemon\&.service", 0); - sd_journal_add_match(j, "PRIORITY=0", 0); - sd_journal_add_match(j, "PRIORITY=1", 0); - sd_journal_add_match(j, "PRIORITY=2", 0); - sd_journal_add_match(j, "PRIORITY=3", 0); - sd_journal_add_disjunction(j); - sd_journal_add_match(j, "MESSAGE_ID=03bb1dab98ab4ecfbf6fff2738bdd964", 0); -} -.fi -.if n \{\ -.RE -.\} -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-journal\fR(3), -\fBsd_journal_open\fR(3), -\fBsd_journal_next\fR(3), -\fBsd_journal_get_data\fR(3), -\fBsystemd.journal-fields\fR(7) diff --git a/upstream/opensuse-tumbleweed/man3/sd_journal_enumerate_fields.3 b/upstream/opensuse-tumbleweed/man3/sd_journal_enumerate_fields.3 deleted file mode 100644 index 88e0f172..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_journal_enumerate_fields.3 +++ /dev/null @@ -1,119 +0,0 @@ -'\" t -.TH "SD_JOURNAL_ENUMERATE_FIELDS" "3" "" "systemd 254" "sd_journal_enumerate_fields" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_journal_enumerate_fields, sd_journal_restart_fields, SD_JOURNAL_FOREACH_FIELD \- Read used field names from the journal -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_journal_enumerate_fields('u -.BI "int sd_journal_enumerate_fields(sd_journal\ *" "j" ", const\ char\ **" "field" ");" -.HP \w'void\ sd_journal_restart_fields('u -.BI "void sd_journal_restart_fields(sd_journal\ *" "j" ");" -.HP \w'SD_JOURNAL_FOREACH_FIELD('u -.BI "SD_JOURNAL_FOREACH_FIELD(sd_journal\ *" "j" ", const\ char\ *" "field" ");" -.SH "DESCRIPTION" -.PP -\fBsd_journal_enumerate_fields()\fR -may be used to iterate through all field names used in the opened journal files\&. On each invocation the next field name is returned\&. The order of the returned field names is not defined\&. It takes two arguments: the journal context object, plus a pointer to a constant string pointer where the field name is stored in\&. The returned data is in a read\-only memory map and is only valid until the next invocation of -\fBsd_journal_enumerate_fields()\fR\&. Note that this call is subject to the data field size threshold as controlled by -\fBsd_journal_set_data_threshold()\fR\&. -.PP -\fBsd_journal_restart_fields()\fR -resets the field name enumeration index to the beginning of the list\&. The next invocation of -\fBsd_journal_enumerate_fields()\fR -will return the first field name again\&. -.PP -The -\fBSD_JOURNAL_FOREACH_FIELD()\fR -macro may be used as a handy wrapper around -\fBsd_journal_restart_fields()\fR -and -\fBsd_journal_enumerate_fields()\fR\&. -.PP -These functions currently are not influenced by matches set with -\fBsd_journal_add_match()\fR -but this might change in a later version of this software\&. -.PP -To retrieve the possible values a specific field can take use -\fBsd_journal_query_unique\fR(3)\&. -.SH "RETURN VALUE" -.PP -\fBsd_journal_enumerate_fields()\fR -returns a positive integer if the next field name has been read, 0 when no more field names are known, or a negative errno\-style error code\&. -\fBsd_journal_restart_fields()\fR -returns nothing\&. -.SH "NOTES" -.PP -All functions listed here are thread\-agnostic and only a single specific thread may operate on a given object during its entire lifetime\&. It\*(Aqs safe to allocate multiple independent objects and use each from a specific thread in parallel\&. However, it\*(Aqs not safe to allocate such an object in one thread, and operate or free it from any other, even if locking is used to ensure these threads don\*(Aqt operate on it at the very same time\&. -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.SH "EXAMPLES" -.PP -Use the -\fBSD_JOURNAL_FOREACH_FIELD()\fR -macro to iterate through all field names in use in the current journal\&. -.sp -.if n \{\ -.RS 4 -.\} -.nf -/* SPDX\-License\-Identifier: MIT\-0 */ - -#include -#include -#include - -int main(int argc, char *argv[]) { - sd_journal *j; - const char *field; - int r; - - r = sd_journal_open(&j, SD_JOURNAL_LOCAL_ONLY); - if (r < 0) { - errno = \-r; - fprintf(stderr, "Failed to open journal: %m\en"); - return 1; - } - SD_JOURNAL_FOREACH_FIELD(j, field) - printf("%s\en", field); - sd_journal_close(j); - return 0; -} -.fi -.if n \{\ -.RE -.\} -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsystemd.journal-fields\fR(7), -\fBsd-journal\fR(3), -\fBsd_journal_open\fR(3), -\fBsd_journal_query_unique\fR(3), -\fBsd_journal_get_data\fR(3), -\fBsd_journal_add_match\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_journal_get_catalog.3 b/upstream/opensuse-tumbleweed/man3/sd_journal_get_catalog.3 deleted file mode 100644 index a4d43a4b..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_journal_get_catalog.3 +++ /dev/null @@ -1,88 +0,0 @@ -'\" t -.TH "SD_JOURNAL_GET_CATALOG" "3" "" "systemd 254" "sd_journal_get_catalog" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_journal_get_catalog, sd_journal_get_catalog_for_message_id \- Retrieve message catalog entry -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_journal_get_catalog('u -.BI "int sd_journal_get_catalog(sd_journal\ *" "j" ", char\ **" "ret" ");" -.HP \w'int\ sd_journal_get_catalog_for_message_id('u -.BI "int sd_journal_get_catalog_for_message_id(sd_id128_t\ " "id" ", char\ **" "ret" ");" -.SH "DESCRIPTION" -.PP -\fBsd_journal_get_catalog()\fR -retrieves a message catalog entry for the current journal entry\&. This will look up an entry in the message catalog by using the -"MESSAGE_ID=" -field of the current journal entry\&. Before returning the entry all journal field names in the catalog entry text enclosed in "@" will be replaced by the respective field values of the current entry\&. If a field name referenced in the message catalog entry does not exist, in the current journal entry, the "@" will be removed, but the field name otherwise left untouched\&. -.PP -\fBsd_journal_get_catalog_for_message_id()\fR -works similar to -\fBsd_journal_get_catalog()\fR -but the entry is looked up by the specified message ID (no open journal context is necessary for this), and no field substitution is performed\&. -.PP -For more information about the journal message catalog please refer to the -\m[blue]\fBJournal Message Catalogs\fR\m[]\&\s-2\u[1]\d\s+2 -documentation page\&. -.SH "RETURN VALUE" -.PP -\fBsd_journal_get_catalog()\fR -and -\fBsd_journal_get_catalog_for_message_id()\fR -return 0 on success or a negative errno\-style error code\&. If no matching message catalog entry is found, \-ENOENT is returned\&. -.PP -On successful return, -\fIret\fR -points to a new string, which must be freed with -\fBfree\fR(3)\&. -.SH "NOTES" -.PP -Function -\fBsd_journal_get_catalog()\fR -is thread\-agnostic and only a single specific thread may operate on a given object during its entire lifetime\&. It\*(Aqs safe to allocate multiple independent objects and use each from a specific thread in parallel\&. However, it\*(Aqs not safe to allocate such an object in one thread, and operate or free it from any other, even if locking is used to ensure these threads don\*(Aqt operate on it at the very same time\&. -.PP -Function -\fBsd_journal_get_catalog_for_message_id()\fR -is are thread\-safe and may be called in parallel from multiple threads\&. -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsystemd.journal-fields\fR(7), -\fBsd-journal\fR(3), -\fBsd_journal_open\fR(3), -\fBsd_journal_next\fR(3), -\fBsd_journal_get_data\fR(3), -\fBmalloc\fR(3) -.SH "NOTES" -.IP " 1." 4 -Journal Message Catalogs -.RS 4 -\%https://www.freedesktop.org/wiki/Software/systemd/catalog -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_journal_get_cursor.3 b/upstream/opensuse-tumbleweed/man3/sd_journal_get_cursor.3 deleted file mode 100644 index 52c7c369..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_journal_get_cursor.3 +++ /dev/null @@ -1,72 +0,0 @@ -'\" t -.TH "SD_JOURNAL_GET_CURSOR" "3" "" "systemd 254" "sd_journal_get_cursor" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_journal_get_cursor, sd_journal_test_cursor \- Get cursor string for or test cursor string against the current journal entry -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_journal_get_cursor('u -.BI "int sd_journal_get_cursor(sd_journal\ *" "j" ", char\ **" "cursor" ");" -.HP \w'int\ sd_journal_test_cursor('u -.BI "int sd_journal_test_cursor(sd_journal\ *" "j" ", const\ char\ *" "cursor" ");" -.SH "DESCRIPTION" -.PP -\fBsd_journal_get_cursor()\fR -returns a cursor string for the current journal entry\&. A cursor is a serialization of the current journal position formatted as text\&. The string only contains printable characters and can be passed around in text form\&. The cursor identifies a journal entry globally and in a stable way and may be used to later seek to it via -\fBsd_journal_seek_cursor\fR(3)\&. The cursor string should be considered opaque and not be parsed by clients\&. Seeking to a cursor position without the specific entry being available locally will seek to the next closest (in terms of time) available entry\&. The call takes two arguments: a journal context object and a pointer to a string pointer where the cursor string will be placed\&. The string is allocated via libc -\fBmalloc\fR(3) -and should be freed after use with -\fBfree\fR(3)\&. -.PP -Note that -\fBsd_journal_get_cursor()\fR -will not work before -\fBsd_journal_next\fR(3) -(or related call) has been called at least once, in order to position the read pointer at a valid entry\&. -.PP -\fBsd_journal_test_cursor()\fR -may be used to check whether the current position in the journal matches the specified cursor\&. This is useful since cursor strings do not uniquely identify an entry: the same entry might be referred to by multiple different cursor strings, and hence string comparing cursors is not possible\&. Use this call to verify after an invocation of -\fBsd_journal_seek_cursor\fR(3) -whether the entry being sought to was actually found in the journal or the next closest entry was used instead\&. -.SH "RETURN VALUE" -.PP -\fBsd_journal_get_cursor()\fR -returns 0 on success or a negative errno\-style error code\&. -\fBsd_journal_test_cursor()\fR -returns positive if the current entry matches the specified cursor, 0 if it does not match the specified cursor or a negative errno\-style error code on failure\&. -.SH "NOTES" -.PP -All functions listed here are thread\-agnostic and only a single specific thread may operate on a given object during its entire lifetime\&. It\*(Aqs safe to allocate multiple independent objects and use each from a specific thread in parallel\&. However, it\*(Aqs not safe to allocate such an object in one thread, and operate or free it from any other, even if locking is used to ensure these threads don\*(Aqt operate on it at the very same time\&. -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-journal\fR(3), -\fBsd_journal_open\fR(3), -\fBsd_journal_seek_cursor\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_journal_get_cutoff_realtime_usec.3 b/upstream/opensuse-tumbleweed/man3/sd_journal_get_cutoff_realtime_usec.3 deleted file mode 100644 index e0842488..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_journal_get_cutoff_realtime_usec.3 +++ /dev/null @@ -1,87 +0,0 @@ -'\" t -.TH "SD_JOURNAL_GET_CUTOFF_REALTIME_USEC" "3" "" "systemd 254" "sd_journal_get_cutoff_realtime_usec" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_journal_get_cutoff_realtime_usec, sd_journal_get_cutoff_monotonic_usec \- Read cut\-off timestamps from the current journal entry -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_journal_get_cutoff_realtime_usec('u -.BI "int sd_journal_get_cutoff_realtime_usec(sd_journal\ *" "j" ", uint64_t\ *" "from" ", uint64_t\ *" "to" ");" -.HP \w'int\ sd_journal_get_cutoff_monotonic_usec('u -.BI "int sd_journal_get_cutoff_monotonic_usec(sd_journal\ *" "j" ", sd_id128_t\ " "boot_id" ", uint64_t\ *" "from" ", uint64_t\ *" "to" ");" -.SH "DESCRIPTION" -.PP -\fBsd_journal_get_cutoff_realtime_usec()\fR -retrieves the realtime (wallclock) timestamps of the first and last entries accessible in the journal\&. It takes three arguments: the journal context object -\fIj\fR -and two pointers -\fIfrom\fR -and -\fIto\fR -pointing at 64\-bit unsigned integers to store the timestamps in\&. The timestamps are in microseconds since the epoch, i\&.e\&. -\fBCLOCK_REALTIME\fR\&. Either one of the two timestamp arguments may be passed as -\fBNULL\fR -in case the timestamp is not needed, but not both\&. -.PP -\fBsd_journal_get_cutoff_monotonic_usec()\fR -retrieves the monotonic timestamps of the first and last entries accessible in the journal\&. It takes three arguments: the journal context object -\fIj\fR, a 128\-bit identifier for the boot -\fIboot_id\fR, and two pointers to 64\-bit unsigned integers to store the timestamps, -\fIfrom\fR -and -\fIto\fR\&. The timestamps are in microseconds since boot\-up of the specific boot, i\&.e\&. -\fBCLOCK_MONOTONIC\fR\&. Since the monotonic clock begins new with every reboot it only defines a well\-defined point in time when used together with an identifier identifying the boot, see -\fBsd_id128_get_boot\fR(3) -for more information\&. The function will return the timestamps for the boot identified by the passed boot ID\&. Either one of the two timestamp arguments may be passed as -\fBNULL\fR -in case the timestamp is not needed, but not both\&. -.SH "RETURN VALUE" -.PP -\fBsd_journal_get_cutoff_realtime_usec()\fR -and -\fBsd_journal_get_cutoff_monotonic_usec()\fR -return 1 on success, 0 if not suitable entries are in the journal or a negative errno\-style error code\&. -.PP -Locations pointed to by parameters -\fIfrom\fR -and -\fIto\fR -will be set only if the return value is positive, and obviously, the parameters are non\-null\&. -.SH "NOTES" -.PP -All functions listed here are thread\-agnostic and only a single specific thread may operate on a given object during its entire lifetime\&. It\*(Aqs safe to allocate multiple independent objects and use each from a specific thread in parallel\&. However, it\*(Aqs not safe to allocate such an object in one thread, and operate or free it from any other, even if locking is used to ensure these threads don\*(Aqt operate on it at the very same time\&. -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-journal\fR(3), -\fBsd_journal_open\fR(3), -\fBsd_journal_get_realtime_usec\fR(3), -\fBsd_id128_get_boot\fR(3), -\fBclock_gettime\fR(2) diff --git a/upstream/opensuse-tumbleweed/man3/sd_journal_get_data.3 b/upstream/opensuse-tumbleweed/man3/sd_journal_get_data.3 deleted file mode 100644 index 7522b35a..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_journal_get_data.3 +++ /dev/null @@ -1,204 +0,0 @@ -'\" t -.TH "SD_JOURNAL_GET_DATA" "3" "" "systemd 254" "sd_journal_get_data" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_journal_get_data, sd_journal_enumerate_data, sd_journal_enumerate_available_data, sd_journal_restart_data, SD_JOURNAL_FOREACH_DATA, sd_journal_set_data_threshold, sd_journal_get_data_threshold \- Read data fields from the current journal entry -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_journal_get_data('u -.BI "int sd_journal_get_data(sd_journal\ *" "j" ", const\ char\ *" "field" ", const\ void\ **" "data" ", size_t\ *" "length" ");" -.HP \w'int\ sd_journal_enumerate_data('u -.BI "int sd_journal_enumerate_data(sd_journal\ *" "j" ", const\ void\ **" "data" ", size_t\ *" "length" ");" -.HP \w'int\ sd_journal_enumerate_available_data('u -.BI "int sd_journal_enumerate_available_data(sd_journal\ *" "j" ", const\ void\ **" "data" ", size_t\ *" "length" ");" -.HP \w'void\ sd_journal_restart_data('u -.BI "void sd_journal_restart_data(sd_journal\ *" "j" ");" -.HP \w'SD_JOURNAL_FOREACH_DATA('u -.BI "SD_JOURNAL_FOREACH_DATA(sd_journal\ *" "j" ", const\ void\ *" "data" ", size_t\ " "length" ");" -.HP \w'int\ sd_journal_set_data_threshold('u -.BI "int sd_journal_set_data_threshold(sd_journal\ *" "j" ", size_t\ " "sz" ");" -.HP \w'int\ sd_journal_get_data_threshold('u -.BI "int sd_journal_get_data_threshold(sd_journal\ *" "j" ", size_t\ *" "sz" ");" -.SH "DESCRIPTION" -.PP -\fBsd_journal_get_data()\fR -gets the data object associated with a specific field from the current journal entry\&. It takes four arguments: the journal context object, a string with the field name to request, plus a pair of pointers to pointer/size variables where the data object and its size shall be stored in\&. The field name should be an entry field name\&. Well\-known field names are listed in -\fBsystemd.journal-fields\fR(7), but any field can be specified\&. The returned data is in a read\-only memory map and is only valid until the next invocation of -\fBsd_journal_get_data()\fR, -\fBsd_journal_enumerate_data()\fR, -\fBsd_journal_enumerate_available_data()\fR, or when the read pointer is altered\&. Note that the data returned will be prefixed with the field name and -"="\&. Also note that, by default, data fields larger than 64K might get truncated to 64K\&. This threshold may be changed and turned off with -\fBsd_journal_set_data_threshold()\fR -(see below)\&. -.PP -\fBsd_journal_enumerate_data()\fR -may be used to iterate through all fields of the current entry\&. On each invocation the data for the next field is returned\&. The order of these fields is not defined\&. The data returned is in the same format as with -\fBsd_journal_get_data()\fR -and also follows the same life\-time semantics\&. -.PP -\fBsd_journal_enumerate_available_data()\fR -is similar to -\fBsd_journal_enumerate_data()\fR, but silently skips any fields which may be valid, but are too large or not supported by current implementation\&. -.PP -\fBsd_journal_restart_data()\fR -resets the data enumeration index to the beginning of the entry\&. The next invocation of -\fBsd_journal_enumerate_data()\fR -will return the first field of the entry again\&. -.PP -Note that the -\fBSD_JOURNAL_FOREACH_DATA()\fR -macro may be used as a handy wrapper around -\fBsd_journal_restart_data()\fR -and -\fBsd_journal_enumerate_available_data()\fR\&. -.PP -Note that these functions will not work before -\fBsd_journal_next\fR(3) -(or related call) has been called at least once, in order to position the read pointer at a valid entry\&. -.PP -\fBsd_journal_set_data_threshold()\fR -may be used to change the data field size threshold for data returned by -\fBsd_journal_get_data()\fR, -\fBsd_journal_enumerate_data()\fR -and -\fBsd_journal_enumerate_unique()\fR\&. This threshold is a hint only: it indicates that the client program is interested only in the initial parts of the data fields, up to the threshold in size \(em but the library might still return larger data objects\&. That means applications should not rely exclusively on this setting to limit the size of the data fields returned, but need to apply an explicit size limit on the returned data as well\&. This threshold defaults to 64K by default\&. To retrieve the complete data fields this threshold should be turned off by setting it to 0, so that the library always returns the complete data objects\&. It is recommended to set this threshold as low as possible since this relieves the library from having to decompress large compressed data objects in full\&. -.PP -\fBsd_journal_get_data_threshold()\fR -returns the currently configured data field size threshold\&. -.SH "RETURN VALUE" -.PP -\fBsd_journal_get_data()\fR -returns 0 on success or a negative errno\-style error code\&. -\fBsd_journal_enumerate_data()\fR -and -\fBsd_journal_enumerate_available_data()\fR -return a positive integer if the next field has been read, 0 when no more fields remain, or a negative errno\-style error code\&. -\fBsd_journal_restart_data()\fR -doesn\*(Aqt return anything\&. -\fBsd_journal_set_data_threshold()\fR -and -\fBsd_journal_get_threshold()\fR -return 0 on success or a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -One of the required parameters is -\fBNULL\fR -or invalid\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The journal object was created in a different process, library or module instance\&. -.RE -.PP -\fB\-EADDRNOTAVAIL\fR -.RS 4 -The read pointer is not positioned at a valid entry; -\fBsd_journal_next\fR(3) -or a related call has not been called at least once\&. -.RE -.PP -\fB\-ENOENT\fR -.RS 4 -The current entry does not include the specified field\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.PP -\fB\-ENOBUFS\fR -.RS 4 -A compressed entry is too large\&. -.RE -.PP -\fB\-E2BIG\fR -.RS 4 -The data field is too large for this computer architecture (e\&.g\&. above 4 GB on a 32\-bit architecture)\&. -.RE -.PP -\fB\-EPROTONOSUPPORT\fR -.RS 4 -The journal is compressed with an unsupported method or the journal uses an unsupported feature\&. -.RE -.PP -\fB\-EBADMSG\fR -.RS 4 -The journal is corrupted (possibly just the entry being iterated over)\&. -.RE -.PP -\fB\-EIO\fR -.RS 4 -An I/O error was reported by the kernel\&. -.RE -.SH "NOTES" -.PP -All functions listed here are thread\-agnostic and only a single specific thread may operate on a given object during its entire lifetime\&. It\*(Aqs safe to allocate multiple independent objects and use each from a specific thread in parallel\&. However, it\*(Aqs not safe to allocate such an object in one thread, and operate or free it from any other, even if locking is used to ensure these threads don\*(Aqt operate on it at the very same time\&. -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.SH "EXAMPLES" -.PP -See -\fBsd_journal_next\fR(3) -for a complete example how to use -\fBsd_journal_get_data()\fR\&. -.PP -Use the -\fBSD_JOURNAL_FOREACH_DATA()\fR -macro to iterate through all fields of the current journal entry: -.sp -.if n \{\ -.RS 4 -.\} -.nf -\&... -int print_fields(sd_journal *j) { - const void *data; - size_t length; - SD_JOURNAL_FOREACH_DATA(j, data, length) - printf("%\&.*s\en", (int) length, data); -} -\&... -.fi -.if n \{\ -.RE -.\} -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsystemd.journal-fields\fR(7), -\fBsd-journal\fR(3), -\fBsd_journal_open\fR(3), -\fBsd_journal_next\fR(3), -\fBsd_journal_get_realtime_usec\fR(3), -\fBsd_journal_query_unique\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_journal_get_fd.3 b/upstream/opensuse-tumbleweed/man3/sd_journal_get_fd.3 deleted file mode 100644 index bdf26cff..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_journal_get_fd.3 +++ /dev/null @@ -1,340 +0,0 @@ -'\" t -.TH "SD_JOURNAL_GET_FD" "3" "" "systemd 254" "sd_journal_get_fd" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_journal_get_fd, sd_journal_get_events, sd_journal_get_timeout, sd_journal_process, sd_journal_wait, sd_journal_reliable_fd, SD_JOURNAL_NOP, SD_JOURNAL_APPEND, SD_JOURNAL_INVALIDATE \- Journal change notification interface -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_journal_get_fd('u -.BI "int sd_journal_get_fd(sd_journal\ *" "j" ");" -.HP \w'int\ sd_journal_get_events('u -.BI "int sd_journal_get_events(sd_journal\ *" "j" ");" -.HP \w'int\ sd_journal_get_timeout('u -.BI "int sd_journal_get_timeout(sd_journal\ *" "j" ", uint64_t\ *" "timeout_usec" ");" -.HP \w'int\ sd_journal_process('u -.BI "int sd_journal_process(sd_journal\ *" "j" ");" -.HP \w'int\ sd_journal_wait('u -.BI "int sd_journal_wait(sd_journal\ *" "j" ", uint64_t\ " "timeout_usec" ");" -.HP \w'int\ sd_journal_reliable_fd('u -.BI "int sd_journal_reliable_fd(sd_journal\ *" "j" ");" -.SH "DESCRIPTION" -.PP -\fBsd_journal_get_fd()\fR -returns a file descriptor that may be asynchronously polled in an external event loop and is signaled as soon as the journal changes, because new entries or files were added, rotation took place, or files have been deleted, and similar\&. The file descriptor is suitable for usage in -\fBpoll\fR(2)\&. Use -\fBsd_journal_get_events()\fR -for an events mask to watch for\&. The call takes one argument: the journal context object\&. Note that not all file systems are capable of generating the necessary events for wakeups from this file descriptor for changes to be noticed immediately\&. In particular network files systems do not generate suitable file change events in all cases\&. Cases like this can be detected with -\fBsd_journal_reliable_fd()\fR, below\&. -\fBsd_journal_get_timeout()\fR -will ensure in these cases that wake\-ups happen frequently enough for changes to be noticed, although with a certain latency\&. -.PP -\fBsd_journal_get_events()\fR -will return the -\fBpoll()\fR -mask to wait for\&. This function will return a combination of -\fBPOLLIN\fR -and -\fBPOLLOUT\fR -and similar to fill into the -"\&.events" -field of -\fIstruct pollfd\fR\&. -.PP -\fBsd_journal_get_timeout()\fR -will return a timeout value for usage in -\fBpoll()\fR\&. This returns a value in microseconds since the epoch of -\fBCLOCK_MONOTONIC\fR -for timing out -\fBpoll()\fR -in -\fItimeout_usec\fR\&. See -\fBclock_gettime\fR(2) -for details about -\fBCLOCK_MONOTONIC\fR\&. If there is no timeout to wait for, this will fill in -\fB(uint64_t) \-1\fR -instead\&. Note that -\fBpoll()\fR -takes a relative timeout in milliseconds rather than an absolute timeout in microseconds\&. To convert the absolute \*(Aqus\*(Aq timeout into relative \*(Aqms\*(Aq, use code like the following: -.sp -.if n \{\ -.RS 4 -.\} -.nf -uint64_t t; -int msec; -sd_journal_get_timeout(m, &t); -if (t == (uint64_t) \-1) - msec = \-1; -else { - struct timespec ts; - uint64_t n; - clock_gettime(CLOCK_MONOTONIC, &ts); - n = (uint64_t) ts\&.tv_sec * 1000000 + ts\&.tv_nsec / 1000; - msec = t > n ? (int) ((t \- n + 999) / 1000) : 0; -} -.fi -.if n \{\ -.RE -.\} -.PP -The code above does not do any error checking for brevity\*(Aqs sake\&. The calculated -\fImsec\fR -integer can be passed directly as -\fBpoll()\fR\*(Aqs timeout parameter\&. -.PP -After each -\fBpoll()\fR -wake\-up -\fBsd_journal_process()\fR -needs to be called to process events\&. This call will also indicate what kind of change has been detected (see below; note that spurious wake\-ups are possible)\&. -.PP -A synchronous alternative for using -\fBsd_journal_get_fd()\fR, -\fBsd_journal_get_events()\fR, -\fBsd_journal_get_timeout()\fR -and -\fBsd_journal_process()\fR -is -\fBsd_journal_wait()\fR\&. It will synchronously wait until the journal gets changed\&. The maximum time this call sleeps may be controlled with the -\fItimeout_usec\fR -parameter\&. Pass -\fB(uint64_t) \-1\fR -to wait indefinitely\&. Internally this call simply combines -\fBsd_journal_get_fd()\fR, -\fBsd_journal_get_events()\fR, -\fBsd_journal_get_timeout()\fR, -\fBpoll()\fR -and -\fBsd_journal_process()\fR -into one\&. -.PP -\fBsd_journal_reliable_fd()\fR -may be used to check whether the wake\-up events from the file descriptor returned by -\fBsd_journal_get_fd()\fR -are known to be quickly triggered\&. On certain file systems where file change events from the OS are not available (such as NFS) changes need to be polled for repeatedly, and hence are detected only with a considerable latency\&. This call will return a positive value if the journal changes are detected quickly and zero when they need to be polled for\&. Note that there is usually no need to invoke this function directly as -\fBsd_journal_get_timeout()\fR -will request appropriate timeouts anyway\&. -.PP -Note that all of the above change notification interfaces do not report changes instantly\&. Latencies are introduced for multiple reasons: as mentioned certain storage backends require time\-based polling, in other cases wake\-ups are optimized by coalescing events, and the OS introduces additional IO/CPU scheduling latencies\&. -.SH "RETURN VALUE" -.PP -\fBsd_journal_get_fd()\fR -returns a valid file descriptor on success or a negative errno\-style error code\&. -.PP -\fBsd_journal_get_events()\fR -returns a combination of -\fBPOLLIN\fR, -\fBPOLLOUT\fR -and suchlike on success or a negative errno\-style error code\&. -.PP -\fBsd_journal_reliable_fd()\fR -returns a positive integer if the file descriptor returned by -\fBsd_journal_get_fd()\fR -will generate wake\-ups immediately for all journal changes\&. Returns 0 if there might be a latency involved\&. -.PP -\fBsd_journal_process()\fR -and -\fBsd_journal_wait()\fR -return a negative errno\-style error code, or one of -\fBSD_JOURNAL_NOP\fR, -\fBSD_JOURNAL_APPEND\fR -or -\fBSD_JOURNAL_INVALIDATE\fR -on success: -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -If -\fBSD_JOURNAL_NOP\fR -is returned, the journal did not change since the last invocation\&. -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -If -\fBSD_JOURNAL_APPEND\fR -is returned, new entries have been appended to the end of the journal\&. In this case it is sufficient to simply continue reading at the previous end location of the journal, to read the newly added entries\&. -.RE -.sp -.RS 4 -.ie n \{\ -\h'-04'\(bu\h'+03'\c -.\} -.el \{\ -.sp -1 -.IP \(bu 2.3 -.\} -If -\fBSD_JOURNAL_INVALIDATE\fR, journal files were added to or removed from the set of journal files watched (e\&.g\&. due to rotation or vacuuming), and thus entries might have appeared or disappeared at arbitrary places in the log stream, possibly before or after the previous end of the log stream\&. If -\fBSD_JOURNAL_INVALIDATE\fR -is returned, live\-view UIs that want to reflect on screen the precise state of the log data on disk should probably refresh their entire display (relative to the cursor of the log entry on the top of the screen)\&. Programs only interested in a strictly sequential stream of log data may treat -\fBSD_JOURNAL_INVALIDATE\fR -the same way as -\fBSD_JOURNAL_APPEND\fR, thus ignoring any changes to the log view earlier than the old end of the log stream\&. -.RE -.SH "SIGNAL SAFETY" -.PP -In general, -\fBsd_journal_get_fd()\fR, -\fBsd_journal_get_events()\fR, and -\fBsd_journal_get_timeout()\fR -are -\fInot\fR -"async signal safe" in the meaning of -\fBsignal-safety\fR(7)\&. Nevertheless, only the first call to any of those three functions performs unsafe operations, so subsequent calls -\fIare\fR -safe\&. -.PP -\fBsd_journal_process()\fR -and -\fBsd_journal_wait()\fR -are not safe\&. -\fBsd_journal_reliable_fd()\fR -is safe\&. -.SH "NOTES" -.PP -All functions listed here are thread\-agnostic and only a single specific thread may operate on a given object during its entire lifetime\&. It\*(Aqs safe to allocate multiple independent objects and use each from a specific thread in parallel\&. However, it\*(Aqs not safe to allocate such an object in one thread, and operate or free it from any other, even if locking is used to ensure these threads don\*(Aqt operate on it at the very same time\&. -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.SH "EXAMPLES" -.PP -Iterating through the journal, in a live view tracking all changes: -.sp -.if n \{\ -.RS 4 -.\} -.nf -/* SPDX\-License\-Identifier: MIT\-0 */ - -#include -#include -#include - -int main(int argc, char *argv[]) { - int r; - sd_journal *j; - r = sd_journal_open(&j, SD_JOURNAL_LOCAL_ONLY); - if (r < 0) { - errno = \-r; - fprintf(stderr, "Failed to open journal: %m\en"); - return 1; - } - for (;;) { - const void *d; - size_t l; - r = sd_journal_next(j); - if (r < 0) { - errno = \-r; - fprintf(stderr, "Failed to iterate to next entry: %m\en"); - break; - } - if (r == 0) { - /* Reached the end, let\*(Aqs wait for changes, and try again */ - r = sd_journal_wait(j, (uint64_t) \-1); - if (r < 0) { - errno = \-r; - fprintf(stderr, "Failed to wait for changes: %m\en"); - break; - } - continue; - } - r = sd_journal_get_data(j, "MESSAGE", &d, &l); - if (r < 0) { - errno = \-r; - fprintf(stderr, "Failed to read message field: %m\en"); - continue; - } - printf("%\&.*s\en", (int) l, (const char*) d); - } - sd_journal_close(j); - return 0; -} -.fi -.if n \{\ -.RE -.\} -.PP -Waiting with -\fBpoll()\fR -(this example lacks all error checking for the sake of simplicity): -.sp -.if n \{\ -.RS 4 -.\} -.nf -/* SPDX\-License\-Identifier: MIT\-0 */ - -#include -#include -#include - -int wait_for_changes(sd_journal *j) { - uint64_t t; - int msec; - struct pollfd pollfd; - - sd_journal_get_timeout(j, &t); - if (t == (uint64_t) \-1) - msec = \-1; - else { - struct timespec ts; - uint64_t n; - clock_gettime(CLOCK_MONOTONIC, &ts); - n = (uint64_t) ts\&.tv_sec * 1000000 + ts\&.tv_nsec / 1000; - msec = t > n ? (int) ((t \- n + 999) / 1000) : 0; - } - - pollfd\&.fd = sd_journal_get_fd(j); - pollfd\&.events = sd_journal_get_events(j); - poll(&pollfd, 1, msec); - return sd_journal_process(j); -} -.fi -.if n \{\ -.RE -.\} -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-journal\fR(3), -\fBsd_journal_open\fR(3), -\fBsd_journal_next\fR(3), -\fBpoll\fR(2), -\fBclock_gettime\fR(2) diff --git a/upstream/opensuse-tumbleweed/man3/sd_journal_get_realtime_usec.3 b/upstream/opensuse-tumbleweed/man3/sd_journal_get_realtime_usec.3 deleted file mode 100644 index d7d14b0f..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_journal_get_realtime_usec.3 +++ /dev/null @@ -1,79 +0,0 @@ -'\" t -.TH "SD_JOURNAL_GET_REALTIME_USEC" "3" "" "systemd 254" "sd_journal_get_realtime_usec" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_journal_get_realtime_usec, sd_journal_get_monotonic_usec \- Read timestamps from the current journal entry -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_journal_get_realtime_usec('u -.BI "int sd_journal_get_realtime_usec(sd_journal\ *" "j" ", uint64_t\ *" "usec" ");" -.HP \w'int\ sd_journal_get_monotonic_usec('u -.BI "int sd_journal_get_monotonic_usec(sd_journal\ *" "j" ", uint64_t\ *" "usec" ", sd_id128_t\ *" "boot_id" ");" -.SH "DESCRIPTION" -.PP -\fBsd_journal_get_realtime_usec()\fR -gets the realtime (wallclock) timestamp of the current journal entry\&. It takes two arguments: the journal context object and a pointer to a 64\-bit unsigned integer to store the timestamp in\&. The timestamp is in microseconds since the epoch, i\&.e\&. -\fBCLOCK_REALTIME\fR\&. -.PP -\fBsd_journal_get_monotonic_usec()\fR -gets the monotonic timestamp of the current journal entry\&. It takes three arguments: the journal context object, a pointer to a 64\-bit unsigned integer to store the timestamp in, as well as a 128\-bit ID buffer to store the boot ID of the monotonic timestamp\&. The timestamp is in microseconds since boot\-up of the specific boot, i\&.e\&. -\fBCLOCK_MONOTONIC\fR\&. Since the monotonic clock begins new with every reboot, it only defines a well\-defined point in time when used together with an identifier identifying the boot\&. See -\fBsd_id128_get_boot\fR(3) -for more information\&. If the boot ID parameter is passed -\fBNULL\fR, the function will fail if the monotonic timestamp of the current entry is not of the current system boot\&. -.PP -Note that these functions will not work before -\fBsd_journal_next\fR(3) -(or related call) has been called at least once, in order to position the read pointer at a valid entry\&. -.SH "RETURN VALUE" -.PP -\fBsd_journal_get_realtime_usec()\fR -and -\fBsd_journal_get_monotonic_usec()\fR -returns 0 on success or a negative errno\-style error code\&. If the boot ID parameter was passed -\fBNULL\fR -and the monotonic timestamp of the current journal entry is not of the current system boot, -\fB\-ESTALE\fR -is returned by -\fBsd_journal_get_monotonic_usec()\fR\&. -.SH "NOTES" -.PP -All functions listed here are thread\-agnostic and only a single specific thread may operate on a given object during its entire lifetime\&. It\*(Aqs safe to allocate multiple independent objects and use each from a specific thread in parallel\&. However, it\*(Aqs not safe to allocate such an object in one thread, and operate or free it from any other, even if locking is used to ensure these threads don\*(Aqt operate on it at the very same time\&. -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-journal\fR(3), -\fBsd_journal_open\fR(3), -\fBsd_journal_next\fR(3), -\fBsd_journal_get_data\fR(3), -\fBsd_journal_get_seqnum\fR(3), -\fBsd_id128_get_boot\fR(3), -\fBclock_gettime\fR(2), -\fBsd_journal_get_cutoff_realtime_usec\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_journal_get_seqnum.3 b/upstream/opensuse-tumbleweed/man3/sd_journal_get_seqnum.3 deleted file mode 100644 index ba954e12..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_journal_get_seqnum.3 +++ /dev/null @@ -1,87 +0,0 @@ -'\" t -.TH "SD_JOURNAL_GET_SEQNUM" "3" "" "systemd 254" "sd_journal_get_seqnum" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_journal_get_seqnum \- Read sequence number from the current journal entry -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_journal_get_seqnum('u -.BI "int sd_journal_get_seqnum(sd_journal\ *" "j" ", uint64_t\ *" "ret_seqnum" ", sd_id128_t\ *" "ret_seqnum_id" ");" -.SH "DESCRIPTION" -.PP -\fBsd_journal_get_seqnum()\fR -returns the sequence number of the current journal entry\&. It takes three arguments: the journal context object, a pointer to a 64\-bit unsigned integer to store the sequence number in, and a buffer to return the 128\-bit sequence number ID in\&. -.PP -When writing journal entries to disk each -\fBsystemd\-journald\fR -instance will number them sequentially, starting from 1 for the first entry written after subsystem initialization\&. Each such series of sequence numbers is associated with a 128\-bit sequence number ID which is initialized randomly, once at -\fBsystemd\-journal\fR -initialization\&. Thus, while multiple instances of -\fBsystemd\-journald\fR -will assign the same sequence numbers to their written journal entries, they will have a distinct sequence number IDs\&. The sequence number is assigned at the moment of writing the entry to disk\&. If log entries are rewritten (for example because the volatile logs from -/run/log/ -are flushed to -/var/log/ -via -systemd\-journald\-flush\&.service) they will get new sequence numbers assigned\&. -.PP -Sequence numbers may be used to order entries (entries associated with the same sequence number ID and lower sequence numbers should be ordered chronologically before those with higher sequence numbers), and to detect lost entries\&. Note that journal service instances typically write to multiple journal files in parallel (for example because -\fISplitMode=\fR -is used), in which case each journal file will only contain a subset of the sequence numbers\&. To recover the full stream of journal entries the files must be combined ("interleaved"), a process that primarily relies on the sequence numbers\&. When journal files are rotated (due to size or time limits), the series of sequence numbers is continued in the replacement files\&. All journal files generated from the same journal instance will carry the same sequence number ID\&. -.PP -As the sequence numbers are assigned at the moment of writing the journal entries to disk they do not exist if storage is disabled via -\fISplitMode=\fR\&. -.PP -The -\fIret_seqnum\fR -and -\fIret_seqnum_id\fR -parameters may be specified as -\fBNULL\fR -in which case the relevant data is not returned (but the call will otherwise succeed)\&. -.PP -Note that these functions will not work before -\fBsd_journal_next\fR(3) -(or related call) has been called at least once, in order to position the read pointer at a valid entry\&. -.SH "RETURN VALUE" -.PP -\fBsd_journal_get_seqnum()\fR -returns 0 on success or a negative errno\-style error code\&.\&. -.SH "NOTES" -.PP -All functions listed here are thread\-agnostic and only a single specific thread may operate on a given object during its entire lifetime\&. It\*(Aqs safe to allocate multiple independent objects and use each from a specific thread in parallel\&. However, it\*(Aqs not safe to allocate such an object in one thread, and operate or free it from any other, even if locking is used to ensure these threads don\*(Aqt operate on it at the very same time\&. -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-journal\fR(3), -\fBsd_journal_open\fR(3), -\fBsd_journal_next\fR(3), -\fBsd_journal_get_data\fR(3), -\fBsd_journal_get_monotonic_usec\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_journal_get_usage.3 b/upstream/opensuse-tumbleweed/man3/sd_journal_get_usage.3 deleted file mode 100644 index b61be7e5..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_journal_get_usage.3 +++ /dev/null @@ -1,54 +0,0 @@ -'\" t -.TH "SD_JOURNAL_GET_USAGE" "3" "" "systemd 254" "sd_journal_get_usage" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_journal_get_usage \- Journal disk usage -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_journal_get_usage('u -.BI "int sd_journal_get_usage(sd_journal\ *" "j" ", uint64_t\ *" "bytes" ");" -.SH "DESCRIPTION" -.PP -\fBsd_journal_get_usage()\fR -determines the total disk space currently used by journal files (in bytes)\&. If -\fBSD_JOURNAL_LOCAL_ONLY\fR -was passed when opening the journal, this value will only reflect the size of journal files of the local host, otherwise of all hosts\&. -.SH "RETURN VALUE" -.PP -\fBsd_journal_get_usage()\fR -returns 0 on success or a negative errno\-style error code\&. -.SH "NOTES" -.PP -All functions listed here are thread\-agnostic and only a single specific thread may operate on a given object during its entire lifetime\&. It\*(Aqs safe to allocate multiple independent objects and use each from a specific thread in parallel\&. However, it\*(Aqs not safe to allocate such an object in one thread, and operate or free it from any other, even if locking is used to ensure these threads don\*(Aqt operate on it at the very same time\&. -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-journal\fR(3), -\fBsd_journal_open\fR(3), diff --git a/upstream/opensuse-tumbleweed/man3/sd_journal_has_runtime_files.3 b/upstream/opensuse-tumbleweed/man3/sd_journal_has_runtime_files.3 deleted file mode 100644 index 83808a00..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_journal_has_runtime_files.3 +++ /dev/null @@ -1,59 +0,0 @@ -'\" t -.TH "SD_JOURNAL_HAS_RUNTIME_FILES" "3" "" "systemd 254" "sd_journal_has_runtime_files" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_journal_has_runtime_files, sd_journal_has_persistent_files \- Query availability of runtime or persistent journal files -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_journal_has_runtime_files('u -.BI "int sd_journal_has_runtime_files(sd_journal\ *" "j" ");" -.HP \w'int\ sd_journal_has_persistent_files('u -.BI "int sd_journal_has_persistent_files(sd_journal\ *" "j" ");" -.SH "DESCRIPTION" -.PP -\fBsd_journal_has_runtime_files()\fR -returns a positive value if runtime journal files (present in /run/systemd/journal/) have been found\&. Otherwise returns 0\&. -.PP -\fBsd_journal_has_persistent_files()\fR -returns a positive value if persistent journal files (present in /var/log/journal/) have been found\&. Otherwise returns 0\&. -.SH "RETURN VALUE" -.PP -Both -\fBsd_journal_has_runtime_files()\fR -and -\fBsd_journal_has_persistent_files()\fR -return \-EINVAL if their argument is -\fBNULL\fR\&. -.SH "NOTES" -.PP -All functions listed here are thread\-agnostic and only a single specific thread may operate on a given object during its entire lifetime\&. It\*(Aqs safe to allocate multiple independent objects and use each from a specific thread in parallel\&. However, it\*(Aqs not safe to allocate such an object in one thread, and operate or free it from any other, even if locking is used to ensure these threads don\*(Aqt operate on it at the very same time\&. -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.SH "SEE ALSO" -.PP -\fBsd-journal\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_journal_next.3 b/upstream/opensuse-tumbleweed/man3/sd_journal_next.3 deleted file mode 100644 index 46212a8e..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_journal_next.3 +++ /dev/null @@ -1,165 +0,0 @@ -'\" t -.TH "SD_JOURNAL_NEXT" "3" "" "systemd 254" "sd_journal_next" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_journal_next, sd_journal_previous, sd_journal_step_one, sd_journal_next_skip, sd_journal_previous_skip, SD_JOURNAL_FOREACH, SD_JOURNAL_FOREACH_BACKWARDS \- Advance or set back the read pointer in the journal -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_journal_next('u -.BI "int sd_journal_next(sd_journal\ *" "j" ");" -.HP \w'int\ sd_journal_previous('u -.BI "int sd_journal_previous(sd_journal\ *" "j" ");" -.HP \w'int\ sd_journal_step_one('u -.BI "int sd_journal_step_one(sd_journal\ *" "j" ", int\ " "advanced" ");" -.HP \w'int\ sd_journal_next_skip('u -.BI "int sd_journal_next_skip(sd_journal\ *" "j" ", uint64_t\ " "skip" ");" -.HP \w'int\ sd_journal_previous_skip('u -.BI "int sd_journal_previous_skip(sd_journal\ *" "j" ", uint64_t\ " "skip" ");" -.HP \w'SD_JOURNAL_FOREACH('u -.BI "SD_JOURNAL_FOREACH(sd_journal\ *" "j" ");" -.HP \w'SD_JOURNAL_FOREACH_BACKWARDS('u -.BI "SD_JOURNAL_FOREACH_BACKWARDS(sd_journal\ *" "j" ");" -.SH "DESCRIPTION" -.PP -\fBsd_journal_next()\fR -advances the read pointer into the journal by one entry\&. The only argument taken is a journal context object as allocated via -\fBsd_journal_open\fR(3)\&. After successful invocation the entry may be read with functions such as -\fBsd_journal_get_data\fR(3)\&. -.PP -Similarly, -\fBsd_journal_previous()\fR -sets the read pointer back one entry\&. -.PP -\fBsd_journal_step_one()\fR -also moves the read pointer\&. If the current location is the head of the journal, e\&.g\&. when this is called following -\fBsd_journal_seek_head()\fR, then this is equivalent to -\fBsd_journal_next()\fR, and the argument -\fIadvanced\fR -will be ignored\&. Similarly, if the current location is the tail of the journal, e\&.g\&. when this is called following -\fBsd_journal_seek_tail()\fR, then this is equivalent to -\fBsd_journal_previous()\fR, and -\fIadvanced\fR -will be ignored\&. Otherwise, this is equivalent to -\fBsd_journal_next()\fR -when -\fIadvanced\fR -is non\-zero, and -\fBsd_journal_previous()\fR -when -\fIadvanced\fR -is zero\&. -.PP -\fBsd_journal_next_skip()\fR -and -\fBsd_journal_previous_skip()\fR -advance/set back the read pointer by multiple entries at once, as specified in the -\fIskip\fR -parameter\&. The -\fIskip\fR -parameter must be less than or equal to 2147483647 (2\(S3\(S1\-1)\&. -.PP -The journal is strictly ordered by reception time, and hence advancing to the next entry guarantees that the entry then pointing to is later in time than then previous one, or has the same timestamp\&. -.PP -Note that -\fBsd_journal_get_data\fR(3) -and related calls will fail unless -\fBsd_journal_next()\fR -has been invoked at least once in order to position the read pointer on a journal entry\&. -.PP -Note that the -\fBSD_JOURNAL_FOREACH()\fR -macro may be used as a wrapper around -\fBsd_journal_seek_head\fR(3) -and -\fBsd_journal_next()\fR -in order to make iterating through the journal easier\&. See below for an example\&. Similarly, -\fBSD_JOURNAL_FOREACH_BACKWARDS()\fR -may be used for iterating the journal in reverse order\&. -.SH "RETURN VALUE" -.PP -The four calls return the number of entries advanced/set back on success or a negative errno\-style error code\&. When the end or beginning of the journal is reached, a number smaller than requested is returned\&. More specifically, if -\fBsd_journal_next()\fR -or -\fBsd_journal_previous()\fR -reach the end/beginning of the journal they will return 0, instead of 1 when they are successful\&. This should be considered an EOF marker\&. -.SH "NOTES" -.PP -All functions listed here are thread\-agnostic and only a single specific thread may operate on a given object during its entire lifetime\&. It\*(Aqs safe to allocate multiple independent objects and use each from a specific thread in parallel\&. However, it\*(Aqs not safe to allocate such an object in one thread, and operate or free it from any other, even if locking is used to ensure these threads don\*(Aqt operate on it at the very same time\&. -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.SH "EXAMPLES" -.PP -Iterating through the journal: -.sp -.if n \{\ -.RS 4 -.\} -.nf -/* SPDX\-License\-Identifier: MIT\-0 */ - -#include -#include -#include - -int main(int argc, char *argv[]) { - int r; - sd_journal *j; - r = sd_journal_open(&j, SD_JOURNAL_LOCAL_ONLY); - if (r < 0) { - errno = \-r; - fprintf(stderr, "Failed to open journal: %m\en"); - return 1; - } - SD_JOURNAL_FOREACH(j) { - const char *d; - size_t l; - - r = sd_journal_get_data(j, "MESSAGE", (const void **)&d, &l); - if (r < 0) { - errno = \-r; - fprintf(stderr, "Failed to read message field: %m\en"); - continue; - } - - printf("%\&.*s\en", (int) l, d); - } - sd_journal_close(j); - return 0; -} -.fi -.if n \{\ -.RE -.\} -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-journal\fR(3), -\fBsd_journal_open\fR(3), -\fBsd_journal_get_data\fR(3), -\fBsd_journal_get_realtime_usec\fR(3), -\fBsd_journal_get_cursor\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_journal_open.3 b/upstream/opensuse-tumbleweed/man3/sd_journal_open.3 deleted file mode 100644 index f7afef46..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_journal_open.3 +++ /dev/null @@ -1,182 +0,0 @@ -'\" t -.TH "SD_JOURNAL_OPEN" "3" "" "systemd 254" "sd_journal_open" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_journal_open, sd_journal_open_directory, sd_journal_open_directory_fd, sd_journal_open_files, sd_journal_open_files_fd, sd_journal_open_namespace, sd_journal_close, sd_journal, SD_JOURNAL_LOCAL_ONLY, SD_JOURNAL_RUNTIME_ONLY, SD_JOURNAL_SYSTEM, SD_JOURNAL_CURRENT_USER, SD_JOURNAL_OS_ROOT, SD_JOURNAL_ALL_NAMESPACES, SD_JOURNAL_INCLUDE_DEFAULT_NAMESPACE, SD_JOURNAL_TAKE_DIRECTORY_FD \- Open the system journal for reading -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_journal_open('u -.BI "int sd_journal_open(sd_journal\ **" "ret" ", int\ " "flags" ");" -.HP \w'int\ sd_journal_open_namespace('u -.BI "int sd_journal_open_namespace(sd_journal\ **" "ret" ", const\ char\ *" "namespace" ", int\ " "flags" ");" -.HP \w'int\ sd_journal_open_directory('u -.BI "int sd_journal_open_directory(sd_journal\ **" "ret" ", const\ char\ *" "path" ", int\ " "flags" ");" -.HP \w'int\ sd_journal_open_directory_fd('u -.BI "int sd_journal_open_directory_fd(sd_journal\ **" "ret" ", int\ " "fd" ", int\ " "flags" ");" -.HP \w'int\ sd_journal_open_files('u -.BI "int sd_journal_open_files(sd_journal\ **" "ret" ", const\ char\ **" "paths" ", int\ " "flags" ");" -.HP \w'int\ sd_journal_open_files_fd('u -.BI "int sd_journal_open_files_fd(sd_journal\ **" "ret" ", int\ " "fds[]" ", unsigned\ " "n_fds" ", int\ " "flags" ");" -.HP \w'void\ sd_journal_close('u -.BI "void sd_journal_close(sd_journal\ *" "j" ");" -.SH "DESCRIPTION" -.PP -\fBsd_journal_open()\fR -opens the log journal for reading\&. It will find all journal files automatically and interleave them automatically when reading\&. As first argument it takes a pointer to a -\fIsd_journal\fR -pointer, which, on success, will contain a journal context object\&. The second argument is a flags field, which may consist of the following flags ORed together: -\fBSD_JOURNAL_LOCAL_ONLY\fR -makes sure only journal files generated on the local machine will be opened\&. -\fBSD_JOURNAL_RUNTIME_ONLY\fR -makes sure only volatile journal files will be opened, excluding those which are stored on persistent storage\&. -\fBSD_JOURNAL_SYSTEM\fR -will cause journal files of system services and the kernel (in opposition to user session processes) to be opened\&. -\fBSD_JOURNAL_CURRENT_USER\fR -will cause journal files of the current user to be opened\&. If neither -\fBSD_JOURNAL_SYSTEM\fR -nor -\fBSD_JOURNAL_CURRENT_USER\fR -are specified, all journal file types will be opened\&. -.PP -\fBsd_journal_open_namespace()\fR -is similar to -\fBsd_journal_open()\fR -but takes an additional -\fInamespace\fR -parameter that specifies which journal namespace to operate on\&. If specified as -\fBNULL\fR -the call is identical to -\fBsd_journal_open()\fR\&. If non\-\fBNULL\fR -only data from the namespace identified by the specified parameter is accessed\&. This call understands two additional flags: if -\fBSD_JOURNAL_ALL_NAMESPACES\fR -is specified the -\fInamespace\fR -parameter is ignored and all defined namespaces are accessed simultaneously; if -\fBSD_JOURNAL_INCLUDE_DEFAULT_NAMESPACE\fR -the specified namespace and the default namespace are accessed but no others (this flag has no effect when -\fInamespace\fR -is passed as -\fBNULL\fR)\&. For details about journal namespaces see -\fBsystemd-journald.service\fR(8)\&. -.PP -\fBsd_journal_open_directory()\fR -is similar to -\fBsd_journal_open()\fR -but takes an absolute directory path as argument\&. All journal files in this directory will be opened and interleaved automatically\&. This call also takes a flags argument\&. The flags parameters accepted by this call are -\fBSD_JOURNAL_OS_ROOT\fR, -\fBSD_JOURNAL_SYSTEM\fR, and -\fBSD_JOURNAL_CURRENT_USER\fR\&. If -\fBSD_JOURNAL_OS_ROOT\fR -is specified, journal files are searched for below the usual -/var/log/journal -and -/run/log/journal -relative to the specified path, instead of directly beneath it\&. The other two flags limit which files are opened, the same as for -\fBsd_journal_open()\fR\&. -.PP -\fBsd_journal_open_directory_fd()\fR -is similar to -\fBsd_journal_open_directory()\fR, but takes a file descriptor referencing a directory in the file system instead of an absolute file system path\&. In addition to the flags accepted by -\fBsd_journal_open_directory()\fR, this function also accepts -\fBSD_JOURNAL_TAKE_DIRECTORY_FD\fR\&. If -\fBSD_JOURNAL_TAKE_DIRECTORY_FD\fR -is specified, the function will take the ownership of the specified file descriptor on success, and it will be closed by -\fBsd_journal_close()\fR, hence the caller of the function must not close the file descriptor\&. When the flag is not specified, -\fBsd_journal_close()\fR -will not close the file descriptor, so the caller should close it after -\fBsd_journal_close()\fR\&. -.PP -\fBsd_journal_open_files()\fR -is similar to -\fBsd_journal_open()\fR -but takes a -\fBNULL\fR\-terminated list of file paths to open\&. All files will be opened and interleaved automatically\&. This call also takes a flags argument, but it must be passed as 0 as no flags are currently understood for this call\&. Please note that in the case of a live journal, this function is only useful for debugging, because individual journal files can be rotated at any moment, and the opening of specific files is inherently racy\&. -.PP -\fBsd_journal_open_files_fd()\fR -is similar to -\fBsd_journal_open_files()\fR -but takes an array of open file descriptors that must reference journal files, instead of an array of file system paths\&. Pass the array of file descriptors as second argument, and the number of array entries in the third\&. The flags parameter must be passed as 0\&. -.PP -\fIsd_journal\fR -objects cannot be used in the child after a fork\&. Functions which take a journal object as an argument (\fBsd_journal_next()\fR -and others) will return -\fB\-ECHILD\fR -after a fork\&. -.PP -\fBsd_journal_close()\fR -will close the journal context allocated with -\fBsd_journal_open()\fR -or -\fBsd_journal_open_directory()\fR -and free its resources\&. -.PP -When opening the journal only journal files accessible to the calling user will be opened\&. If journal files are not accessible to the caller, this will be silently ignored\&. -.PP -See -\fBsd_journal_next\fR(3) -for an example of how to iterate through the journal after opening it with -\fBsd_journal_open()\fR\&. -.PP -A journal context object returned by -\fBsd_journal_open()\fR -references a specific journal entry as -\fIcurrent\fR -entry, similar to a file seek index in a classic file system file, but without absolute positions\&. It may be altered with -\fBsd_journal_next\fR(3) -and -\fBsd_journal_seek_head\fR(3) -and related calls\&. The current entry position may be exported in -\fIcursor\fR -strings, as accessible via -\fBsd_journal_get_cursor\fR(3)\&. Cursor strings may be used to globally identify a specific journal entry in a stable way and then later to seek to it (or if the specific entry is not available locally, to its closest entry in time) -\fBsd_journal_seek_cursor\fR(3)\&. -.PP -Notification of journal changes is available via -\fBsd_journal_get_fd()\fR -and related calls\&. -.SH "RETURN VALUE" -.PP -The -\fBsd_journal_open()\fR, -\fBsd_journal_open_directory()\fR, and -\fBsd_journal_open_files()\fR -calls return 0 on success or a negative errno\-style error code\&. -\fBsd_journal_close()\fR -returns nothing\&. -.SH "NOTES" -.PP -All functions listed here are thread\-agnostic and only a single specific thread may operate on a given object during its entire lifetime\&. It\*(Aqs safe to allocate multiple independent objects and use each from a specific thread in parallel\&. However, it\*(Aqs not safe to allocate such an object in one thread, and operate or free it from any other, even if locking is used to ensure these threads don\*(Aqt operate on it at the very same time\&. -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-journal\fR(3), -\fBsystemd-journald.service\fR(8), -\fBsd_journal_next\fR(3), -\fBsd_journal_get_data\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_journal_print.3 b/upstream/opensuse-tumbleweed/man3/sd_journal_print.3 deleted file mode 100644 index 4d66af33..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_journal_print.3 +++ /dev/null @@ -1,221 +0,0 @@ -'\" t -.TH "SD_JOURNAL_PRINT" "3" "" "systemd 254" "sd_journal_print" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_journal_print, sd_journal_printv, sd_journal_send, sd_journal_sendv, sd_journal_perror, SD_JOURNAL_SUPPRESS_LOCATION, sd_journal_print_with_location, sd_journal_printv_with_location, sd_journal_send_with_location, sd_journal_sendv_with_location, sd_journal_perror_with_location \- Submit log entries to the journal -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_journal_print('u -.BI "int sd_journal_print(int\ " "priority" ", const\ char\ *" "format" ", \&...);" -.HP \w'int\ sd_journal_printv('u -.BI "int sd_journal_printv(int\ " "priority" ", const\ char\ *" "format" ", va_list\ " "ap" ");" -.HP \w'int\ sd_journal_send('u -.BI "int sd_journal_send(const\ char\ *" "format" ", \&...);" -.HP \w'int\ sd_journal_sendv('u -.BI "int sd_journal_sendv(const\ struct\ iovec\ *" "iov" ", int\ " "n" ");" -.HP \w'int\ sd_journal_perror('u -.BI "int sd_journal_perror(const\ char\ *" "message" ");" -.HP \w'int\ sd_journal_print_with_location('u -.BI "int sd_journal_print_with_location(int\ " "priority" ", const\ char\ *" "file" ", const\ char\ *" "line" ", const\ char\ *" "func" ", const\ char\ *" "format" ", \&...);" -.HP \w'int\ sd_journal_printv_with_location('u -.BI "int sd_journal_printv_with_location(int\ " "priority" ", const\ char\ *" "file" ", const\ char\ *" "line" ", const\ char\ *" "func" ", const\ char\ *" "format" ", va_list\ " "ap" ");" -.HP \w'int\ sd_journal_send_with_location('u -.BI "int sd_journal_send_with_location(const\ char\ *" "file" ", const\ char\ *" "line" ", const\ char\ *" "func" ", const\ char\ *" "format" ", \&...);" -.HP \w'int\ sd_journal_sendv_with_location('u -.BI "int sd_journal_sendv_with_location(const\ char\ *" "file" ", const\ char\ *" "line" ", const\ char\ *" "func" ", const\ struct\ iovec\ *" "iov" ", int\ " "n" ");" -.HP \w'int\ sd_journal_perror_with_location('u -.BI "int sd_journal_perror_with_location(const\ char\ *" "file" ", const\ char\ *" "line" ", const\ char\ *" "func" ", const\ char\ *" "message" ");" -.SH "DESCRIPTION" -.PP -\fBsd_journal_print()\fR -may be used to submit simple, plain text log entries to the system journal\&. The first argument is a priority value\&. This is followed by a format string and its parameters, similar to -\fBprintf\fR(3) -or -\fBsyslog\fR(3)\&. Note that currently the resulting message will be truncated to -\fBLINE_MAX \- 8\fR\&. The priority value is one of -\fBLOG_EMERG\fR, -\fBLOG_ALERT\fR, -\fBLOG_CRIT\fR, -\fBLOG_ERR\fR, -\fBLOG_WARNING\fR, -\fBLOG_NOTICE\fR, -\fBLOG_INFO\fR, -\fBLOG_DEBUG\fR, as defined in -syslog\&.h, see -\fBsyslog\fR(3) -for details\&. It is recommended to use this call to submit log messages in the application locale or system locale and in UTF\-8 format, but no such restrictions are enforced\&. Note that log messages written using this function are generally not expected to end in a new\-line character\&. However, as all trailing whitespace (including spaces, new\-lines, tabulators and carriage returns) are automatically stripped from the logged string, it is acceptable to specify one (or more)\&. Empty lines (after trailing whitespace removal) are suppressed\&. On non\-empty lines, leading whitespace (as well as inner whitespace) is left unmodified\&. -.PP -\fBsd_journal_printv()\fR -is similar to -\fBsd_journal_print()\fR -but takes a variable argument list encapsulated in an object of type -\fIva_list\fR -(see -\fBstdarg\fR(3) -for more information) instead of the format string\&. It is otherwise equivalent in behavior\&. -.PP -\fBsd_journal_send()\fR -may be used to submit structured log entries to the system journal\&. It takes a series of format strings, each immediately followed by their associated parameters, terminated by -\fBNULL\fR\&. The strings passed should be of the format -"VARIABLE=value"\&. The variable name must be in uppercase and consist only of characters, numbers and underscores, and may not begin with an underscore\&. (All assignments that do not follow this syntax will be ignored\&.) The value can be of any size and format\&. It is highly recommended to submit text strings formatted in the UTF\-8 character encoding only, and submit binary fields only when formatting in UTF\-8 strings is not sensible\&. A number of well\-known fields are defined, see -\fBsystemd.journal-fields\fR(7) -for details, but additional application defined fields may be used\&. A variable may be assigned more than one value per entry\&. If this function is used, trailing whitespace is automatically removed from each formatted field\&. -.PP -\fBsd_journal_sendv()\fR -is similar to -\fBsd_journal_send()\fR -but takes an array of -\fIstruct iovec\fR -(as defined in -uio\&.h, see -\fBreadv\fR(3) -for details) instead of the format string\&. Each structure should reference one field of the entry to submit\&. The second argument specifies the number of structures in the array\&. -\fBsd_journal_sendv()\fR -is particularly useful to submit binary objects to the journal where that is necessary\&. Note that this function will not strip trailing whitespace of the passed fields, but passes the specified data along unmodified\&. This is different from both -\fBsd_journal_print()\fR -and -\fBsd_journal_send()\fR -described above, which are based on format strings, and do strip trailing whitespace\&. -.PP -\fBsd_journal_perror()\fR -is a similar to -\fBperror\fR(3) -and writes a message to the journal that consists of the passed string, suffixed with ": " and a human\-readable representation of the current error code stored in -\fBerrno\fR(3)\&. If the message string is passed as -\fBNULL\fR -or empty string, only the error string representation will be written, prefixed with nothing\&. An additional journal field ERRNO= is included in the entry containing the numeric error code formatted as decimal string\&. The log priority used is -\fBLOG_ERR\fR -(3)\&. -.PP -Note that -\fBsd_journal_send()\fR -is a wrapper around -\fBsd_journal_sendv()\fR -to make it easier to use when only text strings shall be submitted\&. Also, the following two calls are mostly equivalent: -.sp -.if n \{\ -.RS 4 -.\} -.nf -sd_journal_print(LOG_INFO, "Hello World, this is PID %lu!", (unsigned long) getpid()); - -sd_journal_send("MESSAGE=Hello World, this is PID %lu!", (unsigned long) getpid(), - "PRIORITY=%i", LOG_INFO, - NULL); -.fi -.if n \{\ -.RE -.\} -.PP -Note that these calls implicitly add fields for the source file, function name and code line where invoked\&. This is implemented with macros\&. If this is not desired, it can be turned off by defining -\fBSD_JOURNAL_SUPPRESS_LOCATION\fR -before including -sd\-journal\&.h\&. -.PP -\fBsd_journal_print_with_location()\fR, -\fBsd_journal_printv_with_location()\fR, -\fBsd_journal_send_with_location()\fR, -\fBsd_journal_sendv_with_location()\fR, and -\fBsd_journal_perror_with_location()\fR -are similar to their counterparts without -"_with_location", but accept additional parameters to explicitly set the source file name, function, and line\&. The arguments -"file" -and -"line" -must contain valid journal entries including the variable name, e\&.g\&. -"CODE_FILE=src/foo\&.c" -and -"CODE_LINE=666", while -"func" -must only contain the function name, i\&.e\&. the value without -"CODE_FUNC="\&. These variants are primarily useful when writing custom wrappers, for example in bindings for a different language\&. -.PP -\fBsyslog\fR(3) -and -\fBsd_journal_print()\fR -may largely be used interchangeably functionality\-wise\&. However, note that log messages logged via the former take a different path to the journal server than the later, and hence global chronological ordering between the two streams cannot be guaranteed\&. Using -\fBsd_journal_print()\fR -has the benefit of logging source code line, filenames, and functions as metadata along all entries, and guaranteeing chronological ordering with structured log entries that are generated via -\fBsd_journal_send()\fR\&. Using -\fBsyslog()\fR -has the benefit of being more portable\&. -.PP -These functions implement a client to the -\m[blue]\fBNative Journal Protocol\fR\m[]\&\s-2\u[1]\d\s+2\&. -.SH "RETURN VALUE" -.PP -The ten functions return 0 on success or a negative errno\-style error code\&. The -\fBerrno\fR(3) -variable itself is not altered\&. -.PP -If -\fBsystemd-journald\fR(8) -is not running (the socket is not present), those functions do nothing, and also return 0\&. -.SH "THREAD SAFETY" -.PP -All functions listed here are thread\-safe and may be called in parallel from multiple threads\&. -.PP -\fBsd_journal_sendv()\fR -and -\fBsd_journal_sendv_with_location()\fR -are "async signal safe" in the meaning of -\fBsignal-safety\fR(7)\&. -.PP -\fBsd_journal_print()\fR, -\fBsd_journal_printv()\fR, -\fBsd_journal_send()\fR, -\fBsd_journal_perror()\fR, and their counterparts with -"_with_location" -are not async signal safe\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-journal\fR(3), -\fBsd_journal_stream_fd\fR(3), -\fBsyslog\fR(3), -\fBperror\fR(3), -\fBerrno\fR(3), -\fBsystemd.journal-fields\fR(7), -\fBsignal\fR(7), -\fBsocket\fR(7) -.SH "NOTES" -.IP " 1." 4 -Native Journal Protocol -.RS 4 -\%https://systemd.io/JOURNAL_NATIVE_PROTOCOL -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_journal_query_unique.3 b/upstream/opensuse-tumbleweed/man3/sd_journal_query_unique.3 deleted file mode 100644 index 994eacd8..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_journal_query_unique.3 +++ /dev/null @@ -1,203 +0,0 @@ -'\" t -.TH "SD_JOURNAL_QUERY_UNIQUE" "3" "" "systemd 254" "sd_journal_query_unique" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_journal_query_unique, sd_journal_enumerate_unique, sd_journal_enumerate_available_unique, sd_journal_restart_unique, SD_JOURNAL_FOREACH_UNIQUE \- Read unique data fields from the journal -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_journal_query_unique('u -.BI "int sd_journal_query_unique(sd_journal\ *" "j" ", const\ char\ *" "field" ");" -.HP \w'int\ sd_journal_enumerate_available_unique('u -.BI "int sd_journal_enumerate_available_unique(sd_journal\ *" "j" ", const\ void\ **" "data" ", size_t\ *" "length" ");" -.HP \w'int\ sd_journal_enumerate_unique('u -.BI "int sd_journal_enumerate_unique(sd_journal\ *" "j" ", const\ void\ **" "data" ", size_t\ *" "length" ");" -.HP \w'void\ sd_journal_restart_unique('u -.BI "void sd_journal_restart_unique(sd_journal\ *" "j" ");" -.HP \w'SD_JOURNAL_FOREACH_UNIQUE('u -.BI "SD_JOURNAL_FOREACH_UNIQUE(sd_journal\ *" "j" ", const\ void\ *" "data" ", size_t\ " "length" ");" -.SH "DESCRIPTION" -.PP -\fBsd_journal_query_unique()\fR -queries the journal for all unique values the specified field can take\&. It takes two arguments: the journal to query and the field name to look for\&. Well\-known field names are listed on -\fBsystemd.journal-fields\fR(7), but any field can be specified\&. Field names must be specified without a trailing -"="\&. After this function has been executed successfully the field values may be queried using -\fBsd_journal_enumerate_unique()\fR -and -\fBsd_journal_enumerate_available_unique()\fR\&. Invoking one of those calls will change the field name being queried and reset the enumeration index to the first field value that matches\&. -.PP -\fBsd_journal_enumerate_unique()\fR -may be used to iterate through all data fields which match the previously selected field name as set with -\fBsd_journal_query_unique()\fR\&. On each invocation the next field data matching the field name is returned\&. The order of the returned data fields is not defined\&. It takes three arguments: the journal object, plus a pair of pointers to pointer/size variables where the data object and its size shall be stored\&. The returned data is in a read\-only memory map and is only valid until the next invocation of -\fBsd_journal_enumerate_unique()\fR\&. Note that the data returned will be prefixed with the field name and -"="\&. Note that this call is subject to the data field size threshold as controlled by -\fBsd_journal_set_data_threshold()\fR -and only the initial part of the field up to the threshold is returned\&. An error is returned for fields which cannot be retrieved\&. See the error list below for details\&. -.PP -\fBsd_journal_enumerate_available_unique()\fR -is similar to -\fBsd_journal_enumerate_unique()\fR, but silently skips any fields which may be valid, but are too large or not supported by current implementation\&. -.PP -\fBsd_journal_restart_unique()\fR -resets the data enumeration index to the beginning of the list\&. The next invocation of -\fBsd_journal_enumerate_unique()\fR -will return the first field data matching the field name again\&. -.PP -Note that the -\fBSD_JOURNAL_FOREACH_UNIQUE()\fR -macro may be used as a handy wrapper around -\fBsd_journal_restart_unique()\fR -and -\fBsd_journal_enumerate_available_unique()\fR\&. -.PP -Note that these functions currently are not influenced by matches set with -\fBsd_journal_add_match()\fR -but this might change in a later version of this software\&. -.PP -To enumerate all field names currently in use (and thus all suitable field parameters for -\fBsd_journal_query_unique()\fR), use the -\fBsd_journal_enumerate_fields\fR(3) -call\&. -.SH "RETURN VALUE" -.PP -\fBsd_journal_query_unique()\fR -returns 0 on success or a negative errno\-style error code\&. -\fBsd_journal_enumerate_unique()\fR -and -\fBsd_journal_query_available_unique()\fR -return a positive integer if the next field data has been read, 0 when no more fields remain, or a negative errno\-style error code\&. -\fBsd_journal_restart_unique()\fR -doesn\*(Aqt return anything\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -One of the required parameters is -\fBNULL\fR -or invalid\&. -.RE -.PP -\fB\-ECHILD\fR -.RS 4 -The journal object was created in a different process, library or module instance\&. -.RE -.PP -\fB\-EADDRNOTAVAIL\fR -.RS 4 -The read pointer is not positioned at a valid entry; -\fBsd_journal_next\fR(3) -or a related call has not been called at least once\&. -.RE -.PP -\fB\-ENOENT\fR -.RS 4 -The current entry does not include the specified field\&. -.RE -.PP -\fB\-ENOBUFS\fR -.RS 4 -A compressed entry is too large\&. -.RE -.PP -\fB\-E2BIG\fR -.RS 4 -The data field is too large for this computer architecture (e\&.g\&. above 4 GB on a 32\-bit architecture)\&. -.RE -.PP -\fB\-EPROTONOSUPPORT\fR -.RS 4 -The journal is compressed with an unsupported method or the journal uses an unsupported feature\&. -.RE -.PP -\fB\-EBADMSG\fR -.RS 4 -The journal is corrupted (possibly just the entry being iterated over)\&. -.RE -.PP -\fB\-EIO\fR -.RS 4 -An I/O error was reported by the kernel\&. -.RE -.SH "NOTES" -.PP -All functions listed here are thread\-agnostic and only a single specific thread may operate on a given object during its entire lifetime\&. It\*(Aqs safe to allocate multiple independent objects and use each from a specific thread in parallel\&. However, it\*(Aqs not safe to allocate such an object in one thread, and operate or free it from any other, even if locking is used to ensure these threads don\*(Aqt operate on it at the very same time\&. -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.SH "EXAMPLES" -.PP -Use the -\fBSD_JOURNAL_FOREACH_UNIQUE()\fR -macro to iterate through all values a field of the journal can take (and which can be accessed on the given architecture and are not compressed with an unsupported mechanism)\&. The following example lists all unit names referenced in the journal: -.sp -.if n \{\ -.RS 4 -.\} -.nf -/* SPDX\-License\-Identifier: MIT\-0 */ - -#include -#include -#include - -int main(int argc, char *argv[]) { - sd_journal *j; - const void *d; - size_t l; - int r; - - r = sd_journal_open(&j, SD_JOURNAL_LOCAL_ONLY); - if (r < 0) { - errno = \-r; - fprintf(stderr, "Failed to open journal: %m\en"); - return 1; - } - r = sd_journal_query_unique(j, "_SYSTEMD_UNIT"); - if (r < 0) { - errno = \-r; - fprintf(stderr, "Failed to query journal: %m\en"); - return 1; - } - SD_JOURNAL_FOREACH_UNIQUE(j, d, l) - printf("%\&.*s\en", (int) l, (const char*) d); - sd_journal_close(j); - return 0; -} -.fi -.if n \{\ -.RE -.\} -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsystemd.journal-fields\fR(7), -\fBsd-journal\fR(3), -\fBsd_journal_open\fR(3), -\fBsd_journal_enumerate_fields\fR(3), -\fBsd_journal_get_data\fR(3), -\fBsd_journal_add_match\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_journal_seek_head.3 b/upstream/opensuse-tumbleweed/man3/sd_journal_seek_head.3 deleted file mode 100644 index 6a117f67..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_journal_seek_head.3 +++ /dev/null @@ -1,91 +0,0 @@ -'\" t -.TH "SD_JOURNAL_SEEK_HEAD" "3" "" "systemd 254" "sd_journal_seek_head" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_journal_seek_head, sd_journal_seek_tail, sd_journal_seek_monotonic_usec, sd_journal_seek_realtime_usec, sd_journal_seek_cursor \- Seek to a position in the journal -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_journal_seek_head('u -.BI "int sd_journal_seek_head(sd_journal\ *" "j" ");" -.HP \w'int\ sd_journal_seek_tail('u -.BI "int sd_journal_seek_tail(sd_journal\ *" "j" ");" -.HP \w'int\ sd_journal_seek_monotonic_usec('u -.BI "int sd_journal_seek_monotonic_usec(sd_journal\ *" "j" ", sd_id128_t\ " "boot_id" ", uint64_t\ " "usec" ");" -.HP \w'int\ sd_journal_seek_realtime_usec('u -.BI "int sd_journal_seek_realtime_usec(sd_journal\ *" "j" ", uint64_t\ " "usec" ");" -.HP \w'int\ sd_journal_seek_cursor('u -.BI "int sd_journal_seek_cursor(sd_journal\ *" "j" ", const\ char\ *" "cursor" ");" -.SH "DESCRIPTION" -.PP -\fBsd_journal_seek_head()\fR -seeks to the beginning of the journal, i\&.e\&. to the position before the oldest available entry\&. -.PP -Similarly, -\fBsd_journal_seek_tail()\fR -may be used to seek to the end of the journal, i\&.e\&. the position after the most recent available entry\&. -.PP -\fBsd_journal_seek_monotonic_usec()\fR -seeks to a position with the specified monotonic timestamp, i\&.e\&. -\fBCLOCK_MONOTONIC\fR\&. Since monotonic time restarts on every reboot a boot ID needs to be specified as well\&. -.PP -\fBsd_journal_seek_realtime_usec()\fR -seeks to a position with the specified realtime (wallclock) timestamp, i\&.e\&. -\fBCLOCK_REALTIME\fR\&. Note that the realtime clock is not necessarily monotonic\&. If a realtime timestamp is ambiguous, it is not defined which position is sought to\&. -.PP -\fBsd_journal_seek_cursor()\fR -seeks to the position at the specified cursor string\&. For details on cursors, see -\fBsd_journal_get_cursor\fR(3)\&. If no entry matching the specified cursor is found the call will seek to the next closest entry (in terms of time) instead\&. To verify whether the newly selected entry actually matches the cursor, use -\fBsd_journal_test_cursor\fR(3)\&. -.PP -Note that these calls do not actually make any entry the new current entry, this needs to be done in a separate step with a subsequent -\fBsd_journal_next\fR(3) -invocation (or a similar call)\&. Only then, entry data may be retrieved via -\fBsd_journal_get_data\fR(3) -or an entry cursor be retrieved via -\fBsd_journal_get_cursor\fR(3)\&. If no entry exists that matches exactly the specified seek address, the next closest is sought to\&. If -\fBsd_journal_next\fR(3) -is used, the closest following entry will be sought to, if -\fBsd_journal_previous\fR(3) -is used the closest preceding entry is sought to\&. -.SH "RETURN VALUE" -.PP -The functions return 0 on success or a negative errno\-style error code\&. -.SH "NOTES" -.PP -All functions listed here are thread\-agnostic and only a single specific thread may operate on a given object during its entire lifetime\&. It\*(Aqs safe to allocate multiple independent objects and use each from a specific thread in parallel\&. However, it\*(Aqs not safe to allocate such an object in one thread, and operate or free it from any other, even if locking is used to ensure these threads don\*(Aqt operate on it at the very same time\&. -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-journal\fR(3), -\fBsd_journal_open\fR(3), -\fBsd_journal_next\fR(3), -\fBsd_journal_get_data\fR(3), -\fBsd_journal_get_cursor\fR(3), -\fBsd_journal_get_realtime_usec\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_journal_stream_fd.3 b/upstream/opensuse-tumbleweed/man3/sd_journal_stream_fd.3 deleted file mode 100644 index 3a698e96..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_journal_stream_fd.3 +++ /dev/null @@ -1,129 +0,0 @@ -'\" t -.TH "SD_JOURNAL_STREAM_FD" "3" "" "systemd 254" "sd_journal_stream_fd" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_journal_stream_fd \- Create log stream file descriptor to the journal -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_journal_stream_fd('u -.BI "int sd_journal_stream_fd(const\ char\ *" "identifier" ", int\ " "priority" ", int\ " "level_prefix" ");" -.SH "DESCRIPTION" -.PP -\fBsd_journal_stream_fd()\fR -may be used to create a log stream file descriptor\&. Log messages written to this file descriptor as simple newline\-separated text strings are written to the journal\&. This file descriptor can be used internally by applications or be made standard output or standard error of other processes executed\&. -.PP -\fBsd_journal_stream_fd()\fR -takes a short program identifier string as first argument, which will be written to the journal as SYSLOG_IDENTIFIER= field for each log entry (see -\fBsystemd.journal-fields\fR(7) -for more information)\&. The second argument shall be the default priority level for all messages\&. The priority level is one of -\fBLOG_EMERG\fR, -\fBLOG_ALERT\fR, -\fBLOG_CRIT\fR, -\fBLOG_ERR\fR, -\fBLOG_WARNING\fR, -\fBLOG_NOTICE\fR, -\fBLOG_INFO\fR, -\fBLOG_DEBUG\fR, as defined in -syslog\&.h, see -\fBsyslog\fR(3) -for details\&. The third argument is a boolean: if true kernel\-style log level prefixes (such as -\fBSD_WARNING\fR) are interpreted, see -\fBsd-daemon\fR(3) -for more information\&. -.PP -It is recommended that applications log UTF\-8 messages only with this API, but this is not enforced\&. -.PP -Each invocation of -\fBsd_journal_stream_fd()\fR -allocates a new log stream file descriptor, that is not shared with prior or later invocations\&. The file descriptor is write\-only (its reading direction is shut down), and -\fBO_NONBLOCK\fR -is turned off initially\&. -.SH "RETURN VALUE" -.PP -The call returns a valid write\-only file descriptor on success or a negative errno\-style error code\&. -.SH "SIGNAL SAFETY" -.PP -\fBsd_journal_stream_fd()\fR -is "async signal safe" in the meaning of -\fBsignal-safety\fR(7)\&. -.SH "NOTES" -.PP -All functions listed here are thread\-safe and may be called in parallel from multiple threads\&. -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.SH "EXAMPLES" -.PP -Creating a log stream suitable for -\fBfprintf\fR(3): -.sp -.if n \{\ -.RS 4 -.\} -.nf -/* SPDX\-License\-Identifier: MIT\-0 */ - -#include -#include -#include -#include -#include -#include - -int main(int argc, char *argv[]) { - int fd; - FILE *log; - fd = sd_journal_stream_fd("test", LOG_INFO, 1); - if (fd < 0) { - errno = \-fd; - fprintf(stderr, "Failed to create stream fd: %m\en"); - return 1; - } - log = fdopen(fd, "w"); - if (!log) { - fprintf(stderr, "Failed to create file object: %m\en"); - close(fd); - return 1; - } - fprintf(log, "Hello World!\en"); - fprintf(log, SD_WARNING "This is a warning!\en"); - fclose(log); - return 0; -} -.fi -.if n \{\ -.RE -.\} -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-journal\fR(3), -\fBsd-daemon\fR(3), -\fBsd_journal_print\fR(3), -\fBsyslog\fR(3), -\fBfprintf\fR(3), -\fBsystemd.journal-fields\fR(7) diff --git a/upstream/opensuse-tumbleweed/man3/sd_listen_fds.3 b/upstream/opensuse-tumbleweed/man3/sd_listen_fds.3 deleted file mode 100644 index 79fe28e9..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_listen_fds.3 +++ /dev/null @@ -1,213 +0,0 @@ -'\" t -.TH "SD_LISTEN_FDS" "3" "" "systemd 254" "sd_listen_fds" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_listen_fds, sd_listen_fds_with_names, SD_LISTEN_FDS_START \- Check for file descriptors passed by the system manager -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.sp -.ft B -.nf -#define SD_LISTEN_FDS_START 3 -.fi -.ft -.HP \w'int\ sd_listen_fds('u -.BI "int sd_listen_fds(int\ " "unset_environment" ");" -.HP \w'int\ sd_listen_fds_with_names('u -.BI "int sd_listen_fds_with_names(int\ " "unset_environment" ", char***\ " "names" ");" -.SH "DESCRIPTION" -.PP -\fBsd_listen_fds()\fR -may be invoked by a daemon to check for file descriptors passed by the service manager as part of the socket\-based activation and file descriptor store logic\&. It returns the number of received file descriptors\&. If no file descriptors have been received, zero is returned\&. The first file descriptor may be found at file descriptor number 3 (i\&.e\&. -\fBSD_LISTEN_FDS_START\fR), the remaining descriptors follow at 4, 5, 6, \&..., if any\&. -.PP -The file descriptors passed this way may be closed at will by the processes receiving them: it\*(Aqs up to the processes themselves to close them after use or whether to leave them open until the process exits (in which case the kernel closes them automatically)\&. Note that the file descriptors received by daemons are duplicates of the file descriptors the service manager originally allocated and bound and of which it continuously keeps a copy (except if -\fIAccept=yes\fR -is used)\&. This means any socket option changes and other changes made to the sockets will be visible to the service manager too\&. Most importantly this means it\*(Aqs generally not a good idea to invoke -\fBshutdown\fR(2) -on such sockets, since it will shut down communication on the file descriptor the service manager holds for the same socket too\&. Also note that if a daemon is restarted (and its associated sockets are not) it will receive file descriptors to the very same sockets as the earlier invocations, thus all socket options applied then will still apply\&. -.PP -If a daemon receives more than one file descriptor, they will be passed in the same order as configured in the systemd socket unit file (see -\fBsystemd.socket\fR(5) -for details) \(em if there\*(Aqs only one such file (see below)\&. Nonetheless, it is recommended to verify the correct socket types before using them\&. To simplify this checking, the functions -\fBsd_is_fifo\fR(3), -\fBsd_is_socket\fR(3), -\fBsd_is_socket_inet\fR(3), -\fBsd_is_socket_unix\fR(3) -are provided\&. In order to maximize flexibility, it is recommended to make these checks as loose as possible without allowing incorrect setups\&. i\&.e\&. often, the actual port number a socket is bound to matters little for the service to work, hence it should not be verified\&. On the other hand, whether a socket is a datagram or stream socket matters a lot for the most common program logics and should be checked\&. -.PP -This function call will set the -\fBFD_CLOEXEC\fR -flag for all passed file descriptors to avoid further inheritance to children of the calling process\&. -.PP -If multiple socket units activate the same service, the order of the file descriptors passed to its main process is undefined\&. If additional file descriptors have been passed to the service manager using -\fBsd_pid_notify_with_fds\fR(3)\*(Aqs -"FDSTORE=1" -messages, these file descriptors are passed last, in arbitrary order, and with duplicates removed\&. -.PP -If the -\fIunset_environment\fR -parameter is non\-zero, -\fBsd_listen_fds()\fR -will unset the -\fI$LISTEN_FDS\fR, -\fI$LISTEN_PID\fR -and -\fI$LISTEN_FDNAMES\fR -environment variables before returning (regardless of whether the function call itself succeeded or not)\&. Further calls to -\fBsd_listen_fds()\fR -will then return zero, but the variables are no longer inherited by child processes\&. -.PP -\fBsd_listen_fds_with_names()\fR -is like -\fBsd_listen_fds()\fR, but optionally also returns an array of strings with identification names for the passed file descriptors, if that is available and the -\fInames\fR -parameter is non\-\fBNULL\fR\&. This information is read from the -\fI$LISTEN_FDNAMES\fR -variable, which may contain a colon\-separated list of names\&. For socket\-activated services, these names may be configured with the -\fIFileDescriptorName=\fR -setting in socket unit files, see -\fBsystemd.socket\fR(5) -for details\&. For file descriptors pushed into the file descriptor store (see above), the name is set via the -\fIFDNAME=\fR -field transmitted via -\fBsd_pid_notify_with_fds()\fR\&. The primary use case for these names are services which accept a variety of file descriptors which are not recognizable with functions like -\fBsd_is_socket()\fR -alone, and thus require identification via a name\&. It is recommended to rely on named file descriptors only if identification via -\fBsd_is_socket()\fR -and related calls is not sufficient\&. Note that the names used are not unique in any way\&. The returned array of strings has as many entries as file descriptors have been received, plus a final -\fBNULL\fR -pointer terminating the array\&. The caller needs to free the array itself and each of its elements with libc\*(Aqs -\fBfree()\fR -call after use\&. If the -\fInames\fR -parameter is -\fBNULL\fR, the call is entirely equivalent to -\fBsd_listen_fds()\fR\&. -.PP -Under specific conditions, the following automatic file descriptor names are returned: -.sp -.it 1 an-trap -.nr an-no-space-flag 1 -.nr an-break-flag 1 -.br -.B Table\ \&1.\ \& Special names -.TS -allbox tab(:); -lB lB. -T{ -Name -T}:T{ -Description -T} -.T& -l l -l l -l l. -T{ -"unknown" -T}:T{ -The process received no name for the specific file descriptor from the service manager\&. -T} -T{ -"stored" -T}:T{ -The file descriptor originates in the service manager\*(Aqs per\-service file descriptor store, and the \fIFDNAME=\fR field was absent when the file descriptor was submitted to the service manager\&. -T} -T{ -"connection" -T}:T{ -The service was activated in per\-connection style using \fIAccept=yes\fR in the socket unit file, and the file descriptor is the connection socket\&. -T} -.TE -.sp 1 -.PP -For further information on the file descriptor store see the -\m[blue]\fBFile Descriptor Store\fR\m[]\&\s-2\u[1]\d\s+2 -overview\&. -.SH "RETURN VALUE" -.PP -On failure, these calls returns a negative errno\-style error code\&. If -\fI$LISTEN_FDS\fR/\fI$LISTEN_PID\fR -was not set or was not correctly set for this daemon and hence no file descriptors were received, 0 is returned\&. Otherwise, the number of file descriptors passed is returned\&. The application may find them starting with file descriptor SD_LISTEN_FDS_START, i\&.e\&. file descriptor 3\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.PP -Internally, -\fBsd_listen_fds()\fR -checks whether the -\fI$LISTEN_PID\fR -environment variable equals the daemon PID\&. If not, it returns immediately\&. Otherwise, it parses the number passed in the -\fI$LISTEN_FDS\fR -environment variable, then sets the FD_CLOEXEC flag for the parsed number of file descriptors starting from SD_LISTEN_FDS_START\&. Finally, it returns the parsed number\&. -\fBsd_listen_fds_with_names()\fR -does the same but also parses -\fI$LISTEN_FDNAMES\fR -if set\&. -.PP -These functions are not designed for services that specify -\fIStandardInput=socket\fR -as the -\fI$LISTEN_FDS\fR -variable is not set in their environment\&. -.SH "ENVIRONMENT" -.PP -\fI$LISTEN_PID\fR, \fI$LISTEN_FDS\fR, \fI$LISTEN_FDNAMES\fR -.RS 4 -Set by the service manager for supervised processes that use socket\-based activation\&. This environment variable specifies the data -\fBsd_listen_fds()\fR -and -\fBsd_listen_fds_with_names()\fR -parses\&. See above for details\&. -.RE -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-daemon\fR(3), -\fBsd_is_fifo\fR(3), -\fBsd_is_socket\fR(3), -\fBsd_is_socket_inet\fR(3), -\fBsd_is_socket_unix\fR(3), -\fBsd_pid_notify_with_fds\fR(3), -\fBdaemon\fR(7), -\fBsystemd.service\fR(5), -\fBsystemd.socket\fR(5) -.SH "NOTES" -.IP " 1." 4 -File Descriptor Store -.RS 4 -\%https://systemd.io/FILE_DESCRIPTOR_STORE -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_login_monitor_new.3 b/upstream/opensuse-tumbleweed/man3/sd_login_monitor_new.3 deleted file mode 100644 index 01684e18..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_login_monitor_new.3 +++ /dev/null @@ -1,222 +0,0 @@ -'\" t -.TH "SD_LOGIN_MONITOR_NEW" "3" "" "systemd 254" "sd_login_monitor_new" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_login_monitor_new, sd_login_monitor_unref, sd_login_monitor_unrefp, sd_login_monitor_flush, sd_login_monitor_get_fd, sd_login_monitor_get_events, sd_login_monitor_get_timeout, sd_login_monitor \- Monitor login sessions, seats, users and virtual machines/containers -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_login_monitor_new('u -.BI "int sd_login_monitor_new(const\ char\ *" "category" ", sd_login_monitor\ **" "ret" ");" -.HP \w'sd_login_monitor\ *sd_login_monitor_unref('u -.BI "sd_login_monitor *sd_login_monitor_unref(sd_login_monitor\ *" "m" ");" -.HP \w'void\ sd_login_monitor_unrefp('u -.BI "void sd_login_monitor_unrefp(sd_login_monitor\ **" "m" ");" -.HP \w'int\ sd_login_monitor_flush('u -.BI "int sd_login_monitor_flush(sd_login_monitor\ *" "m" ");" -.HP \w'int\ sd_login_monitor_get_fd('u -.BI "int sd_login_monitor_get_fd(sd_login_monitor\ *" "m" ");" -.HP \w'int\ sd_login_monitor_get_events('u -.BI "int sd_login_monitor_get_events(sd_login_monitor\ *" "m" ");" -.HP \w'int\ sd_login_monitor_get_timeout('u -.BI "int sd_login_monitor_get_timeout(sd_login_monitor\ *" "m" ", uint64_t\ *" "timeout_usec" ");" -.SH "DESCRIPTION" -.PP -\fBsd_login_monitor_new()\fR -may be used to monitor login sessions, users, seats, and virtual machines/containers\&. Via a monitor object a file descriptor can be integrated into an application defined event loop which is woken up each time a user logs in, logs out or a seat is added or removed, or a session, user, seat or virtual machine/container changes state otherwise\&. The first parameter takes a string which can be -"seat" -(to get only notifications about seats being added, removed or changed), -"session" -(to get only notifications about sessions being created or removed or changed), -"uid" -(to get only notifications when a user changes state in respect to logins) or -"machine" -(to get only notifications when a virtual machine or container is started or stopped)\&. If notifications shall be generated in all these conditions, -\fBNULL\fR -may be passed\&. Note that in the future additional categories may be defined\&. The second parameter returns a monitor object and needs to be freed with the -\fBsd_login_monitor_unref()\fR -call after use\&. -.PP -\fBsd_login_monitor_unref()\fR -may be used to destroy a monitor object\&. Note that this will invalidate any file descriptor returned by -\fBsd_login_monitor_get_fd()\fR\&. -.PP -\fBsd_login_monitor_unrefp()\fR -is similar to -\fBsd_login_monitor_unref()\fR -but takes a pointer to a pointer to an -\fBsd_login_monitor\fR -object\&. This call is useful in conjunction with GCC\*(Aqs and LLVM\*(Aqs -\m[blue]\fBClean\-up Variable Attribute\fR\m[]\&\s-2\u[1]\d\s+2\&. Note that this function is defined as inline function\&. Use a declaration like the following, in order to allocate a login monitor object that is freed automatically as the code block is left: -.sp -.if n \{\ -.RS 4 -.\} -.nf -{ - __attribute__((cleanup(sd_login_monitor_unrefp))) sd_login_monitor *m = NULL; - int r; - \&... - r = sd_login_monitor_new(NULL, &m); - if (r < 0) { - errno = \-r; - fprintf(stderr, "Failed to allocate login monitor object: %m\en"); - } - \&... -} -.fi -.if n \{\ -.RE -.\} -.PP -\fBsd_login_monitor_flush()\fR -may be used to reset the wakeup state of the monitor object\&. Whenever an event causes the monitor to wake up the event loop via the file descriptor this function needs to be called to reset the wake\-up state\&. If this call is not invoked, the file descriptor will immediately wake up the event loop again\&. -.PP -\fBsd_login_monitor_unref()\fR -and -\fBsd_login_monitor_unrefp()\fR -execute no operation if the passed in monitor object is -\fBNULL\fR\&. -.PP -\fBsd_login_monitor_get_fd()\fR -may be used to retrieve the file descriptor of the monitor object that may be integrated in an application defined event loop, based around -\fBpoll\fR(2) -or a similar interface\&. The application should include the returned file descriptor as wake\-up source for the events mask returned by -\fBsd_login_monitor_get_events()\fR\&. It should pass a timeout value as returned by -\fBsd_login_monitor_get_timeout()\fR\&. Whenever a wake\-up is triggered the file descriptor needs to be reset via -\fBsd_login_monitor_flush()\fR\&. An application needs to reread the login state with a function like -\fBsd_get_seats\fR(3) -or similar to determine what changed\&. -.PP -\fBsd_login_monitor_get_events()\fR -will return the -\fBpoll()\fR -mask to wait for\&. This function will return a combination of -\fBPOLLIN\fR, -\fBPOLLOUT\fR -and similar to fill into the -"\&.events" -field of -\fIstruct pollfd\fR\&. -.PP -\fBsd_login_monitor_get_timeout()\fR -will return a timeout value for usage in -\fBpoll()\fR\&. This returns a value in microseconds since the epoch of -\fBCLOCK_MONOTONIC\fR -for timing out -\fBpoll()\fR -in -\fItimeout_usec\fR\&. See -\fBclock_gettime\fR(2) -for details about -\fBCLOCK_MONOTONIC\fR\&. If there is no timeout to wait for this will fill in -\fB(uint64_t) \-1\fR -instead\&. Note that -\fBpoll()\fR -takes a relative timeout in milliseconds rather than an absolute timeout in microseconds\&. To convert the absolute \*(Aqμs\*(Aq timeout into relative \*(Aqms\*(Aq, use code like the following: -.sp -.if n \{\ -.RS 4 -.\} -.nf -uint64_t t; -int msec; -sd_login_monitor_get_timeout(m, &t); -if (t == (uint64_t) \-1) - msec = \-1; -else { - struct timespec ts; - uint64_t n; - clock_gettime(CLOCK_MONOTONIC, &ts); - n = (uint64_t) ts\&.tv_sec * 1000000 + ts\&.tv_nsec / 1000; - msec = t > n ? (int) ((t \- n + 999) / 1000) : 0; -} -.fi -.if n \{\ -.RE -.\} -.PP -The code above does not do any error checking for brevity\*(Aqs sake\&. The calculated -\fImsec\fR -integer can be passed directly as -\fBpoll()\fR\*(Aqs timeout parameter\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_login_monitor_new()\fR, -\fBsd_login_monitor_flush()\fR -and -\fBsd_login_monitor_get_timeout()\fR -return 0 or a positive integer\&. On success, -\fBsd_login_monitor_get_fd()\fR -returns a Unix file descriptor\&. On success, -\fBsd_login_monitor_get_events()\fR -returns a combination of -\fBPOLLIN\fR, -\fBPOLLOUT\fR -and suchlike\&. On failure, these calls return a negative errno\-style error code\&. -.PP -\fBsd_login_monitor_unref()\fR -always returns -\fBNULL\fR\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EINVAL\fR -.RS 4 -An input parameter was invalid (out of range, or -\fBNULL\fR, where that is not accepted)\&. The specified category to watch is not known\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-login\fR(3), -\fBsd_get_seats\fR(3), -\fBpoll\fR(2), -\fBclock_gettime\fR(2) -.SH "NOTES" -.IP " 1." 4 -Clean-up Variable Attribute -.RS 4 -\%https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_machine_get_class.3 b/upstream/opensuse-tumbleweed/man3/sd_machine_get_class.3 deleted file mode 100644 index 247aaf79..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_machine_get_class.3 +++ /dev/null @@ -1,96 +0,0 @@ -'\" t -.TH "SD_MACHINE_GET_CLASS" "3" "" "systemd 254" "sd_machine_get_class" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_machine_get_class, sd_machine_get_ifindices \- Determine the class and network interface indices of a locally running virtual machine or container -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_machine_get_class('u -.BI "int sd_machine_get_class(const\ char*\ " "machine" ", char\ **" "class" ");" -.HP \w'int\ sd_machine_get_ifindices('u -.BI "int sd_machine_get_ifindices(const\ char*\ " "machine" ", int\ **" "ret_ifindices" ");" -.SH "DESCRIPTION" -.PP -\fBsd_machine_get_class()\fR -may be used to determine the class of a locally running virtual machine or container that is registered with -\fBsystemd-machined.service\fR(8)\&. The string returned is either -"vm" -or -"container"\&. The returned string needs to be freed with the libc -\fBfree\fR(3) -call after use\&. -.PP -\fBsd_machine_get_ifindices()\fR -may be used to determine the numeric indices of the network interfaces on the host that are pointing towards the specified locally running virtual machine or container\&. The vm or container must be registered with -\fBsystemd-machined.service\fR(8)\&. The output parameter -\fIret_ifindices\fR -may be passed as -\fBNULL\fR -when the output value is not needed\&. The returned array needs to be freed with the libc -\fBfree\fR(3) -call after use\&. -.SH "RETURN VALUE" -.PP -On success, these functions return a non\-negative integer\&. -\fBsd_machine_get_ifindices()\fR -returns the number of the relevant network interfaces\&. On failure, these calls return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ENXIO\fR -.RS 4 -The specified machine does not exist or is currently not running\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -An input parameter was invalid (out of range, or -\fBNULL\fR, where that is not accepted)\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-login\fR(3), -\fBsystemd-machined.service\fR(8), -\fBsd_pid_get_machine_name\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_notify.3 b/upstream/opensuse-tumbleweed/man3/sd_notify.3 deleted file mode 100644 index 3599a3e4..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_notify.3 +++ /dev/null @@ -1,471 +0,0 @@ -'\" t -.TH "SD_NOTIFY" "3" "" "systemd 254" "sd_notify" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_notify, sd_notifyf, sd_pid_notify, sd_pid_notifyf, sd_pid_notify_with_fds, sd_pid_notifyf_with_fds, sd_notify_barrier, sd_pid_notify_barrier \- Notify service manager about start\-up completion and other service status changes -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_notify('u -.BI "int sd_notify(int\ " "unset_environment" ", const\ char\ *" "state" ");" -.HP \w'int\ sd_notifyf('u -.BI "int sd_notifyf(int\ " "unset_environment" ", const\ char\ *" "format" ", \&...);" -.HP \w'int\ sd_pid_notify('u -.BI "int sd_pid_notify(pid_t\ " "pid" ", int\ " "unset_environment" ", const\ char\ *" "state" ");" -.HP \w'int\ sd_pid_notifyf('u -.BI "int sd_pid_notifyf(pid_t\ " "pid" ", int\ " "unset_environment" ", const\ char\ *" "format" ", \&...);" -.HP \w'int\ sd_pid_notify_with_fds('u -.BI "int sd_pid_notify_with_fds(pid_t\ " "pid" ", int\ " "unset_environment" ", const\ char\ *" "state" ", const\ int\ *" "fds" ", unsigned\ " "n_fds" ");" -.HP \w'int\ sd_pid_notifyf_with_fds('u -.BI "int sd_pid_notifyf_with_fds(pid_t\ " "pid" ", int\ " "unset_environment" ", const\ int\ *" "fds" ", size_t\ " "n_fds" ", const\ char\ *" "format" ", \&...);" -.HP \w'int\ sd_notify_barrier('u -.BI "int sd_notify_barrier(int\ " "unset_environment" ", uint64_t\ " "timeout" ");" -.HP \w'int\ sd_pid_notify_barrier('u -.BI "int sd_pid_notify_barrier(pid_t\ " "pid" ", int\ " "unset_environment" ", uint64_t\ " "timeout" ");" -.SH "DESCRIPTION" -.PP -\fBsd_notify()\fR -may be called by a service to notify the service manager about state changes\&. It can be used to send arbitrary information, encoded in an environment\-block\-like string\&. Most importantly, it can be used for start\-up completion notification\&. -.PP -If the -\fIunset_environment\fR -parameter is non\-zero, -\fBsd_notify()\fR -will unset the -\fI$NOTIFY_SOCKET\fR -environment variable before returning (regardless of whether the function call itself succeeded or not)\&. Further calls to -\fBsd_notify()\fR -will then fail, but the variable is no longer inherited by child processes\&. -.PP -The -\fIstate\fR -parameter should contain a newline\-separated list of variable assignments, similar in style to an environment block\&. A trailing newline is implied if none is specified\&. The string may contain any kind of variable assignments, but the following shall be considered well\-known: -.PP -READY=1 -.RS 4 -Tells the service manager that service startup is finished, or the service finished re\-loading its configuration\&. This is only used by systemd if the service definition file has -\fIType=notify\fR -or -\fIType=notify\-reload\fR -set\&. Since there is little value in signaling non\-readiness, the only value services should send is -"READY=1" -(i\&.e\&. -"READY=0" -is not defined)\&. -.RE -.PP -RELOADING=1 -.RS 4 -Tells the service manager that the service is beginning to reload its configuration\&. This is useful to allow the service manager to track the service\*(Aqs internal state, and present it to the user\&. Note that a service that sends this notification must also send a -"READY=1" -notification when it completed reloading its configuration\&. Reloads the service manager is notified about with this mechanisms are propagated in the same way as they are when originally initiated through the service manager\&. This message is particularly relevant for -\fIType=notify\-reload\fR -services, to inform the service manager that the request to reload the service has been received and is now being processed\&. -.RE -.PP -MONOTONIC_USEC=\&... -.RS 4 -A field carrying the monotonic timestamp (as per -\fBCLOCK_MONOTONIC\fR) formatted in decimal in μs, when the notification message was generated by the client\&. This is typically used in combination with -"RELOADING=1", to allow the service manager to properly synchronize reload cycles\&. See -\fBsystemd.service\fR(5) -for details, specifically -"Type=notify\-reload"\&. -.RE -.PP -STOPPING=1 -.RS 4 -Tells the service manager that the service is beginning its shutdown\&. This is useful to allow the service manager to track the service\*(Aqs internal state, and present it to the user\&. -.RE -.PP -STATUS=\&... -.RS 4 -Passes a single\-line UTF\-8 status string back to the service manager that describes the service state\&. This is free\-form and can be used for various purposes: general state feedback, fsck\-like programs could pass completion percentages and failing programs could pass a human\-readable error message\&. Example: -"STATUS=Completed 66% of file system check\&..." -.RE -.PP -NOTIFYACCESS=\&... -.RS 4 -Reset the access to the service status notification socket during runtime, overriding -\fINotifyAccess=\fR -setting in the service unit file\&. See -\fBsystemd.service\fR(5) -for details, specifically -"NotifyAccess=" -for a list of accepted values\&. -.RE -.PP -ERRNO=\&... -.RS 4 -If a service fails, the errno\-style error code, formatted as string\&. Example: -"ERRNO=2" -for ENOENT\&. -.RE -.PP -BUSERROR=\&... -.RS 4 -If a service fails, the D\-Bus error\-style error code\&. Example: -"BUSERROR=org\&.freedesktop\&.DBus\&.Error\&.TimedOut" -.RE -.PP -EXIT_STATUS=\&... -.RS 4 -If a service exits, the return value of its -\fBmain()\fR -function\&. -.RE -.PP -MAINPID=\&... -.RS 4 -The main process ID (PID) of the service, in case the service manager did not fork off the process itself\&. Example: -"MAINPID=4711" -.RE -.PP -WATCHDOG=1 -.RS 4 -Tells the service manager to update the watchdog timestamp\&. This is the keep\-alive ping that services need to issue in regular intervals if -\fIWatchdogSec=\fR -is enabled for it\&. See -\fBsystemd.service\fR(5) -for information how to enable this functionality and -\fBsd_watchdog_enabled\fR(3) -for the details of how the service can check whether the watchdog is enabled\&. -.RE -.PP -WATCHDOG=trigger -.RS 4 -Tells the service manager that the service detected an internal error that should be handled by the configured watchdog options\&. This will trigger the same behaviour as if -\fIWatchdogSec=\fR -is enabled and the service did not send -"WATCHDOG=1" -in time\&. Note that -\fIWatchdogSec=\fR -does not need to be enabled for -"WATCHDOG=trigger" -to trigger the watchdog action\&. See -\fBsystemd.service\fR(5) -for information about the watchdog behavior\&. -.RE -.PP -WATCHDOG_USEC=\&... -.RS 4 -Reset -\fIwatchdog_usec\fR -value during runtime\&. Notice that this is not available when using -\fBsd_event_set_watchdog()\fR -or -\fBsd_watchdog_enabled()\fR\&. Example : -"WATCHDOG_USEC=20000000" -.RE -.PP -EXTEND_TIMEOUT_USEC=\&... -.RS 4 -Tells the service manager to extend the startup, runtime or shutdown service timeout corresponding the current state\&. The value specified is a time in microseconds during which the service must send a new message\&. A service timeout will occur if the message isn\*(Aqt received, but only if the runtime of the current state is beyond the original maximum times of -\fITimeoutStartSec=\fR, -\fIRuntimeMaxSec=\fR, and -\fITimeoutStopSec=\fR\&. See -\fBsystemd.service\fR(5) -for effects on the service timeouts\&. -.RE -.PP -FDSTORE=1 -.RS 4 -Stores additional file descriptors in the service manager\&. File descriptors sent this way will be maintained per\-service by the service manager and will later be handed back using the usual file descriptor passing logic at the next invocation of the service (e\&.g\&. when it is restarted), see -\fBsd_listen_fds\fR(3)\&. This is useful for implementing services that can restart after an explicit request or a crash without losing state\&. Any open sockets and other file descriptors which should not be closed during the restart may be stored this way\&. Application state can either be serialized to a file in -/run/, or better, stored in a -\fBmemfd_create\fR(2) -memory file descriptor\&. Note that the service manager will accept messages for a service only if its -\fIFileDescriptorStoreMax=\fR -setting is non\-zero (defaults to zero, see -\fBsystemd.service\fR(5))\&. If -\fIFDPOLL=0\fR -is not set and the file descriptors sent are pollable (see -\fBepoll_ctl\fR(2)), then any -\fBEPOLLHUP\fR -or -\fBEPOLLERR\fR -event seen on them will result in their automatic removal from the store\&. Multiple arrays of file descriptors may be sent in separate messages, in which case the arrays are combined\&. Note that the service manager removes duplicate (pointing to the same object) file descriptors before passing them to the service\&. When a service is stopped, its file descriptor store is discarded and all file descriptors in it are closed\&. Use -\fBsd_pid_notify_with_fds()\fR -to send messages with -"FDSTORE=1", see below\&. The service manager will set the -\fI$FDSTORE\fR -environment variable for services that have the file descriptor store enabled\&. -.sp -For further information on the file descriptor store see the -\m[blue]\fBFile Descriptor Store\fR\m[]\&\s-2\u[1]\d\s+2 -overview\&. -.RE -.PP -FDSTOREREMOVE=1 -.RS 4 -Removes file descriptors from the file descriptor store\&. This field needs to be combined with -\fIFDNAME=\fR -to specify the name of the file descriptors to remove\&. -.RE -.PP -FDNAME=\&... -.RS 4 -When used in combination with -\fIFDSTORE=1\fR, specifies a name for the submitted file descriptors\&. When used with -\fIFDSTOREREMOVE=1\fR, specifies the name for the file descriptors to remove\&. This name is passed to the service during activation, and may be queried using -\fBsd_listen_fds_with_names\fR(3)\&. File descriptors submitted without this field set, will implicitly get the name -"stored" -assigned\&. Note that, if multiple file descriptors are submitted at once, the specified name will be assigned to all of them\&. In order to assign different names to submitted file descriptors, submit them in separate invocations of -\fBsd_pid_notify_with_fds()\fR\&. The name may consist of arbitrary ASCII characters except control characters or -":"\&. It may not be longer than 255 characters\&. If a submitted name does not follow these restrictions, it is ignored\&. -.RE -.PP -FDPOLL=0 -.RS 4 -When used in combination with -\fIFDSTORE=1\fR, disables polling of the stored file descriptors regardless of whether or not they are pollable\&. As this option disables automatic cleanup of the stored file descriptors on EPOLLERR and EPOLLHUP, care must be taken to ensure proper manual cleanup\&. Use of this option is not generally recommended except for when automatic cleanup has unwanted behavior such as prematurely discarding file descriptors from the store\&. -.RE -.PP -BARRIER=1 -.RS 4 -Tells the service manager that the client is explicitly requesting synchronization by means of closing the file descriptor sent with this command\&. The service manager guarantees that the processing of a -\fIBARRIER=1\fR -command will only happen after all previous notification messages sent before this command have been processed\&. Hence, this command accompanied with a single file descriptor can be used to synchronize against reception of all previous status messages\&. Note that this command cannot be mixed with other notifications, and has to be sent in a separate message to the service manager, otherwise all assignments will be ignored\&. Note that sending 0 or more than 1 file descriptor with this command is a violation of the protocol\&. -.RE -.PP -It is recommended to prefix variable names that are not listed above with -\fIX_\fR -to avoid namespace clashes\&. -.PP -Note that systemd will accept status data sent from a service only if the -\fINotifyAccess=\fR -option is correctly set in the service definition file\&. See -\fBsystemd.service\fR(5) -for details\&. -.PP -Note that -\fBsd_notify()\fR -notifications may be attributed to units correctly only if either the sending process is still around at the time PID 1 processes the message, or if the sending process is explicitly runtime\-tracked by the service manager\&. The latter is the case if the service manager originally forked off the process, i\&.e\&. on all processes that match -\fINotifyAccess=\fR\fBmain\fR -or -\fINotifyAccess=\fR\fBexec\fR\&. Conversely, if an auxiliary process of the unit sends an -\fBsd_notify()\fR -message and immediately exits, the service manager might not be able to properly attribute the message to the unit, and thus will ignore it, even if -\fINotifyAccess=\fR\fBall\fR -is set for it\&. -.PP -Hence, to eliminate all race conditions involving lookup of the client\*(Aqs unit and attribution of notifications to units correctly, -\fBsd_notify_barrier()\fR -may be used\&. This call acts as a synchronization point and ensures all notifications sent before this call have been picked up by the service manager when it returns successfully\&. Use of -\fBsd_notify_barrier()\fR -is needed for clients which are not invoked by the service manager, otherwise this synchronization mechanism is unnecessary for attribution of notifications to the unit\&. -.PP -\fBsd_notifyf()\fR -is similar to -\fBsd_notify()\fR -but takes a -\fBprintf()\fR\-like format string plus arguments\&. -.PP -\fBsd_pid_notify()\fR -and -\fBsd_pid_notifyf()\fR -are similar to -\fBsd_notify()\fR -and -\fBsd_notifyf()\fR -but take a process ID (PID) to use as originating PID for the message as first argument\&. This is useful to send notification messages on behalf of other processes, provided the appropriate privileges are available\&. If the PID argument is specified as 0, the process ID of the calling process is used, in which case the calls are fully equivalent to -\fBsd_notify()\fR -and -\fBsd_notifyf()\fR\&. -.PP -\fBsd_pid_notify_with_fds()\fR -is similar to -\fBsd_pid_notify()\fR -but takes an additional array of file descriptors\&. These file descriptors are sent along the notification message to the service manager\&. This is particularly useful for sending -"FDSTORE=1" -messages, as described above\&. The additional arguments are a pointer to the file descriptor array plus the number of file descriptors in the array\&. If the number of file descriptors is passed as 0, the call is fully equivalent to -\fBsd_pid_notify()\fR, i\&.e\&. no file descriptors are passed\&. Note that file descriptors sent to the service manager on a message without -"FDSTORE=1" -are immediately closed on reception\&. -.PP -\fBsd_pid_notifyf_with_fds()\fR -is a combination of -\fBsd_pid_notify_with_fds()\fR -and -\fBsd_notifyf()\fR, i\&.e\&. it accepts both a PID and a set of file descriptors as input, and processes a format string to generate the state string\&. -.PP -\fBsd_notify_barrier()\fR -allows the caller to synchronize against reception of previously sent notification messages and uses the -\fIBARRIER=1\fR -command\&. It takes a relative -\fItimeout\fR -value in microseconds which is passed to -\fBppoll\fR(2)\&. A value of UINT64_MAX is interpreted as infinite timeout\&. -.PP -\fBsd_pid_notify_barrier()\fR -is just like -\fBsd_notify_barrier()\fR, but allows specifying the originating PID for the notification message\&. -.SH "RETURN VALUE" -.PP -On failure, these calls return a negative errno\-style error code\&. If -\fI$NOTIFY_SOCKET\fR -was not set and hence no status message could be sent, 0 is returned\&. If the status was sent, these functions return a positive value\&. In order to support both service managers that implement this scheme and those which do not, it is generally recommended to ignore the return value of this call\&. Note that the return value simply indicates whether the notification message was enqueued properly, it does not reflect whether the message could be processed successfully\&. Specifically, no error is returned when a file descriptor is attempted to be stored using -\fIFDSTORE=1\fR -but the service is not actually configured to permit storing of file descriptors (see above)\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.PP -These functions send a single datagram with the state string as payload to the socket referenced in the -\fI$NOTIFY_SOCKET\fR -environment variable\&. If the first character of -\fI$NOTIFY_SOCKET\fR -is -"/" -or -"@", the string is understood as an -\fBAF_UNIX\fR -or Linux abstract namespace socket (respectively), and in both cases the datagram is accompanied by the process credentials of the sending service, using SCM_CREDENTIALS\&. If the string starts with -"vsock:" -then the string is understood as an -\fBAF_VSOCK\fR -address, which is useful for hypervisors/VMMs or other processes on the host to receive a notification when a virtual machine has finished booting\&. Note that in case the hypervisor does not support -\fBSOCK_DGRAM\fR -over -\fBAF_VSOCK\fR, -\fBSOCK_SEQPACKET\fR -will be used instead\&. The address should be in the form: -"vsock:CID:PORT"\&. Note that unlike other uses of vsock, the CID is mandatory and cannot be -"VMADDR_CID_ANY"\&. Note that PID1 will send the VSOCK packets from a privileged port (i\&.e\&.: lower than 1024), as an attempt to address concerns that unprivileged processes in the guest might try to send malicious notifications to the host, driving it to make destructive decisions based on them\&. -.SH "ENVIRONMENT" -.PP -\fI$NOTIFY_SOCKET\fR -.RS 4 -Set by the service manager for supervised processes for status and start\-up completion notification\&. This environment variable specifies the socket -\fBsd_notify()\fR -talks to\&. See above for details\&. -.RE -.SH "EXAMPLES" -.PP -\fBExample\ \&1.\ \&Start\-up Notification\fR -.PP -When a service finished starting up, it might issue the following call to notify the service manager: -.sp -.if n \{\ -.RS 4 -.\} -.nf -sd_notify(0, "READY=1"); -.fi -.if n \{\ -.RE -.\} -.PP -\fBExample\ \&2.\ \&Extended Start\-up Notification\fR -.PP -A service could send the following after completing initialization: -.sp -.if n \{\ -.RS 4 -.\} -.nf -sd_notifyf(0, "READY=1\en" - "STATUS=Processing requests\&...\en" - "MAINPID=%lu", - (unsigned long) getpid()); -.fi -.if n \{\ -.RE -.\} -.PP -\fBExample\ \&3.\ \&Error Cause Notification\fR -.PP -A service could send the following shortly before exiting, on failure: -.sp -.if n \{\ -.RS 4 -.\} -.nf -sd_notifyf(0, "STATUS=Failed to start up: %s\en" - "ERRNO=%i", - strerror_r(errnum, (char[1024]){}, 1024), - errnum); -.fi -.if n \{\ -.RE -.\} -.PP -\fBExample\ \&4.\ \&Store a File Descriptor in the Service Manager\fR -.PP -To store an open file descriptor in the service manager, in order to continue operation after a service restart without losing state, use -"FDSTORE=1": -.sp -.if n \{\ -.RS 4 -.\} -.nf -sd_pid_notify_with_fds(0, 0, "FDSTORE=1\enFDNAME=foobar", &fd, 1); -.fi -.if n \{\ -.RE -.\} -.PP -\fBExample\ \&5.\ \&Eliminating race conditions\fR -.PP -When the client sending the notifications is not spawned by the service manager, it may exit too quickly and the service manager may fail to attribute them correctly to the unit\&. To prevent such races, use -\fBsd_notify_barrier()\fR -to synchronize against reception of all notifications sent before this call is made\&. -.sp -.if n \{\ -.RS 4 -.\} -.nf -sd_notify(0, "READY=1"); -/* set timeout to 5 seconds */ -sd_notify_barrier(0, 5 * 1000000); - -.fi -.if n \{\ -.RE -.\} -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-daemon\fR(3), -\fBsd_listen_fds\fR(3), -\fBsd_listen_fds_with_names\fR(3), -\fBsd_watchdog_enabled\fR(3), -\fBdaemon\fR(7), -\fBsystemd.service\fR(5) -.SH "NOTES" -.IP " 1." 4 -File Descriptor Store -.RS 4 -\%https://systemd.io/FILE_DESCRIPTOR_STORE -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_path_lookup.3 b/upstream/opensuse-tumbleweed/man3/sd_path_lookup.3 deleted file mode 100644 index 88624a53..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_path_lookup.3 +++ /dev/null @@ -1,251 +0,0 @@ -'\" t -.TH "SD_PATH_LOOKUP" "3" "" "systemd 254" "sd_path_lookup" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_path_lookup, sd_path_lookup_strv \- Query well\-known file system paths -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.sp -.ft B -.nf -enum { - \fBSD_PATH_TEMPORARY\fR, - \fBSD_PATH_TEMPORARY_LARGE\fR, - - \fBSD_PATH_SYSTEM_BINARIES\fR, - \fBSD_PATH_SYSTEM_INCLUDE\fR, - \fBSD_PATH_SYSTEM_LIBRARY_PRIVATE\fR, - \fBSD_PATH_SYSTEM_LIBRARY_ARCH\fR, - \fBSD_PATH_SYSTEM_SHARED\fR, - \fBSD_PATH_SYSTEM_CONFIGURATION_FACTORY\fR, - \fBSD_PATH_SYSTEM_STATE_FACTORY\fR, - - \fBSD_PATH_SYSTEM_CONFIGURATION\fR, - \fBSD_PATH_SYSTEM_RUNTIME\fR, - \fBSD_PATH_SYSTEM_RUNTIME_LOGS\fR, - \fBSD_PATH_SYSTEM_STATE_PRIVATE\fR, - \fBSD_PATH_SYSTEM_STATE_LOGS\fR, - \fBSD_PATH_SYSTEM_STATE_CACHE\fR, - \fBSD_PATH_SYSTEM_STATE_SPOOL\fR, - - \fBSD_PATH_USER_BINARIES\fR, - \fBSD_PATH_USER_LIBRARY_PRIVATE\fR, - \fBSD_PATH_USER_LIBRARY_ARCH\fR, - \fBSD_PATH_USER_SHARED\fR, - - \fBSD_PATH_USER_CONFIGURATION\fR, - \fBSD_PATH_USER_RUNTIME\fR, - \fBSD_PATH_USER_STATE_PRIVATE\fR, - \fBSD_PATH_USER_STATE_CACHE\fR, - - \fBSD_PATH_USER\fR, - \fBSD_PATH_USER_DOCUMENTS\fR, - \fBSD_PATH_USER_MUSIC\fR, - \fBSD_PATH_USER_PICTURES\fR, - \fBSD_PATH_USER_VIDEOS\fR, - \fBSD_PATH_USER_DOWNLOAD\fR, - \fBSD_PATH_USER_PUBLIC\fR, - \fBSD_PATH_USER_TEMPLATES\fR, - \fBSD_PATH_USER_DESKTOP\fR, - - \fBSD_PATH_SEARCH_BINARIES\fR, - \fBSD_PATH_SEARCH_BINARIES_DEFAULT\fR, - \fBSD_PATH_SEARCH_LIBRARY_PRIVATE\fR, - \fBSD_PATH_SEARCH_LIBRARY_ARCH\fR, - \fBSD_PATH_SEARCH_SHARED\fR, - \fBSD_PATH_SEARCH_CONFIGURATION_FACTORY\fR, - \fBSD_PATH_SEARCH_STATE_FACTORY\fR, - \fBSD_PATH_SEARCH_CONFIGURATION\fR, - - \fBSD_PATH_SYSTEMD_UTIL\fR, - \fBSD_PATH_SYSTEMD_SYSTEM_UNIT\fR, - \fBSD_PATH_SYSTEMD_SYSTEM_PRESET\fR, - \fBSD_PATH_SYSTEMD_USER_UNIT\fR, - \fBSD_PATH_SYSTEMD_USER_PRESET\fR, - \fBSD_PATH_SYSTEMD_SYSTEM_CONF\fR, - \fBSD_PATH_SYSTEMD_USER_CONF\fR, - \fBSD_PATH_SYSTEMD_SEARCH_SYSTEM_UNIT\fR, - \fBSD_PATH_SYSTEMD_SEARCH_USER_UNIT\fR, - \fBSD_PATH_SYSTEMD_SYSTEM_GENERATOR\fR, - \fBSD_PATH_SYSTEMD_USER_GENERATOR\fR, - \fBSD_PATH_SYSTEMD_SEARCH_SYSTEM_GENERATOR\fR, - \fBSD_PATH_SYSTEMD_SEARCH_USER_GENERATOR\fR, - \fBSD_PATH_SYSTEMD_SLEEP\fR, - \fBSD_PATH_SYSTEMD_SHUTDOWN\fR, - - \fBSD_PATH_TMPFILES\fR, - \fBSD_PATH_SYSUSERS\fR, - \fBSD_PATH_SYSCTL\fR, - \fBSD_PATH_BINFMT\fR, - \fBSD_PATH_MODULES_LOAD\fR, - \fBSD_PATH_CATALOG\fR, - - \fBSD_PATH_SYSTEMD_SEARCH_NETWORK\fR, - - \fBSD_PATH_SYSTEMD_SYSTEM_ENVIRONMENT_GENERATOR\fR, - \fBSD_PATH_SYSTEMD_USER_ENVIRONMENT_GENERATOR\fR, - \fBSD_PATH_SYSTEMD_SEARCH_SYSTEM_ENVIRONMENT_GENERATOR\fR, - \fBSD_PATH_SYSTEMD_SEARCH_USER_ENVIRONMENT_GENERATOR\fR, -}; -.fi -.ft -.HP \w'int\ sd_path_lookup('u -.BI "int sd_path_lookup(uint64_t\ " "type" ", const\ char\ *" "suffix" ", char\ **" "paths" ");" -.HP \w'int\ sd_path_lookup_strv('u -.BI "int sd_path_lookup_strv(uint64_t\ " "type" ", const\ char\ *" "suffix" ", char\ ***" "paths" ");" -.SH "DESCRIPTION" -.PP -\fBsd_path_lookup()\fR -and -\fBsd_bus_path_lookup_strv()\fR -return a single path or set of file system paths specified by the argument -\fItype\fR\&. In case of -\fBsd_path_lookup()\fR -a single -\fBNUL\fR\-terminated string is returned\&. When -\fItype\fR -specifies a set of paths, they are concatenated using -":" -as a separator (as is traditionally done for e\&.g\&. -\fI$PATH\fR -or -\fI$LD_LIBRARY_PATH\fR)\&. In case of -\fBsd_path_lookup_strv()\fR -a -\fBNULL\fR\-terminated array of strings is returned (strv)\&. If suffix -\fIsuffix\fR -is given, it is concatenated to each of the paths after a slash ("/")\&. All returned paths are absolute\&. -.PP -For paths which refer to user directories, the relevant XDG standard is followed, with support for environment variables like -\fI$XDG_DOCUMENTS_DIR\fR, -\fI$XDG_DESKTOP_DIR\fR, \&.\&.\&., and explicit configuration in -/etc/xdg/user\-dirs\&.conf -or -${XDG_CONFIG_HOME}/user\-dirs\&.dirs\&. See -\m[blue]\fBXDG Base Directory Specification\fR\m[]\&\s-2\u[1]\d\s+2 -for details\&. -.PP -\fBsystemd-path\fR(1) -is a wrapper around -\fBsd_path_lookup()\fR -and allows the same set of paths to be queried\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_path_lookup()\fR -and -\fBsd_path_lookup_strv()\fR -return a non\-negative integer\&. On failure, a negative errno\-style error number is returned by either function\&. -.PP -The returned string or string array (strv) must be -\fBfree\fR(3)\*(Aqd by the caller\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-EOPNOTSUPP\fR -.RS 4 -Unknown identifier -\fItype\fR\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -Output argument is -\fBNULL\fR\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -Query failed because of an undefined environment variable (e\&.g\&. for -\fBSD_PATH_USER_RUNTIME\fR -when -\fI$XDG_RUNTIME_DIR\fR -is not defined)\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "EXAMPLES" -.SS "Look up the location of ~/Documents" -.sp -.if n \{\ -.RS 4 -.\} -.nf -/* SPDX\-License\-Identifier: MIT\-0 */ - -#include -#include -#include - -int main(void) { - int r; - char *t; - - r = sd_path_lookup(SD_PATH_USER_DOCUMENTS, NULL, &t); - if (r < 0) - return EXIT_FAILURE; - - printf("~/Documents: %s\en", t); - free(t); - - return EXIT_SUCCESS; -} -.fi -.if n \{\ -.RE -.\} -.PP -Note that the default answer of -$HOME/Documents -may be overridden by -user\-dirs\&.conf -or -\fI$XDG_DOCUMENTS_DIR\fR\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd-path\fR(1) -.SH "NOTES" -.IP " 1." 4 -XDG Base Directory Specification -.RS 4 -\%https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_pid_get_owner_uid.3 b/upstream/opensuse-tumbleweed/man3/sd_pid_get_owner_uid.3 deleted file mode 100644 index a0be46db..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_pid_get_owner_uid.3 +++ /dev/null @@ -1,211 +0,0 @@ -'\" t -.TH "SD_PID_GET_OWNER_UID" "3" "" "systemd 254" "sd_pid_get_owner_uid" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_pid_get_owner_uid, sd_pid_get_session, sd_pid_get_user_unit, sd_pid_get_unit, sd_pid_get_machine_name, sd_pid_get_slice, sd_pid_get_user_slice, sd_pid_get_cgroup, sd_pidfd_get_owner_uid, sd_pidfd_get_session, sd_pidfd_get_user_unit, sd_pidfd_get_unit, sd_pidfd_get_machine_name, sd_pidfd_get_slice, sd_pidfd_get_user_slice, sd_pidfd_get_cgroup, sd_peer_get_owner_uid, sd_peer_get_session, sd_peer_get_user_unit, sd_peer_get_unit, sd_peer_get_machine_name, sd_peer_get_slice, sd_peer_get_user_slice, sd_peer_get_cgroup \- Determine the owner uid of the user unit or session, or the session, user unit, system unit, container/VM or slice that a specific PID or socket peer belongs to -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_pid_get_owner_uid('u -.BI "int sd_pid_get_owner_uid(pid_t\ " "pid" ", uid_t\ *" "uid" ");" -.HP \w'int\ sd_pid_get_session('u -.BI "int sd_pid_get_session(pid_t\ " "pid" ", char\ **" "session" ");" -.HP \w'int\ sd_pid_get_user_unit('u -.BI "int sd_pid_get_user_unit(pid_t\ " "pid" ", char\ **" "unit" ");" -.HP \w'int\ sd_pid_get_unit('u -.BI "int sd_pid_get_unit(pid_t\ " "pid" ", char\ **" "unit" ");" -.HP \w'int\ sd_pid_get_machine_name('u -.BI "int sd_pid_get_machine_name(pid_t\ " "pid" ", char\ **" "name" ");" -.HP \w'int\ sd_pid_get_slice('u -.BI "int sd_pid_get_slice(pid_t\ " "pid" ", char\ **" "slice" ");" -.HP \w'int\ sd_pid_get_user_slice('u -.BI "int sd_pid_get_user_slice(pid_t\ " "pid" ", char\ **" "slice" ");" -.HP \w'int\ sd_pid_get_cgroup('u -.BI "int sd_pid_get_cgroup(pid_t\ " "pid" ", char\ **" "cgroup" ");" -.HP \w'int\ sd_pidfd_get_owner_uid('u -.BI "int sd_pidfd_get_owner_uid(int\ " "pidfd" ", uid_t\ *" "uid" ");" -.HP \w'int\ sd_pidfd_get_session('u -.BI "int sd_pidfd_get_session(int\ " "pidfd" ", char\ **" "session" ");" -.HP \w'int\ sd_pidfd_get_user_unit('u -.BI "int sd_pidfd_get_user_unit(int\ " "pidfd" ", char\ **" "unit" ");" -.HP \w'int\ sd_pidfd_get_unit('u -.BI "int sd_pidfd_get_unit(int\ " "pidfd" ", char\ **" "unit" ");" -.HP \w'int\ sd_pidfd_get_machine_name('u -.BI "int sd_pidfd_get_machine_name(int\ " "pidfd" ", char\ **" "name" ");" -.HP \w'int\ sd_pidfd_get_slice('u -.BI "int sd_pidfd_get_slice(int\ " "pidfd" ", char\ **" "slice" ");" -.HP \w'int\ sd_pidfd_get_user_slice('u -.BI "int sd_pidfd_get_user_slice(int\ " "pidfd" ", char\ **" "slice" ");" -.HP \w'int\ sd_pidfd_get_cgroup('u -.BI "int sd_pidfd_get_cgroup(int\ " "pidfd" ", char\ **" "cgroup" ");" -.HP \w'int\ sd_peer_get_owner_uid('u -.BI "int sd_peer_get_owner_uid(int\ " "fd" ", uid_t\ *" "uid" ");" -.HP \w'int\ sd_peer_get_session('u -.BI "int sd_peer_get_session(int\ " "fd" ", char\ **" "session" ");" -.HP \w'int\ sd_peer_get_user_unit('u -.BI "int sd_peer_get_user_unit(int\ " "fd" ", char\ **" "unit" ");" -.HP \w'int\ sd_peer_get_unit('u -.BI "int sd_peer_get_unit(int\ " "fd" ", char\ **" "unit" ");" -.HP \w'int\ sd_peer_get_machine_name('u -.BI "int sd_peer_get_machine_name(int\ " "fd" ", char\ **" "name" ");" -.HP \w'int\ sd_peer_get_slice('u -.BI "int sd_peer_get_slice(int\ " "fd" ", char\ **" "slice" ");" -.HP \w'int\ sd_peer_get_user_slice('u -.BI "int sd_peer_get_user_slice(int\ " "fd" ", char\ **" "slice" ");" -.HP \w'int\ sd_peer_get_cgroup('u -.BI "int sd_peer_get_cgroup(int\ " "fd" ", char\ **" "cgroup" ");" -.SH "DESCRIPTION" -.PP -\fBsd_pid_get_owner_uid()\fR -may be used to determine the Unix UID (user identifier) which owns the login session or systemd user unit of a process identified by the specified PID\&. For processes which are not part of a login session and not managed by a user manager, this function will fail with -\fB\-ENODATA\fR\&. -.PP -\fBsd_pid_get_session()\fR -may be used to determine the login session identifier of a process identified by the specified process identifier\&. The session identifier is a short string, suitable for usage in file system paths\&. Please note the login session may be limited to a stub process or two\&. User processes may instead be started from their systemd user manager, e\&.g\&. GUI applications started using DBus activation, as well as service processes which are shared between multiple logins of the same user\&. For processes which are not part of a login session, this function will fail with -\fB\-ENODATA\fR\&. The returned string needs to be freed with the libc -\fBfree\fR(3) -call after use\&. -.PP -\fBsd_pid_get_user_unit()\fR -may be used to determine the systemd user unit (i\&.e\&. user service or scope unit) identifier of a process identified by the specified PID\&. The unit name is a short string, suitable for usage in file system paths\&. For processes which are not managed by a user manager, this function will fail with -\fB\-ENODATA\fR\&. The returned string needs to be freed with the libc -\fBfree\fR(3) -call after use\&. -.PP -\fBsd_pid_get_unit()\fR -may be used to determine the systemd system unit (i\&.e\&. system service or scope unit) identifier of a process identified by the specified PID\&. The unit name is a short string, suitable for usage in file system paths\&. Note that not all processes are part of a system unit/service\&. For processes not being part of a systemd system unit, this function will fail with -\fB\-ENODATA\fR\&. (More specifically, this call will not work for kernel threads\&.) The returned string needs to be freed with the libc -\fBfree\fR(3) -call after use\&. -.PP -\fBsd_pid_get_machine_name()\fR -may be used to determine the name of the VM or container is a member of\&. The machine name is a short string, suitable for usage in file system paths\&. The returned string needs to be freed with the libc -\fBfree\fR(3) -call after use\&. For processes not part of a VM or container, this function fails with -\fB\-ENODATA\fR\&. -.PP -\fBsd_pid_get_slice()\fR -may be used to determine the slice unit the process is a member of\&. See -\fBsystemd.slice\fR(5) -for details about slices\&. The returned string needs to be freed with the libc -\fBfree\fR(3) -call after use\&. -.PP -Similarly, -\fBsd_pid_get_user_slice()\fR -returns the user slice (as managed by the user\*(Aqs systemd instance) of a process\&. -.PP -\fBsd_pid_get_cgroup()\fR -returns the control group path of the specified process, relative to the root of the hierarchy\&. Returns the path without trailing slash, except for processes located in the root control group, where "/" is returned\&. To find the actual control group path in the file system, the returned path needs to be prefixed with -/sys/fs/cgroup/ -(if the unified control group setup is used), or -/sys/fs/cgroup/\fIHIERARCHY\fR/ -(if the legacy multi\-hierarchy control group setup is used)\&. -.PP -If the -\fIpid\fR -parameter of any of these functions is passed as 0, the operation is executed for the calling process\&. -.PP -The -\fBsd_pidfd_get_owner_uid()\fR, -\fBsd_pidfd_get_session()\fR, -\fBsd_pidfd_get_user_unit()\fR, -\fBsd_pidfd_get_unit()\fR, -\fBsd_pidfd_get_machine_name()\fR, -\fBsd_pidfd_get_slice()\fR, -\fBsd_pidfd_get_user_slice()\fR -and -\fBsd_pidfd_get_cgroup()\fR -calls operate similarly to their PID counterparts, but accept a -\fBPIDFD\fR -instead of a -\fBPID\fR, which means they are not subject to recycle race conditions as the process is pinned by the file descriptor during the whole duration of the invocation\&. Note that these require a kernel that supports -\fBPIDFD\fR\&. A suitable file descriptor may be acquired via -\fBpidfd_open\fR(2)\&. -.PP -The -\fBsd_peer_get_owner_uid()\fR, -\fBsd_peer_get_session()\fR, -\fBsd_peer_get_user_unit()\fR, -\fBsd_peer_get_unit()\fR, -\fBsd_peer_get_machine_name()\fR, -\fBsd_peer_get_slice()\fR, -\fBsd_peer_get_user_slice()\fR -and -\fBsd_peer_get_cgroup()\fR -calls operate similarly to their PID counterparts, but accept a connected -\fBAF_UNIX\fR -socket and retrieve information about the connected peer process\&. Note that these fields are retrieved via -/proc/, and hence are not suitable for authorization purposes, as they are subject to races\&. -.SH "RETURN VALUE" -.PP -On success, these calls return 0 or a positive integer\&. On failure, these calls return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ESRCH\fR -.RS 4 -The specified PID does not refer to a running process\&. -.RE -.PP -\fB\-EBADF\fR -.RS 4 -The specified socket file descriptor was invalid\&. -.RE -.PP -\fB\-ENODATA\fR -.RS 4 -The given field is not specified for the described process or peer\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -An input parameter was invalid (out of range, or -\fBNULL\fR, where that is not accepted)\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -Note that the login session identifier as returned by -\fBsd_pid_get_session()\fR -is completely unrelated to the process session identifier as returned by -\fBgetsid\fR(2)\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-login\fR(3), -\fBsd_session_is_active\fR(3), -\fBgetsid\fR(2), -\fBsystemd.slice\fR(5), -\fBsystemd-machined.service\fR(8) diff --git a/upstream/opensuse-tumbleweed/man3/sd_seat_get_active.3 b/upstream/opensuse-tumbleweed/man3/sd_seat_get_active.3 deleted file mode 100644 index 7477df8f..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_seat_get_active.3 +++ /dev/null @@ -1,123 +0,0 @@ -'\" t -.TH "SD_SEAT_GET_ACTIVE" "3" "" "systemd 254" "sd_seat_get_active" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_seat_get_active, sd_seat_get_sessions, sd_seat_can_tty, sd_seat_can_graphical \- Determine state of a specific seat -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_seat_get_active('u -.BI "int sd_seat_get_active(const\ char\ *" "seat" ", char\ **" "session" ", uid_t\ *" "uid" ");" -.HP \w'int\ sd_seat_get_sessions('u -.BI "int sd_seat_get_sessions(const\ char\ *" "seat" ", char\ ***" "ret_sessions" ", uid_t\ **" "ret_uids" ", unsigned\ int\ *" "ret_n_uids" ");" -.HP \w'int\ sd_seat_can_tty('u -.BI "int sd_seat_can_tty(const\ char\ *" "seat" ");" -.HP \w'int\ sd_seat_can_graphical('u -.BI "int sd_seat_can_graphical(const\ char\ *" "seat" ");" -.SH "DESCRIPTION" -.PP -\fBsd_seat_get_active()\fR -may be used to determine which session is currently active on a seat, if there is any\&. Returns the session identifier and the user identifier of the Unix user the session is belonging to\&. Either the session or the user identifier parameter can be passed -\fBNULL\fR, in case only one of the parameters shall be queried\&. The returned string needs to be freed with the libc -\fBfree\fR(3) -call after use\&. -.PP -\fBsd_seat_get_sessions()\fR -may be used to determine all sessions on the specified seat\&. Returns two arrays, one (\fBNULL\fR -terminated) with the session identifiers of the sessions and one with the user identifiers of the Unix users the sessions belong to\&. An additional parameter may be used to return the number of entries in the latter array\&. This value is the same as the return value if the return value is nonnegative\&. The output parameters may be passed as -\fBNULL\fR -in case these output values are not needed\&. The arrays and the strings referenced by them need to be freed with the libc -\fBfree\fR(3) -call after use\&. Note that instead of an empty array -\fBNULL\fR -may be returned and should be considered equivalent to an empty array\&. -.PP -\fBsd_seat_can_tty()\fR -may be used to determine whether a specific seat provides TTY functionality, i\&.e\&. is useful as a text console\&. -.PP -\fBsd_seat_can_graphical()\fR -may be used to determine whether a specific seat provides graphics functionality, i\&.e\&. is useful as a graphics display\&. -.PP -If the -\fIseat\fR -parameter of any of these functions is passed as -\fBNULL\fR, the operation is executed for the seat of the session of the calling process, if there is any\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_seat_get_active()\fR -returns 0 or a positive integer\&. On success, -\fBsd_seat_get_sessions()\fR -returns the number of entries in the session identifier array\&. If the test succeeds, -\fBsd_seat_can_tty()\fR -and -\fBsd_seat_can_graphical()\fR -return a positive integer, if it fails 0\&. On failure, these calls return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ENODATA\fR -.RS 4 -The given field is not specified for the described seat\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -The specified seat is unknown\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -An input parameter was invalid (out of range, or -\fBNULL\fR, where that is not accepted)\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "HISTORY" -.PP -In the past, -\fBsd_seat_can_multi_session()\fR -was used to check whether the seat supports multiple sessions\&. All seats support that now, so that function has been deprecated and always returns true\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-login\fR(3), -\fBsd_session_get_seat\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_session_is_active.3 b/upstream/opensuse-tumbleweed/man3/sd_session_is_active.3 deleted file mode 100644 index b6541c24..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_session_is_active.3 +++ /dev/null @@ -1,235 +0,0 @@ -'\" t -.TH "SD_SESSION_IS_ACTIVE" "3" "" "systemd 254" "sd_session_is_active" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_session_is_active, sd_session_is_remote, sd_session_get_state, sd_session_get_uid, sd_session_get_username, sd_session_get_seat, sd_session_get_start_time, sd_session_get_service, sd_session_get_type, sd_session_get_class, sd_session_get_desktop, sd_session_get_display, sd_session_get_tty, sd_session_get_vt, sd_session_get_remote_host, sd_session_get_remote_user, sd_session_get_leader \- Determine state of a specific session -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_session_is_active('u -.BI "int sd_session_is_active(const\ char\ *" "session" ");" -.HP \w'int\ sd_session_is_remote('u -.BI "int sd_session_is_remote(const\ char\ *" "session" ");" -.HP \w'int\ sd_session_get_state('u -.BI "int sd_session_get_state(const\ char\ *" "session" ", char\ **" "state" ");" -.HP \w'int\ sd_session_get_uid('u -.BI "int sd_session_get_uid(const\ char\ *" "session" ", uid_t\ *" "uid" ");" -.HP \w'int\ sd_session_get_username('u -.BI "int sd_session_get_username(const\ char\ *" "session" ", char\ **" "username" ");" -.HP \w'int\ sd_session_get_seat('u -.BI "int sd_session_get_seat(const\ char\ *" "session" ", char\ **" "seat" ");" -.HP \w'int\ sd_session_get_start_time('u -.BI "int sd_session_get_start_time(const\ char\ *" "session" ", uint64_t\ *" "usec" ");" -.HP \w'int\ sd_session_get_service('u -.BI "int sd_session_get_service(const\ char\ *" "session" ", char\ **" "service" ");" -.HP \w'int\ sd_session_get_type('u -.BI "int sd_session_get_type(const\ char\ *" "session" ", char\ **" "type" ");" -.HP \w'int\ sd_session_get_class('u -.BI "int sd_session_get_class(const\ char\ *" "session" ", char\ **" "class" ");" -.HP \w'int\ sd_session_get_desktop('u -.BI "int sd_session_get_desktop(const\ char\ *" "session" ", char\ **" "desktop" ");" -.HP \w'int\ sd_session_get_display('u -.BI "int sd_session_get_display(const\ char\ *" "session" ", char\ **" "display" ");" -.HP \w'int\ sd_session_get_leader('u -.BI "int sd_session_get_leader(const\ char\ *" "session" ", pid_t\ *" "leader" ");" -.HP \w'int\ sd_session_get_remote_host('u -.BI "int sd_session_get_remote_host(const\ char\ *" "session" ", char\ **" "remote_host" ");" -.HP \w'int\ sd_session_get_remote_user('u -.BI "int sd_session_get_remote_user(const\ char\ *" "session" ", char\ **" "remote_user" ");" -.HP \w'int\ sd_session_get_tty('u -.BI "int sd_session_get_tty(const\ char\ *" "session" ", char\ **" "tty" ");" -.HP \w'int\ sd_session_get_vt('u -.BI "int sd_session_get_vt(const\ char\ *" "session" ", unsigned\ int\ *" "vt" ");" -.SH "DESCRIPTION" -.PP -\fBsd_session_is_active()\fR -may be used to determine whether the session identified by the specified session identifier is currently active (i\&.e\&. currently in the foreground and available for user input) or not\&. -.PP -\fBsd_session_is_remote()\fR -may be used to determine whether the session identified by the specified session identifier is a remote session (i\&.e\&. its remote host is known) or not\&. -.PP -\fBsd_session_get_state()\fR -may be used to determine the state of the session identified by the specified session identifier\&. The following states are currently known: -"online" -(session logged in, but session not active, i\&.e\&. not in the foreground), -"active" -(session logged in and active, i\&.e\&. in the foreground), -"closing" -(session nominally logged out, but some processes belonging to it are still around)\&. In the future additional states might be defined, client code should be written to be robust in regards to additional state strings being returned\&. This function is a more generic version of -\fBsd_session_is_active()\fR\&. The returned string needs to be freed with the libc -\fBfree\fR(3) -call after use\&. -.PP -\fBsd_session_get_uid()\fR -may be used to determine the user identifier of the Unix user the session identified by the specified session identifier belongs to\&. -.PP -\fBsd_session_get_username()\fR -may be used to determine the name of the Unix user the session identified by the specified session identifier belongs to\&. The returned string needs to be freed with the libc -\fBfree\fR(3) -call after use\&. -.PP -\fBsd_session_get_seat()\fR -may be used to determine the seat identifier of the seat the session identified by the specified session identifier belongs to\&. Note that not all sessions are attached to a seat, this call will fail (returning -\fB\-ENODATA\fR) for them\&. The returned string needs to be freed with the libc -\fBfree\fR(3) -call after use\&. -.PP -\fBsd_session_get_start_time()\fR -may be used to determine the start time of the session identified by the specified session identifier belongs to\&. The -\fIusec\fR -is in microseconds since the epoch (\fBCLOCK_REALTIME\fR)\&. -.PP -\fBsd_session_get_service()\fR -may be used to determine the name of the service (as passed during PAM session setup) that registered the session identified by the specified session identifier\&. The returned string needs to be freed with the libc -\fBfree\fR(3) -call after use\&. -.PP -\fBsd_session_get_type()\fR -may be used to determine the type of the session identified by the specified session identifier\&. The returned string is one of -"x11", -"wayland", -"tty", -"mir" -or -"unspecified" -and needs to be freed with the libc -\fBfree\fR(3) -call after use\&. -.PP -\fBsd_session_get_class()\fR -may be used to determine the class of the session identified by the specified session identifier\&. The returned string is one of -"user", -"greeter", -"lock\-screen", or -"background" -and needs to be freed with the libc -\fBfree\fR(3) -call after use\&. -.PP -\fBsd_session_get_desktop()\fR -may be used to determine the brand of the desktop running on the session identified by the specified session identifier\&. This field can be set freely by desktop environments and does not follow any special formatting\&. However, desktops are strongly recommended to use the same identifiers and capitalization as for -\fI$XDG_CURRENT_DESKTOP\fR, as defined by the -\m[blue]\fBDesktop Entry Specification\fR\m[]\&\s-2\u[1]\d\s+2\&. The returned string needs to be freed with the libc -\fBfree\fR(3) -call after use\&. -.PP -\fBsd_session_get_display()\fR -may be used to determine the X11 display of the session identified by the specified session identifier\&. The returned string needs to be freed with the libc -\fBfree\fR(3) -call after use\&. -.PP -\fBsd_session_get_leader()\fR -may be used to determine the PID of the leader of the session identified by the specified session identifier\&. -.PP -\fBsd_session_get_remote_host()\fR -may be used to determine the remote hostname of the session identified by the specified session identifier\&. The returned string needs to be freed with the libc -\fBfree\fR(3) -call after use\&. -.PP -\fBsd_session_get_remote_user()\fR -may be used to determine the remote username of the session identified by the specified session identifier\&. The returned string needs to be freed with the libc -\fBfree\fR(3) -call after use\&. Note that this value is rarely known to the system, and even then should not be relied on\&. -.PP -\fBsd_session_get_tty()\fR -may be used to determine the TTY device of the session identified by the specified session identifier\&. The returned string needs to be freed with the libc -\fBfree\fR(3) -call after use\&. -.PP -\fBsd_session_get_vt()\fR -may be used to determine the VT number of the session identified by the specified session identifier\&. This function will return an error if the seat does not support VTs\&. -.PP -If the -\fIsession\fR -parameter of any of these functions is passed as -\fBNULL\fR, the operation is executed for the session the calling process is a member of, if there is any\&. -.SH "RETURN VALUE" -.PP -If the test succeeds, -\fBsd_session_is_active()\fR -and -\fBsd_session_is_remote()\fR -return a positive integer; if it fails, 0\&. On success, -\fBsd_session_get_state()\fR, -\fBsd_session_get_uid()\fR, -\fBsd_session_get_username()\fR, -\fBsd_session_get_seat()\fR, -\fBsd_session_get_service()\fR, -\fBsd_session_get_type()\fR, -\fBsd_session_get_class()\fR, -\fBsd_session_get_display()\fR, -\fBsd_session_get_leader()\fR, -\fBsd_session_get_remote_user()\fR, -\fBsd_session_get_remote_host()\fR -and -\fBsd_session_get_tty()\fR -return 0 or a positive integer\&. On failure, these calls return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ENXIO\fR -.RS 4 -The specified session does not exist\&. -.RE -.PP -\fB\-ENODATA\fR -.RS 4 -The given field is not specified for the described session\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -An input parameter was invalid (out of range, or -\fBNULL\fR, where that is not accepted)\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-login\fR(3), -\fBsd_pid_get_session\fR(3) -.SH "NOTES" -.IP " 1." 4 -Desktop Entry Specification -.RS 4 -\%https://standards.freedesktop.org/desktop-entry-spec/latest/ -.RE diff --git a/upstream/opensuse-tumbleweed/man3/sd_uid_get_state.3 b/upstream/opensuse-tumbleweed/man3/sd_uid_get_state.3 deleted file mode 100644 index 9c9a5350..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_uid_get_state.3 +++ /dev/null @@ -1,151 +0,0 @@ -'\" t -.TH "SD_UID_GET_STATE" "3" "" "systemd 254" "sd_uid_get_state" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_uid_get_state, sd_uid_is_on_seat, sd_uid_get_sessions, sd_uid_get_seats, sd_uid_get_display, sd_uid_get_login_time \- Determine login state of a specific Unix user ID -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_uid_get_state('u -.BI "int sd_uid_get_state(uid_t\ " "uid" ", char\ **" "state" ");" -.HP \w'int\ sd_uid_is_on_seat('u -.BI "int sd_uid_is_on_seat(uid_t\ " "uid" ", int\ " "require_active" ", const\ char\ *" "seat" ");" -.HP \w'int\ sd_uid_get_sessions('u -.BI "int sd_uid_get_sessions(uid_t\ " "uid" ", int\ " "require_active" ", char\ ***" "sessions" ");" -.HP \w'int\ sd_uid_get_seats('u -.BI "int sd_uid_get_seats(uid_t\ " "uid" ", int\ " "require_active" ", char\ ***" "seats" ");" -.HP \w'int\ sd_uid_get_display('u -.BI "int sd_uid_get_display(uid_t\ " "uid" ", char\ **" "session" ");" -.HP \w'int\ sd_uid_get_login_time('u -.BI "int sd_uid_get_login_time(uid_t\ " "uid" ", uint64_t\ *" "usec" ");" -.SH "DESCRIPTION" -.PP -\fBsd_uid_get_state()\fR -may be used to determine the login state of a specific Unix user identifier\&. The following states are currently known: -"offline" -(user not logged in at all), -"lingering" -(user not logged in, but some user services running), -"online" -(user logged in, but not active, i\&.e\&. has no session in the foreground), -"active" -(user logged in, and has at least one active session, i\&.e\&. one session in the foreground), -"closing" -(user not logged in, and not lingering, but some processes are still around)\&. In the future additional states might be defined, client code should be written to be robust in regards to additional state strings being returned\&. The returned string needs to be freed with the libc -\fBfree\fR(3) -call after use\&. -.PP -\fBsd_uid_is_on_seat()\fR -may be used to determine whether a specific user is logged in or active on a specific seat\&. Accepts a Unix user identifier and a seat identifier string as parameters\&. The -\fIrequire_active\fR -parameter is a boolean value\&. If non\-zero (true), this function will test if the user is active (i\&.e\&. has a session that is in the foreground and accepting user input) on the specified seat, otherwise (false) only if the user is logged in (and possibly inactive) on the specified seat\&. -.PP -\fBsd_uid_get_sessions()\fR -may be used to determine the current sessions of the specified user\&. Accepts a Unix user identifier as parameter\&. The -\fIrequire_active\fR -parameter controls whether the returned list shall consist of only those sessions where the user is currently active (> 0), where the user is currently online but possibly inactive (= 0), or logged in but possibly closing the session (< 0)\&. The call returns a -\fBNULL\fR -terminated string array of session identifiers in -\fIsessions\fR -which needs to be freed by the caller with the libc -\fBfree\fR(3) -call after use, including all the strings referenced\&. If the string array parameter is passed as -\fBNULL\fR, the array will not be filled in, but the return code still indicates the number of current sessions\&. Note that instead of an empty array -\fBNULL\fR -may be returned and should be considered equivalent to an empty array\&. -.PP -Similarly, -\fBsd_uid_get_seats()\fR -may be used to determine the list of seats on which the user currently has sessions\&. Similar semantics apply, however note that the user may have multiple sessions on the same seat as well as sessions with no attached seat and hence the number of entries in the returned array may differ from the one returned by -\fBsd_uid_get_sessions()\fR\&. -.PP -\fBsd_uid_get_display()\fR -returns the name of the "primary" session of a user\&. If the user has graphical sessions, it will be the oldest graphical session\&. Otherwise, it will be the oldest open session\&. -.PP -\fBsd_uid_get_login_time()\fR -may be used to determine the time the user\*(Aqs service manager has been invoked, which is the time when the user\*(Aqs first active session, since which they stayed logged in continuously, began\&. The -\fIusec\fR -is in microseconds since the epoch (\fBCLOCK_REALTIME\fR)\&. This call will fail with -\fB\-ENXIO\fR -if the user is not currently logged in\&. -.SH "RETURN VALUE" -.PP -On success, -\fBsd_uid_get_state()\fR -and -\fBsd_uid_get_login_time()\fR -returns 0 or a positive integer\&. If the test succeeds, -\fBsd_uid_is_on_seat()\fR -returns a positive integer; if it fails, 0\&. -\fBsd_uid_get_sessions()\fR -and -\fBsd_uid_get_seats()\fR -return the number of entries in the returned arrays\&. -\fBsd_uid_get_display()\fR -returns a non\-negative code on success\&. On failure, these calls return a negative errno\-style error code\&. -.SS "Errors" -.PP -Returned errors may indicate the following problems: -.PP -\fB\-ENODATA\fR -.RS 4 -The given field is not specified for the described user\&. -.RE -.PP -\fB\-ENXIO\fR -.RS 4 -The specified seat is unknown\&. -.RE -.PP -\fB\-EINVAL\fR -.RS 4 -An input parameter was invalid (out of range, or -\fBNULL\fR, where that is not accepted)\&. This is also returned if the passed user ID is -\fB0xFFFF\fR -or -\fB0xFFFFFFFF\fR, which are undefined on Linux\&. -.RE -.PP -\fB\-ENOMEM\fR -.RS 4 -Memory allocation failed\&. -.RE -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-login\fR(3), -\fBsd_pid_get_owner_uid\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/sd_watchdog_enabled.3 b/upstream/opensuse-tumbleweed/man3/sd_watchdog_enabled.3 deleted file mode 100644 index c2081fdc..00000000 --- a/upstream/opensuse-tumbleweed/man3/sd_watchdog_enabled.3 +++ /dev/null @@ -1,118 +0,0 @@ -'\" t -.TH "SD_WATCHDOG_ENABLED" "3" "" "systemd 254" "sd_watchdog_enabled" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -sd_watchdog_enabled \- Check whether the service manager expects watchdog keep\-alive notifications from a service -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ sd_watchdog_enabled('u -.BI "int sd_watchdog_enabled(int\ " "unset_environment" ", uint64_t\ *" "usec" ");" -.SH "DESCRIPTION" -.PP -\fBsd_watchdog_enabled()\fR -may be called by a service to detect whether the service manager expects regular keep\-alive watchdog notification events from it, and the timeout after which the manager will act on the service if it did not get such a notification\&. -.PP -If the -\fI$WATCHDOG_USEC\fR -environment variable is set, and the -\fI$WATCHDOG_PID\fR -variable is unset or set to the PID of the current process, the service manager expects notifications from this process\&. The manager will usually terminate a service when it does not get a notification message within the specified time after startup and after each previous message\&. It is recommended that a daemon sends a keep\-alive notification message to the service manager every half of the time returned here\&. Notification messages may be sent with -\fBsd_notify\fR(3) -with a message string of -"WATCHDOG=1"\&. -.PP -If the -\fIunset_environment\fR -parameter is non\-zero, -\fBsd_watchdog_enabled()\fR -will unset the -\fI$WATCHDOG_USEC\fR -and -\fI$WATCHDOG_PID\fR -environment variables before returning (regardless of whether the function call itself succeeded or not)\&. Those variables are no longer inherited by child processes\&. Further calls to -\fBsd_watchdog_enabled()\fR -will also return with zero\&. -.PP -If the -\fIusec\fR -parameter is non\-\fBNULL\fR, -\fBsd_watchdog_enabled()\fR -will write the timeout in μs for the watchdog logic to it\&. -.PP -To enable service supervision with the watchdog logic, use -\fIWatchdogSec=\fR -in service files\&. See -\fBsystemd.service\fR(5) -for details\&. -.PP -Use -\fBsd_event_set_watchdog\fR(3) -to enable automatic watchdog support in -\fBsd-event\fR(3)\-based event loops\&. -.SH "RETURN VALUE" -.PP -On failure, this call returns a negative errno\-style error code\&. If the service manager expects watchdog keep\-alive notification messages to be sent, > 0 is returned, otherwise 0 is returned\&. Only if the return value is > 0, the -\fIusec\fR -parameter is valid after the call\&. -.SH "NOTES" -.PP -Functions described here are available as a shared library, which can be compiled against and linked to with the -\fBlibsystemd\fR\ \&\fBpkg-config\fR(1) -file\&. -.PP -The code described here uses -\fBgetenv\fR(3), which is declared to be not multi\-thread\-safe\&. This means that the code calling the functions described here must not call -\fBsetenv\fR(3) -from a parallel thread\&. It is recommended to only do calls to -\fBsetenv()\fR -from an early phase of the program when no other threads have been started\&. -.PP -Internally, this function parses the -\fI$WATCHDOG_PID\fR -and -\fI$WATCHDOG_USEC\fR -environment variable\&. The call will ignore these variables if -\fI$WATCHDOG_PID\fR -does not contain the PID of the current process, under the assumption that in that case, the variables were set for a different process further up the process tree\&. -.SH "ENVIRONMENT" -.PP -\fI$WATCHDOG_PID\fR -.RS 4 -Set by the system manager for supervised process for which watchdog support is enabled, and contains the PID of that process\&. See above for details\&. -.RE -.PP -\fI$WATCHDOG_USEC\fR -.RS 4 -Set by the system manager for supervised process for which watchdog support is enabled, and contains the watchdog timeout in μs\&. See above for details\&. -.RE -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), -\fBsd-daemon\fR(3), -\fBdaemon\fR(7), -\fBsystemd.service\fR(5), -\fBsd_notify\fR(3), -\fBsd_event_set_watchdog\fR(3) diff --git a/upstream/opensuse-tumbleweed/man3/seekdir.3 b/upstream/opensuse-tumbleweed/man3/seekdir.3 index 4a3fa514..a053f5bc 100644 --- a/upstream/opensuse-tumbleweed/man3/seekdir.3 +++ b/upstream/opensuse-tumbleweed/man3/seekdir.3 @@ -9,7 +9,7 @@ .\" 386BSD man pages .\" Modified Sat Jul 24 18:25:21 1993 by Rik Faith (faith@cs.unc.edu) .\" -.TH seekdir 3 2023-07-20 "Linux man-pages 6.05.01" +.TH seekdir 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME seekdir \- set the position of the next readdir() call in the directory stream. @@ -19,15 +19,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void seekdir(DIR *" dirp ", long " loc ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR seekdir (): .nf _XOPEN_SOURCE @@ -63,7 +63,6 @@ T{ .BR seekdir () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/sem_close.3 b/upstream/opensuse-tumbleweed/man3/sem_close.3 index 88adb878..46331acf 100644 --- a/upstream/opensuse-tumbleweed/man3/sem_close.3 +++ b/upstream/opensuse-tumbleweed/man3/sem_close.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH sem_close 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sem_close 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sem_close \- close a named semaphore .SH LIBRARY @@ -12,7 +12,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int sem_close(sem_t *" sem ); .fi .SH DESCRIPTION @@ -46,7 +46,6 @@ T{ .BR sem_close () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/sem_destroy.3 b/upstream/opensuse-tumbleweed/man3/sem_destroy.3 index 524a318d..66755371 100644 --- a/upstream/opensuse-tumbleweed/man3/sem_destroy.3 +++ b/upstream/opensuse-tumbleweed/man3/sem_destroy.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH sem_destroy 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sem_destroy 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sem_destroy \- destroy an unnamed semaphore .SH LIBRARY @@ -12,24 +12,24 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int sem_destroy(sem_t *" sem ); .fi .SH DESCRIPTION .BR sem_destroy () destroys the unnamed semaphore at the address pointed to by .IR sem . -.PP +.P Only a semaphore that has been initialized by .BR sem_init (3) should be destroyed using .BR sem_destroy (). -.PP +.P Destroying a semaphore that other processes or threads are currently blocked on (in .BR sem_wait (3)) produces undefined behavior. -.PP +.P Using a semaphore that has been destroyed produces undefined results, until the semaphore has been reinitialized using .BR sem_init (3). @@ -58,7 +58,6 @@ T{ .BR sem_destroy () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/sem_getvalue.3 b/upstream/opensuse-tumbleweed/man3/sem_getvalue.3 index 6e529bab..bfadd47e 100644 --- a/upstream/opensuse-tumbleweed/man3/sem_getvalue.3 +++ b/upstream/opensuse-tumbleweed/man3/sem_getvalue.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH sem_getvalue 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sem_getvalue 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sem_getvalue \- get the value of a semaphore .SH LIBRARY @@ -12,7 +12,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int sem_getvalue(sem_t *restrict " sem ", int *restrict " sval ); .fi .SH DESCRIPTION @@ -21,7 +21,7 @@ places the current value of the semaphore pointed to .I sem into the integer pointed to by .IR sval . -.PP +.P If one or more processes or threads are blocked waiting to lock the semaphore with .BR sem_wait (3), @@ -60,7 +60,6 @@ T{ .BR sem_getvalue () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/sem_init.3 b/upstream/opensuse-tumbleweed/man3/sem_init.3 index 5f9c352a..8ea6b64a 100644 --- a/upstream/opensuse-tumbleweed/man3/sem_init.3 +++ b/upstream/opensuse-tumbleweed/man3/sem_init.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH sem_init 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sem_init 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sem_init \- initialize an unnamed semaphore .SH LIBRARY @@ -12,7 +12,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int sem_init(sem_t *" sem ", int " pshared ", unsigned int " value ); .fi .SH DESCRIPTION @@ -22,12 +22,12 @@ initializes the unnamed semaphore at the address pointed to by The .I value argument specifies the initial value for the semaphore. -.PP +.P The .I pshared argument indicates whether this semaphore is to be shared between the threads of a process, or between processes. -.PP +.P If .I pshared has the value 0, @@ -35,7 +35,7 @@ then the semaphore is shared between the threads of a process, and should be located at some address that is visible to all threads (e.g., a global variable, or a variable allocated dynamically on the heap). -.PP +.P If .I pshared is nonzero, then the semaphore is shared between processes, @@ -52,7 +52,7 @@ can operate on the semaphore using .BR sem_post (3), .BR sem_wait (3), and so on. -.PP +.P Initializing a semaphore that has already been initialized results in undefined behavior. .SH RETURN VALUE @@ -87,12 +87,11 @@ T{ .BR sem_init () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY POSIX.1-2001. -.PP +.P Bizarrely, POSIX.1-2001 does not specify the value that should be returned by a successful call to .BR sem_init (). diff --git a/upstream/opensuse-tumbleweed/man3/sem_open.3 b/upstream/opensuse-tumbleweed/man3/sem_open.3 index 0845be98..0f29dcf7 100644 --- a/upstream/opensuse-tumbleweed/man3/sem_open.3 +++ b/upstream/opensuse-tumbleweed/man3/sem_open.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH sem_open 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sem_open 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sem_open \- initialize and open a named semaphore .SH LIBRARY @@ -14,7 +14,7 @@ POSIX threads library .BR "#include " " /* For O_* constants */" .BR "#include " " /* For mode constants */" .B #include -.PP +.P .BI "sem_t *sem_open(const char *" name ", int " oflag ); .BI "sem_t *sem_open(const char *" name ", int " oflag , .BI " mode_t " mode ", unsigned int " value ); @@ -28,7 +28,7 @@ For details of the construction of .IR name , see .BR sem_overview (7). -.PP +.P The .I oflag argument specifies flags that control the operation of the call. @@ -54,7 +54,7 @@ are specified in then an error is returned if a semaphore with the given .I name already exists. -.PP +.P If .B O_CREAT is specified in @@ -162,7 +162,6 @@ T{ .BR sem_open () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/sem_post.3 b/upstream/opensuse-tumbleweed/man3/sem_post.3 index 5406484f..eb23ef58 100644 --- a/upstream/opensuse-tumbleweed/man3/sem_post.3 +++ b/upstream/opensuse-tumbleweed/man3/sem_post.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH sem_post 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sem_post 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sem_post \- unlock a semaphore .SH LIBRARY @@ -12,7 +12,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int sem_post(sem_t *" sem ); .fi .SH DESCRIPTION @@ -53,7 +53,6 @@ T{ .BR sem_post () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/sem_unlink.3 b/upstream/opensuse-tumbleweed/man3/sem_unlink.3 index 434d1452..c0613329 100644 --- a/upstream/opensuse-tumbleweed/man3/sem_unlink.3 +++ b/upstream/opensuse-tumbleweed/man3/sem_unlink.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH sem_unlink 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sem_unlink 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sem_unlink \- remove a named semaphore .SH LIBRARY @@ -12,7 +12,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int sem_unlink(const char *" name ); .fi .SH DESCRIPTION @@ -54,7 +54,6 @@ T{ .BR sem_unlink () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/sem_wait.3 b/upstream/opensuse-tumbleweed/man3/sem_wait.3 index b1302ca3..f09f6974 100644 --- a/upstream/opensuse-tumbleweed/man3/sem_wait.3 +++ b/upstream/opensuse-tumbleweed/man3/sem_wait.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH sem_wait 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sem_wait 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sem_wait, sem_timedwait, sem_trywait \- lock a semaphore .SH LIBRARY @@ -12,18 +12,18 @@ POSIX threads library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int sem_wait(sem_t *" sem ); .BI "int sem_trywait(sem_t *" sem ); .BI "int sem_timedwait(sem_t *restrict " sem , .BI " const struct timespec *restrict " abs_timeout ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR sem_timedwait (): .nf _POSIX_C_SOURCE >= 200112L @@ -38,7 +38,7 @@ If the semaphore currently has the value zero, then the call blocks until either it becomes possible to perform the decrement (i.e., the semaphore value rises above zero), or a signal handler interrupts the call. -.PP +.P .BR sem_trywait () is the same as .BR sem_wait (), @@ -48,7 +48,7 @@ then call returns an error set to .BR EAGAIN ) instead of blocking. -.PP +.P .BR sem_timedwait () is the same as .BR sem_wait (), @@ -62,7 +62,7 @@ argument points to a .BR timespec (3) structure that specifies an absolute timeout in seconds and nanoseconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC). -.PP +.P If the timeout has already expired by the time of the call, and the semaphore could not be locked immediately, then @@ -71,7 +71,7 @@ fails with a timeout error .RI ( errno set to .BR ETIMEDOUT ). -.PP +.P If the operation can be performed immediately, then .BR sem_timedwait () never fails with a timeout error, regardless of the value of @@ -127,7 +127,6 @@ T{ .BR sem_timedwait () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -150,7 +149,7 @@ The second command-line argument specifies the length of the timeout, in seconds, for .BR sem_timedwait (). The following shows what happens on two different runs of the program: -.PP +.P .in +4n .EX .RB "$" " ./a.out 2 3" diff --git a/upstream/opensuse-tumbleweed/man3/setaliasent.3 b/upstream/opensuse-tumbleweed/man3/setaliasent.3 index 45fb5486..c82b6471 100644 --- a/upstream/opensuse-tumbleweed/man3/setaliasent.3 +++ b/upstream/opensuse-tumbleweed/man3/setaliasent.3 @@ -5,7 +5,7 @@ .\" .\" Polished a bit, added a little, aeb .\" -.TH setaliasent 3 2023-07-20 "Linux man-pages 6.05.01" +.TH setaliasent 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME setaliasent, endaliasent, getaliasent, getaliasent_r, getaliasbyname, getaliasbyname_r \- read an alias entry @@ -15,16 +15,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B "void setaliasent(void);" .B "void endaliasent(void);" -.PP +.P .B "struct aliasent *getaliasent(void);" .BI "int getaliasent_r(struct aliasent *restrict " result , .BI " char " buffer "[restrict ." buflen "], \ size_t " buflen , .BI " struct aliasent **restrict " res ); -.PP +.P .BI "struct aliasent *getaliasbyname(const char *" name ); .BI "int getaliasbyname_r(const char *restrict " name , .BI " struct aliasent *restrict " result , @@ -38,48 +38,48 @@ is the aliases database, that contains mail aliases. (To find out which databases are supported, try .IR "getent \-\-help" .) Six functions are provided to access the aliases database. -.PP +.P The .BR getaliasent () function returns a pointer to a structure containing the group information from the aliases database. The first time it is called it returns the first entry; thereafter, it returns successive entries. -.PP +.P The .BR setaliasent () function rewinds the file pointer to the beginning of the aliases database. -.PP +.P The .BR endaliasent () function closes the aliases database. -.PP +.P .BR getaliasent_r () is the reentrant version of the previous function. The requested structure is stored via the first argument but the programmer needs to fill the other arguments also. Not providing enough space causes the function to fail. -.PP +.P The function .BR getaliasbyname () takes the name argument and searches the aliases database. The entry is returned as a pointer to a .IR "struct aliasent" . -.PP +.P .BR getaliasbyname_r () is the reentrant version of the previous function. The requested structure is stored via the second argument but the programmer needs to fill the other arguments also. Not providing enough space causes the function to fail. -.PP +.P The .I "struct aliasent" is defined in .IR : -.PP +.P .in +4n .EX struct aliasent { @@ -125,12 +125,11 @@ T{ .BR getaliasbyname () T} Thread safety MT-Unsafe .TE -.sp 1 .SH STANDARDS GNU. .SH HISTORY The NeXT system has similar routines: -.PP +.P .in +4n .EX #include @@ -145,7 +144,7 @@ alias_ent *alias_getbyname(char *name); The following example compiles with .IR "gcc example.c \-o example" . It will dump all names in the alias database. -.PP +.P .\" SRC BEGIN (setaliasent.c) .EX #include diff --git a/upstream/opensuse-tumbleweed/man3/setbuf.3 b/upstream/opensuse-tumbleweed/man3/setbuf.3 index ad998c30..38400e48 100644 --- a/upstream/opensuse-tumbleweed/man3/setbuf.3 +++ b/upstream/opensuse-tumbleweed/man3/setbuf.3 @@ -18,7 +18,7 @@ .\" Correction, 2000-03-03, Andreas Jaeger .\" Added return value for setvbuf, aeb, .\" -.TH setbuf 3 2023-07-20 "Linux man-pages 6.05.01" +.TH setbuf 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME setbuf, setbuffer, setlinebuf, setvbuf \- stream buffering operations .SH LIBRARY @@ -27,21 +27,21 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int setvbuf(FILE *restrict " stream ", char " buf "[restrict ." size ], .BI " int " mode ", size_t " size ); -.PP +.P .BI "void setbuf(FILE *restrict " stream ", char *restrict " buf ); .BI "void setbuffer(FILE *restrict " stream ", char " buf "[restrict ." size ], .BI " size_t " size ); .BI "void setlinebuf(FILE *" stream ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR setbuffer (), .BR setlinebuf (): .nf @@ -63,7 +63,7 @@ The function may be used to force the block out early. (See .BR fclose (3).) -.PP +.P Normally all files are block buffered. If a stream refers to a terminal (as .I stdout @@ -71,7 +71,7 @@ normally does), it is line buffered. The standard error stream .I stderr is always unbuffered by default. -.PP +.P The .BR setvbuf () function may be used on any open stream to change its buffer. @@ -89,7 +89,7 @@ line buffered .B _IOFBF fully buffered .RE -.PP +.P Except for unbuffered files, the .I buf argument should point to a buffer at least @@ -104,17 +104,17 @@ The .BR setvbuf () function may be used only after opening a stream and before any other operations have been performed on it. -.PP +.P The other three calls are, in effect, simply aliases for calls to .BR setvbuf (). The .BR setbuf () function is exactly equivalent to the call -.PP +.P .in +4n setvbuf(stream, buf, buf ? _IOFBF : _IONBF, BUFSIZ); .in -.PP +.P The .BR setbuffer () function is the same, except that the size of the buffer is up to the @@ -123,7 +123,7 @@ caller, rather than being determined by the default The .BR setlinebuf () function is exactly equivalent to the call: -.PP +.P .in +4n setvbuf(stream, NULL, _IOLBF, 0); .in @@ -137,7 +137,7 @@ is invalid or the request cannot be honored). It may set .I errno on failure. -.PP +.P The other functions do not return a value. .SH ATTRIBUTES For an explanation of the terms used in this section, see @@ -156,7 +156,6 @@ T{ .BR setvbuf () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR setbuf () @@ -194,15 +193,15 @@ in order to detect errors. .\" On 4.2BSD and 4.3BSD systems, .\" .BR setbuf () .\" always uses a suboptimal buffer size and should be avoided. -.\".PP +.\".P You must make sure that the space that .I buf points to still exists by the time .I stream is closed, which also happens at program termination. For example, the following is invalid: -.PP -.\" [[invalid]] SRC BEGIN (setbuf.c) +.P +.\" SRC BEGIN (setbuf.c) .EX #include \& diff --git a/upstream/opensuse-tumbleweed/man3/setenv.3 b/upstream/opensuse-tumbleweed/man3/setenv.3 index 0fe65216..d6f9683d 100644 --- a/upstream/opensuse-tumbleweed/man3/setenv.3 +++ b/upstream/opensuse-tumbleweed/man3/setenv.3 @@ -15,7 +15,7 @@ .\" Noted nonstandard behavior of setenv() if name contains '=' .\" 2005-08-12, mtk, glibc 2.3.4 fixed the "name contains '='" bug .\" -.TH setenv 3 2023-07-20 "Linux man-pages 6.05.01" +.TH setenv 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME setenv \- change or add an environment variable .SH LIBRARY @@ -24,16 +24,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int setenv(const char *" name ", const char *" value ", int " overwrite ); .BI "int unsetenv(const char *" name ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR setenv (), .BR unsetenv (): .nf @@ -73,7 +73,7 @@ and .I value (by contrast with .BR putenv (3)). -.PP +.P The .BR unsetenv () function deletes the variable @@ -116,12 +116,11 @@ T{ .BR unsetenv () T} Thread safety MT-Unsafe const:env .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY POSIX.1-2001, 4.3BSD. -.PP +.P Prior to glibc 2.2.2, .BR unsetenv () was prototyped diff --git a/upstream/opensuse-tumbleweed/man3/setjmp.3 b/upstream/opensuse-tumbleweed/man3/setjmp.3 index 5133f89b..b42e0d24 100644 --- a/upstream/opensuse-tumbleweed/man3/setjmp.3 +++ b/upstream/opensuse-tumbleweed/man3/setjmp.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH setjmp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH setjmp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME setjmp, sigsetjmp, longjmp, siglongjmp \- performing a nonlocal goto .SH LIBRARY @@ -12,22 +12,22 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int setjmp(jmp_buf " env ); .BI "int sigsetjmp(sigjmp_buf " env ", int " savesigs ); -.PP +.P .BI "[[noreturn]] void longjmp(jmp_buf " env ", int " val ); .BI "[[noreturn]] void siglongjmp(sigjmp_buf " env ", int " val ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR setjmp (): see NOTES. -.PP +.P .BR sigsetjmp (): .nf _POSIX_C_SOURCE @@ -42,7 +42,7 @@ function dynamically establishes the target to which control will later be transferred, and .BR longjmp () performs the transfer of execution. -.PP +.P The .BR setjmp () function saves various information about the calling environment @@ -55,7 +55,7 @@ for later use by In this case, .BR setjmp () returns 0. -.PP +.P The .BR longjmp () function uses the information saved in @@ -70,7 +70,7 @@ the values of some other registers and the process signal mask may be restored to their state at the time of the .BR setjmp () call. -.PP +.P Following a successful .BR longjmp (), execution continues as if @@ -89,7 +89,7 @@ and .BR siglongjmp () also perform nonlocal gotos, but provide predictable handling of the process signal mask. -.PP +.P If, and only if, the .I savesigs argument provided to @@ -112,7 +112,7 @@ or the nonzero value specified in .I val is returned. -.PP +.P The .BR longjmp () or @@ -139,7 +139,6 @@ T{ .BR siglongjmp () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR setjmp () @@ -162,7 +161,7 @@ POSIX.1-2001, C89. .TQ .BR siglongjmp () POSIX.1-2001. -.PP +.P POSIX does not specify whether .BR setjmp () will save the signal mask @@ -239,7 +238,7 @@ and .IP \[bu] they are not declared as .IR volatile . -.PP +.P Analogous remarks apply for .BR siglongjmp (). .\" @@ -263,13 +262,13 @@ call. call should employ a unique .I jmp_buf variable.) -.PP +.P Adding further difficulty, the .BR setjmp () and .BR longjmp () calls may not even be in the same source code module. -.PP +.P In summary, nonlocal gotos can make programs harder to understand and maintain, and an alternative should be used if possible. .\" @@ -280,7 +279,7 @@ returns before .BR longjmp () is called, the behavior is undefined. Some kind of subtle or unsubtle chaos is sure to result. -.PP +.P If, in a multithreaded program, a .BR longjmp () call employs an @@ -298,7 +297,7 @@ in a different thread, the behavior is undefined. .\" (i.e., from a handler that was invoked in response to a signal that was .\" generated while another signal was already in the process of being .\" handled), the behavior is undefined. -.PP +.P POSIX.1-2008 Technical Corrigendum 2 adds .\" http://austingroupbugs.net/view.php?id=516#c1195 .BR longjmp () diff --git a/upstream/opensuse-tumbleweed/man3/setlocale.3 b/upstream/opensuse-tumbleweed/man3/setlocale.3 index d2b511e2..fe01130c 100644 --- a/upstream/opensuse-tumbleweed/man3/setlocale.3 +++ b/upstream/opensuse-tumbleweed/man3/setlocale.3 @@ -10,7 +10,7 @@ .\" Modified Tue Aug 24 17:11:01 1999 by Andries Brouwer (aeb@cwi.nl) .\" Modified Tue Feb 6 03:31:55 2001 by Andries Brouwer (aeb@cwi.nl) .\" -.TH setlocale 3 2023-07-20 "Linux man-pages 6.05.01" +.TH setlocale 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME setlocale \- set the current locale .SH LIBRARY @@ -19,14 +19,14 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *setlocale(int " category ", const char *" locale ); .fi .SH DESCRIPTION The .BR setlocale () function is used to set or query the program's current locale. -.PP +.P If .I locale is not NULL, @@ -74,12 +74,12 @@ LC_TIME T{ Formatting of date and time values T} .TE -.PP +.P The categories marked with an asterisk in the above table are GNU extensions. For further information on these locale categories, see .BR locale (7). -.PP +.P The argument .I locale is a pointer to a character string containing the @@ -88,11 +88,11 @@ required setting of Such a string is either a well-known constant like "C" or "da_DK" (see below), or an opaque string that was returned by another call of .BR setlocale (). -.PP +.P If .I locale is an empty string, -.BR """""" , +.BR \[dq]\[dq] , each part of the locale that should be modified is set according to the environment variables. The details are implementation-dependent. @@ -110,21 +110,21 @@ If its value is not a valid locale specification, the locale is unchanged, and .BR setlocale () returns NULL. -.PP +.P The locale -.B """C""" +.B \[dq]C\[dq] or -.B """POSIX""" +.B \[dq]POSIX\[dq] is a portable locale; it exists on all conforming systems. -.PP +.P A locale name is typically of the form .IR language "[_" territory "][." codeset "][@" modifier "]," where .I language -is an ISO 639 language code, +is an ISO\~639 language code, .I territory -is an ISO 3166 country code, and +is an ISO\~3166 country code, and .I codeset is a character set or encoding identifier like .B "ISO\-8859\-1" @@ -132,22 +132,22 @@ or .BR "UTF\-8" . For a list of all supported locales, try "locale \-a" (see .BR locale (1)). -.PP +.P If .I locale is NULL, the current locale is only queried, not modified. -.PP +.P On startup of the main program, the portable -.B """C""" +.B \[dq]C\[dq] locale is selected as default. A program may be made portable to all locales by calling: -.PP +.P .in +4n .EX setlocale(LC_ALL, ""); .EE .in -.PP +.P after program initialization, and then: .IP \[bu] 3 using the values returned from a @@ -191,7 +191,6 @@ T{ .BR setlocale () T} Thread safety MT-Unsafe const:locale env .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SS Categories diff --git a/upstream/opensuse-tumbleweed/man3/setlogmask.3 b/upstream/opensuse-tumbleweed/man3/setlogmask.3 index 223b8646..c4a5ddb8 100644 --- a/upstream/opensuse-tumbleweed/man3/setlogmask.3 +++ b/upstream/opensuse-tumbleweed/man3/setlogmask.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH setlogmask 3 2023-07-20 "Linux man-pages 6.05.01" +.TH setlogmask 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME setlogmask \- set log priority mask .SH LIBRARY @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int setlogmask(int " mask ); .fi .SH DESCRIPTION @@ -24,13 +24,17 @@ Logging is enabled for the priorities that have the corresponding bit set in .IR mask . The initial mask is such that logging is enabled for all priorities. -.PP +.P The .BR setlogmask () function sets this logmask for the calling process, and returns the previous mask. -If the mask argument is 0, the current logmask is not modified. -.PP +If the +.I mask +argument is +.BR 0 , +the current logmask is not modified. +.P The eight priorities are .BR LOG_EMERG , .BR LOG_ALERT , @@ -70,13 +74,12 @@ T{ .BR setlogmask () T} Thread safety MT-Unsafe race:LogMask .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY POSIX.1-2001. .\" Note that the description in POSIX.1-2001 is flawed. -.PP +.P .BR LOG_UPTO () will be included in the next release of the POSIX specification (Issue 8). .\" FIXME . https://www.austingroupbugs.net/view.php?id=1033 diff --git a/upstream/opensuse-tumbleweed/man3/setnetgrent.3 b/upstream/opensuse-tumbleweed/man3/setnetgrent.3 index 8cc779fa..b47d4d7f 100644 --- a/upstream/opensuse-tumbleweed/man3/setnetgrent.3 +++ b/upstream/opensuse-tumbleweed/man3/setnetgrent.3 @@ -6,7 +6,7 @@ .\" based on glibc infopages .\" polished - aeb .\" -.TH setnetgrent 3 2023-07-30 "Linux man-pages 6.05.01" +.TH setnetgrent 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME setnetgrent, endnetgrent, getnetgrent, getnetgrent_r, innetgr \- handle network group entries @@ -16,25 +16,25 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int setnetgrent(const char *" netgroup ); .B "void endnetgrent(void);" -.PP +.P .BI "int getnetgrent(char **restrict " host , .BI " char **restrict " user ", char **restrict " domain ); .BI "int getnetgrent_r(char **restrict " host , .BI " char **restrict " user ", char **restrict " domain , .BI " char " buf "[restrict ." buflen "], size_t " buflen ); -.PP +.P .BI "int innetgr(const char *" netgroup ", const char *" host , .BI " const char *" user ", const char *" domain ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR \%setnetgrent (), .BR \%endnetgrent (), .BR \%getnetgrent (), @@ -59,7 +59,7 @@ The functions described here allow access to the netgroup databases. The file .I /etc/nsswitch.conf defines what database is searched. -.PP +.P The .BR setnetgrent () call defines the netgroup that will be searched by subsequent @@ -79,7 +79,7 @@ To avoid this problem you can use the GNU function that stores the strings in the supplied buffer. To free all allocated buffers use .BR endnetgrent (). -.PP +.P In most cases you want to check only if the triplet .RI ( hostname ", " username ", " domainname ) is a member of a netgroup. @@ -134,7 +134,7 @@ MT-Unsafe race:netgrent race:netgrentbuf locale T} .TE -.sp 1 +.P In the above table, .I netgrent in diff --git a/upstream/opensuse-tumbleweed/man3/shm_open.3 b/upstream/opensuse-tumbleweed/man3/shm_open.3 index c5756c47..257e460e 100644 --- a/upstream/opensuse-tumbleweed/man3/shm_open.3 +++ b/upstream/opensuse-tumbleweed/man3/shm_open.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH shm_open 3 2023-07-20 "Linux man-pages 6.05.01" +.TH shm_open 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME shm_open, shm_unlink \- create/open or unlink POSIX shared memory objects .SH LIBRARY @@ -14,7 +14,7 @@ Real-time library .B #include .BR "#include " " /* For mode constants */" .BR "#include " " /* For O_* constants */" -.PP +.P .BI "int shm_open(const char *" name ", int " oflag ", mode_t " mode ); .BI "int shm_unlink(const char *" name ); .fi @@ -30,7 +30,7 @@ The function performs the converse operation, removing an object previously created by .BR shm_open (). -.PP +.P The operation of .BR shm_open () is analogous to that of @@ -51,7 +51,7 @@ followed by one or more characters, none of which are slashes. .\" case the subdirectory must exist under /dev/shm, and allow the .\" required permissions if a user wants to create a shared memory .\" object in that subdirectory. -.PP +.P .I oflag is a bit mask created by ORing together exactly one of .B O_RDONLY @@ -107,10 +107,10 @@ does not exist, are performed atomically. .TP .B O_TRUNC If the shared memory object already exists, truncate it to zero bytes. -.PP +.P Definitions of these flag values can be obtained by including .IR . -.PP +.P On successful completion .BR shm_open () returns a new file descriptor referring to the shared memory object. @@ -121,7 +121,7 @@ The flag (see .BR fcntl (2)) is set for the file descriptor. -.PP +.P The file descriptor is normally used in subsequent calls to .BR ftruncate (2) @@ -130,7 +130,7 @@ to After a call to .BR mmap (2) the file descriptor may be closed without affecting the memory mapping. -.PP +.P The operation of .BR shm_unlink () @@ -235,7 +235,6 @@ T{ .BR shm_unlink () T} Thread safety MT-Safe locale .TE -.sp 1 .SH VERSIONS POSIX leaves the behavior of the combination of .B O_RDONLY @@ -244,7 +243,7 @@ and unspecified. On Linux, this will successfully truncate an existing shared memory object\[em]this may not be so on other UNIX systems. -.PP +.P The POSIX shared memory object implementation on Linux makes use of a dedicated .BR tmpfs (5) @@ -255,7 +254,7 @@ POSIX.1-2008. .SH HISTORY glibc 2.2. POSIX.1-2001. -.PP +.P POSIX.1-2001 says that the group ownership of a newly created shared memory object is set to either the calling process's effective group ID or "a system default group ID". @@ -271,7 +270,7 @@ of a string that is placed into the shared memory by the "send" program. Once the data has been modified, the "send" program then prints the contents of the modified shared memory. An example execution of the two programs is the following: -.PP +.P .in +4n .EX $ \fB./pshm_ucase_bounce /myshm &\fP @@ -280,24 +279,24 @@ $ \fB./pshm_ucase_send /myshm hello\fP HELLO .EE .in -.PP +.P Further detail about these programs is provided below. .\" .SS Program source: pshm_ucase.h The following header file is included by both programs below. Its primary purpose is to define a structure that will be imposed on the memory object that is shared between the two programs. -.PP +.P .in +4n .\" SRC BEGIN (pshm_ucase.h) .EX -#include +#ifndef PSHM_UCASE_H +#define PSHM_UCASE_H +\& #include +#include #include #include -#include -#include -#include \& #define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \e } while (0) @@ -313,6 +312,8 @@ struct shmbuf { size_t cnt; /* Number of bytes used in \[aq]buf\[aq] */ char buf[BUF_SIZE]; /* Data being transferred */ }; +\& +#endif // include guard .EE .\" SRC END .in @@ -325,12 +326,12 @@ match the size of the structure defined in the header file. It then maps the object into the process's address space, and initializes two POSIX semaphores inside the object to 0. -.PP +.P After the "send" program has posted the first of the semaphores, the "bounce" program upper cases the data that has been placed in the memory by the "send" program and then posts the second semaphore to tell the "send" program that it may now access the shared memory. -.PP +.P .in +4n .\" SRC BEGIN (pshm_ucase_bounce.c) .EX @@ -339,6 +340,11 @@ to tell the "send" program that it may now access the shared memory. Licensed under GNU General Public License v2 or later. */ #include +#include +#include +#include +#include +#include \& #include "pshm_ucase.h" \& @@ -413,7 +419,7 @@ main(int argc, char *argv[]) The "send" program takes two command-line arguments: the pathname of a shared memory object previously created by the "bounce" program and a string that is to be copied into that object. -.PP +.P The program opens the shared memory object and maps the object into its address space. It then copies the data specified in its second argument @@ -423,7 +429,7 @@ which tells the "bounce" program that it can now access that data. After the "bounce" program posts the second semaphore, the "send" program prints the contents of the shared memory on standard output. -.PP +.P .in +4n .\" SRC BEGIN (pshm_ucase_send.c) .EX @@ -431,7 +437,13 @@ on standard output. \& Licensed under GNU General Public License v2 or later. */ +#include +#include +#include +#include #include +#include +#include \& #include "pshm_ucase.h" \& diff --git a/upstream/opensuse-tumbleweed/man3/siginterrupt.3 b/upstream/opensuse-tumbleweed/man3/siginterrupt.3 index 3f4c2461..82c17e26 100644 --- a/upstream/opensuse-tumbleweed/man3/siginterrupt.3 +++ b/upstream/opensuse-tumbleweed/man3/siginterrupt.3 @@ -9,7 +9,7 @@ .\" 386BSD man pages .\" Modified Sun Jul 25 10:40:51 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified Sun Apr 14 16:20:34 1996 by Andries Brouwer (aeb@cwi.nl) -.TH siginterrupt 3 2023-07-20 "Linux man-pages 6.05.01" +.TH siginterrupt 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME siginterrupt \- allow signals to interrupt system calls .SH LIBRARY @@ -18,15 +18,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] int siginterrupt(int " sig ", int " flag ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR siginterrupt (): .nf _XOPEN_SOURCE >= 500 @@ -43,12 +43,12 @@ If the \fIflag\fP argument is false (0), then system calls will be restarted if interrupted by the specified signal \fIsig\fP. This is the default behavior in Linux. -.PP +.P If the \fIflag\fP argument is true (1) and no data has been transferred, then a system call interrupted by the signal \fIsig\fP will return \-1 and \fIerrno\fP will be set to .BR EINTR . -.PP +.P If the \fIflag\fP argument is true (1) and data transfer has started, then the system call will be interrupted and will return the actual amount of data transferred. @@ -84,7 +84,6 @@ T} Thread safety T{ MT-Unsafe const:sigintr T} .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/signbit.3 b/upstream/opensuse-tumbleweed/man3/signbit.3 index 5dddad65..8c39fc02 100644 --- a/upstream/opensuse-tumbleweed/man3/signbit.3 +++ b/upstream/opensuse-tumbleweed/man3/signbit.3 @@ -7,7 +7,7 @@ .\" .\" Based on glibc infopages, copyright Free Software Foundation .\" -.TH signbit 3 2023-07-20 "Linux man-pages 6.05.01" +.TH signbit 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME signbit \- test sign of a real floating-point number .SH LIBRARY @@ -16,15 +16,15 @@ Math library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "int signbit(" x ");" .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR signbit (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -35,7 +35,7 @@ is a generic macro which can work on all real floating-point types. It returns a nonzero value if the value of .I x has its sign bit set. -.PP +.P This is not the same as .IR "x < 0.0" , because IEEE 754 floating point allows zero to be signed. @@ -44,7 +44,7 @@ The comparison is false, but .I signbit(\-0.0) will return a nonzero value. -.PP +.P NaNs and infinities have a sign bit. .SH RETURN VALUE The @@ -68,12 +68,11 @@ T{ .BR signbit () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY POSIX.1-2001, C99. -.PP +.P This function is defined in IEC 559 (and the appendix with recommended functions in IEEE 754/IEEE 854). .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/significand.3 b/upstream/opensuse-tumbleweed/man3/significand.3 index 794955ac..1966d24d 100644 --- a/upstream/opensuse-tumbleweed/man3/significand.3 +++ b/upstream/opensuse-tumbleweed/man3/significand.3 @@ -5,7 +5,7 @@ .\" .\" heavily based on glibc infopages, copyright Free Software Foundation .\" -.TH significand 3 2023-07-20 "Linux man-pages 6.05.01" +.TH significand 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME significand, significandf, significandl \- get mantissa of floating-point number @@ -15,17 +15,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double significand(double " x ); .BI "float significandf(float " x ); .BI "long double significandl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR significand (), .BR significandf (), .BR significandl (): @@ -36,15 +36,16 @@ Feature Test Macro Requirements for glibc (see .SH DESCRIPTION These functions return the mantissa of .I x -scaled to the range [1,2). +scaled to the range +.RB [ 1 ,\~ FLT_RADIX ). They are equivalent to -.PP +.P .in +4n .EX scalb(x, (double) \-ilogb(x)) .EE .in -.PP +.P This function exists mainly for use in certain standardized tests for IEEE 754 conformance. .SH ATTRIBUTES @@ -63,7 +64,6 @@ T{ .BR significandl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .TP diff --git a/upstream/opensuse-tumbleweed/man3/sigpause.3 b/upstream/opensuse-tumbleweed/man3/sigpause.3 index 492d9fab..bd935931 100644 --- a/upstream/opensuse-tumbleweed/man3/sigpause.3 +++ b/upstream/opensuse-tumbleweed/man3/sigpause.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH sigpause 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sigpause 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sigpause \- atomically release blocked signals and wait for interrupt .SH LIBRARY @@ -12,9 +12,9 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] int sigpause(int " sigmask "); /* BSD (but see NOTES) */" -.PP +.P .BI "[[deprecated]] int sigpause(int " sig "); /* POSIX.1 / SysV / UNIX 95 */" .fi .SH DESCRIPTION @@ -22,7 +22,7 @@ Don't use this function. Use .BR sigsuspend (2) instead. -.PP +.P The function .BR sigpause () is designed to wait for some signal. @@ -51,7 +51,6 @@ T{ .BR sigpause () T} Thread safety MT-Safe .TE -.sp 1 .\" FIXME: The marking is different from that in the glibc manual, .\" marking in glibc manual is more detailed: .\" @@ -63,7 +62,7 @@ T} Thread safety MT-Safe .SH VERSIONS On Linux, this routine is a system call only on the Sparc (sparc64) architecture. -.PP +.P .\" Libc4 and libc5 know only about the BSD version. .\" glibc uses the BSD version if the @@ -84,7 +83,7 @@ _XOPEN_SOURCE >= 500 .\" || (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED) .IP \[bu] glibc 2.25 and earlier: _XOPEN_SOURCE -.PP +.P Since glibc 2.19, only the System V version is exposed by .IR ; applications that formerly used the BSD @@ -100,7 +99,7 @@ POSIX.1-2008. .SH HISTORY POSIX.1-2001. Obsoleted in POSIX.1-2008. -.PP +.P The classical BSD version of this function appeared in 4.2BSD. It sets the process's signal mask to .IR sigmask . diff --git a/upstream/opensuse-tumbleweed/man3/sigqueue.3 b/upstream/opensuse-tumbleweed/man3/sigqueue.3 index 98238a40..341d942f 100644 --- a/upstream/opensuse-tumbleweed/man3/sigqueue.3 +++ b/upstream/opensuse-tumbleweed/man3/sigqueue.3 @@ -6,7 +6,7 @@ .\" added note on self-signaling, aeb, 2002-06-07 .\" added note on CAP_KILL, mtk, 2004-06-16 .\" -.TH sigqueue 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sigqueue 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sigqueue \- queue a signal and data to a process .SH LIBRARY @@ -15,15 +15,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int sigqueue(pid_t " pid ", int " sig ", const union sigval " value ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR sigqueue (): .nf _POSIX_C_SOURCE >= 199309L @@ -40,12 +40,12 @@ As with .BR kill (2), the null signal (0) can be used to check if a process with a given PID exists. -.PP +.P The .I value argument is used to specify an accompanying item of data (either an integer or a pointer value) to be sent with the signal, and has the following type: -.PP +.P .in +4n .EX union sigval { @@ -54,7 +54,7 @@ union sigval { }; .EE .in -.PP +.P If the receiving process has installed a handler for this signal using the .B SA_SIGINFO flag to @@ -111,7 +111,6 @@ T{ .BR sigqueue () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS .SS C library/kernel differences On Linux, @@ -130,7 +129,7 @@ Inside the glibc wrapper, this argument, .IR uinfo , is initialized as follows: -.PP +.P .in +4n .EX uinfo.si_signo = sig; /* Argument supplied to sigqueue() */ diff --git a/upstream/opensuse-tumbleweed/man3/sigset.3 b/upstream/opensuse-tumbleweed/man3/sigset.3 index f7fad4d3..195b5fe9 100644 --- a/upstream/opensuse-tumbleweed/man3/sigset.3 +++ b/upstream/opensuse-tumbleweed/man3/sigset.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH sigset 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sigset 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sigset, sighold, sigrelse, sigignore \- System V signal API .SH LIBRARY @@ -12,21 +12,21 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B typedef void (*sighandler_t)(int); -.PP +.P .BI "[[deprecated]] sighandler_t sigset(int " sig ", sighandler_t " disp ); -.PP +.P .BI "[[deprecated]] int sighold(int " sig ); .BI "[[deprecated]] int sigrelse(int " sig ); .BI "[[deprecated]] int sigignore(int " sig ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR sigset (), .BR sighold (), .BR sigrelse (), @@ -42,7 +42,7 @@ This API is obsolete: new applications should use the POSIX signal API .RB ( sigaction (2), .BR sigprocmask (2), etc.) -.PP +.P The .BR sigset () function modifies the disposition of the signal @@ -67,13 +67,13 @@ Add to the process's signal mask, but leave the disposition of .I sig unchanged. -.PP +.P If .I disp specifies the address of a signal handler, then .I sig is added to the process's signal mask during execution of the handler. -.PP +.P If .I disp was specified as a value other than @@ -81,25 +81,25 @@ was specified as a value other than then .I sig is removed from the process's signal mask. -.PP +.P The dispositions for .B SIGKILL and .B SIGSTOP cannot be changed. -.PP +.P The .BR sighold () function adds .I sig to the calling process's signal mask. -.PP +.P The .BR sigrelse () function removes .I sig from the calling process's signal mask. -.PP +.P The .BR sigignore () function sets the disposition of @@ -122,7 +122,7 @@ returns \-1, with .I errno set to indicate the error. (But see BUGS below.) -.PP +.P The .BR sighold (), .BR sigrelse (), @@ -138,14 +138,14 @@ see the ERRORS under .BR sigaction (2) and .BR sigprocmask (2). -.PP +.P For .BR sighold () and .BR sigrelse () see the ERRORS under .BR sigprocmask (2). -.PP +.P For .BR sigignore (), see the errors under @@ -167,7 +167,6 @@ T{ .BR sigignore () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .TP @@ -194,7 +193,7 @@ function provides reliable signal handling semantics (as when calling with .I sa_mask equal to 0). -.PP +.P On System V, the .BR signal () function provides unreliable semantics (as when calling @@ -212,7 +211,7 @@ unspecified. See .BR signal (2) for further details. -.PP +.P In order to wait for a signal, BSD and System V both provided a function named .BR sigpause (3), @@ -229,7 +228,7 @@ if .I disp was specified as a value other than .BR SIG_HOLD . -.PP +.P Before glibc 2.5, .BR sigset () does not correctly return the previous disposition of the signal diff --git a/upstream/opensuse-tumbleweed/man3/sigsetops.3 b/upstream/opensuse-tumbleweed/man3/sigsetops.3 index 4172dbce..fd1ea9ab 100644 --- a/upstream/opensuse-tumbleweed/man3/sigsetops.3 +++ b/upstream/opensuse-tumbleweed/man3/sigsetops.3 @@ -9,7 +9,7 @@ .\" 2007-10-26 mdw added wording that a sigset_t must be initialized .\" prior to use .\" -.TH SIGSETOPS 3 2023-07-20 "Linux man-pages 6.05.01" +.TH SIGSETOPS 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sigemptyset, sigfillset, sigaddset, sigdelset, sigismember \- POSIX signal set operations @@ -19,21 +19,21 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int sigemptyset(sigset_t *" set ); .BI "int sigfillset(sigset_t *" set ); -.PP +.P .BI "int sigaddset(sigset_t *" set ", int " signum ); .BI "int sigdelset(sigset_t *" set ", int " signum ); -.PP +.P .BI "int sigismember(const sigset_t *" set ", int " signum ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR sigemptyset (), .BR sigfillset (), .BR sigaddset (), @@ -44,17 +44,17 @@ Feature Test Macro Requirements for glibc (see .fi .SH DESCRIPTION These functions allow the manipulation of POSIX signal sets. -.PP +.P .BR sigemptyset () initializes the signal set given by .I set to empty, with all signals excluded from the set. -.PP +.P .BR sigfillset () initializes .I set to full, including all signals. -.PP +.P .BR sigaddset () and .BR sigdelset () @@ -62,13 +62,13 @@ add and delete respectively signal .I signum from .IR set . -.PP +.P .BR sigismember () tests whether .I signum is a member of .IR set . -.PP +.P Objects of type .I sigset_t must be initialized by a call to either @@ -93,7 +93,7 @@ The results are undefined if this is not done. and .BR sigdelset () return 0 on success and \-1 on error. -.PP +.P .BR sigismember () returns 1 if .I signum @@ -102,7 +102,7 @@ is a member of 0 if .I signum is not a member, and \-1 on error. -.PP +.P On error, these functions set .I errno to indicate the error. @@ -132,7 +132,6 @@ T{ .BR sigandset () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS .SS GNU If the @@ -140,7 +139,7 @@ If the feature test macro is defined, then \fI\fP exposes three other functions for manipulating signal sets: -.PP +.P .nf .BI "int sigisemptyset(const sigset_t *" set ); .BI "int sigorset(sigset_t *" dest ", const sigset_t *" left , @@ -148,12 +147,12 @@ sets: .BI "int sigandset(sigset_t *" dest ", const sigset_t *" left , .BI " const sigset_t *" right ); .fi -.PP +.P .BR sigisemptyset () returns 1 if .I set contains no signals, and 0 otherwise. -.PP +.P .BR sigorset () places the union of the sets .I left @@ -169,7 +168,7 @@ and in .IR dest . Both functions return 0 on success, and \-1 on failure. -.PP +.P These functions are nonstandard (a few other systems provide similar functions) and their use should be avoided in portable applications. .SH STANDARDS diff --git a/upstream/opensuse-tumbleweed/man3/sigvec.3 b/upstream/opensuse-tumbleweed/man3/sigvec.3 index c4529a88..31f5ef4b 100644 --- a/upstream/opensuse-tumbleweed/man3/sigvec.3 +++ b/upstream/opensuse-tumbleweed/man3/sigvec.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH sigvec 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sigvec 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sigvec, sigblock, sigsetmask, siggetmask, sigmask \- BSD signal API .SH LIBRARY @@ -12,22 +12,22 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] int sigvec(int " sig ", const struct sigvec *" vec , .BI " struct sigvec *" ovec ); -.PP +.P .BI "[[deprecated]] int sigmask(int " signum ); -.PP +.P .BI "[[deprecated]] int sigblock(int " mask ); .BI "[[deprecated]] int sigsetmask(int " mask ); .B [[deprecated]] int siggetmask(void); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P All functions shown above: .nf Since glibc 2.19: @@ -42,7 +42,7 @@ This API is obsolete: new applications should use the POSIX signal API .RB ( sigaction (2), .BR sigprocmask (2), etc.). -.PP +.P The .BR sigvec () function sets and/or gets the disposition of the signal @@ -67,17 +67,17 @@ without changing it, specify NULL for .IR vec , and a non-null pointer for .IR ovec . -.PP +.P The dispositions for .B SIGKILL and .B SIGSTOP cannot be changed. -.PP +.P The .I sigvec structure has the following form: -.PP +.P .in +4n .EX struct sigvec { @@ -87,7 +87,7 @@ struct sigvec { }; .EE .in -.PP +.P The .I sv_handler field specifies the disposition of the signal, and is either: @@ -96,7 +96,7 @@ the address of a signal handler function; meaning the default disposition applies for the signal; or .BR SIG_IGN , meaning that the signal is ignored. -.PP +.P If .I sv_handler specifies the address of a signal handler, then @@ -110,7 +110,7 @@ Attempts to block or .B SIGSTOP are silently ignored. -.PP +.P If .I sv_handler specifies the address of a signal handler, then the @@ -141,7 +141,7 @@ Handle the signal on the alternate signal stack .BR sigstack () function; the POSIX replacement is .BR sigaltstack (2)). -.PP +.P The .BR sigmask () macro constructs and returns a "signal mask" for @@ -151,7 +151,7 @@ For example, we can initialize the field given to .BR sigvec () using code such as the following: -.PP +.P .in +4n .EX vec.sv_mask = sigmask(SIGQUIT) | sigmask(SIGABRT); @@ -159,7 +159,7 @@ vec.sv_mask = sigmask(SIGQUIT) | sigmask(SIGABRT); handler execution */ .EE .in -.PP +.P The .BR sigblock () function adds the signals in @@ -173,7 +173,7 @@ Attempts to block or .B SIGSTOP are silently ignored. -.PP +.P The .BR sigsetmask () function sets the process's signal mask to the value given in @@ -181,7 +181,7 @@ function sets the process's signal mask to the value given in (like POSIX .IR sigprocmask(SIG_SETMASK) ), and returns the process's previous signal mask. -.PP +.P The .BR siggetmask () function returns the process's current signal mask. @@ -193,13 +193,13 @@ The function returns 0 on success; on error, it returns \-1 and sets .I errno to indicate the error. -.PP +.P The .BR sigblock () and .BR sigsetmask () functions return the previous signal mask. -.PP +.P The .BR sigmask () macro returns the signal mask for @@ -227,7 +227,6 @@ T{ .BR siggetmask () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY @@ -263,7 +262,7 @@ unspecified. See .BR signal (2) for further details. -.PP +.P In order to wait for a signal, BSD and System V both provided a function named .BR sigpause (3), diff --git a/upstream/opensuse-tumbleweed/man3/sigwait.3 b/upstream/opensuse-tumbleweed/man3/sigwait.3 index 38250ec9..f79c917a 100644 --- a/upstream/opensuse-tumbleweed/man3/sigwait.3 +++ b/upstream/opensuse-tumbleweed/man3/sigwait.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH sigwait 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sigwait 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sigwait \- wait for a signal .SH LIBRARY @@ -13,15 +13,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int sigwait(const sigset_t *restrict " set ", int *restrict " sig ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR sigwait (): .nf Since glibc 2.26: @@ -36,11 +36,14 @@ function suspends execution of the calling thread until one of the signals specified in the signal set .I set becomes pending. +For a signal to become pending, +it must first be blocked with +.BR sigprocmask (2). The function accepts the signal (removes it from the pending list of signals), and returns the signal number in .IR sig . -.PP +.P The operation of .BR sigwait () is the same as @@ -78,12 +81,13 @@ T{ .BR sigwait () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS .BR sigwait () is implemented using -.BR sigtimedwait (2). -.PP +.BR sigtimedwait (2); +consult its +.BR NOTES . +.P The glibc implementation of .BR sigwait () silently ignores attempts to wait for the two real-time signals that diff --git a/upstream/opensuse-tumbleweed/man3/sin.3 b/upstream/opensuse-tumbleweed/man3/sin.3 index 8ef99de4..7d90bee7 100644 --- a/upstream/opensuse-tumbleweed/man3/sin.3 +++ b/upstream/opensuse-tumbleweed/man3/sin.3 @@ -13,7 +13,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH sin 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sin 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sin, sinf, sinl \- sine function .SH LIBRARY @@ -22,17 +22,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double sin(double " x ); .BI "float sinf(float " x ); .BI "long double sinl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR sinf (), .BR sinl (): .nf @@ -50,11 +50,11 @@ given in radians. .SH RETURN VALUE On success, these functions return the sine of .IR x . -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is positive infinity or negative infinity, @@ -68,7 +68,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP is an infinity @@ -95,12 +95,11 @@ T{ .BR sinl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/sincos.3 b/upstream/opensuse-tumbleweed/man3/sincos.3 index 79b920db..69769f11 100644 --- a/upstream/opensuse-tumbleweed/man3/sincos.3 +++ b/upstream/opensuse-tumbleweed/man3/sincos.3 @@ -5,7 +5,7 @@ .\" .\" SPDX-License-Identifier: GPL-1.0-or-later .\" -.TH sincos 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sincos 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sincos, sincosf, sincosl \- calculate sin and cos simultaneously .SH LIBRARY @@ -15,7 +15,7 @@ Math library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "void sincos(double " x ", double *" sin ", double *" cos ); .BI "void sincosf(float " x ", float *" sin ", float *" cos ); .BI "void sincosl(long double " x ", long double *" sin ", long double *" cos ); @@ -31,7 +31,7 @@ Using this function can be more efficient than two separate calls to .BR sin (3) and .BR cos (3). -.PP +.P If .I x is a NaN, @@ -39,7 +39,7 @@ a NaN is returned in .I *sin and .IR *cos . -.PP +.P If .I x is positive infinity or negative infinity, @@ -56,7 +56,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP is an infinity @@ -83,7 +83,6 @@ T{ .BR sincosl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH HISTORY @@ -94,7 +93,7 @@ To see the performance advantage of it may be necessary to disable .BR gcc (1) built-in optimizations, using flags such as: -.PP +.P .in +4n .EX cc \-O \-lm \-fno\-builtin prog.c diff --git a/upstream/opensuse-tumbleweed/man3/sinh.3 b/upstream/opensuse-tumbleweed/man3/sinh.3 index bc9d17e0..a80a95ff 100644 --- a/upstream/opensuse-tumbleweed/man3/sinh.3 +++ b/upstream/opensuse-tumbleweed/man3/sinh.3 @@ -14,7 +14,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH sinh 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sinh 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sinh, sinhf, sinhl \- hyperbolic sine function .SH LIBRARY @@ -23,17 +23,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double sinh(double " x ); .BI "float sinhf(float " x ); .BI "long double sinhl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR sinhf (), .BR sinhl (): .nf @@ -46,27 +46,27 @@ These functions return the hyperbolic sine of .IR x , which is defined mathematically as: -.PP +.P .nf sinh(x) = (exp(x) \- exp(\-x)) / 2 .fi .SH RETURN VALUE On success, these functions return the hyperbolic sine of .IR x . -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is +0 (\-0), +0 (\-0) is returned. -.PP +.P If .I x is positive infinity (negative infinity), positive infinity (negative infinity) is returned. -.PP +.P If the result overflows, a range error occurs, and the functions return @@ -85,7 +85,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Range error: result overflow @@ -111,12 +111,11 @@ T{ .BR sinhl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/sleep.3 b/upstream/opensuse-tumbleweed/man3/sleep.3 index cf87069e..8d3effc6 100644 --- a/upstream/opensuse-tumbleweed/man3/sleep.3 +++ b/upstream/opensuse-tumbleweed/man3/sleep.3 @@ -4,7 +4,7 @@ .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" Modified Sat Jul 24 18:16:02 1993 by Rik Faith (faith@cs.unc.edu) -.TH sleep 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sleep 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sleep \- sleep for a specified number of seconds .SH LIBRARY @@ -13,7 +13,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "unsigned int sleep(unsigned int " "seconds" ); .fi .SH DESCRIPTION @@ -40,7 +40,6 @@ T{ .BR sleep () T} Thread safety MT-Unsafe sig:SIGCHLD/linux .TE -.sp 1 .SH VERSIONS On Linux, .BR sleep () @@ -49,7 +48,7 @@ is implemented via See the .BR nanosleep (2) man page for a discussion of the clock used. -.PP +.P On some systems, .BR sleep () may be implemented using diff --git a/upstream/opensuse-tumbleweed/man3/slist.3 b/upstream/opensuse-tumbleweed/man3/slist.3 index 98ce8593..ecdfe5c7 100644 --- a/upstream/opensuse-tumbleweed/man3/slist.3 +++ b/upstream/opensuse-tumbleweed/man3/slist.3 @@ -5,7 +5,7 @@ .\" SPDX-License-Identifier: BSD-3-Clause .\" .\" -.TH SLIST 3 2023-05-03 "Linux man-pages 6.05.01" +.TH SLIST 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME SLIST_EMPTY, SLIST_ENTRY, @@ -31,45 +31,45 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B SLIST_ENTRY(TYPE); -.PP +.P .B SLIST_HEAD(HEADNAME, TYPE); .BI "SLIST_HEAD SLIST_HEAD_INITIALIZER(SLIST_HEAD " head ); .BI "void SLIST_INIT(SLIST_HEAD *" head ); -.PP +.P .BI "int SLIST_EMPTY(SLIST_HEAD *" head ); -.PP +.P .BI "void SLIST_INSERT_HEAD(SLIST_HEAD *" head , .BI " struct TYPE *" elm ", SLIST_ENTRY " NAME ); .BI "void SLIST_INSERT_AFTER(struct TYPE *" listelm , .BI " struct TYPE *" elm ", SLIST_ENTRY " NAME ); -.PP +.P .BI "struct TYPE *SLIST_FIRST(SLIST_HEAD *" head ); .BI "struct TYPE *SLIST_NEXT(struct TYPE *" elm ", SLIST_ENTRY " NAME ); -.PP +.P .BI "SLIST_FOREACH(struct TYPE *" var ", SLIST_HEAD *" head ", SLIST_ENTRY " NAME ); .\" .BI "SLIST_FOREACH_FROM(struct TYPE *" var ", SLIST_HEAD *" head , .\" .BI " SLIST_ENTRY " NAME ); -.\" .PP +.\" .P .\" .BI "SLIST_FOREACH_SAFE(struct TYPE *" var ", SLIST_HEAD *" head , .\" .BI " SLIST_ENTRY " NAME ", struct TYPE *" temp_var ); .\" .BI "SLIST_FOREACH_FROM_SAFE(struct TYPE *" var ", SLIST_HEAD *" head , .\" .BI " SLIST_ENTRY " NAME ", struct TYPE *" temp_var ); -.PP +.P .BI "void SLIST_REMOVE(SLIST_HEAD *" head ", struct TYPE *" elm , .BI " SLIST_ENTRY " NAME ); .BI "void SLIST_REMOVE_HEAD(SLIST_HEAD *" head , .BI " SLIST_ENTRY " NAME ); .\" .BI "void SLIST_REMOVE_AFTER(struct TYPE *" elm , .\" .BI " SLIST_ENTRY " NAME ); -.\" .PP +.\" .P .\" .BI "void SLIST_SWAP(SLIST_HEAD *" head1 ", SLIST_HEAD *" head2 , .\" .BI " SLIST_ENTRY " NAME ); .fi .SH DESCRIPTION -These macros define and operate on doubly linked lists. -.PP +These macros define and operate on singly linked lists. +.P In the macro definitions, .I TYPE is the name of a user-defined structure, @@ -96,44 +96,44 @@ or at the head of the list. An .I SLIST_HEAD structure is declared as follows: -.PP +.P .in +4 .EX SLIST_HEAD(HEADNAME, TYPE) head; .EE .in -.PP +.P where .I struct HEADNAME is the structure to be defined, and .I struct TYPE is the type of the elements to be linked into the list. A pointer to the head of the list can later be declared as: -.PP +.P .in +4 .EX struct HEADNAME *headp; .EE .in -.PP +.P (The names .I head and .I headp are user selectable.) -.PP +.P .BR SLIST_ENTRY () declares a structure that connects the elements in the list. -.PP +.P .BR SLIST_HEAD_INITIALIZER () evaluates to an initializer for the list .IR head . -.PP +.P .BR SLIST_INIT () initializes the list referenced by .IR head . -.PP +.P .BR SLIST_EMPTY () evaluates to true if there are no elements in the list. .SS Insertion @@ -141,7 +141,7 @@ evaluates to true if there are no elements in the list. inserts the new element .I elm at the head of the list. -.PP +.P .BR SLIST_INSERT_AFTER () inserts the new element .I elm @@ -150,17 +150,17 @@ after the element .SS Traversal .BR SLIST_FIRST () returns the first element in the list, or NULL if the list is empty. -.PP +.P .BR SLIST_NEXT () returns the next element in the list. -.PP +.P .BR SLIST_FOREACH () traverses the list referenced by .I head in the forward direction, assigning each element in turn to .IR var . -.\" .PP +.\" .P .\" .BR SLIST_FOREACH_FROM () .\" behaves identically to .\" .BR SLIST_FOREACH () @@ -185,7 +185,7 @@ assigning each element in turn to .\" .I var .\" as well as free it from within the loop safely without interfering with the .\" traversal. -.\" .PP +.\" .P .\" .BR SLIST_FOREACH_FROM_SAFE () .\" behaves identically to .\" .BR SLIST_FOREACH_SAFE () @@ -202,7 +202,7 @@ assigning each element in turn to removes the element .I elm from the list. -.PP +.P .BR SLIST_REMOVE_HEAD () removes the element .I elm @@ -211,7 +211,7 @@ For optimum efficiency, elements being removed from the head of the list should explicitly use this macro instead of the generic .BR SLIST_REMOVE (). -.\" .PP +.\" .P .\" .BR SLIST_REMOVE_AFTER () .\" removes the element after .\" .I elm @@ -229,14 +229,14 @@ should explicitly use this macro instead of the generic .BR SLIST_EMPTY () returns nonzero if the list is empty, and zero if the list contains at least one entry. -.PP +.P .BR SLIST_FIRST (), and .BR SLIST_NEXT () return a pointer to the first or next .I TYPE structure, respectively. -.PP +.P .BR SLIST_HEAD_INITIALIZER () returns an initializer that can be assigned to the list .IR head . diff --git a/upstream/opensuse-tumbleweed/man3/slk.3ncurses b/upstream/opensuse-tumbleweed/man3/slk.3ncurses index 3c5d38b2..b98daf13 100644 --- a/upstream/opensuse-tumbleweed/man3/slk.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/slk.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2016,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_slk.3x,v 1.67 2023/12/16 21:18:45 tom Exp $ -.TH slk 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: curs_slk.3x,v 1.71 2024/04/20 18:54:36 tom Exp $ +.TH slk 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -277,7 +277,8 @@ if \fIopts\fP is set it is treated as a pointer to \fIint\fP, and used to set the color pair instead of the \fIshort\fP pair parameter. .SH PORTABILITY -X/Open Curses, Issue 4, describes these functions, +X/Open Curses, +Issue 4 describes these functions, with some differences from SVr4 \fIcurses\fP: .bP X/Open added functions like the SVr4 attribute-manipulation functions diff --git a/upstream/opensuse-tumbleweed/man3/sockatmark.3 b/upstream/opensuse-tumbleweed/man3/sockatmark.3 index ca039108..62d1ba19 100644 --- a/upstream/opensuse-tumbleweed/man3/sockatmark.3 +++ b/upstream/opensuse-tumbleweed/man3/sockatmark.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH sockatmark 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sockatmark 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sockatmark \- determine whether socket is at out-of-band mark .SH LIBRARY @@ -12,15 +12,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int sockatmark(int " sockfd ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR sockatmark (): .nf _POSIX_C_SOURCE >= 200112L @@ -67,7 +67,6 @@ T{ .BR sockatmark () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -80,14 +79,14 @@ returns 1, then the out-of-band data can be read using the .B MSG_OOB flag of .BR recv (2). -.PP +.P Out-of-band data is supported only on some stream socket protocols. -.PP +.P .BR sockatmark () can safely be called from a handler for the .B SIGURG signal. -.PP +.P .BR sockatmark () is implemented using the .B SIOCATMARK @@ -102,7 +101,7 @@ The following code can be used after receipt of a .B SIGURG signal to read (and discard) all data up to the mark, and then read the byte of data at the mark: -.PP +.P .EX char buf[BUF_LEN]; char oobdata; diff --git a/upstream/opensuse-tumbleweed/man3/sp_funcs.3ncurses b/upstream/opensuse-tumbleweed/man3/sp_funcs.3ncurses index 59837efa..a79b9f84 100644 --- a/upstream/opensuse-tumbleweed/man3/sp_funcs.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/sp_funcs.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 2010-2015,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_sp_funcs.3x,v 1.46 2023/12/23 16:26:05 tom Exp $ -.TH sp_funcs 3NCURSES 2023-12-23 "ncurses 6.4" "Library calls" +.\" $Id: curs_sp_funcs.3x,v 1.50 2024/04/20 18:56:31 tom Exp $ +.TH sp_funcs 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -63,7 +63,7 @@ \fBint echo_sp(SCREEN* \fIsp\fP); \fBint endwin_sp(SCREEN* \fIsp\fP); \fBchar erasechar_sp(SCREEN* \fIsp\fP); -\fBint erasewchar_sp(SCREEN* \fIsp\fP, wchar_t *\fIch\fP); +\fBint erasewchar_sp(SCREEN* \fIsp\fP, wchar_t *\fIwc\fP); \fBint extended_color_content_sp(SCREEN * \fIsp\fP, int \fIcolor\fP, int * \fIr\fP, int * \fIg\fP, int * \fIb\fP); \fBint extended_pair_content_sp(SCREEN* \fIsp\fP, int \fIpair\fP, int * \fIfg\fP, int * \fIbg\fP); \fBint extended_slk_color_sp(SCREEN* \fIsp\fP, int \fIpair\fP); @@ -81,7 +81,7 @@ .PP \fBbool has_ic_sp(SCREEN* \fIsp\fP); \fBbool has_il_sp(SCREEN* \fIsp\fP); -\fBint has_key_sp(SCREEN* \fIsp\fP, int \fIch\fP); +\fBint has_key_sp(SCREEN* \fIsp\fP, int \fIc\fP); \fBbool has_mouse_sp(SCREEN* \fIsp\fP); \fBint init_color_sp(SCREEN* \fIsp\fP, short \fIcolor\fP, short \fIr\fP, short \fIg\fP, short \fIb\fP); \fBint init_extended_color_sp(SCREEN* \fIsp\fP, int \fIcolor\fP, int \fIr\fP, int \fIg\fP, int \fIb\fP); @@ -101,7 +101,7 @@ \fBint keyok_sp(SCREEN* \fIsp\fP, int \fIkeycode\fP, bool \fIenable\fP); \fBchar killchar_sp(SCREEN* \fIsp\fP); .PP -\fBint killwchar_sp(SCREEN* \fIsp\fP, wchar_t *\fIch\fP); +\fBint killwchar_sp(SCREEN* \fIsp\fP, wchar_t *\fIwc\fP); \fBchar* longname_sp(SCREEN* \fIsp\fP); \fBint mcprint_sp(SCREEN* \fIsp\fP, char *\fIdata\fP, int \fIlen\fP); \fBint mouseinterval_sp(SCREEN* \fIsp\fP, int \fIerval\fP); @@ -159,8 +159,8 @@ \fBchtype termattrs_sp(SCREEN* \fIsp\fP); \fBchar* termname_sp(SCREEN* \fIsp\fP); \fBint typeahead_sp(SCREEN* \fIsp\fP, int \fIfd\fP); -\fBint unget_wch_sp(SCREEN* \fIsp\fP, const wchar_t \fIwch\fP); -\fBint ungetch_sp(SCREEN* \fIsp\fP, int \fIch\fP); +\fBint unget_wch_sp(SCREEN* \fIsp\fP, const wchar_t \fIwc\fP); +\fBint ungetch_sp(SCREEN* \fIsp\fP, int \fIc\fP); \fBint ungetmouse_sp(SCREEN* \fIsp\fP, MEVENT* \fIevent\fP); \fBint use_default_colors_sp(SCREEN* \fIsp\fP); \fBvoid use_env_sp(SCREEN* \fIsp\fP, bool \fIbf\fP); @@ -171,7 +171,7 @@ \fBint vid_puts_sp(SCREEN* \fIsp\fP, attr_t \fIattrs\fP, short \fIpair\fP, void * \fIopts\fP, NCURSES_SP_OUTC \fIputc\fP); \fBint vidattr_sp(SCREEN* \fIsp\fP, chtype \fIattrs\fP); \fBint vidputs_sp(SCREEN* \fIsp\fP, chtype \fIattrs\fP, NCURSES_SP_OUTC \fIputc\fP); -\fBwchar_t* wunctrl_sp(SCREEN* \fIsp\fP, cchar_t *\fIch\fP); +\fBwchar_t* wunctrl_sp(SCREEN* \fIsp\fP, cchar_t *\fIwch\fP); .PP \fB#include .PP @@ -208,7 +208,7 @@ .PP \fB#include .PP -\fBNCURSES_CONST char* unctrl_sp(SCREEN* \fIsp\fP, chtype \fIc\fP); +\fBNCURSES_CONST char* unctrl_sp(SCREEN* \fIsp\fP, chtype \fIch\fP); .fi .SH DESCRIPTION This implementation can be configured to provide a set of functions which diff --git a/upstream/opensuse-tumbleweed/man3/spacing.3menu b/upstream/opensuse-tumbleweed/man3/spacing.3menu index ba9f01d5..ade4063b 100644 --- a/upstream/opensuse-tumbleweed/man3/spacing.3menu +++ b/upstream/opensuse-tumbleweed/man3/spacing.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: menu_spacing.3x,v 1.35 2023/12/16 20:32:22 tom Exp $ -.TH spacing 3MENU 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: menu_spacing.3x,v 1.37 2024/03/16 15:35:01 tom Exp $ +.TH spacing 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBset_menu_spacing\fP, \fBmenu_spacing\fP \- diff --git a/upstream/opensuse-tumbleweed/man3/sqrt.3 b/upstream/opensuse-tumbleweed/man3/sqrt.3 index fac38c07..6f012ab7 100644 --- a/upstream/opensuse-tumbleweed/man3/sqrt.3 +++ b/upstream/opensuse-tumbleweed/man3/sqrt.3 @@ -12,7 +12,7 @@ .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu) .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) -.TH sqrt 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sqrt 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sqrt, sqrtf, sqrtl \- square root function .SH LIBRARY @@ -21,17 +21,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double sqrt(double " x ); .BI "float sqrtf(float " x ); .BI "long double sqrtl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR sqrtf (), .BR sqrtl (): .nf @@ -45,19 +45,19 @@ These functions return the nonnegative square root of .SH RETURN VALUE On success, these functions return the square root of .IR x . -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is +0 (\-0), +0 (\-0) is returned. -.PP +.P If .I x is positive infinity, positive infinity is returned. -.PP +.P If .I x is less than \-0, @@ -68,7 +68,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP less than \-0 @@ -94,12 +94,11 @@ T{ .BR sqrtl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/sscanf.3 b/upstream/opensuse-tumbleweed/man3/sscanf.3 index 223f4f55..46eef259 100644 --- a/upstream/opensuse-tumbleweed/man3/sscanf.3 +++ b/upstream/opensuse-tumbleweed/man3/sscanf.3 @@ -22,7 +22,7 @@ .\" Add ERRORS section. .\" Document the 'a' and 'm' modifiers for dynamic string allocation. .\" -.TH sscanf 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sscanf 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sscanf, vsscanf \- input string format conversion .SH LIBRARY @@ -31,21 +31,21 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int sscanf(const char *restrict " str , .BI " const char *restrict " format ", ...);" -.PP +.P .B #include -.PP +.P .BI "int vsscanf(const char *restrict " str , .BI " const char *restrict " format ", va_list " ap ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR vsscanf (): .nf _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L @@ -53,7 +53,7 @@ Feature Test Macro Requirements for glibc (see .SH DESCRIPTION The .BR sscanf () -family of functions scans input according to +family of functions scans formatted input according to .I format as described below. This format may contain @@ -67,7 +67,7 @@ Each .I pointer argument must be of a type that is appropriate for the value returned by the corresponding conversion specification. -.PP +.P If the number of conversion specifications in .I format exceeds the number of @@ -78,17 +78,17 @@ If the number of arguments exceeds the number of conversion specifications, then the excess .I pointer arguments are evaluated, but are otherwise ignored. -.PP +.P .BR sscanf () These functions read their input from the string pointed to by .IR str . -.PP +.P The .BR vsscanf () function is analogous to .BR vsprintf (3). -.PP +.P The .I format string consists of a sequence of @@ -102,7 +102,7 @@ A "failure" can be either of the following: meaning that input characters were unavailable, or .IR "matching failure" , meaning that the input was inappropriate (see below). -.PP +.P A directive is one of the following: .TP \[bu] @@ -125,7 +125,7 @@ argument. If the next item of input does not match the conversion specification, the conversion fails\[em]this is a .IR "matching failure" . -.PP +.P Each .I conversion specification in @@ -205,7 +205,7 @@ rather than a pointer to an A .I "conversion specifier" that specifies the type of input conversion to be performed. -.PP +.P The conversion specifications in .I format are of two forms, either beginning with \[aq]%\[aq] or beginning with @@ -344,7 +344,7 @@ As for but the next pointer is a pointer to a .IR size_t . This modifier was introduced in C99. -.PP +.P The following .I "conversion specifiers" are available: @@ -359,7 +359,6 @@ No conversion is done (but initial white space characters are discarded), and assignment does not occur. .TP .B d -.IR Deprecated . Matches an optionally signed decimal integer; the next pointer must be a pointer to .IR int . @@ -374,7 +373,6 @@ the next pointer must be a pointer to .\" is silently ignored, causing old programs to fail mysteriously.) .TP .B i -.IR Deprecated . Matches an optionally signed integer; the next pointer must be a pointer to .IR int . The integer is read in base 16 if it begins with @@ -387,18 +385,15 @@ and in base 10 otherwise. Only characters that correspond to the base are used. .TP .B o -.IR Deprecated . Matches an unsigned octal integer; the next pointer must be a pointer to .IR "unsigned int" . .TP .B u -.IR Deprecated . Matches an unsigned decimal integer; the next pointer must be a pointer to .IR "unsigned int" . .TP .B x -.IR Deprecated . Matches an unsigned hexadecimal integer (that may optionally begin with a prefix of .I 0x @@ -409,33 +404,27 @@ be a pointer to .IR "unsigned int" . .TP .B X -.IR Deprecated . Equivalent to .BR x . .TP .B f -.IR Deprecated . Matches an optionally signed floating-point number; the next pointer must be a pointer to .IR float . .TP .B e -.IR Deprecated . Equivalent to .BR f . .TP .B g -.IR Deprecated . Equivalent to .BR f . .TP .B E -.IR Deprecated . Equivalent to .BR f . .TP .B a -.IR Deprecated . (C99) Equivalent to .BR f . .TP @@ -522,7 +511,7 @@ On success, these functions return the number of input items successfully matched and assigned; this can be fewer than provided for, or even zero, in the event of an early matching failure. -.PP +.P The value .B EOF is returned if the end of input is reached before either the first @@ -554,12 +543,11 @@ T{ .BR vsscanf () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C89, POSIX.1-2001. -.PP +.P The .B q specifier is the 4.4BSD notation for @@ -569,7 +557,7 @@ while or the usage of .B L in integer conversions is the GNU notation. -.PP +.P The Linux version of these functions is based on the .I GNU .I libio @@ -592,14 +580,14 @@ Thus, one could write the following to have allocate a buffer for a string, with a pointer to that buffer being returned in .IR *buf : -.PP +.P .in +4n .EX char *buf; sscanf(str, "%as", &buf); .EE .in -.PP +.P The use of the letter .B a for this purpose was problematic, since @@ -610,7 +598,7 @@ is also specified by the ISO C standard as a synonym for POSIX.1-2008 instead specifies the .B m modifier for assignment allocation (as documented in DESCRIPTION, above). -.PP +.P Note that the .B a modifier is not available if the program is compiled with @@ -622,13 +610,13 @@ or is also specified), in which case the .B a is interpreted as a specifier for floating-point numbers (see above). -.PP +.P Support for the .B m modifier was added to glibc 2.7, and new programs should use that modifier instead of .BR a . -.PP +.P As well as being standardized by POSIX, the .B m modifier has the following further advantages over @@ -662,8 +650,8 @@ Instead, programs should use functions such as .BR strtol (3) to parse numeric input. -This manual page deprecates use of the numeric conversion specifiers -until they are fixed by ISO C. +Alternatively, +mitigate it by specifying a maximum field width. .SS Nonstandard modifiers These functions are fully C99 conformant, but provide the additional modifiers @@ -677,7 +665,7 @@ and modifiers. The latter may be considered to be a bug, as it changes the behavior of modifiers defined in C99. -.PP +.P Some combinations of the type modifiers and conversion specifiers defined by C99 do not make sense (e.g., @@ -693,7 +681,7 @@ in combination with \fBd\fP, \fBi\fP, \fBo\fP, \fBu\fP, \fBx\fP, and \fBX\fP conversions or .BR ll . -.PP +.P The usage of .B q is not the same as on 4.4BSD, @@ -709,7 +697,7 @@ or The caller must .BR free (3) the returned string, as in the following example: -.PP +.P .in +4n .EX char *p; @@ -727,7 +715,7 @@ if (n == 1) { } .EE .in -.PP +.P As shown in the above example, it is necessary to call .BR free (3) only if the diff --git a/upstream/opensuse-tumbleweed/man3/stailq.3 b/upstream/opensuse-tumbleweed/man3/stailq.3 index 2fca2406..2441dcf5 100644 --- a/upstream/opensuse-tumbleweed/man3/stailq.3 +++ b/upstream/opensuse-tumbleweed/man3/stailq.3 @@ -5,7 +5,7 @@ .\" SPDX-License-Identifier: BSD-3-Clause .\" .\" -.TH STAILQ 3 2023-05-03 "Linux man-pages 6.05.01" +.TH STAILQ 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME .\"SIMPLEQ_CONCAT, SIMPLEQ_EMPTY, @@ -54,43 +54,43 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B STAILQ_ENTRY(TYPE); -.PP +.P .B STAILQ_HEAD(HEADNAME, TYPE); .BI "STAILQ_HEAD STAILQ_HEAD_INITIALIZER(STAILQ_HEAD " head ); .BI "void STAILQ_INIT(STAILQ_HEAD *" head ); -.PP +.P .BI "int STAILQ_EMPTY(STAILQ_HEAD *" head ); -.PP +.P .BI "void STAILQ_INSERT_HEAD(STAILQ_HEAD *" head , .BI " struct TYPE *" elm ", STAILQ_ENTRY " NAME ); .BI "void STAILQ_INSERT_TAIL(STAILQ_HEAD *" head , .BI " struct TYPE *" elm ", STAILQ_ENTRY " NAME ); .BI "void STAILQ_INSERT_AFTER(STAILQ_HEAD *" head ", struct TYPE *" listelm , .BI " struct TYPE *" elm ", STAILQ_ENTRY " NAME ); -.PP +.P .BI "struct TYPE *STAILQ_FIRST(STAILQ_HEAD *" head ); .\" .BI "struct TYPE *STAILQ_LAST(STAILQ_HEAD *" head ", struct TYPE *" elm , .\" .BI " STAILQ_ENTRY " NAME ); .BI "struct TYPE *STAILQ_NEXT(struct TYPE *" elm ", STAILQ_ENTRY " NAME ); -.PP +.P .BI "STAILQ_FOREACH(struct TYPE *" var ", STAILQ_HEAD *" head ", STAILQ_ENTRY " NAME ); .\" .BI "STAILQ_FOREACH_FROM(struct TYPE *" var ", STAILQ_HEAD *" head , .\" .BI " STAILQ_ENTRY " NAME ); -.\" .PP +.\" .P .\" .BI "STAILQ_FOREACH_SAFE(struct TYPE *" var ", STAILQ_HEAD *" head , .\" .BI " STAILQ_ENTRY " NAME ", struct TYPE *" temp_var ); .\" .BI "STAILQ_FOREACH_FROM_SAFE(struct TYPE *" var ", STAILQ_HEAD *" head , .\" .BI " STAILQ_ENTRY " NAME ", struct TYPE *" temp_var ); -.PP +.P .BI "void STAILQ_REMOVE(STAILQ_HEAD *" head ", struct TYPE *" elm ", TYPE," .BI " STAILQ_ENTRY " NAME ); .BI "void STAILQ_REMOVE_HEAD(STAILQ_HEAD *" head , .BI " STAILQ_ENTRY " NAME ); .\" .BI "void STAILQ_REMOVE_AFTER(STAILQ_HEAD *" head ", struct TYPE *" elm , .\" .BI " STAILQ_ENTRY " NAME ); -.PP +.P .BI "void STAILQ_CONCAT(STAILQ_HEAD *" head1 ", STAILQ_HEAD *" head2 ); .\" .BI "void STAILQ_SWAP(STAILQ_HEAD *" head1 ", STAILQ_HEAD *" head2 , .\" .BI " STAILQ_ENTRY " NAME ); @@ -99,7 +99,7 @@ Standard C library Identical macros prefixed with SIMPLEQ instead of STAILQ exist; see NOTES. .SH DESCRIPTION These macros define and operate on singly linked tail queues. -.PP +.P In the macro definitions, .I TYPE is the name of a user-defined structure, @@ -126,43 +126,43 @@ at the head of the tail queue, or at the end of the tail queue. A .I STAILQ_HEAD structure is declared as follows: -.PP +.P .in +4 .EX STAILQ_HEAD(HEADNAME, TYPE) head; .EE .in -.PP +.P where .I struct HEADNAME is the structure to be defined, and .I struct TYPE is the type of the elements to be linked into the tail queue. A pointer to the head of the tail queue can later be declared as: -.PP +.P .in +4 .EX struct HEADNAME *headp; .EE .in -.PP +.P (The names .I head and .I headp are user selectable.) -.PP +.P .BR STAILQ_ENTRY () declares a structure that connects the elements in the tail queue. -.PP +.P .BR STAILQ_HEAD_INITIALIZER () evaluates to an initializer for the tail queue .IR head . -.PP +.P .BR STAILQ_INIT () initializes the tail queue referenced by .IR head . -.PP +.P .BR STAILQ_EMPTY () evaluates to true if there are no items on the tail queue. .SS Insertion @@ -170,12 +170,12 @@ evaluates to true if there are no items on the tail queue. inserts the new element .I elm at the head of the tail queue. -.PP +.P .BR STAILQ_INSERT_TAIL () inserts the new element .I elm at the end of the tail queue. -.PP +.P .BR STAILQ_INSERT_AFTER () inserts the new element .I elm @@ -184,21 +184,21 @@ after the element .SS Traversal .BR STAILQ_FIRST () returns the first item on the tail queue or NULL if the tail queue is empty. -.\" .PP +.\" .P .\" .BR STAILQ_LAST () .\" returns the last item on the tail queue. .\" If the tail queue is empty the return value is NULL . -.PP +.P .BR STAILQ_NEXT () returns the next item on the tail queue, or NULL this item is the last. -.PP +.P .BR STAILQ_FOREACH () traverses the tail queue referenced by .I head in the forward direction, assigning each element in turn to .IR var . -.\" .PP +.\" .P .\" .BR STAILQ_FOREACH_FROM () .\" behaves identically to .\" .BR STAILQ_FOREACH () @@ -210,7 +210,7 @@ assigning each element in turn to .\" .I var .\" instead of the first element in the STAILQ referenced by .\" .IR head . -.\" .PP +.\" .P .\" .BR STAILQ_FOREACH_SAFE () .\" traverses the tail queue referenced by .\" .I head @@ -223,7 +223,7 @@ assigning each element in turn to .\" .I var .\" as well as free it from within the loop safely without interfering with the .\" traversal. -.\" .PP +.\" .P .\" .BR STAILQ_FOREACH_FROM_SAFE () .\" behaves identically to .\" .BR STAILQ_FOREACH_SAFE () @@ -240,7 +240,7 @@ assigning each element in turn to removes the element .I elm from the tail queue. -.PP +.P .BR STAILQ_REMOVE_HEAD () removes the element at the head of the tail queue. For optimum efficiency, @@ -248,7 +248,7 @@ elements being removed from the head of the tail queue should use this macro explicitly rather than the generic .BR STAILQ_REMOVE () macro. -.\" .PP +.\" .P .\" .BR STAILQ_REMOVE_AFTER () .\" removes the element after .\" .I elm @@ -263,7 +263,7 @@ concatenates the tail queue headed by onto the end of the one headed by .I head1 removing all entries from the former. -.\" .PP +.\" .P .\" .BR STAILQ_SWAP () .\" swaps the contents of .\" .I head1 @@ -273,14 +273,14 @@ removing all entries from the former. .BR STAILQ_EMPTY () returns nonzero if the queue is empty, and zero if the queue contains at least one entry. -.PP +.P .BR STAILQ_FIRST (), and .BR STAILQ_NEXT () return a pointer to the first or next .I TYPE structure, respectively. -.PP +.P .BR STAILQ_HEAD_INITIALIZER () returns an initializer that can be assigned to the queue .IR head . diff --git a/upstream/opensuse-tumbleweed/man3/static_assert.3 b/upstream/opensuse-tumbleweed/man3/static_assert.3 index 86c6673d..ee83779a 100644 --- a/upstream/opensuse-tumbleweed/man3/static_assert.3 +++ b/upstream/opensuse-tumbleweed/man3/static_assert.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH static_assert 3 2023-05-03 "Linux man-pages 6.05.01" +.TH static_assert 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME static_assert, _Static_assert \- fail compilation if assertion is false .SH LIBRARY @@ -11,9 +11,9 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void static_assert(scalar " constant-expression ", const char *" msg ); -.PP +.P /* Since C23: */ .BI "void static_assert(scalar " constant-expression ); .fi @@ -23,14 +23,14 @@ This macro is similar to but it works at compile time, generating a compilation error (with an optional message) when the input is false (i.e., compares equal to zero). -.PP +.P If the input is nonzero, no code is emitted. -.PP +.P .I msg must be a string literal. Since C23, this argument is optional. -.PP +.P There's a keyword, .BR \%_Static_assert (), that behaves identically, @@ -57,7 +57,7 @@ a macro can be written in terms of .BR \%static_assert (). The following program uses the macro to get the size of an array safely. -.PP +.P .in +4n .\" SRC BEGIN (must_be.c) .EX diff --git a/upstream/opensuse-tumbleweed/man3/statvfs.3 b/upstream/opensuse-tumbleweed/man3/statvfs.3 index 9b1978be..15b4f86b 100644 --- a/upstream/opensuse-tumbleweed/man3/statvfs.3 +++ b/upstream/opensuse-tumbleweed/man3/statvfs.3 @@ -8,7 +8,7 @@ .\" .\" Modified 2004-06-23 by Michael Kerrisk .\" -.TH statvfs 3 2023-07-20 "Linux man-pages 6.05.01" +.TH statvfs 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME statvfs, fstatvfs \- get filesystem statistics .SH LIBRARY @@ -17,7 +17,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int statvfs(const char *restrict " path \ ", struct statvfs *restrict " buf ); .BI "int fstatvfs(int " fd ", struct statvfs *" buf ); @@ -32,7 +32,7 @@ is the pathname of any file within the mounted filesystem. is a pointer to a .I statvfs structure defined approximately as follows: -.PP +.P .in +4n .EX struct statvfs { @@ -52,7 +52,7 @@ struct statvfs { }; .EE .in -.PP +.P Here the types .I fsblkcnt_t and @@ -61,7 +61,7 @@ are defined in .IR . Both used to be .IR "unsigned long" . -.PP +.P The field .I f_flag is a bit mask indicating various options that were employed @@ -104,10 +104,10 @@ Writes are synched to the filesystem immediately (see the description of .B O_SYNC in .BR open (2)). -.PP +.P It is unspecified whether all members of the returned struct have meaningful values on all filesystems. -.PP +.P .BR fstatvfs () returns the same information about an open file referenced by descriptor .IR fd . @@ -188,7 +188,6 @@ T{ .BR fstatvfs () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS Only the .B ST_NOSUID @@ -205,9 +204,9 @@ The Linux kernel has system calls and .BR fstatfs (2) to support this library call. -.PP +.P The glibc implementations of -.PP +.P .in +4n .EX pathconf(path, _PC_REC_XFER_ALIGN); @@ -215,7 +214,7 @@ pathconf(path, _PC_ALLOC_SIZE_MIN); pathconf(path, _PC_REC_MIN_XFER_SIZE); .EE .in -.PP +.P respectively use the .IR f_frsize , .IR f_frsize , @@ -225,7 +224,7 @@ fields returned by a call to .BR statvfs () with the argument .IR path . -.PP +.P Under Linux, .I f_favail is always the same as @@ -237,7 +236,7 @@ since no filesystems with an inode root reservation exist. POSIX.1-2008. .SH HISTORY POSIX.1-2001. -.PP +.P Before glibc 2.13, .\" glibc commit 3cdaa6adb113a088fdfb87aa6d7747557eccc58d .BR statvfs () diff --git a/upstream/opensuse-tumbleweed/man3/stdarg.3 b/upstream/opensuse-tumbleweed/man3/stdarg.3 index f3762f7c..40f6cc96 100644 --- a/upstream/opensuse-tumbleweed/man3/stdarg.3 +++ b/upstream/opensuse-tumbleweed/man3/stdarg.3 @@ -13,7 +13,7 @@ .\" Converted for Linux, Mon Nov 29 15:11:11 1993, faith@cs.unc.edu .\" Additions, 2001-10-14, aeb .\" -.TH stdarg 3 2023-07-20 "Linux man-pages 6.05.01" +.TH stdarg 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME stdarg, va_start, va_arg, va_end, va_copy \- variable argument lists .SH LIBRARY @@ -22,7 +22,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void va_start(va_list " ap ", " last ); .IB type " va_arg(va_list " ap ", " type ); .BI "void va_end(va_list " ap ); @@ -37,7 +37,7 @@ declares a type .I va_list and defines three macros for stepping through a list of arguments whose number and types are not known to the called function. -.PP +.P The called function must declare an object of type .I va_list which is used by the macros @@ -55,12 +55,12 @@ for subsequent use by and .BR va_end (), and must be called first. -.PP +.P The argument .I last is the name of the last argument before the variable argument list, that is, the last argument of which the calling function knows the type. -.PP +.P Because the address of this argument may be used in the .BR va_start () macro, it should not be declared as a register variable, @@ -87,7 +87,7 @@ The argument is a type name specified so that the type of a pointer to an object that has the specified type can be obtained simply by adding a * to .IR type . -.PP +.P The first use of the .BR va_arg () macro after that of the @@ -95,12 +95,12 @@ macro after that of the macro returns the argument after .IR last . Successive invocations return the values of the remaining arguments. -.PP +.P If there is no next argument, or if .I type is not compatible with the type of the actual next argument (as promoted according to the default argument promotions), random errors will occur. -.PP +.P If .I ap is passed to a function that uses @@ -144,30 +144,30 @@ argument, followed by the same number of .BR va_arg () invocations that was used to reach the current state of .IR src . -.PP +.P .\" Proposal from clive@demon.net, 1997-02-28 An obvious implementation would have a .I va_list be a pointer to the stack frame of the variadic function. In such a setup (by far the most common) there seems nothing against an assignment -.PP +.P .in +4n .EX va_list aq = ap; .EE .in -.PP +.P Unfortunately, there are also systems that make it an array of pointers (of length 1), and there one needs -.PP +.P .in +4n .EX va_list aq; *aq = *ap; .EE .in -.PP +.P Finally, on systems where arguments are passed in registers, it may be necessary for .BR va_start () @@ -181,7 +181,7 @@ can free the allocated memory again. To accommodate this situation, C99 adds a macro .BR va_copy (), so that the above assignment can be replaced by -.PP +.P .in +4n .EX va_list aq; @@ -190,7 +190,7 @@ va_copy(aq, ap); va_end(aq); .EE .in -.PP +.P Each invocation of .BR va_copy () must be matched by a corresponding invocation of @@ -222,7 +222,6 @@ T{ .BR va_arg () T} Thread safety MT-Safe race:ap .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -257,7 +256,7 @@ The function .I foo takes a string of format characters and prints out the argument associated with each format character based on the type. -.PP +.P .EX #include #include diff --git a/upstream/opensuse-tumbleweed/man3/stdin.3 b/upstream/opensuse-tumbleweed/man3/stdin.3 index afe1fa5e..7ffbc9a2 100644 --- a/upstream/opensuse-tumbleweed/man3/stdin.3 +++ b/upstream/opensuse-tumbleweed/man3/stdin.3 @@ -10,7 +10,7 @@ .\" 2005-06-16 mtk, mentioned freopen() .\" 2007-12-08, mtk, Converted from mdoc to man macros .\" -.TH stdin 3 2023-03-30 "Linux man-pages 6.05.01" +.TH stdin 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME stdin, stdout, stderr \- standard I/O streams .SH LIBRARY @@ -19,7 +19,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "extern FILE *" stdin ; .BI "extern FILE *" stdout ; .BI "extern FILE *" stderr ; @@ -35,7 +35,7 @@ but might instead refer to files or other devices, depending on what the parent process chose to set up. (See also the "Redirection" section of .BR sh (1).) -.PP +.P The input stream is referred to as "standard input"; the output stream is referred to as "standard output"; and the error stream is referred to as "standard error". @@ -45,7 +45,7 @@ used to refer to these files, namely .IR stdout , and .IR stderr . -.PP +.P Each of these symbols is a .BR stdio (3) macro of type pointer to @@ -54,7 +54,7 @@ and can be used with functions like .BR fprintf (3) or .BR fread (3). -.PP +.P Since .IR FILE s are a buffering wrapper around UNIX file descriptors, the @@ -63,7 +63,7 @@ interface, that is, the functions like .BR read (2) and .BR lseek (2). -.PP +.P On program startup, the integer file descriptors associated with the streams .IR stdin , @@ -82,7 +82,7 @@ are defined with these values in .BR freopen (3) to one of these streams can change the file descriptor number associated with the stream.) -.PP +.P Note that mixing use of .IR FILE s and raw file descriptors can produce @@ -95,7 +95,7 @@ This means for example, that after an .BR exec (3), the child inherits all open file descriptors, but all old streams have become inaccessible. -.PP +.P Since the symbols .IR stdin , .IR stdout , @@ -115,7 +115,7 @@ The standard streams are closed by a call to and by normal program termination. .SH STANDARDS C11, POSIX.1-2008. -.PP +.P The standards also stipulate that these three streams shall be open at program startup. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/stdio.3 b/upstream/opensuse-tumbleweed/man3/stdio.3 index 3a5a447c..45a87278 100644 --- a/upstream/opensuse-tumbleweed/man3/stdio.3 +++ b/upstream/opensuse-tumbleweed/man3/stdio.3 @@ -9,7 +9,7 @@ .\" Converted for Linux, Mon Nov 29 16:07:22 1993, faith@cs.unc.edu .\" Modified, 2001-12-26, aeb .\" -.TH stdio 3 2023-07-30 "Linux man-pages 6.05.01" +.TH stdio 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME stdio \- standard input/output library functions .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "FILE *" stdin ; .BI "FILE *" stdout ; .BI "FILE *" stderr ; @@ -30,7 +30,7 @@ Input and output is mapped into logical data streams and the physical I/O characteristics are concealed. The functions and macros are listed below; more information is available from the individual man pages. -.PP +.P A stream is associated with an external file (which may be a physical device) by .I opening @@ -53,7 +53,7 @@ function; all output takes place as if all characters were written by successive calls to the .BR fputc (3) function. -.PP +.P A file is disassociated from a stream by .I closing the file. @@ -63,7 +63,7 @@ the file. The value of a pointer to a .I FILE object is indeterminate after a file is closed (garbage). -.PP +.P A file may be subsequently reopened, by the same or another program execution, and its contents reclaimed or modified (if it can be repositioned at the start). @@ -76,7 +76,7 @@ Other methods of program termination, such as .BR abort (3) do not bother about closing files properly. -.PP +.P At program startup, three text streams are predefined and need not be opened explicitly: .I standard input @@ -93,7 +93,7 @@ and When opened, the standard error stream is not fully buffered; the standard input and output streams are fully buffered if and only if the streams do not refer to an interactive device. -.PP +.P Output streams that refer to terminal devices are always line buffered by default; pending output to such streams is written automatically whenever an input stream that refers to a terminal device is read. @@ -103,7 +103,7 @@ output terminal, it is necessary to .BR fflush (3) the standard output before going off and computing so that the output will appear. -.PP +.P The .I stdio library is a part of the library @@ -115,7 +115,7 @@ SYNOPSIS sections of the following manual pages indicate which include files are to be used, what the compiler declaration for the function looks like and which external variables are of interest. -.PP +.P The following are defined as macros; these names may not be reused without first removing their current definitions with .BR #undef : @@ -192,9 +192,15 @@ T} \fBfileno\fP(3) T{ return the integer descriptor of the argument stream T} +\fBfmemopen\fP(3) T{ +open memory as stream +T} \fBfopen\fP(3) T{ stream open functions T} +\fBfopencookie\fP(3) T{ +open a custom stream +T} \fBfprintf\fP(3) T{ formatted output conversion T} @@ -243,6 +249,12 @@ T} \fBmktemp\fP(3) T{ make temporary filename (unique) T} +\fBopen_memstream\fP(3) T{ +open a dynamic memory buffer stream +T} +\fBopen_wmemstream\fP(3) T{ +open a dynamic memory buffer stream +T} \fBperror\fP(3) T{ system error messages T} diff --git a/upstream/opensuse-tumbleweed/man3/stdio_ext.3 b/upstream/opensuse-tumbleweed/man3/stdio_ext.3 index c154620b..ed0203ce 100644 --- a/upstream/opensuse-tumbleweed/man3/stdio_ext.3 +++ b/upstream/opensuse-tumbleweed/man3/stdio_ext.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH stdio_ext 3 2023-07-20 "Linux man-pages 6.05.01" +.TH stdio_ext 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME __fbufsize, __flbf, __fpending, __fpurge, __freadable, __freading, __fsetlocking, __fwritable, __fwriting, _flushlbf \- @@ -15,7 +15,7 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "size_t __fbufsize(FILE *" stream ); .BI "size_t __fpending(FILE *" stream ); .BI "int __flbf(FILE *" stream ); @@ -32,46 +32,46 @@ Solaris introduced routines to allow portable access to the internals of the .I FILE structure, and glibc also implemented these. -.PP +.P The .BR __fbufsize () function returns the size of the buffer currently used by the given stream. -.PP +.P The .BR __fpending () function returns the number of bytes in the output buffer. For wide-oriented streams the unit is wide characters. This function is undefined on buffers in reading mode, or opened read-only. -.PP +.P The .BR __flbf () function returns a nonzero value if the stream is line-buffered, and zero otherwise. -.PP +.P The .BR __freadable () function returns a nonzero value if the stream allows reading, and zero otherwise. -.PP +.P The .BR __fwritable () function returns a nonzero value if the stream allows writing, and zero otherwise. -.PP +.P The .BR __freading () function returns a nonzero value if the stream is read-only, or if the last operation on the stream was a read operation, and zero otherwise. -.PP +.P The .BR __fwriting () function returns a nonzero value if the stream is write-only (or append-only), or if the last operation on the stream was a write operation, and zero otherwise. -.PP +.P The .BR __fsetlocking () function can be used to select the desired type of locking on the stream. @@ -95,13 +95,13 @@ will not do locking until the state is reset to .B FSETLOCKING_QUERY Don't change the type of locking. (Only return it.) -.PP +.P The .BR _flushlbf () function flushes all line-buffered streams. (Presumably so that output to a terminal is forced out, say before reading keyboard input.) -.PP +.P The .BR __fpurge () function discards the contents of the stream's buffer. @@ -132,7 +132,6 @@ T{ .BR _flushlbf () T} Thread safety MT-Safe .TE -.sp 1 .SH SEE ALSO .BR flockfile (3), .BR fpurge (3) diff --git a/upstream/opensuse-tumbleweed/man3/stpncpy.3 b/upstream/opensuse-tumbleweed/man3/stpncpy.3 index 617eb9b5..3e45f79c 100644 --- a/upstream/opensuse-tumbleweed/man3/stpncpy.3 +++ b/upstream/opensuse-tumbleweed/man3/stpncpy.3 @@ -3,32 +3,32 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH stpncpy 3 2023-07-20 "Linux man-pages 6.05.01" +.TH stpncpy 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME stpncpy, strncpy -\- zero a fixed-width buffer and -copy a string into a character sequence with truncation -and zero the rest of it +\- +fill a fixed-size buffer with non-null bytes from a string, +padding with null bytes as needed .SH LIBRARY Standard C library .RI ( libc ", " \-lc ) .SH SYNOPSIS .nf .B #include -.PP -.BI "char *strncpy(char " dst "[restrict ." sz "], \ +.P +.BI "char *strncpy(char " dst "[restrict ." dsize "], \ const char *restrict " src , -.BI " size_t " sz ); -.BI "char *stpncpy(char " dst "[restrict ." sz "], \ +.BI " size_t " dsize ); +.BI "char *stpncpy(char " dst "[restrict ." dsize "], \ const char *restrict " src , -.BI " size_t " sz ); +.BI " size_t " dsize ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR stpncpy (): .nf Since glibc 2.10: @@ -37,32 +37,36 @@ Feature Test Macro Requirements for glibc (see _GNU_SOURCE .fi .SH DESCRIPTION -These functions copy the string pointed to by +These functions copy non-null bytes from the string pointed to by .I src -into a null-padded character sequence at the fixed-width buffer pointed to by +into the array pointed to by .IR dst . +If the source has too few non-null bytes to fill the destination, +the functions pad the destination with trailing null bytes. If the destination buffer, limited by its size, isn't large enough to hold the copy, the resulting character sequence is truncated. For the difference between the two functions, see RETURN VALUE. -.PP +.P An implementation of these functions might be: -.PP +.P .in +4n .EX char * -strncpy(char *restrict dst, const char *restrict src, size_t sz) +strncpy(char *restrict dst, const char *restrict src, size_t dsize) { - stpncpy(dst, src, sz); + stpncpy(dst, src, dsize); return dst; } \& char * -stpncpy(char *restrict dst, const char *restrict src, size_t sz) +stpncpy(char *restrict dst, const char *restrict src, size_t dsize) { - bzero(dst, sz); - return mempcpy(dst, src, strnlen(src, sz)); + size_t dlen; +\& + dlen = strnlen(src, dsize); + return memset(mempcpy(dst, src, dlen), 0, dsize \- dlen); } .EE .in @@ -90,7 +94,6 @@ T{ .BR strncpy () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR strncpy () @@ -98,7 +101,7 @@ C11, POSIX.1-2008. .TP .BR stpncpy () POSIX.1-2008. -.SH STANDARDS +.SH HISTORY .TP .BR strncpy () C89, POSIX.1-2001, SVr4, 4.3BSD. @@ -111,13 +114,23 @@ The name of these functions is confusing. These functions produce a null-padded character sequence, not a string (see .BR string_copying (7)). -.PP +For example: +.P +.in +4n +.EX +strncpy(buf, "1", 5); // { \[aq]1\[aq], 0, 0, 0, 0 } +strncpy(buf, "1234", 5); // { \[aq]1\[aq], \[aq]2\[aq], \[aq]3\[aq], \[aq]4\[aq], 0 } +strncpy(buf, "12345", 5); // { \[aq]1\[aq], \[aq]2\[aq], \[aq]3\[aq], \[aq]4\[aq], \[aq]5\[aq] } +strncpy(buf, "123456", 5); // { \[aq]1\[aq], \[aq]2\[aq], \[aq]3\[aq], \[aq]4\[aq], \[aq]5\[aq] } +.EE +.in +.P It's impossible to distinguish truncation by the result of the call, from a character sequence that just fits the destination buffer; truncation should be detected by comparing the length of the input string with the size of the destination buffer. -.PP +.P If you're going to use this function in chained calls, it would be useful to develop a similar function that accepts a pointer to the end (one after the last element) of the destination buffer @@ -139,20 +152,22 @@ main(void) size_t len; \& if (sizeof(buf2) < strlen("Hello world!")) - warnx("strncpy: truncating character sequence"); + errx("strncpy: truncating character sequence"); strncpy(buf2, "Hello world!", sizeof(buf2)); len = strnlen(buf2, sizeof(buf2)); \& printf("[len = %zu]: ", len); - printf("%.*s\en", (int) len, buf2); // "Hello world!" + fwrite(buf2, 1, len, stdout); + putchar(\[aq]\en\[aq]); \& if (sizeof(buf1) < strlen("Hello world!")) - warnx("stpncpy: truncating character sequence"); + errx("stpncpy: truncating character sequence"); p = stpncpy(buf1, "Hello world!", sizeof(buf1)); len = p \- buf1; \& printf("[len = %zu]: ", len); - printf("%.*s\en", (int) len, buf1); // "Hello world!" + fwrite(buf1, 1, len, stdout); + putchar(\[aq]\en\[aq]); \& exit(EXIT_SUCCESS); } diff --git a/upstream/opensuse-tumbleweed/man3/strcasecmp.3 b/upstream/opensuse-tumbleweed/man3/strcasecmp.3 index f19a5dab..647f2113 100644 --- a/upstream/opensuse-tumbleweed/man3/strcasecmp.3 +++ b/upstream/opensuse-tumbleweed/man3/strcasecmp.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 18:12:45 1993 by Rik Faith (faith@cs.unc.edu) -.TH strcasecmp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strcasecmp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strcasecmp, strncasecmp \- compare two strings ignoring case .SH LIBRARY @@ -17,7 +17,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int strcasecmp(const char *" s1 ", const char *" s2 ); .BI "int strncasecmp(const char " s1 [. n "], const char " s2 [. n "], \ size_t " n ); @@ -36,7 +36,7 @@ less than, equal to, or greater than zero if is found, respectively, to be less than, to match, or be greater than .IR s2 . -.PP +.P The .BR strncasecmp () function is similar, except that it compares @@ -73,12 +73,11 @@ T{ .BR strncasecmp () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY 4.4BSD, POSIX.1-2001. -.PP +.P The .BR strcasecmp () and @@ -92,9 +91,9 @@ header file also declares these functions, if the (or, in glibc 2.19 and earlier, .BR _BSD_SOURCE ) feature test macro is defined. -.PP +.P The POSIX.1-2008 standard says of these functions: -.PP +.P .RS When the .B LC_CTYPE diff --git a/upstream/opensuse-tumbleweed/man3/strchr.3 b/upstream/opensuse-tumbleweed/man3/strchr.3 index 91bd8aad..3abb02ea 100644 --- a/upstream/opensuse-tumbleweed/man3/strchr.3 +++ b/upstream/opensuse-tumbleweed/man3/strchr.3 @@ -11,7 +11,7 @@ .\" 2006-05-19, Justin Pryzby .\" Document strchrnul(3). .\" -.TH strchr 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strchr 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strchr, strrchr, strchrnul \- locate character in string .SH LIBRARY @@ -20,13 +20,13 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *strchr(const char *" s ", int " c ); .BI "char *strrchr(const char *" s ", int " c ); -.PP +.P .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "char *strchrnul(const char *" s ", int " c ); .fi .SH DESCRIPTION @@ -37,7 +37,7 @@ of the character .I c in the string .IR s . -.PP +.P The .BR strrchr () function returns a pointer to the last occurrence @@ -45,7 +45,7 @@ of the character .I c in the string .IR s . -.PP +.P The .BR strchrnul () function is like @@ -58,7 +58,7 @@ then it returns a pointer to the null byte at the end of .IR s , rather than NULL. -.PP +.P Here "character" means "byte"; these functions do not work with wide or multibyte characters. .SH RETURN VALUE @@ -73,7 +73,7 @@ so that if .I c is specified as \[aq]\e0\[aq], these functions return a pointer to the terminator. -.PP +.P The .BR strchrnul () function returns a pointer to the matched character, @@ -98,7 +98,6 @@ T{ .BR strchrnul () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR strchr () @@ -116,7 +115,9 @@ GNU. POSIX.1-2001, C89, SVr4, 4.3BSD. .TP .BR strchrnul () -glibc 2.1.1. +glibc 2.1.1, +FreeBSD 10, +NetBSD 8. .SH SEE ALSO .BR memchr (3), .BR string (3), diff --git a/upstream/opensuse-tumbleweed/man3/strcmp.3 b/upstream/opensuse-tumbleweed/man3/strcmp.3 index 57b378e6..ba9eefb8 100644 --- a/upstream/opensuse-tumbleweed/man3/strcmp.3 +++ b/upstream/opensuse-tumbleweed/man3/strcmp.3 @@ -11,7 +11,7 @@ .\" Modified Sat Jul 24 18:08:52 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified 2001-08-31, aeb .\" -.TH strcmp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strcmp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strcmp, strncmp \- compare two strings .SH LIBRARY @@ -20,7 +20,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int strcmp(const char *" s1 ", const char *" s2 ); .BI "int strncmp(const char " s1 [. n "], const char " s2 [. n "], size_t " n ); .fi @@ -34,7 +34,7 @@ and The locale is not taken into account (for a locale-aware comparison, see .BR strcoll (3)). The comparison is done using unsigned characters. -.PP +.P .BR strcmp () returns an integer indicating the result of the comparison, as follows: .IP \[bu] 3 @@ -53,7 +53,7 @@ a positive value if .I s1 is greater than .IR s2 . -.PP +.P The .BR strncmp () function is similar, except it compares @@ -91,18 +91,17 @@ T{ .BR strncmp () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS POSIX.1 specifies only that: .RS -.PP +.P The sign of a nonzero return value shall be determined by the sign of the difference between the values of the first pair of bytes (both interpreted as type .IR "unsigned char" ) that differ in the strings being compared. .RE -.PP +.P In glibc, as in most other implementations, the return value is the arithmetic result of subtracting the last compared byte in @@ -122,7 +121,7 @@ The program below can be used to demonstrate the operation of (when given three arguments). First, some examples using .BR strcmp (): -.PP +.P .in +4n .EX $ \fB./string_comp ABC ABC\fP @@ -137,16 +136,16 @@ $ .\fB/string_comp $\[aq]\e201\[aq] A\fP # 0201 \- 0101 = 0100 (or 64 decimal) is greater than (64) .EE .in -.PP +.P The last example uses .BR bash (1)-specific syntax to produce a string containing an 8-bit ASCII code; the result demonstrates that the string comparison uses unsigned characters. -.PP +.P And then some examples using .BR strncmp (): -.PP +.P .in +4n .EX $ \fB./string_comp ABC AB 3\fP diff --git a/upstream/opensuse-tumbleweed/man3/strcoll.3 b/upstream/opensuse-tumbleweed/man3/strcoll.3 index e8146b7a..8b19cfce 100644 --- a/upstream/opensuse-tumbleweed/man3/strcoll.3 +++ b/upstream/opensuse-tumbleweed/man3/strcoll.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sun Jul 25 10:40:44 1993 by Rik Faith (faith@cs.unc.edu) -.TH strcoll 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strcoll 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strcoll \- compare two strings using the current locale .SH LIBRARY @@ -17,7 +17,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int strcoll(const char *" s1 ", const char *" s2 ); .fi .SH DESCRIPTION @@ -64,7 +64,6 @@ T{ .BR strcoll () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/strcpy.3 b/upstream/opensuse-tumbleweed/man3/strcpy.3 index 63ed1278..a14e8cfa 100644 --- a/upstream/opensuse-tumbleweed/man3/strcpy.3 +++ b/upstream/opensuse-tumbleweed/man3/strcpy.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH strcpy 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strcpy 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME stpcpy, strcpy, strcat \- copy or catenate a string .SH LIBRARY @@ -12,17 +12,17 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *stpcpy(char *restrict " dst ", const char *restrict " src ); .BI "char *strcpy(char *restrict " dst ", const char *restrict " src ); .BI "char *strcat(char *restrict " dst ", const char *restrict " src ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR stpcpy (): .nf Since glibc 2.10: @@ -54,9 +54,9 @@ after the string pointed to by The programmer is responsible for allocating a destination buffer large enough, that is, .IR "strlen(dst) + strlen(src) + 1" . -.PP +.P An implementation of these functions might be: -.PP +.P .in +4n .EX char * @@ -112,7 +112,6 @@ T{ .BR strcat () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR stpcpy () @@ -137,19 +136,19 @@ The strings and .I dst may not overlap. -.PP +.P If the destination buffer is not large enough, the behavior is undefined. See .B _FORTIFY_SOURCE in .BR feature_test_macros (7). -.PP +.P .BR strcat () can be very inefficient. Read about .UR https://www.joelonsoftware.com/\:2001/12/11/\:back\-to\-basics/ -Shlemiel the painter +Shlemiel the painter .UE . .SH EXAMPLES .\" SRC BEGIN (strcpy.c) diff --git a/upstream/opensuse-tumbleweed/man3/strdup.3 b/upstream/opensuse-tumbleweed/man3/strdup.3 index e7872194..530ffb92 100644 --- a/upstream/opensuse-tumbleweed/man3/strdup.3 +++ b/upstream/opensuse-tumbleweed/man3/strdup.3 @@ -9,7 +9,7 @@ .\" 386BSD man pages .\" Modified Sun Jul 25 10:41:34 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified Wed Oct 17 01:12:26 2001 by John Levon -.TH strdup 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strdup 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strdup, strndup, strdupa, strndupa \- duplicate a string .SH LIBRARY @@ -18,19 +18,19 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *strdup(const char *" s ); -.PP +.P .BI "char *strndup(const char " s [. n "], size_t " n ); .BI "char *strdupa(const char *" s ); .BI "char *strndupa(const char " s [. n "], size_t " n ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR strdup (): .nf _XOPEN_SOURCE >= 500 @@ -38,7 +38,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.12: */ _POSIX_C_SOURCE >= 200809L || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE .fi -.PP +.P .BR strndup (): .nf Since glibc 2.10: @@ -46,7 +46,7 @@ Feature Test Macro Requirements for glibc (see Before glibc 2.10: _GNU_SOURCE .fi -.PP +.P .BR strdupa (), .BR strndupa (): .nf @@ -63,7 +63,7 @@ obtained with .BR malloc (3), and can be freed with .BR free (3). -.PP +.P The .BR strndup () function is similar, but copies at most @@ -76,7 +76,7 @@ is longer than only .I n bytes are copied, and a terminating null byte (\[aq]\e0\[aq]) is added. -.PP +.P .BR strdupa () and .BR strndupa () @@ -112,7 +112,6 @@ T{ .BR strndupa () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR strdup () diff --git a/upstream/opensuse-tumbleweed/man3/strerror.3 b/upstream/opensuse-tumbleweed/man3/strerror.3 index 5ed507e9..62a99c63 100644 --- a/upstream/opensuse-tumbleweed/man3/strerror.3 +++ b/upstream/opensuse-tumbleweed/man3/strerror.3 @@ -17,7 +17,7 @@ .\" 2005-12-13, mtk, Substantial rewrite of strerror_r() description .\" Addition of extra material on portability and standards. .\" -.TH strerror 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strerror 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strerror, strerrorname_np, strerrordesc_np, strerror_r, strerror_l \- return string describing error number @@ -27,31 +27,31 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *strerror(int " errnum ); .BI "const char *strerrorname_np(int " errnum ); .BI "const char *strerrordesc_np(int " errnum ); -.PP +.P .BI "int strerror_r(int " errnum ", char " buf [. buflen "], size_t " buflen ); /* XSI-compliant */ -.PP +.P .BI "char *strerror_r(int " errnum ", char " buf [. buflen "], size_t " buflen ); /* GNU-specific */ -.PP +.P .BI "char *strerror_l(int " errnum ", locale_t " locale ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR strerrorname_np (), .BR strerrordesc_np (): .nf _GNU_SOURCE .fi -.PP +.P .BR strerror_r (): .nf The XSI-compliant version is provided if: @@ -72,15 +72,16 @@ part of the current locale to select the appropriate language. is .BR EINVAL , the returned description will be "Invalid argument".) -This string must not be modified by the application, but may be -modified by a subsequent call to +This string must not be modified by the application, +and the returned pointer will be invalidated on a subsequent call to .BR strerror () or -.BR strerror_l (). +.BR strerror_l (), +or if the thread that obtained the string exits. No other library function, including .BR perror (3), will modify this string. -.PP +.P Like .BR strerror (), the @@ -90,7 +91,7 @@ code passed in the argument .IR errnum , with the difference that the returned string is not translated according to the current locale. -.PP +.P The .BR strerrorname_np () function returns a pointer to a string containing the name of the error @@ -99,14 +100,18 @@ code passed in the argument For example, given .B EPERM as an argument, this function returns a pointer to the string "EPERM". +Given +.B 0 +as an argument, +this function returns a pointer to the string "0". .\" .SS strerror_r() -The .BR strerror_r () -function is similar to +is like .BR strerror (), -but is -thread safe. +but might use the supplied buffer +.I buf +instead of allocating one internally. This function is available in two versions: an XSI-compliant version specified in POSIX.1-2001 (available since glibc 2.3.4, but not POSIX-compliant until glibc 2.13), @@ -121,7 +126,7 @@ is defined by default with the value 200112L, so that the XSI-compliant version of .BR strerror_r () is provided by default. -.PP +.P The XSI-compliant .BR strerror_r () is preferred for portable applications. @@ -129,7 +134,7 @@ It returns the error string in the user-supplied buffer .I buf of length .IR buflen . -.PP +.P The GNU-specific .BR strerror_r () returns a pointer to a string containing the error message. @@ -174,7 +179,7 @@ and the GNU-specific functions return the appropriate error description string, or an "Unknown error nnn" message if the error number is unknown. -.PP +.P On success, .BR strerrorname_np () and @@ -183,7 +188,7 @@ return the appropriate error description string. If .I errnum is an invalid error number, these functions return NULL. -.PP +.P The XSI-compliant .BR strerror_r () function returns 0 on success. @@ -192,7 +197,7 @@ a (positive) error number is returned (since glibc 2.13), or \-1 is returned and .I errno is set to indicate the error (before glibc 2.13). -.PP +.P POSIX.1-2001 and POSIX.1-2008 require that a successful call to .BR strerror () or @@ -231,7 +236,7 @@ T{ T} Thread safety T{ .na .nh -MT-Unsafe race:strerror +MT-Safe T} T{ .na @@ -246,7 +251,10 @@ T{ .BR strerror_l () T} Thread safety MT-Safe .TE -.sp 1 +.P +Before glibc 2.32, +.BR strerror () +is not MT-Safe. .SH STANDARDS .TP .BR strerror () @@ -265,7 +273,7 @@ POSIX.1-2008. .TQ .BR strerrordesc_np () GNU. -.PP +.P POSIX.1-2001 permits .BR strerror () to set @@ -302,13 +310,6 @@ POSIX.1-2008. .BR strerrordesc_np () glibc 2.32. .SH NOTES -The GNU C Library uses a buffer of 1024 characters for -.BR strerror (). -This buffer size therefore should be sufficient to avoid an -.B ERANGE -error when calling -.BR strerror_r (). -.PP .BR strerrorname_np () and .BR strerrordesc_np () @@ -319,4 +320,5 @@ are thread-safe and async-signal-safe. .BR error (3), .BR perror (3), .BR strsignal (3), -.BR locale (7) +.BR locale (7), +.BR signal-safety (7) diff --git a/upstream/opensuse-tumbleweed/man3/strfmon.3 b/upstream/opensuse-tumbleweed/man3/strfmon.3 index a8e34f56..c3a9cb28 100644 --- a/upstream/opensuse-tumbleweed/man3/strfmon.3 +++ b/upstream/opensuse-tumbleweed/man3/strfmon.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH strfmon 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strfmon 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strfmon, strfmon_l \- convert monetary value to a string .SH LIBRARY @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "ssize_t strfmon(char " s "[restrict ." max "], size_t " max , .BI " const char *restrict " format ", ...);" .BI "ssize_t strfmon_l(char " s "[restrict ." max "], size_t " max ", \ @@ -31,7 +31,7 @@ result in the character array .I s of size .IR max . -.PP +.P The .BR strfmon_l () function performs the same task, @@ -47,7 +47,7 @@ is the special locale object (see .BR duplocale (3)) or is not a valid locale object handle. -.PP +.P Ordinary characters in .I format are copied to @@ -83,20 +83,20 @@ Omit the currency symbol. .B \- Left justify all fields. The default is right justification. -.PP +.P Next, there may be a field width: a decimal digit string specifying a minimum field width in bytes. The default is 0. A result smaller than this width is padded with spaces (on the left, unless the left-justify flag was given). -.PP +.P Next, there may be a left precision of the form "#" followed by a decimal digit string. If the number of digits left of the radix character is smaller than this, the representation is padded on the left with the numeric fill character. Grouping characters are not counted in this field width. -.PP +.P Next, there may be a right precision of the form "." followed by a decimal digit string. The amount being formatted is rounded to @@ -111,7 +111,7 @@ If the right precision is 0, no radix character is printed. .BR LC_MONETARY , and may differ from that specified by .BR LC_NUMERIC .) -.PP +.P Finally, the conversion specification must be ended with a conversion character. The three conversion characters are @@ -161,29 +161,28 @@ T{ .BR strfmon_l () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY POSIX.1-2001. .SH EXAMPLES The call -.PP +.P .in +4n .EX strfmon(buf, sizeof(buf), "[%\[ha]=*#6n] [%=*#6i]", 1234.567, 1234.567); .EE .in -.PP +.P outputs -.PP +.P .in +4n .EX [€ **1234,57] [EUR **1 234,57] .EE .in -.PP +.P in the .I nl_NL locale. @@ -194,7 +193,7 @@ The and .I en_GB locales yield -.PP +.P .in +4n .EX [ **1234,57 €] [ **1.234,57 EUR] diff --git a/upstream/opensuse-tumbleweed/man3/strfromd.3 b/upstream/opensuse-tumbleweed/man3/strfromd.3 index 6bcc1134..74bc7360 100644 --- a/upstream/opensuse-tumbleweed/man3/strfromd.3 +++ b/upstream/opensuse-tumbleweed/man3/strfromd.3 @@ -10,7 +10,7 @@ .\" ISO/IEC TS 18661-1 technical specification. .\" snprintf and other man.3 pages. .\" -.TH strfromd 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strfromd 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strfromd, strfromf, strfroml \- convert a floating-point value into a string @@ -20,7 +20,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int strfromd(char " str "[restrict ." n "], size_t " n , .BI " const char *restrict " format ", double " fp ");" .BI "int strfromf(char " str "[restrict ." n "], size_t " n , @@ -28,12 +28,12 @@ Standard C library .BI "int strfroml(char " str "[restrict ." n "], size_t " n , .BI " const char *restrict " format ", long double " fp ");" .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR strfromd (), .BR strfromf (), .BR strfroml (): @@ -52,26 +52,26 @@ At most .I n characters are stored into .IR str . -.PP +.P The terminating null byte ('\e0') is written if and only if .I n is sufficiently large, otherwise the written string is truncated at .I n characters. -.PP +.P The .BR strfromd (), .BR strfromf (), and .BR strfroml () functions are equivalent to -.PP +.P .in +4n .EX snprintf(str, n, format, fp); .EE .in -.PP +.P except for the .I format string. @@ -93,7 +93,7 @@ Finally, the format string should have one of the conversion specifiers .BR g , or .BR G . -.PP +.P The conversion specifier is applied based on the floating-point type indicated by the function suffix. Therefore, unlike @@ -102,10 +102,10 @@ the format string does not have a length modifier character. See .BR snprintf (3) for a detailed description of these conversion specifiers. -.PP +.P The implementation conforms to the C99 standard on conversion of NaN and infinity values: -.PP +.P .RS If .I fp @@ -124,12 +124,12 @@ If .BR E , .BR G ) is the conversion specifier, the conversion is to "NAN" or "\-NAN". -.PP +.P Likewise if .I fp is infinity, it is converted to [\-]inf or [\-]INF. .RE -.PP +.P A malformed .I format string results in undefined behavior. @@ -154,7 +154,7 @@ For an explanation of the terms used in this section, see and the .B POSIX Safety Concepts section in GNU C Library manual. -.PP +.P .TS allbox; lbx lb lb @@ -170,7 +170,7 @@ T} Thread safety MT-Safe locale \^ Async-signal safety AS-Unsafe heap \^ Async-cancel safety AC-Unsafe mem .TE -.sp 1 +.P Note: these attributes are preliminary. .SH STANDARDS ISO/IEC TS 18661-1. @@ -189,7 +189,7 @@ category of the current locale. .SH EXAMPLES To convert the value 12.1 as a float type to a string using decimal notation, resulting in "12.100000": -.PP +.P .in +4n .EX #define __STDC_WANT_IEC_60559_BFP_EXT__ @@ -199,10 +199,10 @@ char s[ssize]; strfromf(s, ssize, "%f", 12.1); .EE .in -.PP +.P To convert the value 12.3456 as a float type to a string using decimal notation with two digits of precision, resulting in "12.35": -.PP +.P .in +4n .EX #define __STDC_WANT_IEC_60559_BFP_EXT__ @@ -212,10 +212,10 @@ char s[ssize]; strfromf(s, ssize, "%.2f", 12.3456); .EE .in -.PP +.P To convert the value 12.345e19 as a double type to a string using scientific notation with zero digits of precision, resulting in "1E+20": -.PP +.P .in +4n .EX #define __STDC_WANT_IEC_60559_BFP_EXT__ diff --git a/upstream/opensuse-tumbleweed/man3/strfry.3 b/upstream/opensuse-tumbleweed/man3/strfry.3 index 74a342b1..2f7daec9 100644 --- a/upstream/opensuse-tumbleweed/man3/strfry.3 +++ b/upstream/opensuse-tumbleweed/man3/strfry.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sun Jul 25 10:39:43 1993 by Rik Faith (faith@cs.unc.edu) -.TH strfry 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strfry 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strfry \- randomize a string .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "char *strfry(char *" string ); .fi .SH DESCRIPTION @@ -48,7 +48,6 @@ T{ .BR strfry () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS GNU. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/strftime.3 b/upstream/opensuse-tumbleweed/man3/strftime.3 index 412ba064..e94a3ef1 100644 --- a/upstream/opensuse-tumbleweed/man3/strftime.3 +++ b/upstream/opensuse-tumbleweed/man3/strftime.3 @@ -15,7 +15,7 @@ .\" 2005-11-22 mtk, added glibc Notes covering optional 'flag' and .\" 'width' components of conversion specifications. .\" -.TH strftime 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strftime 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strftime \- format date and time .SH LIBRARY @@ -24,11 +24,11 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t strftime(char " s "[restrict ." max "], size_t " max , .BI " const char *restrict " format , .BI " const struct tm *restrict " tm ); -.PP +.P .BI "size_t strftime_l(char " s "[restrict ." max "], size_t " max , .BI " const char *restrict " format , .BI " const struct tm *restrict " tm , @@ -54,7 +54,7 @@ See also .BR ctime (3). .\" FIXME . POSIX says: Local timezone information is used as though .\" strftime() called tzset(). But this doesn't appear to be the case -.PP +.P The format specification is a null-terminated string and may contain special character sequences called .IR "conversion specifications", @@ -63,7 +63,7 @@ some other character known as a .IR "conversion specifier character". All other character sequences are .IR "ordinary character sequences". -.PP +.P The characters of ordinary character sequences (including the null byte) are copied verbatim from .I format @@ -168,10 +168,10 @@ Modifier: use alternative ("era-based") format, see below. (SU) .B %F Equivalent to .B %Y\-%m\-%d -(the ISO\ 8601 date format). (C99) +(the ISO\~8601 date format). (C99) .TP .B %G -The ISO\ 8601 week-based year (see NOTES) with century as a decimal number. +The ISO\~8601 week-based year (see NOTES) with century as a decimal number. The 4-digit year corresponding to the ISO week number (see .BR %V ). This has the same format and value as @@ -330,7 +330,7 @@ and .IR tm_wday .) .TP .B %V -The ISO\ 8601 week number (see NOTES) of the current year as a decimal number, +The ISO\~8601 week number (see NOTES) of the current year as a decimal number, range 01 to 53, where week 1 is the first week that has at least 4 days in the new year. See also @@ -431,7 +431,7 @@ format. (TZ) .TP .B %% A literal \[aq]%\[aq] character. -.PP +.P Some conversion specifications can be modified by preceding the conversion specifier character by the .B E @@ -477,7 +477,7 @@ as an argument to a One example of such alternative forms is the Japanese era calendar scheme in the .B ja_JP glibc locale. -.PP +.P .BR strftime_l () is equivalent to .BR strftime (), @@ -508,7 +508,7 @@ returns 0, and the contents of the array are undefined. .\" would return .\" .I max .\" if the array was too small.) -.PP +.P Note that the return value 0 does not necessarily indicate an error. For example, in many locales .B %p @@ -537,7 +537,6 @@ T{ .BR strftime_l () T} Thread safety MT-Safe env locale .TE -.sp 1 .SH STANDARDS .TP .BR strftime () @@ -555,7 +554,7 @@ SVr4, C89. .TP .BR strftime_l () POSIX.1-2008. -.PP +.P There are strict inclusions between the set of conversions given in ANSI C (unmarked), those given in the Single UNIX Specification (marked SU), those given in Olson's timezone package (marked TZ), @@ -571,7 +570,7 @@ as well. The .B %F conversion is in C99 and POSIX.1-2001. -.PP +.P In SUSv2, the .B %S specifier allowed a range of 00 to 61, @@ -579,13 +578,13 @@ to allow for the theoretical possibility of a minute that included a double leap second (there never has been such a minute). .SH NOTES -.SS ISO 8601 week dates +.SS ISO\~8601 week dates .BR %G , .BR %g , and .B %V yield values calculated from the week-based year defined by the -ISO\ 8601 standard. +ISO\~8601 standard. In this system, weeks start on a Monday, and are numbered from 01, for the first week, up to 52 or 53, for the last week. Week 1 is the first week where four or more days fall within the @@ -594,16 +593,16 @@ the first week of the year that contains a Thursday; or, the week that has 4 January in it). When three or fewer days of the first calendar week of the new year fall within that year, -then the ISO 8601 week-based system counts those days as part of week 52 +then the ISO\~8601 week-based system counts those days as part of week 52 or 53 of the preceding year. For example, 1 January 2010 is a Friday, meaning that just three days of that calendar week fall in 2010. -Thus, the ISO\ 8601 week-based system considers these days to be part of +Thus, the ISO\~8601 week-based system considers these days to be part of week 53 .RB ( %V ) of the year 2009 .RB ( %G ); -week 01 of ISO\ 8601 year 2010 starts on Monday, 4 January 2010. +week 01 of ISO\~8601 year 2010 starts on Monday, 4 January 2010. Similarly, the first two days of January 2011 are considered to be part of week 52 of the year 2010. .SS glibc notes @@ -622,7 +621,7 @@ may be specified. or .B O modifiers, if present.) -.PP +.P The following flag characters are permitted: .TP .B _ @@ -645,7 +644,7 @@ Swap the case of the result string. (This flag works only with certain conversion specifier characters, and of these, it is only really useful with .BR %Z .) -.PP +.P An optional decimal width specifier may follow the (possibly absent) flag. If the natural size of the field is smaller than this width, then the result string is padded (on the left) to the specified width. @@ -667,7 +666,7 @@ specify any .I errno settings for .BR strftime (). -.PP +.P Some buggy versions of .BR gcc (1) complain about the use of @@ -682,7 +681,7 @@ to circumvent this problem. A relatively clean one is to add an intermediate function -.PP +.P .in +4n .EX size_t @@ -693,7 +692,7 @@ my_strftime(char *s, size_t max, const char *fmt, } .EE .in -.PP +.P Nowadays, .BR gcc (1) provides the @@ -703,16 +702,16 @@ so that the above workaround is no longer required. .SH EXAMPLES .B RFC\~2822-compliant date format (with an English locale for %a and %b) -.PP +.P .in +4n .EX "%a,\ %d\ %b\ %Y\ %T\ %z" .EE .in -.PP +.P .B RFC\~822-compliant date format (with an English locale for %a and %b) -.PP +.P .in +4n .EX "%a,\ %d\ %b\ %y\ %T\ %z" @@ -721,11 +720,11 @@ so that the above workaround is no longer required. .SS Example program The program below can be used to experiment with .BR strftime (). -.PP +.P Some examples of the result string produced by the glibc implementation of .BR strftime () are as follows: -.PP +.P .in +4n .EX .RB "$" " ./a.out \[aq]%m\[aq]" diff --git a/upstream/opensuse-tumbleweed/man3/string.3 b/upstream/opensuse-tumbleweed/man3/string.3 index dc1c4151..c7069b6d 100644 --- a/upstream/opensuse-tumbleweed/man3/string.3 +++ b/upstream/opensuse-tumbleweed/man3/string.3 @@ -7,7 +7,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sun Jul 25 10:54:31 1993, Rik Faith (faith@cs.unc.edu) -.TH string 3 2023-01-22 "Linux man-pages 6.05.01" +.TH string 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME stpcpy, strcasecmp, strcat, strchr, strcmp, strcoll, strcpy, strcspn, strdup, strfry, strlen, strncat, strncmp, strncpy, strncasecmp, strpbrk, @@ -179,21 +179,14 @@ to the current locale and copies the first .I n bytes to .IR dest . -.SS Obsolete functions .TP .nf .BI "char *strncpy(char " dest "[restrict ." n "], \ const char " src "[restrict ." n ], .BI " size_t " n ); .fi -Copy at most -.I n -bytes from string -.I src -to -.IR dest , -returning a pointer to the start of -.IR dest . +Fill a fixed-size buffer with leading non-null bytes from a source array, +padding with null bytes as needed. .SH DESCRIPTION The string functions perform operations on null-terminated strings. diff --git a/upstream/opensuse-tumbleweed/man3/strlen.3 b/upstream/opensuse-tumbleweed/man3/strlen.3 index c5820bad..69aa2e85 100644 --- a/upstream/opensuse-tumbleweed/man3/strlen.3 +++ b/upstream/opensuse-tumbleweed/man3/strlen.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 18:02:26 1993 by Rik Faith (faith@cs.unc.edu) -.TH strlen 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strlen 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strlen \- calculate the length of a string .SH LIBRARY @@ -17,7 +17,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t strlen(const char *" s ); .fi .SH DESCRIPTION @@ -45,7 +45,6 @@ T{ .BR strlen () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/strncat.3 b/upstream/opensuse-tumbleweed/man3/strncat.3 index f53c9309..275e8d0e 100644 --- a/upstream/opensuse-tumbleweed/man3/strncat.3 +++ b/upstream/opensuse-tumbleweed/man3/strncat.3 @@ -3,43 +3,45 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH strncat 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strncat 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME -strncat \- concatenate a null-padded character sequence into a string +strncat +\- +append non-null bytes from a source array to a string, +and null-terminate the result .SH LIBRARY Standard C library .RI ( libc ", " \-lc ) .SH SYNOPSIS .nf .B #include -.PP -.BI "char *strncat(char *restrict " dst ", const char " src "[restrict ." sz ], -.BI " size_t " sz ); +.P +.BI "char *strncat(char *restrict " dst ", const char " src "[restrict ." ssize ], +.BI " size_t " ssize ); .fi .SH DESCRIPTION -This function catenates the input character sequence -contained in a null-padded fixed-width buffer, -into a string at the buffer pointed to by +This function appends at most +.I ssize +non-null bytes from the array pointed to by +.IR src , +followed by a null character, +to the end of the string pointed to by .IR dst . -The programmer is responsible for allocating a destination buffer large enough, -that is, -.IR "strlen(dst) + strnlen(src, sz) + 1" . -.PP +.I dst +must point to a string contained in a buffer that is large enough, +that is, the buffer size must be at least +.IR "strlen(dst) + strnlen(src, ssize) + 1" . +.P An implementation of this function might be: -.PP +.P .in +4n .EX char * -strncat(char *restrict dst, const char *restrict src, size_t sz) +strncat(char *restrict dst, const char *restrict src, size_t ssize) { - int len; - char *p; -\& - len = strnlen(src, sz); - p = dst + strlen(dst); - p = mempcpy(p, src, len); - *p = \[aq]\e0\[aq]; + #define strnul(s) (s + strlen(s)) \& + stpcpy(mempcpy(strnul(dst), src, strnlen(src, ssize)), ""); return dst; } .EE @@ -62,17 +64,17 @@ T{ .BR strncat () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY POSIX.1-2001, C89, SVr4, 4.3BSD. .SH CAVEATS -The name of this function is confusing. -This function has no relation to +The name of this function is confusing; +it has no relation to .BR strncpy (3). -.PP -If the destination buffer is not large enough, +.P +If the destination buffer does not already contain a string, +or is not large enough, the behavior is undefined. See .B _FORTIFY_SOURCE @@ -82,7 +84,7 @@ in This function can be very inefficient. Read about .UR https://www.joelonsoftware.com/\:2001/12/11/\:back\-to\-basics/ -Shlemiel the painter +Shlemiel the painter .UE . .SH EXAMPLES .\" SRC BEGIN (strncat.c) @@ -97,9 +99,9 @@ Shlemiel the painter int main(void) { - size_t maxsize; + size_t n; \& - // Null-padded fixed-width character sequences + // Null-padded fixed-size character sequences char pre[4] = "pre."; char new_post[50] = ".foo.bar"; \& @@ -108,9 +110,8 @@ main(void) char src[] = "some_long_body.post"; char *dest; \& - maxsize = nitems(pre) + strlen(src) \- strlen(post) + - nitems(new_post) + 1; - dest = malloc(sizeof(*dest) * maxsize); + n = nitems(pre) + strlen(src) \- strlen(post) + nitems(new_post) + 1; + dest = malloc(sizeof(*dest) * n); if (dest == NULL) err(EXIT_FAILURE, "malloc()"); \& @@ -128,4 +129,4 @@ main(void) .in .SH SEE ALSO .BR string (3), -.BR string_copying (3) +.BR string_copying (7) diff --git a/upstream/opensuse-tumbleweed/man3/strnlen.3 b/upstream/opensuse-tumbleweed/man3/strnlen.3 index eeaf3c6e..147f9aa2 100644 --- a/upstream/opensuse-tumbleweed/man3/strnlen.3 +++ b/upstream/opensuse-tumbleweed/man3/strnlen.3 @@ -6,7 +6,7 @@ .\" References consulted: .\" GNU glibc-2 source code and manual .\" -.TH strnlen 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strnlen 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strnlen \- determine the length of a fixed-size string .SH LIBRARY @@ -15,15 +15,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t strnlen(const char " s [. maxlen "], size_t " maxlen ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR strnlen (): .nf Since glibc 2.10: @@ -75,7 +75,6 @@ T{ .BR strnlen () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/strpbrk.3 b/upstream/opensuse-tumbleweed/man3/strpbrk.3 index abdf5af6..2ad85af1 100644 --- a/upstream/opensuse-tumbleweed/man3/strpbrk.3 +++ b/upstream/opensuse-tumbleweed/man3/strpbrk.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 18:01:24 1993 by Rik Faith (faith@cs.unc.edu) -.TH strpbrk 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strpbrk 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strpbrk \- search a string for any of a set of bytes .SH LIBRARY @@ -17,7 +17,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *strpbrk(const char *" s ", const char *" accept ); .fi .SH DESCRIPTION @@ -51,7 +51,6 @@ T{ .BR strpbrk () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/strptime.3 b/upstream/opensuse-tumbleweed/man3/strptime.3 index 6dd05904..ba6c3832 100644 --- a/upstream/opensuse-tumbleweed/man3/strptime.3 +++ b/upstream/opensuse-tumbleweed/man3/strptime.3 @@ -9,7 +9,7 @@ .\" Modified, aeb, 2001-08-31 .\" Modified, wharms 2001-11-12, remark on white space and example .\" -.TH strptime 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strptime 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strptime \- convert a string representation of time to a time tm structure .SH LIBRARY @@ -19,7 +19,7 @@ Standard C library .nf .BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "char *strptime(const char *restrict " s ", const char *restrict " format , .BI " struct tm *restrict " tm ); .fi @@ -36,12 +36,12 @@ structure pointed to by .IR tm , using the format specified by .IR format . -.PP +.P The broken-down time structure .I tm is described in .BR tm (3type). -.PP +.P The .I format argument @@ -59,7 +59,7 @@ except for whitespace, which matches zero or more whitespace characters in the input string. There should be white\%space or other alphanumeric characters between any two field descriptors. -.PP +.P The .BR strptime () function processes the input string from left @@ -68,7 +68,7 @@ Each of the three possible input elements (whitespace, literal, or format) are handled one after the other. If the input cannot be matched to the format string, the function stops. The remainder of the format and input strings are not processed. -.PP +.P The supported input field descriptors are listed below. In case a text string (such as the name of a day of the week or a month name) is to be matched, the comparison is case insensitive. @@ -104,7 +104,7 @@ Equivalent to to non-Americans, especially since .B %d/%m/%y is widely used in Europe. -The ISO 8601 standard format is +The ISO\~8601 standard format is .BR %Y\-%m\-%d .) .TP .B %H @@ -180,13 +180,13 @@ range 00\[en]68 refer to years in the twenty-first century (2000\[en]2068). .TP .B %Y The year, including century (for example, 1991). -.PP +.P Some field descriptors can be modified by the E or O modifier characters to indicate that an alternative format or specification should be used. If the alternative format or specification does not exist in the current locale, the unmodified field descriptor is used. -.PP +.P The E modifier specifies that the input string may contain alternative locale-dependent versions of the date and time representation: .TP @@ -209,7 +209,7 @@ The offset from .TP .B %EY The full alternative year representation. -.PP +.P The O modifier specifies that the numerical input may be in an alternative locale-dependent format: .TP @@ -275,7 +275,6 @@ T{ .BR strptime () T} Thread safety MT-Safe env locale .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -295,7 +294,7 @@ explicitly specified, except that it recomputes the and .I tm_yday field if any of the year, month, or day elements changed. -.\" .PP +.\" .P .\" This function is available since libc 4.6.8. .\" Linux libc4 and libc5 includes define the prototype unconditionally; .\" glibc2 includes provide a prototype only when @@ -303,12 +302,12 @@ field if any of the year, month, or day elements changed. .\" or .\" .B _GNU_SOURCE .\" are defined. -.\" .PP +.\" .P .\" Before libc 5.4.13 whitespace .\" (and the \[aq]n\[aq] and \[aq]t\[aq] specifications) was not handled, .\" no \[aq]E\[aq] and \[aq]O\[aq] locale modifier characters were accepted, .\" and the \[aq]C\[aq] specification was a synonym for the \[aq]c\[aq] specification. -.PP +.P The \[aq]y\[aq] (year in century) specification is taken to specify a year .\" in the 20th century by libc4 and libc5. .\" It is taken to be a year @@ -330,7 +329,7 @@ This leads to .B %F Equivalent to .BR %Y\-%m\-%d , -the ISO 8601 date format. +the ISO\~8601 date format. .TP .B %g The year corresponding to the ISO week number, but without the century @@ -344,18 +343,18 @@ The year corresponding to the ISO week number. The day of the week as a decimal number (1\[en]7, where Monday = 1). .TP .B %V -The ISO 8601:1988 week number as a decimal number (1\[en]53). +The ISO\~8601:1988 week number as a decimal number (1\[en]53). If the week (starting on Monday) containing 1 January has four or more days in the new year, then it is considered week 1. Otherwise, it is the last week of the previous year, and the next week is week 1. .TP .B %z -An RFC-822/ISO 8601 standard timezone specification. +An RFC-822/ISO\~8601 standard timezone specification. .TP .B %Z The timezone name. -.PP +.P Similarly, because of GNU extensions to .BR strftime (3), .B %k @@ -375,7 +374,7 @@ Finally .B %s The number of seconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC). Leap seconds are not counted unless leap second support is available. -.PP +.P The glibc implementation does not require whitespace between two field descriptors. .SH EXAMPLES @@ -383,7 +382,7 @@ The following example demonstrates the use of .BR strptime () and .BR strftime (3). -.PP +.P .\" SRC BEGIN (strptime.c) .EX #define _XOPEN_SOURCE diff --git a/upstream/opensuse-tumbleweed/man3/strsep.3 b/upstream/opensuse-tumbleweed/man3/strsep.3 index bf86fcfb..a3f0153c 100644 --- a/upstream/opensuse-tumbleweed/man3/strsep.3 +++ b/upstream/opensuse-tumbleweed/man3/strsep.3 @@ -11,7 +11,7 @@ .\" Modified Mon Jan 20 12:04:18 1997 by Andries Brouwer (aeb@cwi.nl) .\" Modified Tue Jan 23 20:23:07 2001 by Andries Brouwer (aeb@cwi.nl) .\" -.TH strsep 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strsep 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strsep \- extract token from string .SH LIBRARY @@ -20,15 +20,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *strsep(char **restrict " stringp ", const char *restrict " delim ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR strsep (): .nf Since glibc 2.19: @@ -79,12 +79,11 @@ T{ .BR strsep () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY 4.4BSD. -.PP +.P The .BR strsep () function was introduced as a replacement for @@ -106,7 +105,7 @@ The identity of the delimiting character is lost. The program below is a port of the one found in .BR strtok (3), which, however, doesn't discard multiple delimiters or empty tokens: -.PP +.P .in +4n .EX .RB "$" " ./a.out \[aq]a/bbb///cc;xxx:yyy:\[aq] \[aq]:;\[aq] \[aq]/\[aq]" diff --git a/upstream/opensuse-tumbleweed/man3/strsignal.3 b/upstream/opensuse-tumbleweed/man3/strsignal.3 index 3aaacecd..168cde41 100644 --- a/upstream/opensuse-tumbleweed/man3/strsignal.3 +++ b/upstream/opensuse-tumbleweed/man3/strsignal.3 @@ -9,7 +9,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 17:59:03 1993 by Rik Faith (faith@cs.unc.edu) -.TH strsignal 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strsignal 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strsignal, sigabbrev_np, sigdescr_np, sys_siglist \- return string describing signal @@ -19,25 +19,25 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *strsignal(int " sig ); .BI "const char *sigdescr_np(int " sig ); .BI "const char *sigabbrev_np(int " sig ); -.PP +.P .BI "[[deprecated]] extern const char *const " sys_siglist []; .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR sigabbrev_np (), .BR sigdescr_np (): .nf _GNU_SOURCE .fi -.PP +.P .BR strsignal (): .nf From glibc 2.10 to glibc 2.31: @@ -45,7 +45,7 @@ Feature Test Macro Requirements for glibc (see Before glibc 2.10: _GNU_SOURCE .fi -.PP +.P .IR sys_siglist : .nf Since glibc 2.19: @@ -66,7 +66,7 @@ The string returned by is localized according to the .B LC_MESSAGES category in the current locale. -.PP +.P The .BR sigdescr_np () function returns a string describing the signal @@ -75,7 +75,7 @@ number passed in the argument Unlike .BR strsignal () this string is not influenced by the current locale. -.PP +.P The .BR sigabbrev_np () function returns the abbreviated name of the signal, @@ -83,7 +83,7 @@ function returns the abbreviated name of the signal, For example, given the value .BR SIGINT , it returns the string "INT". -.PP +.P The (deprecated) array .I sys_siglist holds the signal description strings @@ -100,7 +100,7 @@ function returns the appropriate description string, or an unknown signal message if the signal number is invalid. On some systems (but not on Linux), NULL may instead be returned for an invalid signal number. -.PP +.P The .BR sigdescr_np () and @@ -133,7 +133,6 @@ T{ .BR sigabbrev_np () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR strsignal () diff --git a/upstream/opensuse-tumbleweed/man3/strspn.3 b/upstream/opensuse-tumbleweed/man3/strspn.3 index 53e546d6..c1739c57 100644 --- a/upstream/opensuse-tumbleweed/man3/strspn.3 +++ b/upstream/opensuse-tumbleweed/man3/strspn.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 17:57:50 1993 by Rik Faith (faith@cs.unc.edu) -.TH strspn 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strspn 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strspn, strcspn \- get length of a prefix substring .SH LIBRARY @@ -17,7 +17,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t strspn(const char *" s ", const char *" accept ); .BI "size_t strcspn(const char *" s ", const char *" reject ); .fi @@ -29,7 +29,7 @@ segment of .I s which consists entirely of bytes in .IR accept . -.PP +.P The .BR strcspn () function calculates the length of the initial @@ -46,7 +46,7 @@ the initial segment of which consist only of bytes from .IR accept . -.PP +.P The .BR strcspn () function returns the number of bytes in @@ -69,7 +69,6 @@ T{ .BR strcspn () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/strstr.3 b/upstream/opensuse-tumbleweed/man3/strstr.3 index d07c0f48..c62469da 100644 --- a/upstream/opensuse-tumbleweed/man3/strstr.3 +++ b/upstream/opensuse-tumbleweed/man3/strstr.3 @@ -11,7 +11,7 @@ .\" Added history, aeb, 980113. .\" 2005-05-05 mtk: added strcasestr() .\" -.TH strstr 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strstr 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strstr, strcasestr \- locate a substring .SH LIBRARY @@ -20,12 +20,12 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *strstr(const char *" haystack ", const char *" needle ); -.PP +.P .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "char *strcasestr(const char *" haystack ", const char *" needle ); .fi .SH DESCRIPTION @@ -36,7 +36,7 @@ function finds the first occurrence of the substring in the string .IR haystack . The terminating null bytes (\[aq]\e0\[aq]) are not compared. -.PP +.P The .BR strcasestr () function is like @@ -45,7 +45,7 @@ but ignores the case of both arguments. .SH RETURN VALUE These functions return a pointer to the beginning of the located substring, or NULL if the substring is not found. -.PP +.P If .I needle is the empty string, @@ -71,7 +71,6 @@ T{ .BR strcasestr () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS .TP .BR strstr () diff --git a/upstream/opensuse-tumbleweed/man3/strtod.3 b/upstream/opensuse-tumbleweed/man3/strtod.3 index 23e75788..c1b36cc1 100644 --- a/upstream/opensuse-tumbleweed/man3/strtod.3 +++ b/upstream/opensuse-tumbleweed/man3/strtod.3 @@ -15,7 +15,7 @@ .\" (michael@cantor.informatik.rwth-aachen.de) .\" Added strof, strtold, aeb, 2001-06-07 .\" -.TH strtod 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strtod 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strtod, strtof, strtold \- convert ASCII string to floating-point number .SH LIBRARY @@ -24,18 +24,18 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double strtod(const char *restrict " nptr ", char **restrict " endptr ); .BI "float strtof(const char *restrict " nptr ", char **restrict " endptr ); .BI "long double strtold(const char *restrict " nptr \ ", char **restrict " endptr ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR strtof (), .BR strtold (): .nf @@ -55,14 +55,14 @@ to and .I long double representation, respectively. -.PP +.P The expected form of the (initial portion of the) string is optional leading white space as recognized by .BR isspace (3), an optional plus (\[aq]+\[aq]) or minus sign (\[aq]\-\[aq]) and then either (i) a decimal number, or (ii) a hexadecimal number, or (iii) an infinity, or (iv) a NAN (not-a-number). -.PP +.P A .I "decimal number" consists of a nonempty sequence of decimal digits @@ -71,7 +71,7 @@ usually \[aq].\[aq]), optionally followed by a decimal exponent. A decimal exponent consists of an \[aq]E\[aq] or \[aq]e\[aq], followed by an optional plus or minus sign, followed by a nonempty sequence of decimal digits, and indicates multiplication by a power of 10. -.PP +.P A .I "hexadecimal number" consists of a "0x" or "0X" followed by a nonempty sequence of @@ -82,11 +82,11 @@ consists of a \[aq]P\[aq] or \[aq]p\[aq], followed by an optional plus or minus sign, followed by a nonempty sequence of decimal digits, and indicates multiplication by a power of 2. At least one of radix character and binary exponent must be present. -.PP +.P An .I infinity is either "INF" or "INFINITY", disregarding case. -.PP +.P A .I NAN is "NAN" (disregarding case) optionally followed by a string, @@ -97,21 +97,21 @@ specifies in an implementation-dependent way the type of NAN (see NOTES). .SH RETURN VALUE These functions return the converted value, if any. -.PP +.P If .I endptr is not NULL, a pointer to the character after the last character used in the conversion is stored in the location referenced by .IR endptr . -.PP +.P If no conversion is performed, zero is returned and (unless .I endptr is null) the value of .I nptr is stored in the location referenced by .IR endptr . -.PP +.P If the correct value would cause overflow, plus or minus .BR HUGE_VAL , .BR HUGE_VALF , @@ -122,7 +122,7 @@ and .B ERANGE is stored in .IR errno . -.PP +.P If the correct value would cause underflow, a value with magnitude no larger than .BR DBL_MIN , @@ -153,7 +153,6 @@ T{ .BR strtold () T} Thread safety MT-Safe locale .TE -.sp 1 .SH VERSIONS In the glibc implementation, the .I n-char-sequence diff --git a/upstream/opensuse-tumbleweed/man3/strtoimax.3 b/upstream/opensuse-tumbleweed/man3/strtoimax.3 index 88ce9730..54799d59 100644 --- a/upstream/opensuse-tumbleweed/man3/strtoimax.3 +++ b/upstream/opensuse-tumbleweed/man3/strtoimax.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH strtoimax 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strtoimax 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strtoimax, strtoumax \- convert string to integer .SH LIBRARY @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "intmax_t strtoimax(const char *restrict " nptr ", char **restrict " endptr , .BI " int " base ); .BI "uintmax_t strtoumax(const char *restrict " nptr ", char **restrict " endptr , @@ -56,7 +56,6 @@ T{ .BR strtoumax () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/strtok.3 b/upstream/opensuse-tumbleweed/man3/strtok.3 index 6f015306..efd56de5 100644 --- a/upstream/opensuse-tumbleweed/man3/strtok.3 +++ b/upstream/opensuse-tumbleweed/man3/strtok.3 @@ -10,7 +10,7 @@ .\" 2005-11-17, mtk: Substantial parts rewritten .\" 2013-05-19, mtk: added much further detail on the operation of strtok() .\" -.TH strtok 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strtok 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strtok, strtok_r \- extract tokens from strings .SH LIBRARY @@ -19,17 +19,17 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *strtok(char *restrict " str ", const char *restrict " delim ); .BI "char *strtok_r(char *restrict " str ", const char *restrict " delim , .BI " char **restrict " saveptr ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR strtok_r (): .nf _POSIX_C_SOURCE @@ -47,7 +47,7 @@ specified in In each subsequent call that should parse the same string, .I str must be NULL. -.PP +.P The .I delim argument specifies a set of bytes that @@ -56,7 +56,7 @@ The caller may specify different strings in .I delim in successive calls that parse the same string. -.PP +.P Each call to .BR strtok () returns a pointer to a @@ -65,7 +65,7 @@ This string does not include the delimiting byte. If no more tokens are found, .BR strtok () returns NULL. -.PP +.P A sequence of calls to .BR strtok () that operate on the same string maintains a pointer @@ -85,7 +85,7 @@ returns NULL. will thus cause .BR strtok () to return NULL on the first call.) -.PP +.P The end of each token is found by scanning forward until either the next delimiter byte is found or until the terminating null byte (\[aq]\e0\[aq]) is encountered. @@ -98,7 +98,7 @@ when searching for the next token. In this case, .BR strtok () returns a pointer to the start of the found token. -.PP +.P From the above description, it follows that a sequence of two or more contiguous delimiter bytes in the parsed string is considered to be a single delimiter, and that @@ -112,7 +112,7 @@ successive calls to that specify the delimiter string "\fI;,\fP" would return the strings "\fIaaa\fP" and "\fIbbb\fP", and then a null pointer. -.PP +.P The .BR strtok_r () function is a reentrant version of @@ -125,7 +125,7 @@ variable that is used internally by .BR strtok_r () in order to maintain context between successive calls that parse the same string. -.PP +.P On the first call to .BR strtok_r (), .I str @@ -138,7 +138,7 @@ should be NULL, and .I saveptr (and the buffer that it points to) should be unchanged since the previous call. -.PP +.P Different strings may be parsed concurrently using sequences of calls to .BR strtok_r () that specify different @@ -170,7 +170,6 @@ T{ .BR strtok_r () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS On some implementations, .\" Tru64, according to its manual page @@ -218,9 +217,9 @@ The second argument specifies the delimiter byte(s) to be used to separate that string into "major" tokens. The third argument specifies the delimiter byte(s) to be used to separate the "major" tokens into subtokens. -.PP +.P An example of the output produced by this program is the following: -.PP +.P .in +4n .EX .RB "$" " ./a.out \[aq]a/bbb///cc;xxx:yyy:\[aq] \[aq]:;\[aq] \[aq]/\[aq]" @@ -273,7 +272,7 @@ main(int argc, char *argv[]) } .EE .\" SRC END -.PP +.P Another example program using .BR strtok () can be found in diff --git a/upstream/opensuse-tumbleweed/man3/strtol.3 b/upstream/opensuse-tumbleweed/man3/strtol.3 index fe5555a7..c0012657 100644 --- a/upstream/opensuse-tumbleweed/man3/strtol.3 +++ b/upstream/opensuse-tumbleweed/man3/strtol.3 @@ -10,7 +10,7 @@ .\" 386BSD man pages .\" Modified Sun Jul 25 10:53:39 1993 by Rik Faith (faith@cs.unc.edu) .\" Added correction due to nsd@bbc.com (Nick Duffek) - aeb, 950610 -.TH strtol 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strtol 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strtol, strtoll, strtoq \- convert a string to a long integer .SH LIBRARY @@ -19,18 +19,18 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "long strtol(const char *restrict " nptr , .BI " char **restrict " endptr ", int " base ); .BI "long long strtoll(const char *restrict " nptr , .BI " char **restrict " endptr ", int " base ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR strtoll (): .nf _ISOC99_SOURCE @@ -45,7 +45,7 @@ in to a long integer value according to the given .IR base , which must be between 2 and 36 inclusive, or be the special value 0. -.PP +.P The string may begin with an arbitrary amount of white space (as determined by .BR isspace (3)) @@ -58,7 +58,7 @@ zero .I base is taken as 10 (decimal) unless the next character is \[aq]0\[aq], in which case it is taken as 8 (octal). -.PP +.P The remainder of the string is converted to a .I long value @@ -67,10 +67,13 @@ valid digit in the given base. (In bases above 10, the letter \[aq]A\[aq] in either uppercase or lowercase represents 10, \[aq]B\[aq] represents 11, and so forth, with \[aq]Z\[aq] representing 35.) -.PP +.P If .I endptr is not NULL, +and the +.I base +is supported, .BR strtol () stores the address of the first invalid character in @@ -88,7 +91,7 @@ In particular, if is not \[aq]\e0\[aq] but .I **endptr is \[aq]\e0\[aq] on return, the entire string is valid. -.PP +.P The .BR strtoll () function works just like the @@ -124,6 +127,9 @@ instead of and .BR LONG_MAX ). .SH ERRORS +This function does not modify +.I errno +on success. .TP .B EINVAL (not in C99) @@ -133,7 +139,7 @@ contains an unsupported value. .TP .B ERANGE The resulting value was out of range. -.PP +.P The implementation may also set .I errno to @@ -156,7 +162,6 @@ T{ .BR strtoq () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -182,28 +187,43 @@ on both success and failure, the calling program should set .I errno to 0 before the call, and then determine if an error occurred by checking whether -.I errno -has a nonzero value after the call. -.PP +.I errno == ERANGE +after the call. +.P According to POSIX.1, in locales other than "C" and "POSIX", these functions may accept other, implementation-defined numeric strings. -.PP +.P BSD also has -.PP +.P .in +4n .EX .BI "quad_t strtoq(const char *" nptr ", char **" endptr ", int " base ); .EE .in -.PP +.P with completely analogous definition. Depending on the wordsize of the current architecture, this may be equivalent to .BR strtoll () or to .BR strtol (). +.SH CAVEATS +If the +.I base +needs to be tested, +it should be tested in a call where the string is known to succeed. +Otherwise, it's impossible to portably differentiate the errors. +.P +.in +4n +.EX +errno = 0; +strtol("0", NULL, base); +if (errno == EINVAL) + goto unsupported_base; +.EE +.in .SH EXAMPLES The program shown below demonstrates the use of .BR strtol (). @@ -218,7 +238,7 @@ a function that performs no error checking and has a simpler interface than .BR strtol ().) Some examples of the results produced by this program are the following: -.PP +.P .in +4n .EX .RB "$" " ./a.out 123" @@ -241,7 +261,6 @@ strtol: Numerical result out of range .\" SRC BEGIN (strtol.c) .EX #include -#include #include #include \& @@ -259,13 +278,20 @@ main(int argc, char *argv[]) \& str = argv[1]; base = (argc > 2) ? atoi(argv[2]) : 0; +\& + errno = 0; /* To distinguish success/failure after call */ + strtol("0", NULL, base); + if (errno == EINVAL) { + perror("strtol"); + exit(EXIT_FAILURE); + } \& errno = 0; /* To distinguish success/failure after call */ val = strtol(str, &endptr, base); \& /* Check for various possible errors. */ \& - if (errno != 0) { + if (errno == ERANGE) { perror("strtol"); exit(EXIT_FAILURE); } diff --git a/upstream/opensuse-tumbleweed/man3/strtoul.3 b/upstream/opensuse-tumbleweed/man3/strtoul.3 index a9a8d60d..dd9d2c1c 100644 --- a/upstream/opensuse-tumbleweed/man3/strtoul.3 +++ b/upstream/opensuse-tumbleweed/man3/strtoul.3 @@ -11,7 +11,7 @@ .\" Fixed typo, aeb, 950823 .\" 2002-02-22, joey, mihtjel: Added strtoull() .\" -.TH strtoul 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strtoul 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strtoul, strtoull, strtouq \- convert a string to an unsigned long integer .SH LIBRARY @@ -20,18 +20,18 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "unsigned long strtoul(const char *restrict " nptr , .BI " char **restrict " endptr ", int " base ); .BI "unsigned long long strtoull(const char *restrict " nptr , .BI " char **restrict " endptr ", int " base ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR strtoull (): .nf _ISOC99_SOURCE @@ -50,7 +50,7 @@ given .IR base , which must be between 2 and 36 inclusive, or be the special value 0. -.PP +.P The string may begin with an arbitrary amount of white space (as determined by .BR isspace (3)) @@ -64,7 +64,7 @@ zero .I base is taken as 10 (decimal) unless the next character is \[aq]0\[aq], in which case it is taken as 8 (octal). -.PP +.P The remainder of the string is converted to an .I "unsigned long" value in the obvious manner, @@ -73,10 +73,13 @@ valid digit in the given base. (In bases above 10, the letter \[aq]A\[aq] in either uppercase or lowercase represents 10, \[aq]B\[aq] represents 11, and so forth, with \[aq]Z\[aq] representing 35.) -.PP +.P If .I endptr is not NULL, +and the +.I base +is supported, .BR strtoul () stores the address of the first invalid character in @@ -94,7 +97,7 @@ In particular, if is not \[aq]\e0\[aq] but .I **endptr is \[aq]\e0\[aq] on return, the entire string is valid. -.PP +.P The .BR strtoull () function works just like the @@ -124,6 +127,9 @@ Precisely the same holds for instead of .BR ULONG_MAX ). .SH ERRORS +This function does not modify +.I errno +on success. .TP .B EINVAL (not in C99) @@ -133,7 +139,7 @@ contains an unsupported value. .TP .B ERANGE The resulting value was out of range. -.PP +.P The implementation may also set .I errno to @@ -156,7 +162,6 @@ T{ .BR strtouq () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -180,26 +185,26 @@ to 0 before the call, and then determine if an error occurred by checking whether .I errno has a nonzero value after the call. -.PP +.P In locales other than the "C" locale, other strings may be accepted. (For example, the thousands separator of the current locale may be supported.) -.PP +.P BSD also has -.PP +.P .in +4n .EX .BI "u_quad_t strtouq(const char *" nptr ", char **" endptr ", int " base ); .EE .in -.PP +.P with completely analogous definition. Depending on the wordsize of the current architecture, this may be equivalent to .BR strtoull () or to .BR strtoul (). -.PP +.P Negative values are considered valid input and are silently converted to the equivalent .I "unsigned long" diff --git a/upstream/opensuse-tumbleweed/man3/strverscmp.3 b/upstream/opensuse-tumbleweed/man3/strverscmp.3 index e33a569d..9e3cc39c 100644 --- a/upstream/opensuse-tumbleweed/man3/strverscmp.3 +++ b/upstream/opensuse-tumbleweed/man3/strverscmp.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH strverscmp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strverscmp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strverscmp \- compare two version strings .SH LIBRARY @@ -14,7 +14,7 @@ Standard C library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "int strverscmp(const char *" s1 ", const char *" s2 ); .fi .SH DESCRIPTION @@ -33,7 +33,7 @@ which is implemented using .BR versionsort (3), which again uses .BR strverscmp (). -.PP +.P Thus, the task of .BR strverscmp () is to compare two strings and find the "right" order, while @@ -44,7 +44,7 @@ the locale category .BR LC_COLLATE , so is meant mostly for situations where the strings are expected to be in ASCII. -.PP +.P What this function does is the following. If both strings are equal, return 0. Otherwise, find the position @@ -85,7 +85,6 @@ T{ .BR strverscmp () T} Thread safety MT-Safe .TE -.sp 1 .\" FIXME: The marking is different from that in the glibc manual, .\" which has: .\" @@ -105,7 +104,7 @@ It uses .BR strverscmp () to compare the two strings given as its command-line arguments. An example of its use is the following: -.PP +.P .in +4n .EX $ \fB./a.out jan1 jan10\fP diff --git a/upstream/opensuse-tumbleweed/man3/strxfrm.3 b/upstream/opensuse-tumbleweed/man3/strxfrm.3 index 03ff0a8e..8fb90973 100644 --- a/upstream/opensuse-tumbleweed/man3/strxfrm.3 +++ b/upstream/opensuse-tumbleweed/man3/strxfrm.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sun Jul 25 10:41:28 1993 by Rik Faith (faith@cs.unc.edu) -.TH strxfrm 3 2023-07-20 "Linux man-pages 6.05.01" +.TH strxfrm 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME strxfrm \- string transformation .SH LIBRARY @@ -17,7 +17,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t strxfrm(char " dest "[restrict ." n "], \ const char " src "[restrict ." n ], .BI " size_t " n ); @@ -73,7 +73,6 @@ T{ .BR strxfrm () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/swab.3 b/upstream/opensuse-tumbleweed/man3/swab.3 index 046c0f85..b2638463 100644 --- a/upstream/opensuse-tumbleweed/man3/swab.3 +++ b/upstream/opensuse-tumbleweed/man3/swab.3 @@ -9,7 +9,7 @@ .\" 386BSD man pages .\" Modified Sat Jul 24 17:52:15 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified 2001-12-15, aeb -.TH swab 3 2023-07-20 "Linux man-pages 6.05.01" +.TH swab 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME swab \- swap adjacent bytes .SH LIBRARY @@ -19,7 +19,7 @@ Standard C library .nf .BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "void swab(const void " from "[restrict ." n "], void " to "[restrict ." n ], .BI " ssize_t " n ); .fi @@ -37,7 +37,7 @@ exchanging adjacent even and odd bytes. This function is used to exchange data between machines that have different low/high byte ordering. -.PP +.P This function does nothing when .I n is negative. @@ -68,7 +68,6 @@ T{ .BR swab () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/sysconf.3 b/upstream/opensuse-tumbleweed/man3/sysconf.3 index a4d14d3b..2c269fdc 100644 --- a/upstream/opensuse-tumbleweed/man3/sysconf.3 +++ b/upstream/opensuse-tumbleweed/man3/sysconf.3 @@ -5,7 +5,7 @@ .\" .\" Modified Sat Jul 24 17:51:42 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified Tue Aug 17 11:42:20 1999 by Ariel Scolnicov (ariels@compugen.co.il) -.TH sysconf 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sysconf 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sysconf \- get configuration information at run time .SH LIBRARY @@ -14,20 +14,20 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "long sysconf(int " "name" ); .fi .SH DESCRIPTION POSIX allows an application to test at compile or run time whether certain options are supported, or what the value is of certain configurable constants or limits. -.PP +.P At compile time this is done by including .I and/or .I and testing the value of certain macros. -.PP +.P At run time, one can ask for numerical values using the present function .BR sysconf (). One can ask for numerical values that may depend @@ -37,12 +37,12 @@ and .BR pathconf (3). One can ask for string values using .BR confstr (3). -.PP +.P The values obtained from these functions are system configuration constants. They do not change during the lifetime of a process. .\" except that sysconf(_SC_OPEN_MAX) may change answer after a call .\" to setrlimit( ) which changes the RLIMIT_NOFILE soft limit -.PP +.P For options, typically, there is a constant .B _POSIX_FOO that may be defined in @@ -65,7 +65,7 @@ argument will be .BR _SC_FOO . For a list of options, see .BR posixoptions (7). -.PP +.P For variables or limits, typically, there is a constant .BR _FOO , maybe defined in @@ -90,7 +90,7 @@ We give the name of the variable, the name of the .BR sysconf () argument used to inquire about its value, and a short description. -.PP +.P First, the POSIX.1 compatible values. .\" [for the moment: only the things that are unconditionally present] .\" .TP @@ -285,7 +285,7 @@ is supported. .BR POSIX2_SW_DEV " - " _SC_2_SW_DEV indicates whether the POSIX.2 software development utilities option is supported. -.PP +.P These values also exist, but may not be standard. .TP .BR "" " - " _SC_PHYS_PAGES @@ -366,7 +366,6 @@ T{ .BR sysconf () T} Thread safety MT-Safe env .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -377,7 +376,7 @@ It is difficult to use because it is not specified how much of the argument space for .BR exec (3) is consumed by the user's environment variables. -.PP +.P Some returned values may be huge; they are not suitable for allocating memory. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/syslog.3 b/upstream/opensuse-tumbleweed/man3/syslog.3 index e8c9dc43..e6b885bc 100644 --- a/upstream/opensuse-tumbleweed/man3/syslog.3 +++ b/upstream/opensuse-tumbleweed/man3/syslog.3 @@ -15,7 +15,7 @@ .\" Modified 13 Dec 2001, Martin Schulze .\" Modified 3 Jan 2002, Michael Kerrisk .\" -.TH syslog 3 2023-07-20 "Linux man-pages 6.05.01" +.TH syslog 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME closelog, openlog, syslog, vsyslog \- send messages to the system logger .SH LIBRARY @@ -24,19 +24,19 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void openlog(const char *" ident ", int " option ", int " facility ); .BI "void syslog(int " priority ", const char *" format ", ...);" .B "void closelog(void);" -.PP +.P .BI "void vsyslog(int " priority ", const char *" format ", va_list " ap ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR vsyslog (): .nf Since glibc 2.19: @@ -48,7 +48,7 @@ Feature Test Macro Requirements for glibc (see .SS openlog() .BR openlog () opens a connection to the system logger for a program. -.PP +.P The string pointed to by .I ident is prepended to every message, and is typically set to the program name. @@ -58,7 +58,7 @@ is NULL, the program name is used. (POSIX.1-2008 does not specify the behavior when .I ident is NULL.) -.PP +.P The .I option argument specifies flags which control the operation of @@ -75,7 +75,7 @@ The values that may be specified for and .I facility are described below. -.PP +.P The use of .BR openlog () is optional; it will automatically be called by @@ -88,7 +88,7 @@ will default to NULL. .BR syslog () generates a log message, which will be distributed by .BR syslogd (8). -.PP +.P The .I priority argument is formed by ORing together a @@ -107,7 +107,7 @@ is used, or, if there was no preceding call, a default of .B LOG_USER is employed. -.PP +.P The remaining arguments are a .IR format , as in @@ -120,7 +120,7 @@ will be replaced by the error message string .IR strerror ( errno ). The format string need not include a terminating newline character. -.PP +.P The function .BR vsyslog () performs the same task as @@ -254,7 +254,7 @@ informational message .TP .B LOG_DEBUG debug-level message -.PP +.P The function .BR setlogmask (3) can be used to restrict logging to specified levels only. @@ -279,7 +279,6 @@ T{ .BR vsyslog () T} Thread safety MT-Safe env locale .TE -.sp 1 .SH STANDARDS .TP .BR syslog () @@ -310,7 +309,7 @@ None. .\" .I .\" mechanism, which is not compatible with .\" .IR . -.PP +.P POSIX.1-2001 specifies only the .B LOG_USER and @@ -324,7 +323,7 @@ and the other .I facility values appear on most UNIX systems. -.PP +.P The .B LOG_PERROR value for @@ -343,10 +342,10 @@ is changed, may start prepending the changed string, and if the string it points to ceases to exist, the results are undefined. Most portable is to use a string constant. -.PP +.P Never pass a string with user-supplied data as a format, use the following instead: -.PP +.P .in +4n .EX syslog(priority, "%s", string); diff --git a/upstream/opensuse-tumbleweed/man3/system.3 b/upstream/opensuse-tumbleweed/man3/system.3 index 8615623e..8a00ba87 100644 --- a/upstream/opensuse-tumbleweed/man3/system.3 +++ b/upstream/opensuse-tumbleweed/man3/system.3 @@ -9,7 +9,7 @@ .\" Modified 14 May 2001, 23 Sep 2001 by aeb .\" 2004-12-20, mtk .\" -.TH system 3 2023-07-20 "Linux man-pages 6.05.01" +.TH system 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME system \- execute a shell command .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int system(const char *" "command" ); .fi .SH DESCRIPTION @@ -31,16 +31,16 @@ to create a child process that executed the shell command specified in using .BR execl (3) as follows: -.PP +.P .in +4n .EX execl("/bin/sh", "sh", "\-c", command, (char *) NULL); .EE .in -.PP +.P .BR system () returns after the command has been completed. -.PP +.P During execution of the command, .B SIGCHLD will be blocked, and @@ -52,7 +52,7 @@ will be ignored, in the process that calls (These signals will be handled according to their defaults inside the child process that executes .IR command .) -.PP +.P If .I command is NULL, then @@ -85,7 +85,7 @@ used to execute .IR command . (The termination status of a shell is the termination status of the last command it executes.) -.PP +.P In the last two cases, the return value is a "wait status" that can be examined using the macros described in @@ -94,7 +94,7 @@ the macros described in .BR WIFEXITED (), .BR WEXITSTATUS (), and so on). -.PP +.P .BR system () does not affect the wait status of any other children. .SH ERRORS @@ -115,7 +115,6 @@ T{ .BR system () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -137,7 +136,7 @@ The main cost of is inefficiency: additional system calls are required to create the process that runs the shell and to execute the shell. -.PP +.P If the .B _XOPEN_SOURCE feature test macro is defined @@ -149,7 +148,7 @@ then the macros described in .RB ( WEXITSTATUS (), etc.) are made available when including .IR . -.PP +.P As mentioned, .BR system () ignores @@ -160,7 +159,7 @@ This may make programs that call it from a loop uninterruptible, unless they take care themselves to check the exit status of the child. For example: -.PP +.P .in +4n .EX while (something) { @@ -172,13 +171,13 @@ while (something) { } .EE .in -.PP +.P According to POSIX.1, it is unspecified whether handlers registered using .BR pthread_atfork (3) are called during the execution of .BR system (). In the glibc implementation, such handlers are not called. -.PP +.P Before glibc 2.1.3, the check for the availability of .I /bin/sh was not actually performed if @@ -192,7 +191,7 @@ a shell, that shell may not be available or executable if the calling program has previously called .BR chroot (2) (which is not specified by POSIX.1-2001). -.PP +.P It is possible for the shell command to terminate with a status of 127, which yields a .BR system () @@ -219,7 +218,7 @@ or (which also use the .B PATH environment variable to search for an executable). -.PP +.P .BR system () will not, in fact, work properly from programs with set-user-ID or set-group-ID privileges on systems on which @@ -229,7 +228,7 @@ is bash version 2: as a security measure, bash 2 drops privileges on startup. .BR dash (1), which does not do this when invoked as .BR sh .) -.PP +.P Any user input that is employed as part of .I command should be @@ -253,7 +252,7 @@ option to .BR sh (1).) To work around this problem, prepend the command with a space as in the following call: -.PP +.P .in +4n .EX system(" \-unfortunate\-command\-name"); diff --git a/upstream/opensuse-tumbleweed/man3/sysv_signal.3 b/upstream/opensuse-tumbleweed/man3/sysv_signal.3 index 84d77fef..fcdfa6bc 100644 --- a/upstream/opensuse-tumbleweed/man3/sysv_signal.3 +++ b/upstream/opensuse-tumbleweed/man3/sysv_signal.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH sysv_signal 3 2023-07-20 "Linux man-pages 6.05.01" +.TH sysv_signal 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME sysv_signal \- signal handling with System V semantics .SH LIBRARY @@ -13,9 +13,9 @@ Standard C library .nf .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .B typedef void (*sighandler_t)(int); -.PP +.P .BI "sighandler_t sysv_signal(int " signum ", sighandler_t " handler ); .fi .SH DESCRIPTION @@ -23,7 +23,7 @@ The .BR sysv_signal () function takes the same arguments, and performs the same task, as .BR signal (2). -.PP +.P However .BR sysv_signal () provides the System V unreliable signal semantics, that is: @@ -56,14 +56,13 @@ T{ .BR sysv_signal () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS Use of .BR sysv_signal () should be avoided; use .BR sigaction (2) instead. -.PP +.P On older Linux systems, .BR sysv_signal () and @@ -74,7 +73,7 @@ But on newer systems, provides reliable signal semantics; see .BR signal (2) for details. -.PP +.P The use of .I sighandler_t is a GNU extension; diff --git a/upstream/opensuse-tumbleweed/man3/tailq.3 b/upstream/opensuse-tumbleweed/man3/tailq.3 index 15f9203d..45899a68 100644 --- a/upstream/opensuse-tumbleweed/man3/tailq.3 +++ b/upstream/opensuse-tumbleweed/man3/tailq.3 @@ -5,7 +5,7 @@ .\" SPDX-License-Identifier: BSD-3-Clause .\" .\" -.TH TAILQ 3 2023-05-03 "Linux man-pages 6.05.01" +.TH TAILQ 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME TAILQ_CONCAT, TAILQ_EMPTY, @@ -38,15 +38,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B TAILQ_ENTRY(TYPE); -.PP +.P .B TAILQ_HEAD(HEADNAME, TYPE); .BI "TAILQ_HEAD TAILQ_HEAD_INITIALIZER(TAILQ_HEAD " head ); .BI "void TAILQ_INIT(TAILQ_HEAD *" head ); -.PP +.P .BI "int TAILQ_EMPTY(TAILQ_HEAD *" head ); -.PP +.P .BI "void TAILQ_INSERT_HEAD(TAILQ_HEAD *" head , .BI " struct TYPE *" elm ", TAILQ_ENTRY " NAME ); .BI "void TAILQ_INSERT_TAIL(TAILQ_HEAD *" head , @@ -55,12 +55,12 @@ Standard C library .BI " struct TYPE *" elm ", TAILQ_ENTRY " NAME ); .BI "void TAILQ_INSERT_AFTER(TAILQ_HEAD *" head ", struct TYPE *" listelm , .BI " struct TYPE *" elm ", TAILQ_ENTRY " NAME ); -.PP +.P .BI "struct TYPE *TAILQ_FIRST(TAILQ_HEAD *" head ); .BI "struct TYPE *TAILQ_LAST(TAILQ_HEAD *" head ", HEADNAME);" .BI "struct TYPE *TAILQ_PREV(struct TYPE *" elm ", HEADNAME, TAILQ_ENTRY " NAME ); .BI "struct TYPE *TAILQ_NEXT(struct TYPE *" elm ", TAILQ_ENTRY " NAME ); -.PP +.P .BI "TAILQ_FOREACH(struct TYPE *" var ", TAILQ_HEAD *" head , .BI " TAILQ_ENTRY " NAME ); .\" .BI "TAILQ_FOREACH_FROM(struct TYPE *" var ", TAILQ_HEAD *" head , @@ -69,7 +69,7 @@ Standard C library .BI " TAILQ_ENTRY " NAME ); .\" .BI "TAILQ_FOREACH_REVERSE_FROM(struct TYPE *" var ", TAILQ_HEAD *" head ", HEADNAME," .\" .BI " TAILQ_ENTRY " NAME ); -.\" .PP +.\" .P .\" .BI "TAILQ_FOREACH_SAFE(struct TYPE *" var ", TAILQ_HEAD *" head , .\" .BI " TAILQ_ENTRY " NAME , .\" .BI " struct TYPE *" temp_var ); @@ -82,10 +82,10 @@ Standard C library .\" .BI "TAILQ_FOREACH_REVERSE_FROM_SAFE(struct TYPE *" var ", TAILQ_HEAD *" head , .\" .BI " HEADNAME, TAILQ_ENTRY " NAME , .\" .BI " struct TYPE *" temp_var ); -.PP +.P .BI "void TAILQ_REMOVE(TAILQ_HEAD *" head ", struct TYPE *" elm , .BI " TAILQ_ENTRY " NAME ); -.PP +.P .BI "void TAILQ_CONCAT(TAILQ_HEAD *" head1 ", TAILQ_HEAD *" head2 , .BI " TAILQ_ENTRY " NAME ); .\" .BI "void TAILQ_SWAP(TAILQ_HEAD *" head1 ", TAILQ_HEAD *" head2 ", TYPE," @@ -93,7 +93,7 @@ Standard C library .fi .SH DESCRIPTION These macros define and operate on doubly linked tail queues. -.PP +.P In the macro definitions, .I TYPE is the name of a user defined structure, @@ -123,42 +123,42 @@ or at the end of the queue. A .I TAILQ_HEAD structure is declared as follows: -.PP +.P .in +4 .EX TAILQ_HEAD(HEADNAME, TYPE) head; .EE .in -.PP +.P where .I struct HEADNAME is the structure to be defined, and .I struct TYPE is the type of the elements to be linked into the queue. A pointer to the head of the queue can later be declared as: -.PP +.P .in +4 .EX struct HEADNAME *headp; .EE .in -.PP +.P (The names .I head and .I headp are user selectable.) -.PP +.P .BR TAILQ_ENTRY () declares a structure that connects the elements in the queue. -.PP +.P .BR TAILQ_HEAD_INITIALIZER () evaluates to an initializer for the queue .IR head . -.PP +.P .BR TAILQ_INIT () initializes the queue referenced by -.PP +.P .BR TAILQ_EMPTY () evaluates to true if there are no items on the queue. .IR head . @@ -167,18 +167,18 @@ evaluates to true if there are no items on the queue. inserts the new element .I elm at the head of the queue. -.PP +.P .BR TAILQ_INSERT_TAIL () inserts the new element .I elm at the end of the queue. -.PP +.P .BR TAILQ_INSERT_BEFORE () inserts the new element .I elm before the element .IR listelm . -.PP +.P .BR TAILQ_INSERT_AFTER () inserts the new element .I elm @@ -187,17 +187,17 @@ after the element .SS Traversal .BR TAILQ_FIRST () returns the first item on the queue, or NULL if the queue is empty. -.PP +.P .BR TAILQ_LAST () returns the last item on the queue. If the queue is empty the return value is NULL. -.PP +.P .BR TAILQ_PREV () returns the previous item on the queue, or NULL if this item is the first. -.PP +.P .BR TAILQ_NEXT () returns the next item on the queue, or NULL if this item is the last. -.PP +.P .BR TAILQ_FOREACH () traverses the queue referenced by .I head @@ -207,7 +207,7 @@ assigning each element in turn to .I var is set to NULL if the loop completes normally, or if there were no elements. -.\" .PP +.\" .P .\" .BR TAILQ_FOREACH_FROM () .\" behaves identically to .\" .BR TAILQ_FOREACH () @@ -219,14 +219,14 @@ or if there were no elements. .\" .I var .\" instead of the first element in the TAILQ referenced by .\" .IR head . -.PP +.P .BR TAILQ_FOREACH_REVERSE () traverses the queue referenced by .I head in the reverse direction, assigning each element in turn to .IR var . -.\" .PP +.\" .P .\" .BR TAILQ_FOREACH_REVERSE_FROM () .\" behaves identically to .\" .BR TAILQ_FOREACH_REVERSE () @@ -238,7 +238,7 @@ assigning each element in turn to .\" .I var .\" instead of the last element in the TAILQ referenced by .\" .IR head . -.\" .PP +.\" .P .\" .BR TAILQ_FOREACH_SAFE () .\" and .\" .BR TAILQ_FOREACH_REVERSE_SAFE () @@ -255,7 +255,7 @@ assigning each element in turn to .\" .I var .\" as well as free it from within the loop safely without interfering with the .\" traversal. -.\" .PP +.\" .P .\" .BR TAILQ_FOREACH_FROM_SAFE () .\" behaves identically to .\" .BR TAILQ_FOREACH_SAFE () @@ -267,7 +267,7 @@ assigning each element in turn to .\" .I var .\" instead of the first element in the TAILQ referenced by .\" .IR head . -.\" .PP +.\" .P .\" .BR TAILQ_FOREACH_REVERSE_FROM_SAFE () .\" behaves identically to .\" .BR TAILQ_FOREACH_REVERSE_SAFE () @@ -290,7 +290,7 @@ from the queue. .\" .I head1 .\" and .\" .IR head2 . -.\" .PP +.\" .P .BR TAILQ_CONCAT () concatenates the queue headed by .I head2 @@ -301,7 +301,7 @@ removing all entries from the former. .BR TAILQ_EMPTY () returns nonzero if the queue is empty, and zero if the queue contains at least one entry. -.PP +.P .BR TAILQ_FIRST (), .BR TAILQ_LAST (), .BR TAILQ_PREV (), @@ -310,7 +310,7 @@ and return a pointer to the first, last, previous, or next .I TYPE structure, respectively. -.PP +.P .BR TAILQ_HEAD_INITIALIZER () returns an initializer that can be assigned to the queue .IR head . diff --git a/upstream/opensuse-tumbleweed/man3/tan.3 b/upstream/opensuse-tumbleweed/man3/tan.3 index b0b185e9..738a052d 100644 --- a/upstream/opensuse-tumbleweed/man3/tan.3 +++ b/upstream/opensuse-tumbleweed/man3/tan.3 @@ -13,7 +13,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH tan 3 2023-07-20 "Linux man-pages 6.05.01" +.TH tan 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME tan, tanf, tanl \- tangent function .SH LIBRARY @@ -22,17 +22,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double tan(double " x ); .BI "float tanf(float " x ); .BI "long double tanl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR tanf (), .BR tanl (): .nf @@ -50,17 +50,17 @@ given in radians. .SH RETURN VALUE On success, these functions return the tangent of .IR x . -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is positive infinity or negative infinity, a domain error occurs, and a NaN is returned. -.PP +.P If the correct result would overflow, a range error occurs, and the functions return @@ -83,7 +83,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP is an infinity @@ -120,12 +120,11 @@ T{ .BR tanl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/tanh.3 b/upstream/opensuse-tumbleweed/man3/tanh.3 index dc4d8fc0..08a7a294 100644 --- a/upstream/opensuse-tumbleweed/man3/tanh.3 +++ b/upstream/opensuse-tumbleweed/man3/tanh.3 @@ -13,7 +13,7 @@ .\" Modified 2002-07-27 by Walter Harms .\" (walter.harms@informatik.uni-oldenburg.de) .\" -.TH tanh 3 2023-07-20 "Linux man-pages 6.05.01" +.TH tanh 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME tanh, tanhf, tanhl \- hyperbolic tangent function .SH LIBRARY @@ -22,17 +22,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double tanh(double " x ); .BI "float tanhf(float " x ); .BI "long double tanhl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR tanhf (), .BR tanhl (): .nf @@ -45,22 +45,22 @@ These functions return the hyperbolic tangent of .IR x , which is defined mathematically as: -.PP +.P .nf tanh(x) = sinh(x) / cosh(x) .fi .SH RETURN VALUE On success, these functions return the hyperbolic tangent of .IR x . -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is +0 (\-0), +0 (\-0) is returned. -.PP +.P If .I x is positive infinity (negative infinity), @@ -87,12 +87,11 @@ T{ .BR tanhl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY C99, POSIX.1-2001. -.PP +.P The variant returning .I double also conforms to diff --git a/upstream/opensuse-tumbleweed/man3/tcgetpgrp.3 b/upstream/opensuse-tumbleweed/man3/tcgetpgrp.3 index 494ed43d..b29c9ab2 100644 --- a/upstream/opensuse-tumbleweed/man3/tcgetpgrp.3 +++ b/upstream/opensuse-tumbleweed/man3/tcgetpgrp.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH tcgetpgrp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH tcgetpgrp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME tcgetpgrp, tcsetpgrp \- get and set terminal foreground process group .SH LIBRARY @@ -12,7 +12,7 @@ Standard C library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "pid_t tcgetpgrp(int " fd ); .BI "int tcsetpgrp(int " fd ", pid_t " pgrp ); .fi @@ -24,7 +24,7 @@ terminal associated to .IR fd , which must be the controlling terminal of the calling process. .\" The process itself may be a background process. -.PP +.P The function .BR tcsetpgrp () makes the process group with process group ID @@ -37,7 +37,7 @@ Moreover, .I pgrp must be a (nonempty) process group belonging to the same session as the calling process. -.PP +.P If .BR tcsetpgrp () is called by a member of a background process group in its session, @@ -61,7 +61,7 @@ does not refer to the controlling terminal of the calling process, \-1 is returned, and .I errno is set to indicate the error. -.PP +.P When successful, .BR tcsetpgrp () returns 0. @@ -106,7 +106,6 @@ T{ .BR tcsetpgrp () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS These functions are implemented via the .B TIOCGPGRP @@ -117,7 +116,7 @@ ioctls. POSIX.1-2008. .SH HISTORY POSIX.1-2001. -.PP +.P The ioctls appeared in 4.2BSD. The functions are POSIX inventions. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/tcgetsid.3 b/upstream/opensuse-tumbleweed/man3/tcgetsid.3 index 4fb349c9..a8925f72 100644 --- a/upstream/opensuse-tumbleweed/man3/tcgetsid.3 +++ b/upstream/opensuse-tumbleweed/man3/tcgetsid.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH tcgetsid 3 2023-07-20 "Linux man-pages 6.05.01" +.TH tcgetsid 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME tcgetsid \- get session ID .SH LIBRARY @@ -13,7 +13,7 @@ Standard C library .nf .BR "#define _XOPEN_SOURCE 500" " /* See feature_test_macros(7) */" .B "#include " -.PP +.P .BI "pid_t tcgetsid(int " fd ); .fi .SH DESCRIPTION @@ -58,13 +58,12 @@ T{ .BR tcgetsid () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY glibc 2.1. POSIX.1-2001. -.PP +.P This function is implemented via the .B TIOCGSID .BR ioctl (2), diff --git a/upstream/opensuse-tumbleweed/man3/telldir.3 b/upstream/opensuse-tumbleweed/man3/telldir.3 index 6bbd158e..90ae1f35 100644 --- a/upstream/opensuse-tumbleweed/man3/telldir.3 +++ b/upstream/opensuse-tumbleweed/man3/telldir.3 @@ -8,7 +8,7 @@ .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 17:48:42 1993 by Rik Faith (faith@cs.unc.edu) -.TH telldir 3 2023-07-20 "Linux man-pages 6.05.01" +.TH telldir 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME telldir \- return current location in directory stream .SH LIBRARY @@ -17,15 +17,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "long telldir(DIR *" dirp ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR telldir (): .nf _XOPEN_SOURCE @@ -63,12 +63,11 @@ T{ .BR telldir () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY POSIX.1-2001, 4.3BSD. -.PP +.P Up to glibc 2.1.1, the return type of .BR telldir () was @@ -76,7 +75,7 @@ was POSIX.1-2001 specifies .IR long , and this is the type used since glibc 2.1.2. -.PP +.P In early filesystems, the value returned by .BR telldir () was a simple file offset within a directory. diff --git a/upstream/opensuse-tumbleweed/man3/tempnam.3 b/upstream/opensuse-tumbleweed/man3/tempnam.3 index fd686431..3f9bacaf 100644 --- a/upstream/opensuse-tumbleweed/man3/tempnam.3 +++ b/upstream/opensuse-tumbleweed/man3/tempnam.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH tempnam 3 2023-07-20 "Linux man-pages 6.05.01" +.TH tempnam 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME tempnam \- create a name for a temporary file .SH LIBRARY @@ -12,15 +12,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *tempnam(const char *" dir ", const char *" pfx ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR tempnam (): .nf Since glibc 2.19: @@ -35,7 +35,7 @@ Use or .BR tmpfile (3) instead. -.PP +.P The .BR tempnam () function returns a pointer to a string that is a valid filename, @@ -49,7 +49,7 @@ in case is a non-NULL string of at most five bytes. The directory prefix part of the pathname generated is required to be "appropriate" (often that at least implies writable). -.PP +.P Attempts to find an appropriate directory go through the following steps: .TP 3 @@ -73,7 +73,7 @@ is used when appropriate. .TP d) Finally an implementation-defined directory may be used. -.PP +.P The string returned by .BR tempnam () is allocated using @@ -105,7 +105,6 @@ T{ .BR tempnam () T} Thread safety MT-Safe env .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -130,7 +129,7 @@ Or better yet, use .BR mkstemp (3) or .BR tmpfile (3). -.PP +.P SUSv2 does not mention the use of .BR TMPDIR ; glibc will use it only @@ -138,12 +137,12 @@ when the program is not set-user-ID. On SVr4, the directory used under \fBd)\fP is .I /tmp (and this is what glibc does). -.PP +.P Because it dynamically allocates memory used to return the pathname, .BR tempnam () is reentrant, and thus thread safe, unlike .BR tmpnam (3). -.PP +.P The .BR tempnam () function generates a different string each time it is called, @@ -156,11 +155,11 @@ If it is called more than .B TMP_MAX times, the behavior is implementation defined. -.PP +.P .BR tempnam () uses at most the first five bytes from .IR pfx . -.PP +.P The glibc implementation of .BR tempnam () fails with the error diff --git a/upstream/opensuse-tumbleweed/man3/termattrs.3ncurses b/upstream/opensuse-tumbleweed/man3/termattrs.3ncurses index c1b49882..e0152451 100644 --- a/upstream/opensuse-tumbleweed/man3/termattrs.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/termattrs.3ncurses @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_termattrs.3x,v 1.34 2024/01/05 21:46:58 tom Exp $ -.TH termattrs 3NCURSES 2024-01-05 "ncurses 6.4" "Library calls" +.\" $Id: curs_termattrs.3x,v 1.41 2024/04/20 21:20:07 tom Exp $ +.TH termattrs 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .SH NAME \fB\%baudrate\fP, \fB\%erasechar\fP, @@ -48,11 +48,11 @@ .PP \fBint baudrate(void); \fBchar erasechar(void); -\fBint erasewchar(wchar_t *\fIch\fP); +\fBint erasewchar(wchar_t *\fIwc\fP); \fBbool has_ic(void); \fBbool has_il(void); \fBchar killchar(void); -\fBint killwchar(wchar_t *\fIch\fP); +\fBint killwchar(wchar_t *\fIwc\fP); \fBchar *longname(void); \fBattr_t term_attrs(void); \fBchtype termattrs(void); @@ -68,10 +68,10 @@ integer. The \fBerasechar\fP routine returns the user's current erase character. .PP The \fBerasewchar\fP routine stores the current erase character -in the location referenced by \fIch\fP. +in the location referenced by \fIwc\fP. If no erase character has been defined, the routine fails -and the location referenced by \fIch\fP is not changed. -.SS "has_is, has_il" +and the location referenced by \fIwc\fP is not changed. +.SS "has_ic, has_il" The \fBhas_ic\fP routine is true if the terminal has insert- and delete- character capabilities. .PP @@ -84,9 +84,9 @@ scrolling using \fB\%scrollok\fP(3NCURSES). The \fBkillchar\fP routine returns the user's current line kill character. .PP The \fBkillwchar\fP routine stores the current line-kill character -in the location referenced by \fIch\fP. +in the location referenced by \fIwc\fP. If no line-kill character has been defined, -the routine fails and the location referenced by \fIch\fP is not changed. +the routine fails and the location referenced by \fIwc\fP is not changed. .SS longname The \fBlongname\fP routine returns a pointer to a static area containing a verbose description of the current terminal. @@ -118,7 +118,7 @@ completion. .SH NOTES Note that \fBtermattrs\fP may be a macro. .SH PORTABILITY -The XSI Curses standard, Issue 4 describes these functions. +X/Open Curses, Issue 4 describes these functions. It changes the return type of \fBtermattrs\fP to the new type \fBattr_t\fP. Most versions of curses truncate the result returned by \fBtermname\fP to diff --git a/upstream/opensuse-tumbleweed/man3/termcap.3ncurses b/upstream/opensuse-tumbleweed/man3/termcap.3ncurses index b30f943a..397c6fee 100644 --- a/upstream/opensuse-tumbleweed/man3/termcap.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/termcap.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2017,2018 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_termcap.3x,v 1.81 2023/12/30 21:27:22 tom Exp $ -.TH termcap 3NCURSES 2023-12-30 "ncurses 6.4" "Library calls" +.\" $Id: curs_termcap.3x,v 1.85 2024/04/20 19:13:12 tom Exp $ +.TH termcap 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -115,7 +115,7 @@ as do other \fItermcap\fP implementations conforming to portions of X/Open Curses now withdrawn. The BSD \fItermcap\fP library would store a copy of the terminal type description in the area referenced by this pointer. -\fI\%ncurses\fP stores terminal type descriptions in compiled form, +\fI\%term\%info\fP stores terminal type descriptions in compiled form, which is not the same thing. .bP The meanings of the return values differ. @@ -493,8 +493,8 @@ be aware that it is returned in \fI\%term\%info\fP notation, not the older and not-quite-compatible \fItermcap\fP notation. This does not cause problems if all you do with it is call \fB\%tgoto\fP or \fB\%tparm\fP, -which both expand \fI\%term\%info\fP-style strings as \fI\%term\%info\fP -does. +which both parametrically expand \fI\%term\%info\fP-style string +capabilities as \fI\%term\%info\fP does. (If .I \%ncurses is configured to support \fItermcap,\fP diff --git a/upstream/opensuse-tumbleweed/man3/terminfo.3ncurses b/upstream/opensuse-tumbleweed/man3/terminfo.3ncurses index 47832389..f71c47e0 100644 --- a/upstream/opensuse-tumbleweed/man3/terminfo.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/terminfo.3ncurses @@ -28,8 +28,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_terminfo.3x,v 1.130 2024/02/24 20:04:09 tom Exp $ -.TH terminfo 3NCURSES 2024-02-24 "ncurses 6.4" "Library calls" +.\" $Id: curs_terminfo.3x,v 1.136 2024/04/14 00:14:40 tom Exp $ +.TH terminfo 3NCURSES 2024-04-13 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -228,7 +228,7 @@ initializing the .I \%term\%info structures, but does not set up the output virtualization structures used by -.I curses. +.IR curses . Its parameters follow. .RS 3 .TP 5 @@ -250,9 +250,9 @@ terminal, passing an output .I stream rather than a -.I descriptor. +.IR descriptor . In -.I curses, +.IR curses , the two are the same because \fB\%newterm\fP calls \fB\%setupterm\fP, passing the file descriptor derived from its output stream parameter. .TP 5 @@ -267,7 +267,7 @@ then \fB\%setupterm\fP returns or .B ERR and stores a status value in the integer pointed to by -.I errret. +.IR errret . A return value of .B OK combined with status of @@ -350,13 +350,13 @@ If it is called for different terminal types, capabilities. .PP \fB\%set_curterm\fP sets \fB\%cur_term\fP to -.I \%nterm, +.IR \%nterm , and makes all of the .I \%term\%info Boolean, numeric, and string variables use the values from -.I \%nterm. +.IR \%nterm . It returns the old value of \fB\%cur_term\fP. .PP \fB\%del_curterm\fP frees the space pointed to by @@ -389,7 +389,7 @@ and then restores the bits. \fB\%tparm\fP instantiates the string .I str with parameters -.I pi. +.IR pi . A pointer is returned to the result of .I str with the parameters applied. @@ -419,7 +419,7 @@ rather than a fixed-parameter list. Its numeric parameters are .IR int s rather than -.IR long s. +.IR long "s." .PP Both \fB\%tparm\fP and \fB\%tiparm\fP assume that the application passes parameters consistent with the terminal description. @@ -503,12 +503,12 @@ specified in \fB\%setupterm\fP. .PP \fB\%vidputs\fP displays the string on the terminal in the video attribute mode -.I attrs, +.IR attrs , which is any combination of the attributes listed in \fB\%ncurses\fP(3NCURSES). The characters are passed to the .IR \%putchar -like function -.I putc. +.IR putc . .PP \fB\%vidattr\fP is like \fB\%vidputs\fP, except that it outputs through \fI\%putchar\fP(3). @@ -525,14 +525,14 @@ They use multiple parameters to represent the character attributes and color; namely, .bP -.I \%attrs, +.IR \%attrs , of type -.I \%attr_t, +.IR \%attr_t , for the attributes and .bP -.I pair, +.IR pair , of type -.I short, +.IR short , for the color pair number. .PP Use the attribute constants prefixed with @@ -573,7 +573,7 @@ because System\ V did this and \fB\%tigetstr\fP return the value of the capability corresponding to the .I \%term\%info -.I cap-code, +.IR cap-code , such as .BR xenl , passed to them. @@ -686,7 +686,7 @@ but it is possible to do that using the \fB\%delscreen\fP(3NCURSES) function. .SH RETURN VALUE X/Open Curses defines no failure conditions. In -.I \%ncurses, +.IR \%ncurses , .TP 5 .B del_curtem fails if its terminal parameter is null. @@ -739,7 +739,7 @@ is also provided in the non-wide-character configuration. .\" ******************************************************************** .SH EXTENSIONS The functions marked as extensions were designed for -.I \%ncurses, +.IR \%ncurses , and are not found in SVr4 .IR curses , 4.4BSD @@ -752,7 +752,7 @@ implementation. allows .I opts to be a pointer to -.I int, +.IR int , which overrides the .I pair .RI ( short ) @@ -804,7 +804,7 @@ but is assumed by some applications. .PP Other implementions may not declare the capability name arrays. Some provide them without declaring them. -X/Open does not specify them. +X/Open Curses does not specify them. .PP Extended terminal capability names, as defined by @@ -826,7 +826,7 @@ did not allow a reliable way to clean up on receiving .PP The current version (ncurses6) uses output buffers managed directly by -.I \%ncurses. +.IR \%ncurses . Some of the low-level functions described in this manual page write to the standard output. They are not signal-safe. @@ -844,10 +844,12 @@ standardized in the late 1980s. X/Open Curses uses .I \%const less effectively than a later design might, -in some cases applying it needlessly to values are already constant, -and in most cases overlooking parameters which normally would use -.I \%const. -Using constant parameters for functions which do not use +sometimes applying it needlessly to values that are already constant, +and in most cases overlooking parameters that normally would use +.IR \%const . +Passing +.IR \%const -qualified +parameters to functions that do not declare them .I \%const may prevent the program from compiling. On the other hand, @@ -939,7 +941,7 @@ the windows console driver by checking if \fB$TERM\fP is set to .SS "Other Portability Issues" In SVr4, \fB\%set_curterm\fP returns an -.I int, +.IR int , .B OK or .BR ERR . @@ -980,28 +982,6 @@ function, .I curses function that is not well specified. .PP -X/Open notes that after calling \fB\%mvcur\fP, -the -.I curses -state may not match the actual terminal state, -and that an application should touch and refresh the window before -resuming normal -.I curses -calls. -Both -.I \%ncurses -and SVr4 -.I curses -implement \fB\%mvcur\fP using the -.I SCREEN -data allocated in either \fB\%initscr\fP or \fB\%newterm\fP. -So though it is documented as a -.I \%term\%info -function, -\fB\%mvcur\fP is really a -.I curses -function that is not well specified. -.PP X/Open Curses states that the old location must be given for \fB\%mvcur\fP to accommodate terminals that lack absolute cursor positioning. diff --git a/upstream/opensuse-tumbleweed/man3/terminfo_variables.3ncurses b/upstream/opensuse-tumbleweed/man3/terminfo_variables.3ncurses index 09292922..98f0cab4 100644 --- a/upstream/opensuse-tumbleweed/man3/terminfo_variables.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/terminfo_variables.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2019-2022,2023 Thomas E. Dickey * +.\" Copyright 2019-2023,2024 Thomas E. Dickey * .\" Copyright 2010-2015,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: term_variables.3x,v 1.34 2023/12/23 16:08:25 tom Exp $ -.TH terminfo_variables 3NCURSES 2023-12-23 "ncurses 6.4" "Library calls" +.\" $Id: term_variables.3x,v 1.36 2024/03/16 15:35:01 tom Exp $ +.TH terminfo_variables 3NCURSES 2024-03-16 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq diff --git a/upstream/opensuse-tumbleweed/man3/termios.3 b/upstream/opensuse-tumbleweed/man3/termios.3 index 9e015d16..932cfb4a 100644 --- a/upstream/opensuse-tumbleweed/man3/termios.3 +++ b/upstream/opensuse-tumbleweed/man3/termios.3 @@ -19,7 +19,7 @@ .\" Enhanced the discussion of "raw" mode for cfmakeraw(). .\" Document CMSPAR. .\" -.TH termios 3 2023-07-30 "Linux man-pages 6.05.01" +.TH termios 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME termios, tcgetattr, tcsetattr, tcsendbreak, tcdrain, tcflush, tcflow, cfmakeraw, cfgetospeed, cfgetispeed, cfsetispeed, cfsetospeed, cfsetspeed \- @@ -31,31 +31,31 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "int tcgetattr(int " fd ", struct termios *" termios_p ); .BI "int tcsetattr(int " fd ", int " optional_actions , .BI " const struct termios *" termios_p ); -.PP +.P .BI "int tcsendbreak(int " fd ", int " duration ); .BI "int tcdrain(int " fd ); .BI "int tcflush(int " fd ", int " queue_selector ); .BI "int tcflow(int " fd ", int " action ); -.PP +.P .BI "void cfmakeraw(struct termios *" termios_p ); -.PP +.P .BI "speed_t cfgetispeed(const struct termios *" termios_p ); .BI "speed_t cfgetospeed(const struct termios *" termios_p ); -.PP +.P .BI "int cfsetispeed(struct termios *" termios_p ", speed_t " speed ); .BI "int cfsetospeed(struct termios *" termios_p ", speed_t " speed ); .BI "int cfsetspeed(struct termios *" termios_p ", speed_t " speed ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR cfsetspeed (), .BR cfmakeraw (): .nf @@ -71,7 +71,7 @@ provided to control asynchronous communications ports. Many of the functions described here have a \fItermios_p\fP argument that is a pointer to a \fItermios\fP structure. This structure contains at least the following members: -.PP +.P .in +4n .EX tcflag_t c_iflag; /* input modes */ @@ -81,19 +81,19 @@ tcflag_t c_lflag; /* local modes */ cc_t c_cc[NCCS]; /* special characters */ .EE .in -.PP +.P The values that may be assigned to these fields are described below. In the case of the first four bit-mask fields, the definitions of some of the associated flags that may be set are exposed only if a specific feature test macro (see .BR feature_test_macros (7)) is defined, as noted in brackets ("[]"). -.PP +.P In the descriptions below, "not in POSIX" means that the value is not specified in POSIX.1-2001, and "XSI" means that the value is specified in POSIX.1-2001 as part of the XSI extension. -.PP +.P \fIc_iflag\fP flag constants: .TP .B IGNBRK @@ -168,7 +168,7 @@ Linux does not implement this bit, and acts as if it is always set. .BR IUTF8 " (since Linux 2.6.4)" (not in POSIX) Input is UTF8; this allows character-erase to be correctly performed in cooked mode. -.PP +.P .I c_oflag flag constants: .TP @@ -259,7 +259,7 @@ or .B _SVID_SOURCE or .BR _XOPEN_SOURCE ] -.PP +.P \fIc_cflag\fP flag constants: .TP .B CBAUD @@ -361,7 +361,7 @@ or .B _BSD_SOURCE or .BR _SVID_SOURCE ] -.PP +.P \fIc_lflag\fP flag constants: .TP .B ISIG @@ -472,7 +472,7 @@ Enable implementation-defined input processing. This flag, as well as \fBICANON\fP must be enabled for the special characters EOL2, LNEXT, REPRINT, WERASE to be interpreted, and for the \fBIUCLC\fP flag to be effective. -.PP +.P The \fIc_cc\fP array defines the terminal special characters. The symbolic indices (initial values) and meaning are: .TP @@ -634,13 +634,13 @@ Recognized when and .B IEXTEN are set, and then not passed as input. -.PP +.P An individual terminal special character can be disabled by setting the value of the corresponding .I c_cc element to .BR _POSIX_VDISABLE . -.PP +.P The above symbolic subscript values are all different, except that .BR VTIME , .B VMIN @@ -664,7 +664,7 @@ stores them in the \fItermios\fP structure referenced by This function may be invoked from a background process; however, the terminal attributes may be subsequently changed by a foreground process. -.PP +.P .BR tcsetattr () sets the parameters associated with the terminal (unless support is required from the underlying hardware that is not available) from the @@ -700,7 +700,7 @@ unset). By default, .B ICANON is set. -.PP +.P In canonical mode: .IP \[bu] 3 Input is made available line by line. @@ -734,7 +734,7 @@ processing) continues, but any input data after 4095 characters up to (but not including) any terminating newline is discarded. This ensures that the terminal can always receive more input until at least one line can be read. -.PP +.P In noncanonical mode input is available immediately (without the user having to type a line-delimiter character), no input processing is performed, @@ -806,7 +806,7 @@ becomes available, at least one byte will be read. If data is already available at the time of the call to .BR read (2), the call behaves as though the data was received immediately after the call. -.PP +.P POSIX .\" POSIX.1-2008 XBD 11.1.7 does not specify whether the setting of the @@ -833,7 +833,7 @@ input is available character by character, echoing is disabled, and all special processing of terminal input and output characters is disabled. The terminal attributes are set as follows: -.PP +.P .in +4n .EX termios_p\->c_iflag &= \[ti](IGNBRK | BRKINT | PARMRK | ISTRIP @@ -854,16 +854,16 @@ If \fIduration\fP is zero, it transmits zero-valued bits for at least 0.25 seconds, and not more than 0.5 seconds. If \fIduration\fP is not zero, it sends zero-valued bits for some implementation-defined length of time. -.PP +.P If the terminal is not using asynchronous serial data transmission, .BR tcsendbreak () returns without taking any action. -.PP +.P .BR tcdrain () waits until all output written to the object referred to by .I fd has been transmitted. -.PP +.P .BR tcflush () discards data written to the object referred to by .I fd @@ -880,7 +880,7 @@ flushes data written but not transmitted. .B TCIOFLUSH flushes both data received but not read, and data written but not transmitted. -.PP +.P .BR tcflow () suspends transmission or reception of data on the object referred to by .IR fd , @@ -900,7 +900,7 @@ transmitting data to the system. .B TCION transmits a START character, which starts the terminal device transmitting data to the system. -.PP +.P The default on open of a terminal file is that neither its input nor its output is suspended. .SS Line speed @@ -910,19 +910,19 @@ The new values do not take effect until .BR tcsetattr () is successfully called. -.PP +.P Setting the speed to \fBB0\fP instructs the modem to "hang up". The actual bit rate corresponding to \fBB38400\fP may be altered with .BR setserial (8). -.PP +.P The input and output baud rates are stored in the \fItermios\fP structure. -.PP +.P .BR cfgetospeed () returns the output baud rate stored in the \fItermios\fP structure pointed to by .IR termios_p . -.PP +.P .BR cfsetospeed () sets the output baud rate stored in the \fItermios\fP structure pointed to by \fItermios_p\fP to \fIspeed\fP, which must be one of these constants: @@ -982,7 +982,7 @@ to by \fItermios_p\fP to \fIspeed\fP, which must be one of these constants: .TQ .B B2000000 .RE -.PP +.P These constants are additionally supported on the SPARC architecture: .RS .TP @@ -994,7 +994,7 @@ These constants are additionally supported on the SPARC architecture: .TQ .B B614400 .RE -.PP +.P These constants are additionally supported on non-SPARC architectures: .RS .TP @@ -1006,12 +1006,12 @@ These constants are additionally supported on non-SPARC architectures: .TQ .B B4000000 .RE -.PP +.P Due to differences between architectures, portable applications should check if a particular .BI B nnn constant is defined prior to using it. -.PP +.P The zero baud rate, .BR B0 , is used to terminate the connection. @@ -1025,19 +1025,19 @@ for the speeds beyond those defined in POSIX.1 (57600 and above). Thus, .BR B57600 " & " CBAUDEX is nonzero. -.PP +.P Setting the baud rate to a value other than those defined by .BI B nnn constants is possible via the .B TCSETS2 ioctl; see .BR ioctl_tty (2). -.PP +.P .BR cfgetispeed () returns the input baud rate stored in the .I termios structure. -.PP +.P .BR cfsetispeed () sets the input baud rate stored in the .I termios @@ -1053,7 +1053,7 @@ If the input baud rate is set to the literal constant .BR B0 ), the input baud rate will be equal to the output baud rate. -.PP +.P .BR cfsetspeed () is a 4.4BSD extension. It takes the same arguments as @@ -1064,10 +1064,10 @@ and sets both input and output speed. returns the input baud rate stored in the \fItermios\fP structure. -.PP +.P .BR cfgetospeed () returns the output baud rate stored in the \fItermios\fP structure. -.PP +.P All other functions return: .TP .B 0 @@ -1077,7 +1077,7 @@ on success. on failure and set .I errno to indicate the error. -.PP +.P Note that .BR tcsetattr () returns success if \fIany\fP of the requested changes could be @@ -1111,7 +1111,6 @@ T{ .BR cfsetspeed () T} Thread safety MT-Safe .TE -.sp 1 .\" FIXME: The markings are different from that in the glibc manual. .\" markings in glibc manual are more detailed: .\" @@ -1186,7 +1185,7 @@ one finds the two constants .B EXTB ("External A" and "External B"). Many systems extend the list with much higher baud rates. -.PP +.P The effect of a nonzero \fIduration\fP with .BR tcsendbreak () varies. diff --git a/upstream/opensuse-tumbleweed/man3/textdomain.3 b/upstream/opensuse-tumbleweed/man3/textdomain.3 index 108a1e52..49d7dfc4 100644 --- a/upstream/opensuse-tumbleweed/man3/textdomain.3 +++ b/upstream/opensuse-tumbleweed/man3/textdomain.3 @@ -10,7 +10,7 @@ .\" GNU gettext source code and manual .\" LI18NUX 2000 Globalization Specification .\" -.TH TEXTDOMAIN 3 "May 2001" "GNU gettext 20220912" +.TH TEXTDOMAIN 3 "May 2001" "GNU gettext 0.22.5" .SH NAME textdomain \- set domain for future gettext() calls .SH SYNOPSIS diff --git a/upstream/opensuse-tumbleweed/man3/tgamma.3 b/upstream/opensuse-tumbleweed/man3/tgamma.3 index d2c59693..01d86a93 100644 --- a/upstream/opensuse-tumbleweed/man3/tgamma.3 +++ b/upstream/opensuse-tumbleweed/man3/tgamma.3 @@ -9,7 +9,7 @@ .\" Modified 2004-11-15, fixed error noted by Fabian Kreutz .\" .\" -.TH tgamma 3 2023-07-20 "Linux man-pages 6.05.01" +.TH tgamma 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME tgamma, tgammaf, tgammal \- true gamma function .SH LIBRARY @@ -18,17 +18,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double tgamma(double " x ); .BI "float tgammaf(float " x ); .BI "long double tgammal(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR tgamma (), .BR tgammaf (), .BR tgammal (): @@ -38,53 +38,53 @@ Feature Test Macro Requirements for glibc (see .SH DESCRIPTION These functions calculate the Gamma function of .IR x . -.PP +.P The Gamma function is defined by -.PP +.P .RS Gamma(x) = integral from 0 to infinity of t\[ha](x\-1) e\[ha]\-t dt .RE -.PP +.P It is defined for every real number except for nonpositive integers. For nonnegative integral .I m one has -.PP +.P .RS Gamma(m+1) = m! .RE -.PP +.P and, more generally, for all .IR x : -.PP +.P .RS Gamma(x+1) = x * Gamma(x) .RE -.PP +.P Furthermore, the following is valid for all values of .I x outside the poles: -.PP +.P .RS Gamma(x) * Gamma(1 \- x) = PI / sin(PI * x) .RE .SH RETURN VALUE On success, these functions return Gamma(x). -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is positive infinity, positive infinity is returned. -.PP +.P If .I x is a negative integer, or is negative infinity, a domain error occurs, and a NaN is returned. -.PP +.P If the result overflows, a range error occurs, and the functions return @@ -93,11 +93,11 @@ and the functions return or .BR HUGE_VALL , respectively, with the correct mathematical sign. -.PP +.P If the result underflows, a range error occurs, and the functions return 0, with the correct mathematical sign. -.PP +.P If .I x is \-0 or +0, @@ -113,7 +113,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP is a negative integer, or negative infinity @@ -139,7 +139,7 @@ is set to An overflow floating-point exception .RB ( FE_OVERFLOW ) is raised. -.PP +.P glibc also gives the following error which is not specified in C99 or POSIX.1-2001. .TP @@ -172,7 +172,6 @@ T{ .BR tgammal () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -194,7 +193,7 @@ to when .I x is negative infinity. -.PP +.P Before glibc 2.19, .\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=6810 the glibc implementation of these functions did not set @@ -202,7 +201,7 @@ the glibc implementation of these functions did not set to .B ERANGE on an underflow range error. -.PP +.P .\" In glibc versions 2.3.3 and earlier, an argument of +0 or \-0 incorrectly produced a domain error diff --git a/upstream/opensuse-tumbleweed/man3/threads.3ncurses b/upstream/opensuse-tumbleweed/man3/threads.3ncurses index f5ab8ab5..9450b03c 100644 --- a/upstream/opensuse-tumbleweed/man3/threads.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/threads.3ncurses @@ -28,8 +28,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_threads.3x,v 1.54 2024/01/13 22:05:39 tom Exp $ -.TH threads 3NCURSES 2024-01-13 "ncurses 6.4" "Library calls" +.\" $Id: curs_threads.3x,v 1.56 2024/03/16 15:35:01 tom Exp $ +.TH threads 3NCURSES 2024-03-16 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq diff --git a/upstream/opensuse-tumbleweed/man3/timegm.3 b/upstream/opensuse-tumbleweed/man3/timegm.3 index 659fc8a5..7395d99d 100644 --- a/upstream/opensuse-tumbleweed/man3/timegm.3 +++ b/upstream/opensuse-tumbleweed/man3/timegm.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH timegm 3 2023-07-20 "Linux man-pages 6.05.01" +.TH timegm 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME timegm, timelocal \- inverses of gmtime and localtime .SH LIBRARY @@ -12,16 +12,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] time_t timelocal(struct tm *" tm ); .BI "time_t timegm(struct tm *" tm ); -.PP +.P .fi .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR timelocal (), .BR timegm (): .nf @@ -75,12 +75,11 @@ T{ .BR timegm () T} Thread safety MT-Safe env locale .TE -.sp 1 .SH STANDARDS BSD. .SH HISTORY GNU, BSD. -.PP +.P The .BR timelocal () function is equivalent to the POSIX standard function diff --git a/upstream/opensuse-tumbleweed/man3/timeradd.3 b/upstream/opensuse-tumbleweed/man3/timeradd.3 index d64f5b4d..89002ec6 100644 --- a/upstream/opensuse-tumbleweed/man3/timeradd.3 +++ b/upstream/opensuse-tumbleweed/man3/timeradd.3 @@ -4,7 +4,7 @@ .\" .\" 2007-07-31, mtk, Created .\" -.TH timeradd 3 2023-03-30 "Linux man-pages 6.05.01" +.TH timeradd 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME timeradd, timersub, timercmp, timerclear, timerisset \- timeval operations .SH LIBRARY @@ -13,23 +13,23 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void timeradd(struct timeval *" a ", struct timeval *" b , .BI " struct timeval *" res ); .BI "void timersub(struct timeval *" a ", struct timeval *" b , .BI " struct timeval *" res ); -.PP +.P .BI "void timerclear(struct timeval *" tvp ); .BI "int timerisset(struct timeval *" tvp ); -.PP +.P .BI "int timercmp(struct timeval *" a ", struct timeval *" b ", " CMP ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P All functions shown above: .nf Since glibc 2.19: @@ -43,7 +43,7 @@ The macros are provided to operate on structures, defined in .I as: -.PP +.P .in +4n .EX struct timeval { @@ -52,7 +52,7 @@ struct timeval { }; .EE .in -.PP +.P .BR timeradd () adds the time values in .I a @@ -65,7 +65,7 @@ pointed to by The result is normalized such that .I res\->tv_usec has a value in the range 0 to 999,999. -.PP +.P .BR timersub () subtracts the time value in .I b @@ -78,21 +78,21 @@ pointed to by The result is normalized such that .I res\->tv_usec has a value in the range 0 to 999,999. -.PP +.P .BR timerclear () zeros out the .I timeval structure pointed to by .IR tvp , so that it represents the Epoch: 1970-01-01 00:00:00 +0000 (UTC). -.PP +.P .BR timerisset () returns true (nonzero) if either field of the .I timeval structure pointed to by .I tvp contains a nonzero value. -.PP +.P .BR timercmp () compares the timer values in .I a @@ -119,7 +119,7 @@ and .I == do not work; portable applications can instead use -.PP +.P .in +4n .EX !timercmp(..., <) diff --git a/upstream/opensuse-tumbleweed/man3/tmpfile.3 b/upstream/opensuse-tumbleweed/man3/tmpfile.3 index 41999f56..21d934b8 100644 --- a/upstream/opensuse-tumbleweed/man3/tmpfile.3 +++ b/upstream/opensuse-tumbleweed/man3/tmpfile.3 @@ -9,7 +9,7 @@ .\" 386BSD man pages .\" Modified Sat Jul 24 17:46:57 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified 2001-11-17, aeb -.TH tmpfile 3 2023-07-20 "Linux man-pages 6.05.01" +.TH tmpfile 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME tmpfile \- create a temporary file .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B FILE *tmpfile(void); .fi .SH DESCRIPTION @@ -74,7 +74,6 @@ T{ .BR tmpfile () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS The standard does not specify the directory that .BR tmpfile () diff --git a/upstream/opensuse-tumbleweed/man3/tmpnam.3 b/upstream/opensuse-tumbleweed/man3/tmpnam.3 index 5798faad..25161d61 100644 --- a/upstream/opensuse-tumbleweed/man3/tmpnam.3 +++ b/upstream/opensuse-tumbleweed/man3/tmpnam.3 @@ -5,7 +5,7 @@ .\" .\" 2003-11-15, aeb, added tmpnam_r .\" -.TH tmpnam 3 2023-07-20 "Linux man-pages 6.05.01" +.TH tmpnam 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME tmpnam, tmpnam_r \- create a name for a temporary file .SH LIBRARY @@ -14,16 +14,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] char *tmpnam(char *" s ); .BI "[[deprecated]] char *tmpnam_r(char *" s ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR tmpnam_r () .nf Since glibc 2.19: @@ -38,7 +38,7 @@ avoid using these functions; use or .BR tmpfile (3) instead. -.PP +.P The .BR tmpnam () function returns a pointer to a string that is a valid filename, @@ -60,7 +60,7 @@ pointed to by and the value .I s is returned in case of success. -.PP +.P The created pathname has a directory prefix .IR P_tmpdir . (Both @@ -72,7 +72,7 @@ are defined in just like the .B TMP_MAX mentioned below.) -.PP +.P The .BR tmpnam_r () function performs the same task as @@ -104,7 +104,6 @@ T{ .BR tmpnam_r () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR tmpnam () @@ -131,7 +130,7 @@ If it is called more than .B TMP_MAX times, the behavior is implementation defined. -.PP +.P Although these functions generate names that are difficult to guess, it is nevertheless possible that between the time that the pathname is returned and the time that the program opens it, @@ -147,7 +146,7 @@ Or better yet, use .BR mkstemp (3) or .BR tmpfile (3). -.PP +.P Portable applications that use threads cannot call .BR tmpnam () with a NULL argument if either diff --git a/upstream/opensuse-tumbleweed/man3/toascii.3 b/upstream/opensuse-tumbleweed/man3/toascii.3 index 4e64cb01..e2e574a2 100644 --- a/upstream/opensuse-tumbleweed/man3/toascii.3 +++ b/upstream/opensuse-tumbleweed/man3/toascii.3 @@ -5,7 +5,7 @@ .\" .\" Added BUGS section, aeb, 950919 .\" -.TH toascii 3 2023-07-20 "Linux man-pages 6.05.01" +.TH toascii 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME toascii \- convert character to ASCII .SH LIBRARY @@ -14,15 +14,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] int toascii(int " c ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR toascii (): .nf _XOPEN_SOURCE @@ -53,7 +53,6 @@ T{ .BR toascii () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/touch.3ncurses b/upstream/opensuse-tumbleweed/man3/touch.3ncurses index e57140a1..d6228994 100644 --- a/upstream/opensuse-tumbleweed/man3/touch.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/touch.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2015,2017 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_touch.3x,v 1.42 2023/11/25 14:08:05 tom Exp $ -.TH touch 3NCURSES 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: curs_touch.3x,v 1.47 2024/04/20 21:20:07 tom Exp $ +.TH touch 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .SH NAME \fB\%touchwin\fP, \fB\%touchline\fP, @@ -81,14 +81,14 @@ All routines return the integer \fBERR\fP upon failure and an integer value other than \fBERR\fP upon successful completion, unless otherwise noted in the preceding routine descriptions. .PP -X/Open does not define any error conditions. +X/Open Curses does not specify any error conditions. In this implementation .RS 3 .TP 5 \fBis_linetouched\fP returns an error if the window pointer is null, or -if the line number is outside the window. +if the line number is outside the window boundaries. .IP The constant \fBERR\fP is distinct from \fBTRUE\fP and \fBFALSE\fP, which are the normal return values of this function. @@ -103,7 +103,7 @@ The actual function returns \fBFALSE\fP when it detects an error. \fBwtouchln\fP returns an error if the window pointer is null, or -if the line number is outside the window. +if the line number is outside the window boundaries. .RE .SH NOTES All of these routines except \fB\%wtouchln\fP may be macros. @@ -116,7 +116,7 @@ SVr4 \fIcurses\fP does not check the window parameter \fIwin\fP to ensure that it is not \fBNULL\fP; otherwise this implementation behaves the same as SVr4. .PP -The XSI Curses standard, Issue 4 describes these functions, +X/Open Curses, Issue 4 describes these functions, but defines no error conditions. .SH SEE ALSO \fB\%ncurses\fP(3NCURSES), diff --git a/upstream/opensuse-tumbleweed/man3/toupper.3 b/upstream/opensuse-tumbleweed/man3/toupper.3 index 0eaa6935..c2ab04a1 100644 --- a/upstream/opensuse-tumbleweed/man3/toupper.3 +++ b/upstream/opensuse-tumbleweed/man3/toupper.3 @@ -6,7 +6,7 @@ .\" .\" Modified Sat Jul 24 17:45:39 1993 by Rik Faith (faith@cs.unc.edu) .\" Modified 2000-02-13 by Nicolás Lichtmaier -.TH toupper 3 2023-07-20 "Linux man-pages 6.05.01" +.TH toupper 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME toupper, tolower, toupper_l, tolower_l \- convert uppercase or lowercase .SH LIBRARY @@ -15,19 +15,19 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int toupper(int " "c" ); .BI "int tolower(int " "c" ); -.PP +.P .BI "int toupper_l(int " c ", locale_t " locale ); .BI "int tolower_l(int " c ", locale_t " locale ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR toupper_l (), .BR tolower_l (): .nf @@ -38,7 +38,7 @@ Feature Test Macro Requirements for glibc (see .fi .SH DESCRIPTION These functions convert lowercase letters to uppercase, and vice versa. -.PP +.P If .I c is a lowercase letter, @@ -52,7 +52,7 @@ The function performs the same task, but uses the locale referred to by the locale handle .IR locale . -.PP +.P If .I c is an uppercase letter, @@ -66,7 +66,7 @@ The function performs the same task, but uses the locale referred to by the locale handle .IR locale . -.PP +.P If .I c is neither an @@ -75,7 +75,7 @@ value nor .BR EOF , the behavior of these functions is undefined. -.PP +.P The behavior of .BR toupper_l () and @@ -108,7 +108,6 @@ T{ .BR tolower_l () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR toupper () @@ -145,7 +144,7 @@ is of type it must be cast to .IR "unsigned char" , as in the following example: -.PP +.P .in +4n .EX char c; @@ -153,7 +152,7 @@ char c; res = toupper((unsigned char) c); .EE .in -.PP +.P This is necessary because .I char may be the equivalent @@ -163,13 +162,13 @@ converting to .IR int , yielding a value that is outside the range of .IR "unsigned char" . -.PP +.P The details of what constitutes an uppercase or lowercase letter depend on the locale. For example, the default -.B """C""" +.B \[dq]C\[dq] locale does not know about umlauts, so no conversion is done for them. -.PP +.P In some non-English locales, there are lowercase letters with no corresponding uppercase equivalent; .\" FIXME One day the statement about "sharp s" needs to be reworked, diff --git a/upstream/opensuse-tumbleweed/man3/towctrans.3 b/upstream/opensuse-tumbleweed/man3/towctrans.3 index bf507fac..e18baa68 100644 --- a/upstream/opensuse-tumbleweed/man3/towctrans.3 +++ b/upstream/opensuse-tumbleweed/man3/towctrans.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH towctrans 3 2023-07-20 "Linux man-pages 6.05.01" +.TH towctrans 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME towctrans \- wide-character transliteration .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wint_t towctrans(wint_t " wc ", wctrans_t " desc ); .fi .SH DESCRIPTION @@ -35,7 +35,7 @@ is .BR WEOF , .B WEOF is returned. -.PP +.P .I desc must be a transliteration descriptor returned by the @@ -65,7 +65,6 @@ T{ .BR towctrans () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/towlower.3 b/upstream/opensuse-tumbleweed/man3/towlower.3 index 97483031..a136a592 100644 --- a/upstream/opensuse-tumbleweed/man3/towlower.3 +++ b/upstream/opensuse-tumbleweed/man3/towlower.3 @@ -10,7 +10,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH towlower 3 2023-07-20 "Linux man-pages 6.05.01" +.TH towlower 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME towlower, towlower_l \- convert a wide character to lowercase .SH LIBRARY @@ -19,16 +19,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wint_t towlower(wint_t " wc ); .BI "wint_t towlower_l(wint_t " wc ", locale_t " locale ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR towlower_l (): .nf Since glibc 2.10: @@ -51,7 +51,7 @@ it returns the lowercase equivalent of In all other cases, .I wc is returned unchanged. -.PP +.P The .BR towlower_l () function performs the same task, @@ -67,7 +67,7 @@ is the special locale object (see .BR duplocale (3)) or is not a valid locale object handle. -.PP +.P The argument .I wc must be representable as a @@ -101,7 +101,6 @@ T{ .BR towlower_l () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR towlower () @@ -122,7 +121,7 @@ POSIX.1-2008. The behavior of these functions depends on the .B LC_CTYPE category of the locale. -.PP +.P These functions are not very appropriate for dealing with Unicode characters, because Unicode knows about three cases: upper, lower, and title case. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/towupper.3 b/upstream/opensuse-tumbleweed/man3/towupper.3 index 0a9c1ddc..5d4fbf42 100644 --- a/upstream/opensuse-tumbleweed/man3/towupper.3 +++ b/upstream/opensuse-tumbleweed/man3/towupper.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH towupper 3 2023-07-20 "Linux man-pages 6.05.01" +.TH towupper 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME towupper, towupper_l \- convert a wide character to uppercase .SH LIBRARY @@ -18,16 +18,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wint_t towupper(wint_t " wc ); .BI "wint_t towupper_l(wint_t " wc ", locale_t " locale ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR towupper_l (): .nf Since glibc 2.10: @@ -50,7 +50,7 @@ it returns the uppercase equivalent of In all other cases, .I wc is returned unchanged. -.PP +.P The .BR towupper_l () function performs the same task, @@ -66,7 +66,7 @@ is the special locale object (see .BR duplocale (3)) or is not a valid locale object handle. -.PP +.P The argument .I wc must be representable as a @@ -100,7 +100,6 @@ T{ .BR towupper_l () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR towupper () @@ -121,7 +120,7 @@ glibc 2.3. The behavior of these functions depends on the .B LC_CTYPE category of the locale. -.PP +.P These functions are not very appropriate for dealing with Unicode characters, because Unicode knows about three cases: upper, lower, and title case. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/trace.3ncurses b/upstream/opensuse-tumbleweed/man3/trace.3ncurses index 1e64dc3c..0dcab081 100644 --- a/upstream/opensuse-tumbleweed/man3/trace.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/trace.3ncurses @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_trace.3x,v 1.44 2024/02/24 20:01:11 tom Exp $ -.TH trace 3NCURSES 2024-02-24 "ncurses 6.4" "Library calls" +.\" $Id: curs_trace.3x,v 1.50 2024/04/20 21:24:19 tom Exp $ +.TH trace 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -44,6 +44,17 @@ .ie n .IP \(bu 4 .el .IP \(bu 2 .. +. +.de dS \" Start unfilled display. +.nr aD \n(.j +.na +.. +. +.de dE \" End unfilled display. +.ad \n(.j +.rr aD +.. +. .SH NAME \fB\%curses_trace\fP, \fB\%trace\fP, @@ -63,7 +74,7 @@ .nf \fB#include .PP -\fBunsigned curses_trace(const unsigned \fIparam\fP); +\fBunsigned curses_trace(const unsigned \fItrace-mask\fP); .PP \fBvoid _tracef(const char *\fIformat\fP, ...); .PP @@ -71,7 +82,7 @@ \fBchar *_traceattr2(int \fIbuffer\fP, chtype \fIch\fP); \fBchar *_tracecchar_t(const cchar_t *\fIstring\fP); \fBchar *_tracecchar_t2(int \fIbuffer\fP, const cchar_t *\fIstring\fP); -\fBchar *_tracechar(int \fIch\fP); +\fBchar *_tracechar(int \fIc\fP); \fBchar *_tracechtype(chtype \fIch\fP); \fBchar *_tracechtype2(int \fIbuffer\fP, chtype \fIch\fP); .PP @@ -80,7 +91,7 @@ \fBchar *_tracemouse(const MEVENT *\fIevent\fP); .PP \fI/* deprecated */\fP -\fBvoid trace(const unsigned int \fIparam\fP); +\fBvoid trace(const unsigned int \fItrace-mask\fP); .fi .SH DESCRIPTION The \fIcurses trace\fP routines are used for debugging the @@ -192,27 +203,6 @@ Some tracing features are enabled whenever the \fBcurses_trace\fP parameter is nonzero. Some features overlap. The specific names are used as a guideline. -.SS Initialization -These functions check the \fI\%NCURSES_TRACE\fP environment variable, -to set the tracing feature as if \fBcurses_trace\fP was called: -.RS 4 -.na -.PP -\fB\%filter\fP, -\fB\%initscr\fP, -\fB\%new_prescr\fP, -\fB\%newterm\fP, -\fB\%nofilter\fP, -\fB\%restartterm\fP, -\fB\%ripoffline\fP, -\fB\%setupterm\fP, -\fB\%slk_init\fP, -\fB\%tgetent\fP, -\fB\%use_env\fP, -\fB\%use_extended_names\fP, -\fB\%use_tioctl\fP -.RE -.ad .SS "Command-line Utilities" The command-line utilities such as \fBtic\fP(1) provide a verbose option which extends the set of messages written using the \fBcurses_trace\fP function. @@ -235,8 +225,32 @@ and fewer diagnostics are provided by the command-line utilities. .SH RETURN VALUE Routines which return a value are designed to be used as parameters to the \fB_tracef\fP routine. +.SH ENVIRONMENT +.SS NCURSES_TRACE +A positive integral value stored in this variable causes the following +functions to enable the tracing feature as if +.B \%curses_trace +were called. +.PP +.dS +.RS 4 +\fB\%filter\fP, +\fB\%initscr\fP, +\fB\%new_prescr\fP, +\fB\%newterm\fP, +\fB\%nofilter\fP, +\fB\%restartterm\fP, +\fB\%ripoffline\fP, +\fB\%setupterm\fP, +\fB\%slk_init\fP, +\fB\%tgetent\fP, +\fB\%use_env\fP, +\fB\%use_extended_names\fP, +\fB\%use_tioctl\fP +.RE +.dE .SH PORTABILITY -These functions are not part of the XSI interface. +These functions are not part of the X/Open Curses interface. Some other curses implementations are known to have similar features, but they are not compatible with \fI\%ncurses\fP: diff --git a/upstream/opensuse-tumbleweed/man3/trunc.3 b/upstream/opensuse-tumbleweed/man3/trunc.3 index 4670f031..17e5f14f 100644 --- a/upstream/opensuse-tumbleweed/man3/trunc.3 +++ b/upstream/opensuse-tumbleweed/man3/trunc.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH trunc 3 2023-07-20 "Linux man-pages 6.05.01" +.TH trunc 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME trunc, truncf, truncl \- round to integer, toward zero .SH LIBRARY @@ -12,17 +12,17 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double trunc(double " x ); .BI "float truncf(float " x ); .BI "long double truncl(long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR trunc (), .BR truncf (), .BR truncl (): @@ -36,7 +36,7 @@ to the nearest integer value that is not larger in magnitude than .IR x . .SH RETURN VALUE These functions return the rounded integer value, in floating format. -.PP +.P If .I x is integral, infinite, or NaN, @@ -60,7 +60,6 @@ T{ .BR truncl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/tsearch.3 b/upstream/opensuse-tumbleweed/man3/tsearch.3 index ff203027..c4aaf180 100644 --- a/upstream/opensuse-tumbleweed/man3/tsearch.3 +++ b/upstream/opensuse-tumbleweed/man3/tsearch.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH tsearch 3 2023-07-20 "Linux man-pages 6.05.01" +.TH tsearch 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME tsearch, tfind, tdelete, twalk, twalk_r, tdestroy \- manage a binary search tree .SH LIBRARY @@ -12,9 +12,9 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B typedef enum { preorder, postorder, endorder, leaf } VISIT; -.PP +.P .BI "void *tsearch(const void *" key ", void **" rootp , .BI " int (*" compar ")(const void *, const void *));" .BI "void *tfind(const void *" key ", void *const *" rootp , @@ -24,10 +24,10 @@ Standard C library .BI "void twalk(const void *" root , .BI " void (*" action ")(const void *" nodep ", VISIT " which , .BI " int " depth )); -.PP +.P .BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "void twalk_r(const void *" root , .BI " void (*" action ")(const void *" nodep ", VISIT " which , .BI " void *" closure ), @@ -52,7 +52,7 @@ pointers to two items. It should return an integer which is negative, zero, or positive, depending on whether the first item is less than, equal to, or greater than the second. -.PP +.P .BR tsearch () searches the tree for an item. .I key @@ -74,7 +74,7 @@ If the item is not found, then .BR tsearch () adds it, and returns a pointer to the corresponding tree node. -.PP +.P .BR tfind () is like .BR tsearch (), @@ -82,12 +82,12 @@ except that if the item is not found, then .BR tfind () returns NULL. -.PP +.P .BR tdelete () deletes an item from the tree. Its arguments are the same as for .BR tsearch (). -.PP +.P .BR twalk () performs depth-first, left-to-right traversal of a binary tree. @@ -122,7 +122,7 @@ if this is the single visit to a leaf node. .IR .) The third argument is the depth of the node; the root node has depth zero. -.PP +.P (More commonly, .BR preorder , .BR postorder , @@ -138,7 +138,7 @@ and after visiting the children. Thus, the choice of name .B post\%order is rather confusing.) -.PP +.P .BR twalk_r () is similar to .BR twalk (), @@ -151,7 +151,7 @@ unchanged. This pointer can be used to pass information to and from the callback function in a thread-safe fashion, without resorting to global variables. -.PP +.P .BR tdestroy () removes the whole tree pointed to by .IR root , @@ -176,14 +176,14 @@ returns a pointer to the node, or NULL if no match is found. If there are multiple items that match the key, the item whose node is returned is unspecified. -.PP +.P .BR tdelete () returns a pointer to the parent of the node deleted, or NULL if the item was not found. If the deleted node was the root node, .BR tdelete () returns a dangling pointer that must not be accessed. -.PP +.P .BR tsearch (), .BR tfind (), and @@ -223,7 +223,6 @@ T{ .BR tdestroy () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR tsearch () @@ -256,12 +255,12 @@ glibc 2.30. .BR twalk () takes a pointer to the root, while the other functions take a pointer to a variable which points to the root. -.PP +.P .BR tdelete () frees the memory required for the node in the tree. The user is responsible for freeing the memory for the corresponding data. -.PP +.P The example program depends on the fact that .BR twalk () makes no @@ -273,7 +272,7 @@ implementation, but is not in the System V documentation. The following program inserts twelve random numbers into a binary tree, where duplicate numbers are collapsed, then prints the numbers in order. -.PP +.P .\" SRC BEGIN (tsearch.c) .EX #define _GNU_SOURCE /* Expose declaration of tdestroy() */ diff --git a/upstream/opensuse-tumbleweed/man3/ttyname.3 b/upstream/opensuse-tumbleweed/man3/ttyname.3 index cfdbb22a..92ee3be2 100644 --- a/upstream/opensuse-tumbleweed/man3/ttyname.3 +++ b/upstream/opensuse-tumbleweed/man3/ttyname.3 @@ -6,7 +6,7 @@ .\" Modified 2001-12-13, Martin Schulze .\" Added ttyname_r, aeb, 2002-07-20 .\" -.TH ttyname 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ttyname 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ttyname, ttyname_r \- return name of a terminal .SH LIBRARY @@ -15,7 +15,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "char *ttyname(int " fd ); .BI "int ttyname_r(int " fd ", char " buf [. buflen "], size_t " buflen ); .fi @@ -81,7 +81,6 @@ T{ .BR ttyname_r () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/ttyslot.3 b/upstream/opensuse-tumbleweed/man3/ttyslot.3 index d50af49d..0548ea48 100644 --- a/upstream/opensuse-tumbleweed/man3/ttyslot.3 +++ b/upstream/opensuse-tumbleweed/man3/ttyslot.3 @@ -6,7 +6,7 @@ .\" This replaces an earlier man page written by Walter Harms .\" . .\" -.TH ttyslot 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ttyslot 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ttyslot \- find the slot of the current user's terminal in some file .SH LIBRARY @@ -15,15 +15,15 @@ Standard C library .SH SYNOPSIS .nf .BR "#include " " /* See NOTES */" -.PP +.P .B "int ttyslot(void);" .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR ttyslot (): .nf Since glibc 2.24: @@ -37,7 +37,7 @@ Feature Test Macro Requirements for glibc (see The legacy function .BR ttyslot () returns the index of the current user's entry in some file. -.PP +.P Now "What file?" you ask. Well, let's first look at some history. .SS Ancient history @@ -57,7 +57,7 @@ indicating the sequence of line speeds to try (\[aq]\-\[aq] was: start trying Thus a typical line was "18\-". A hang on some line was solved by changing the \[aq]1\[aq] to a \[aq]0\[aq], signaling init, changing back again, and signaling init again. -.PP +.P In UNIX\ V7 the format was changed: here the second character was the argument to .BR getty (8) @@ -65,7 +65,7 @@ indicating the sequence of line speeds to try (\[aq]0\[aq] was: cycle through 300-1200-150-110 baud; \[aq]4\[aq] was for the on-line console DECwriter) while the rest of the line contained the name of the tty. Thus a typical line was "14console". -.PP +.P Later systems have more elaborate syntax. System V-like systems have .I /etc/inittab @@ -119,7 +119,6 @@ T{ .BR ttyslot () T} Thread safety MT-Unsafe .TE -.sp 1 .SH VERSIONS The utmp file is found in various places on various systems, such as .IR /etc/utmp , @@ -130,7 +129,7 @@ None. .SH HISTORY SUSv1; marked as LEGACY in SUSv2; removed in POSIX.1-2001. SUSv2 requires \-1 on error. -.PP +.P The glibc2 implementation of this function reads the file .BR _PATH_TTYS , defined in @@ -139,7 +138,7 @@ as "/etc/ttys". It returns 0 on error. Since Linux systems do not usually have "/etc/ttys", it will always return 0. -.PP +.P On BSD-like systems and Linux, the declaration of .BR ttyslot () is provided by @@ -150,7 +149,7 @@ Since glibc 2.24, .I also provides the declaration with the following feature test macro definitions: -.PP +.P .in +4n .EX (_XOPEN_SOURCE >= 500 || @@ -158,7 +157,7 @@ feature test macro definitions: && ! (_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) .EE .in -.PP +.P Minix also has .IR fttyslot ( fd ). .\" .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/tzset.3 b/upstream/opensuse-tumbleweed/man3/tzset.3 index 4027bb35..bb7ad9f4 100644 --- a/upstream/opensuse-tumbleweed/man3/tzset.3 +++ b/upstream/opensuse-tumbleweed/man3/tzset.3 @@ -11,7 +11,7 @@ .\" Modified 2001-11-13, aeb .\" Modified 2004-12-01 mtk and Martin Schulze .\" -.TH tzset 3 2023-07-20 "Linux man-pages 6.05.01" +.TH tzset 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME tzset, tzname, timezone, daylight \- initialize time conversion information .SH LIBRARY @@ -20,29 +20,29 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .B void tzset(void); -.PP +.P .BI "extern char *" tzname [2]; .BI "extern long " timezone ; .BI "extern int " daylight ; .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR tzset (): .nf _POSIX_C_SOURCE .fi -.PP +.P .IR tzname : .nf _POSIX_C_SOURCE .fi -.PP +.P .IR timezone , .IR daylight : .nf @@ -62,7 +62,7 @@ In a System-V-like environment, it will also set the variables \fItimezone\fP (seconds West of UTC) and \fIdaylight\fP (to 0 if this timezone does not have any daylight saving time rules, or to nonzero if there is a time, past, present, or future when daylight saving time applies). -.PP +.P If the .B TZ variable does not appear in the environment, the system timezone is used. @@ -72,25 +72,25 @@ format to .IR /etc/localtime . A timezone database of these files may be located in the system timezone directory (see the \fBFILES\fP section below). -.PP +.P If the .B TZ variable does appear in the environment, but its value is empty, or its value cannot be interpreted using any of the formats specified below, then Coordinated Universal Time (UTC) is used. -.PP +.P The value of .B TZ can be one of two formats. The first format is a string of characters that directly represent the timezone to be used: -.PP +.P .in +4n .EX .IR "std offset" [ dst [ offset ][, start [ /time ], end [ /time ]]] .EE .in -.PP +.P There are no spaces in the specification. The \fIstd\fP string specifies an abbreviation for the timezone and must be three or more alphabetic characters. @@ -104,18 +104,18 @@ The \fIoffset\fP is positive if the local timezone is west of the Prime Meridian and negative if it is east. The hour must be between 0 and 24, and the minutes and seconds 00 and 59: -.PP +.P .in +4n .EX .RI [ + | \- ] hh [ :mm [ :ss ]] .EE .in -.PP +.P The \fIdst\fP string and \fIoffset\fP specify the name and offset for the corresponding daylight saving timezone. If the offset is omitted, it defaults to one hour ahead of standard time. -.PP +.P The \fIstart\fP field specifies when daylight saving time goes into effect and the \fIend\fP field specifies when the change is made back to standard time. @@ -138,32 +138,32 @@ Week 1 is the first week in which day \fId\fP occurs and week 5 is the last week in which day \fId\fP occurs. Day 0 is a Sunday. -.PP +.P The \fItime\fP fields specify when, in the local time currently in effect, the change to the other time occurs. If omitted, the default is 02:00:00. -.PP +.P Here is an example for New Zealand, where the standard time (NZST) is 12 hours ahead of UTC, and daylight saving time (NZDT), 13 hours ahead of UTC, runs from the first Sunday in October to the third Sunday in March, and the changeovers happen at the default time of 02:00:00: -.PP +.P .in +4n .EX TZ="NZST\-12:00:00NZDT\-13:00:00,M10.1.0,M3.3.0" .EE .in -.PP +.P The second format specifies that the timezone information should be read from a file: -.PP +.P .in +4n .EX :[filespec] .EE .in -.PP +.P If the file specification \fIfilespec\fP is omitted, or its value cannot be interpreted, then Coordinated Universal Time (UTC) is used. If \fIfilespec\fP is given, it specifies another @@ -173,9 +173,9 @@ If \fIfilespec\fP does not begin with a \[aq]/\[aq], the file specification is relative to the system timezone directory. If the colon is omitted each of the above \fBTZ\fP formats will be tried. -.PP +.P Here's an example, once more for New Zealand: -.PP +.P .in +4n .EX TZ=":Pacific/Auckland" @@ -206,7 +206,7 @@ It is in the format. By default, the zoneinfo Makefile hard links it to the .IR America/New_York " tzfile." -.PP +.P Above are the current standard file locations, but they are configurable when glibc is compiled. .SH ATTRIBUTES @@ -223,12 +223,11 @@ T{ .BR tzset () T} Thread safety MT-Safe env locale .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY POSIX.1-2001, SVr4, 4.3BSD. -.PP +.P 4.3BSD had a function .BI "char *timezone(" zone ", " dst ) that returned the diff --git a/upstream/opensuse-tumbleweed/man3/ualarm.3 b/upstream/opensuse-tumbleweed/man3/ualarm.3 index 55ca2d71..66359dda 100644 --- a/upstream/opensuse-tumbleweed/man3/ualarm.3 +++ b/upstream/opensuse-tumbleweed/man3/ualarm.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH ualarm 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ualarm 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ualarm \- schedule signal after given number of microseconds .SH LIBRARY @@ -12,15 +12,15 @@ Standard C library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "useconds_t ualarm(useconds_t " usecs ", useconds_t " interval ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR ualarm (): .nf Since glibc 2.12: @@ -42,11 +42,11 @@ microseconds. The delay may be lengthened slightly by any system activity or by the time spent processing the call or by the granularity of system timers. -.PP +.P Unless caught or ignored, the .B SIGALRM signal will terminate the process. -.PP +.P If the .I interval argument is nonzero, further @@ -80,23 +80,22 @@ T{ .BR ualarm () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY 4.3BSD, POSIX.1-2001. POSIX.1-2001 marks it as obsolete. Removed in POSIX.1-2008. -.PP +.P 4.3BSD, SUSv2, and POSIX do not define any errors. -.PP +.P POSIX.1-2001 does not specify what happens if the .I usecs argument is 0. .\" This case is not documented in HP-US, Solar, FreeBSD, NetBSD, or OpenBSD! On Linux (and probably most other systems), the effect is to cancel any pending alarm. -.PP +.P The type .I useconds_t is an unsigned integer type capable of holding integers @@ -109,7 +108,7 @@ were instead typed as Programs will be more portable if they never mention .I useconds_t explicitly. -.PP +.P The interaction of this function with other timer functions such as .BR alarm (2), @@ -123,7 +122,7 @@ other timer functions such as .BR timer_settime (2), .BR usleep (3) is unspecified. -.PP +.P This function is obsolete. Use .BR setitimer (2) diff --git a/upstream/opensuse-tumbleweed/man3/udev_device_get_syspath.3 b/upstream/opensuse-tumbleweed/man3/udev_device_get_syspath.3 deleted file mode 100644 index 3e610f8f..00000000 --- a/upstream/opensuse-tumbleweed/man3/udev_device_get_syspath.3 +++ /dev/null @@ -1,106 +0,0 @@ -'\" t -.TH "UDEV_DEVICE_GET_SYSPATH" "3" "" "systemd 254" "udev_device_get_syspath" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -udev_device_get_syspath, udev_device_get_sysname, udev_device_get_sysnum, udev_device_get_devpath, udev_device_get_devnode, udev_device_get_devnum, udev_device_get_devtype, udev_device_get_subsystem, udev_device_get_driver, udev_device_get_udev, udev_device_get_parent, udev_device_get_parent_with_subsystem_devtype, udev_device_get_is_initialized, udev_device_get_action \- Query device properties -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'const\ char\ *udev_device_get_syspath('u -.BI "const char *udev_device_get_syspath(struct\ udev_device\ *" "udev_device" ");" -.HP \w'const\ char\ *udev_device_get_sysname('u -.BI "const char *udev_device_get_sysname(struct\ udev_device\ *" "udev_device" ");" -.HP \w'const\ char\ *udev_device_get_sysnum('u -.BI "const char *udev_device_get_sysnum(struct\ udev_device\ *" "udev_device" ");" -.HP \w'const\ char\ *udev_device_get_devpath('u -.BI "const char *udev_device_get_devpath(struct\ udev_device\ *" "udev_device" ");" -.HP \w'const\ char\ *udev_device_get_devnode('u -.BI "const char *udev_device_get_devnode(struct\ udev_device\ *" "udev_device" ");" -.HP \w'dev_t\ udev_device_get_devnum('u -.BI "dev_t udev_device_get_devnum(struct\ udev_device\ *" "udev_device" ");" -.HP \w'const\ char\ *udev_device_get_devtype('u -.BI "const char *udev_device_get_devtype(struct\ udev_device\ *" "udev_device" ");" -.HP \w'const\ char\ *udev_device_get_subsystem('u -.BI "const char *udev_device_get_subsystem(struct\ udev_device\ *" "udev_device" ");" -.HP \w'const\ char\ *udev_device_get_driver('u -.BI "const char *udev_device_get_driver(struct\ udev_device\ *" "udev_device" ");" -.HP \w'struct\ udev\ *udev_device_get_udev('u -.BI "struct udev *udev_device_get_udev(struct\ udev_device\ *" "udev_device" ");" -.HP \w'struct\ udev_device\ *udev_device_get_parent('u -.BI "struct udev_device *udev_device_get_parent(struct\ udev_device\ *" "udev_device" ");" -.HP \w'struct\ udev_device\ *udev_device_get_parent_with_subsystem_devtype('u -.BI "struct udev_device *udev_device_get_parent_with_subsystem_devtype(struct\ udev_device\ *" "udev_device" ", const\ char\ *" "subsystem" ", const\ char\ *" "devtype" ");" -.HP \w'int\ udev_device_get_is_initialized('u -.BI "int udev_device_get_is_initialized(struct\ udev_device\ *" "udev_device" ");" -.HP \w'const\ char\ *udev_device_get_action('u -.BI "const char *udev_device_get_action(struct\ udev_device\ *" "udev_device" ");" -.SH "RETURN VALUE" -.PP -On success, -\fBudev_device_get_syspath()\fR, -\fBudev_device_get_sysname()\fR, -\fBudev_device_get_sysnum()\fR, -\fBudev_device_get_devpath()\fR, -\fBudev_device_get_devnode()\fR, -\fBudev_device_get_devtype()\fR, -\fBudev_device_get_subsystem()\fR, -\fBudev_device_get_driver()\fR -and -\fBudev_device_get_action()\fR -return a pointer to a constant string that describes the requested property\&. The lifetime of this string is bound to the device it was requested on\&. On failure, each function may return -\fBNULL\fR\&. -.PP -On success, -\fBudev_device_get_devnum()\fR -returns the device type of the passed device\&. On failure, a device type with minor and major number set to -\fB0\fR -is returned\&. -.PP -\fBudev_device_get_udev()\fR -always returns a valid pointer to the udev context that this device belongs to\&. -.PP -On success, -\fBudev_device_get_parent()\fR -and -\fBudev_device_get_parent_with_subsystem_devtype()\fR -return a pointer to the parent device\&. No additional reference to this device is acquired, but the child device owns a reference to such a parent device\&. On failure, -\fBNULL\fR -is returned\&. -.PP -On success, -\fBudev_device_get_is_initialized()\fR -returns either -\fB1\fR -or -\fB0\fR, depending on whether the passed device has already been initialized by udev or not\&. On failure, a negative error code is returned\&. Note that devices for which no udev rules are defined are never reported initialized\&. -.SH "SEE ALSO" -.PP -\fBudev_new\fR(3), -\fBudev_device_new_from_syspath\fR(3), -\fBudev_device_has_tag\fR(3), -\fBudev_enumerate_new\fR(3), -\fBudev_monitor_new_from_netlink\fR(3), -\fBudev_list_entry\fR(3), -\fBsystemd\fR(1) diff --git a/upstream/opensuse-tumbleweed/man3/udev_device_has_tag.3 b/upstream/opensuse-tumbleweed/man3/udev_device_has_tag.3 deleted file mode 100644 index e061d266..00000000 --- a/upstream/opensuse-tumbleweed/man3/udev_device_has_tag.3 +++ /dev/null @@ -1,117 +0,0 @@ -'\" t -.TH "UDEV_DEVICE_HAS_TAG" "3" "" "systemd 254" "udev_device_has_tag" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -udev_device_has_tag, udev_device_has_current_tag, udev_device_get_devlinks_list_entry, udev_device_get_properties_list_entry, udev_device_get_tags_list_entry, udev_device_get_current_tags_list_entry, udev_device_get_sysattr_list_entry, udev_device_get_property_value, udev_device_get_sysattr_value, udev_device_set_sysattr_value \- Retrieve or set device attributes -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ udev_device_has_tag('u -.BI "int udev_device_has_tag(struct\ udev_device\ *" "udev_device" ", const\ char\ *" "tag" ");" -.HP \w'int\ udev_device_has_current_tag('u -.BI "int udev_device_has_current_tag(struct\ udev_device\ *" "udev_device" ", const\ char\ *" "tag" ");" -.HP \w'struct\ udev_list_entry\ *udev_device_get_devlinks_list_entry('u -.BI "struct udev_list_entry *udev_device_get_devlinks_list_entry(struct\ udev_device\ *" "udev_device" ");" -.HP \w'struct\ udev_list_entry\ *udev_device_get_properties_list_entry('u -.BI "struct udev_list_entry *udev_device_get_properties_list_entry(struct\ udev_device\ *" "udev_device" ");" -.HP \w'struct\ udev_list_entry\ *udev_device_get_tags_list_entry('u -.BI "struct udev_list_entry *udev_device_get_tags_list_entry(struct\ udev_device\ *" "udev_device" ");" -.HP \w'struct\ udev_list_entry\ *udev_device_get_current_tags_list_entry('u -.BI "struct udev_list_entry *udev_device_get_current_tags_list_entry(struct\ udev_device\ *" "udev_device" ");" -.HP \w'struct\ udev_list_entry\ *udev_device_get_sysattr_list_entry('u -.BI "struct udev_list_entry *udev_device_get_sysattr_list_entry(struct\ udev_device\ *" "udev_device" ");" -.HP \w'const\ char\ *udev_device_get_property_value('u -.BI "const char *udev_device_get_property_value(struct\ udev_device\ *" "udev_device" ", const\ char\ *" "key" ");" -.HP \w'const\ char\ *udev_device_get_sysattr_value('u -.BI "const char *udev_device_get_sysattr_value(struct\ udev_device\ *" "udev_device" ", const\ char\ *" "sysattr" ");" -.HP \w'int\ udev_device_set_sysattr_value('u -.BI "int udev_device_set_sysattr_value(struct\ udev_device\ *" "udev_device" ", const\ char\ *" "sysattr" ", const\ char\ *" "value" ");" -.SH "DESCRIPTION" -.PP -\fBudev_device_has_tag()\fR -returns a valuer larger than zero if the specified device object has the indicated tag assigned to it, and zero otherwise\&. See -\fBudev\fR(7) -for details on the tags concept\&. -\fBudev_device_has_current_tag()\fR -executes a similar check, however only determines whether the indicated tag was set as result of the most recent event seen for the device\&. Tags are "sticky", i\&.e\&. once set for a device they remain on the device until the device is unplugged, even if the rules run for later events of the same device do not set them anymore\&. Any tag for which -\fBudev_device_has_current_tag()\fR -returns true will hence also return true when passed to -\fBudev_device_has_tag()\fR, but the opposite might not be true, in case a tag is no longer configured by the rules applied to the most recent device even\&. -.PP -\fBudev_device_get_tags_list_entry()\fR -returns a -udev_list_entry -object, encapsulating a list of tags set for the specified device\&. Similar, -\fBudev_device_get_current_tags_list_entry()\fR -returns a list of tags set for the specified device as effect of the most recent device event seen (see above for details on the difference)\&. -.SH "RETURN VALUE" -.PP -On success, -\fBudev_device_has_tag()\fR -and -\fBudev_device_has_current_tag()\fR -return positive or -\fB0\fR, depending on whether the device has the given tag or not\&. On failure, a negative error code is returned\&. -.PP -On success, -\fBudev_device_get_devlinks_list_entry()\fR, -\fBudev_device_get_properties_list_entry()\fR, -\fBudev_device_get_tags_list_entry()\fR, -\fBudev_device_get_current_tags_list_entry()\fR -and -\fBudev_device_get_sysattr_list_entry()\fR -return a pointer to the first entry of the retrieved list\&. If that list is empty, or if an error occurred, -\fBNULL\fR -is returned\&. -.PP -On success, -\fBudev_device_get_property_value()\fR -and -\fBudev_device_get_sysattr_value()\fR -return a pointer to a constant string of the requested value\&. On error, -\fBNULL\fR -is returned\&. Attributes that may contain -\fBNUL\fR -bytes should not be retrieved with -\fBudev_device_get_sysattr_value()\fR; instead, read them directly from the files within the device\*(Aqs -syspath\&. -.PP -On success, -\fBudev_device_set_sysattr_value()\fR -returns an integer greater than, or equal to, -\fB0\fR\&. On failure, a negative error code is returned\&. Values that contain -\fBNUL\fR -bytes should not be set with this function; instead, write them directly to the files within the device\*(Aqs -syspath\&. -.SH "SEE ALSO" -.PP -\fBudev\fR(7), -\fBudev_new\fR(3), -\fBudev_device_new_from_syspath\fR(3), -\fBudev_device_get_syspath\fR(3), -\fBudev_enumerate_new\fR(3), -\fBudev_monitor_new_from_netlink\fR(3), -\fBudev_list_entry\fR(3), -\fBsystemd\fR(1), diff --git a/upstream/opensuse-tumbleweed/man3/udev_device_new_from_syspath.3 b/upstream/opensuse-tumbleweed/man3/udev_device_new_from_syspath.3 deleted file mode 100644 index 495b0ea7..00000000 --- a/upstream/opensuse-tumbleweed/man3/udev_device_new_from_syspath.3 +++ /dev/null @@ -1,160 +0,0 @@ -'\" t -.TH "UDEV_DEVICE_NEW_FROM_SYSPATH" "3" "" "systemd 254" "udev_device_new_from_syspath" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -udev_device_new_from_syspath, udev_device_new_from_devnum, udev_device_new_from_subsystem_sysname, udev_device_new_from_device_id, udev_device_new_from_environment, udev_device_ref, udev_device_unref \- Create, acquire and release a udev device object -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'struct\ udev_device\ *udev_device_new_from_syspath('u -.BI "struct udev_device *udev_device_new_from_syspath(struct\ udev\ *" "udev" ", const\ char\ *" "syspath" ");" -.HP \w'struct\ udev_device\ *udev_device_new_from_devnum('u -.BI "struct udev_device *udev_device_new_from_devnum(struct\ udev\ *" "udev" ", char\ " "type" ", dev_t\ " "devnum" ");" -.HP \w'struct\ udev_device\ *udev_device_new_from_subsystem_sysname('u -.BI "struct udev_device *udev_device_new_from_subsystem_sysname(struct\ udev\ *" "udev" ", const\ char\ *" "subsystem" ", const\ char\ *" "sysname" ");" -.HP \w'struct\ udev_device\ *udev_device_new_from_device_id('u -.BI "struct udev_device *udev_device_new_from_device_id(struct\ udev\ *" "udev" ", const\ char\ *" "id" ");" -.HP \w'struct\ udev_device\ *udev_device_new_from_environment('u -.BI "struct udev_device *udev_device_new_from_environment(struct\ udev\ *" "udev" ");" -.HP \w'struct\ udev_device\ *udev_device_ref('u -.BI "struct udev_device *udev_device_ref(struct\ udev_device\ *" "udev_device" ");" -.HP \w'struct\ udev_device\ *udev_device_unref('u -.BI "struct udev_device *udev_device_unref(struct\ udev_device\ *" "udev_device" ");" -.SH "DESCRIPTION" -.PP -\fBudev_device_new_from_syspath()\fR, -\fBudev_device_new_from_devnum()\fR, -\fBudev_device_new_from_subsystem_sysname()\fR, -\fBudev_device_new_from_device_id()\fR, and -\fBudev_device_new_from_environment()\fR -allocate a new udev device object and returns a pointer to it\&. This object is opaque and must not be accessed by the caller via different means than functions provided by libudev\&. Initially, the reference count of the device is 1\&. You can acquire further references, and drop gained references via -\fBudev_device_ref()\fR -and -\fBudev_device_unref()\fR\&. Once the reference count hits 0, the device object is destroyed and freed\&. -.PP -\fBudev_device_new_from_syspath()\fR, -\fBudev_device_new_from_devnum()\fR, -\fBudev_device_new_from_subsystem_sysname()\fR, and -\fBudev_device_new_from_device_id()\fR -create the device object based on information found in -/sys/, annotated with properties from the udev\-internal device database\&. A syspath is any subdirectory of -/sys/, with the restriction that a subdirectory of -/sys/devices -(or a symlink to one) represents a real device and as such must contain a -uevent -file\&. -\fBudev_device_new_from_devnum()\fR -takes a device type, which can be -\fBb\fR -for block devices or -\fBc\fR -for character devices, as well as a devnum (see -\fBmakedev\fR(3))\&. -\fBudev_device_new_from_subsystem_sysname()\fR -looks up devices based on the provided subsystem and sysname (see -\fBudev_device_get_subsystem\fR(3) -and -\fBudev_device_get_sysname\fR(3)) and -\fBudev_device_new_from_device_id()\fR -looks up devices based on the provided device ID, which is a special string in one of the following four forms: -.sp -.it 1 an-trap -.nr an-no-space-flag 1 -.nr an-break-flag 1 -.br -.B Table\ \&1.\ \&Device ID strings -.TS -allbox tab(:); -lB lB. -T{ -Example -T}:T{ -Explanation -T} -.T& -l l -l l -l l -l l. -T{ -\fIb8:2\fR -T}:T{ -block device major:minor -T} -T{ -\fIc128:1\fR -T}:T{ -char device major:minor -T} -T{ -\fIn3\fR -T}:T{ -network device ifindex -T} -T{ -\fI+sound:card29\fR -T}:T{ -kernel driver core subsystem:device name -T} -.TE -.sp 1 -.PP -\fBudev_device_new_from_environment()\fR -creates a device from the current environment (see -\fBenviron\fR(7))\&. Each key\-value pair is interpreted in the same way as if it was received in an uevent (see -\fBudev_monitor_receive_device\fR(3))\&. The keys -\fBDEVPATH\fR, -\fBSUBSYSTEM\fR, -\fBACTION\fR, and -\fBSEQNUM\fR -are mandatory\&. -.SH "RETURN VALUE" -.PP -On success, -\fBudev_device_new_from_syspath()\fR, -\fBudev_device_new_from_devnum()\fR, -\fBudev_device_new_from_subsystem_sysname()\fR, -\fBudev_device_new_from_device_id()\fR -and -\fBudev_device_new_from_environment()\fR -return a pointer to the allocated udev device\&. On failure, -\fBNULL\fR -is returned, and -\fIerrno\fR -is set appropriately\&. -\fBudev_device_ref()\fR -returns the argument that it was passed, unmodified\&. -\fBudev_device_unref()\fR -always returns -\fBNULL\fR\&. -.SH "SEE ALSO" -.PP -\fBudev_new\fR(3), -\fBudev_device_get_syspath\fR(3), -\fBudev_device_has_tag\fR(3), -\fBudev_enumerate_new\fR(3), -\fBudev_monitor_new_from_netlink\fR(3), -\fBudev_list_entry\fR(3), -\fBsystemd\fR(1), diff --git a/upstream/opensuse-tumbleweed/man3/udev_enumerate_add_match_subsystem.3 b/upstream/opensuse-tumbleweed/man3/udev_enumerate_add_match_subsystem.3 deleted file mode 100644 index d42c4469..00000000 --- a/upstream/opensuse-tumbleweed/man3/udev_enumerate_add_match_subsystem.3 +++ /dev/null @@ -1,72 +0,0 @@ -'\" t -.TH "UDEV_ENUMERATE_ADD_MATCH_SUBSYSTEM" "3" "" "systemd 254" "udev_enumerate_add_match_subsystem" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -udev_enumerate_add_match_subsystem, udev_enumerate_add_nomatch_subsystem, udev_enumerate_add_match_sysattr, udev_enumerate_add_nomatch_sysattr, udev_enumerate_add_match_property, udev_enumerate_add_match_sysname, udev_enumerate_add_match_tag, udev_enumerate_add_match_parent, udev_enumerate_add_match_is_initialized \- Modify filters -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ udev_enumerate_add_match_subsystem('u -.BI "int udev_enumerate_add_match_subsystem(struct\ udev_enumerate\ *" "udev_enumerate" ", const\ char\ *" "subsystem" ");" -.HP \w'int\ udev_enumerate_add_nomatch_subsystem('u -.BI "int udev_enumerate_add_nomatch_subsystem(struct\ udev_enumerate\ *" "udev_enumerate" ", const\ char\ *" "subsystem" ");" -.HP \w'int\ udev_enumerate_add_match_sysattr('u -.BI "int udev_enumerate_add_match_sysattr(struct\ udev_enumerate\ *" "udev_enumerate" ", const\ char\ *" "sysattr" ", const\ char\ *" "value" ");" -.HP \w'int\ udev_enumerate_add_nomatch_sysattr('u -.BI "int udev_enumerate_add_nomatch_sysattr(struct\ udev_enumerate\ *" "udev_enumerate" ", const\ char\ *" "sysattr" ", const\ char\ *" "value" ");" -.HP \w'int\ udev_enumerate_add_match_property('u -.BI "int udev_enumerate_add_match_property(struct\ udev_enumerate\ *" "udev_enumerate" ", const\ char\ *" "property" ", const\ char\ *" "value" ");" -.HP \w'int\ udev_enumerate_add_match_sysname('u -.BI "int udev_enumerate_add_match_sysname(struct\ udev_enumerate\ *" "udev_enumerate" ", const\ char\ *" "sysname" ");" -.HP \w'int\ udev_enumerate_add_match_tag('u -.BI "int udev_enumerate_add_match_tag(struct\ udev_enumerate\ *" "udev_enumerate" ", const\ char\ *" "tag" ");" -.HP \w'int\ udev_enumerate_add_match_parent('u -.BI "int udev_enumerate_add_match_parent(struct\ udev_enumerate\ *" "udev_enumerate" ", struct\ udev_device\ *" "parent" ");" -.HP \w'int\ udev_enumerate_add_match_is_initialized('u -.BI "int udev_enumerate_add_match_is_initialized(struct\ udev_enumerate\ *" "udev_enumerate" ");" -.SH "RETURN VALUE" -.PP -On success, -\fBudev_enumerate_add_match_subsystem()\fR, -\fBudev_enumerate_add_nomatch_subsystem()\fR, -\fBudev_enumerate_add_match_sysattr()\fR, -\fBudev_enumerate_add_nomatch_sysattr()\fR, -\fBudev_enumerate_add_match_property()\fR, -\fBudev_enumerate_add_match_sysname()\fR, -\fBudev_enumerate_add_match_tag()\fR, -\fBudev_enumerate_add_match_parent()\fR -and -\fBudev_enumerate_add_match_is_initialized()\fR -return an integer greater than, or equal to, -\fB0\fR\&. -.SH "SEE ALSO" -.PP -\fBudev_new\fR(3), -\fBudev_device_new_from_syspath\fR(3), -\fBudev_enumerate_new\fR(3), -\fBudev_enumerate_scan_devices\fR(3), -\fBudev_monitor_new_from_netlink\fR(3), -\fBudev_list_entry\fR(3), -\fBsystemd\fR(1), diff --git a/upstream/opensuse-tumbleweed/man3/udev_enumerate_new.3 b/upstream/opensuse-tumbleweed/man3/udev_enumerate_new.3 deleted file mode 100644 index 4f99e494..00000000 --- a/upstream/opensuse-tumbleweed/man3/udev_enumerate_new.3 +++ /dev/null @@ -1,57 +0,0 @@ -'\" t -.TH "UDEV_ENUMERATE_NEW" "3" "" "systemd 254" "udev_enumerate_new" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -udev_enumerate_new, udev_enumerate_ref, udev_enumerate_unref \- Create, acquire and release a udev enumerate object -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'struct\ udev_enumerate\ *udev_enumerate_new('u -.BI "struct udev_enumerate *udev_enumerate_new(struct\ udev\ *" "udev" ");" -.HP \w'struct\ udev_enumerate\ *udev_enumerate_ref('u -.BI "struct udev_enumerate *udev_enumerate_ref(struct\ udev_enumerate\ *" "udev_enumerate" ");" -.HP \w'struct\ udev_enumerate\ *udev_enumerate_unref('u -.BI "struct udev_enumerate *udev_enumerate_unref(struct\ udev_enumerate\ *" "udev_enumerate" ");" -.SH "RETURN VALUE" -.PP -On success, -\fBudev_enumerate_new()\fR -returns a pointer to the allocated enumeration object\&. On failure, -\fBNULL\fR -is returned\&. -\fBudev_enumerate_ref()\fR -returns the argument that it was passed, unmodified\&. -\fBudev_enumerate_unref()\fR -always returns -\fBNULL\fR\&. -.SH "SEE ALSO" -.PP -\fBudev_new\fR(3), -\fBudev_device_new_from_syspath\fR(3), -\fBudev_enumerate_add_match_subsystem\fR(3), -\fBudev_enumerate_scan_devices\fR(3), -\fBudev_monitor_new_from_netlink\fR(3), -\fBudev_list_entry\fR(3), -\fBsystemd\fR(1), diff --git a/upstream/opensuse-tumbleweed/man3/udev_enumerate_scan_devices.3 b/upstream/opensuse-tumbleweed/man3/udev_enumerate_scan_devices.3 deleted file mode 100644 index 3bbb30d7..00000000 --- a/upstream/opensuse-tumbleweed/man3/udev_enumerate_scan_devices.3 +++ /dev/null @@ -1,67 +0,0 @@ -'\" t -.TH "UDEV_ENUMERATE_SCAN_DEVICES" "3" "" "systemd 254" "udev_enumerate_scan_devices" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -udev_enumerate_scan_devices, udev_enumerate_scan_subsystems, udev_enumerate_get_list_entry, udev_enumerate_add_syspath, udev_enumerate_get_udev \- Query or modify a udev enumerate object -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ udev_enumerate_scan_devices('u -.BI "int udev_enumerate_scan_devices(struct\ udev_enumerate\ *" "udev_enumerate" ");" -.HP \w'int\ udev_enumerate_scan_subsystems('u -.BI "int udev_enumerate_scan_subsystems(struct\ udev_enumerate\ *" "udev_enumerate" ");" -.HP \w'struct\ udev_list_entry\ *udev_enumerate_get_list_entry('u -.BI "struct udev_list_entry *udev_enumerate_get_list_entry(struct\ udev_enumerate\ *" "udev_enumerate" ");" -.HP \w'int\ udev_enumerate_add_syspath('u -.BI "int udev_enumerate_add_syspath(struct\ udev_enumerate\ *" "udev_enumerate" ", const\ char\ *" "syspath" ");" -.HP \w'struct\ udev\ *udev_enumerate_get_udev('u -.BI "struct udev *udev_enumerate_get_udev(struct\ udev_enumerate\ *" "udev_enumerate" ");" -.SH "RETURN VALUE" -.PP -On success, -\fBudev_enumerate_scan_devices()\fR, -\fBudev_enumerate_scan_subsystems()\fR -and -\fBudev_enumerate_add_syspath()\fR -return an integer greater than, or equal to, -\fB0\fR\&. -.PP -On success, -\fBudev_enumerate_get_list_entry()\fR -returns a pointer to the first entry in the list of found devices\&. If the list is empty, or on failure, -\fBNULL\fR -is returned\&. -.PP -\fBudev_enumerate_get_udev()\fR -always returns a pointer to the udev context that this enumerated object is associated with\&. -.SH "SEE ALSO" -.PP -\fBudev_new\fR(3), -\fBudev_device_new_from_syspath\fR(3), -\fBudev_enumerate_new\fR(3), -\fBudev_enumerate_add_match_subsystem\fR(3), -\fBudev_monitor_new_from_netlink\fR(3), -\fBudev_list_entry\fR(3), -\fBsystemd\fR(1), diff --git a/upstream/opensuse-tumbleweed/man3/udev_list_entry.3 b/upstream/opensuse-tumbleweed/man3/udev_list_entry.3 deleted file mode 100644 index c57a02d2..00000000 --- a/upstream/opensuse-tumbleweed/man3/udev_list_entry.3 +++ /dev/null @@ -1,62 +0,0 @@ -'\" t -.TH "UDEV_LIST_ENTRY" "3" "" "systemd 254" "udev_list_entry" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -udev_list_entry, udev_list_entry_get_next, udev_list_entry_get_by_name, udev_list_entry_get_name, udev_list_entry_get_value \- Iterate and access udev lists -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'struct\ udev_list_entry\ *udev_list_entry_get_next('u -.BI "struct udev_list_entry *udev_list_entry_get_next(struct\ udev_list_entry\ *" "list_entry" ");" -.HP \w'struct\ udev_list_entry\ *udev_list_entry_get_by_name('u -.BI "struct udev_list_entry *udev_list_entry_get_by_name(struct\ udev_list_entry\ *" "list_entry" ", const\ char\ *" "name" ");" -.HP \w'const\ char\ *udev_list_entry_get_name('u -.BI "const char *udev_list_entry_get_name(struct\ udev_list_entry\ *" "list_entry" ");" -.HP \w'const\ char\ *udev_list_entry_get_value('u -.BI "const char *udev_list_entry_get_value(struct\ udev_list_entry\ *" "list_entry" ");" -.SH "RETURN VALUE" -.PP -On success, -\fBudev_list_entry_get_next()\fR -and -\fBudev_list_entry_get_by_name()\fR -return a pointer to the requested list entry\&. If no such entry can be found, or on failure, -\fBNULL\fR -is returned\&. -.PP -On success, -\fBudev_list_entry_get_name()\fR -and -\fBudev_list_entry_get_value()\fR -return a pointer to a constant string representing the requested value\&. The string is bound to the lifetime of the list entry itself\&. On failure, -\fBNULL\fR -is returned\&. -.SH "SEE ALSO" -.PP -\fBudev_new\fR(3), -\fBudev_device_new_from_syspath\fR(3), -\fBudev_enumerate_new\fR(3), -\fBudev_monitor_new_from_netlink\fR(3), -\fBsystemd\fR(1), diff --git a/upstream/opensuse-tumbleweed/man3/udev_monitor_filter_update.3 b/upstream/opensuse-tumbleweed/man3/udev_monitor_filter_update.3 deleted file mode 100644 index 6e9b7ead..00000000 --- a/upstream/opensuse-tumbleweed/man3/udev_monitor_filter_update.3 +++ /dev/null @@ -1,57 +0,0 @@ -'\" t -.TH "UDEV_MONITOR_FILTER_UPDATE" "3" "" "systemd 254" "udev_monitor_filter_update" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -udev_monitor_filter_update, udev_monitor_filter_remove, udev_monitor_filter_add_match_subsystem_devtype, udev_monitor_filter_add_match_tag \- Modify filters -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'int\ udev_monitor_filter_update('u -.BI "int udev_monitor_filter_update(struct\ udev_monitor\ *" "udev_monitor" ");" -.HP \w'int\ udev_monitor_filter_remove('u -.BI "int udev_monitor_filter_remove(struct\ udev_monitor\ *" "udev_monitor" ");" -.HP \w'int\ udev_monitor_filter_add_match_subsystem_devtype('u -.BI "int udev_monitor_filter_add_match_subsystem_devtype(struct\ udev_monitor\ *" "udev_monitor" ", const\ char\ *" "subsystem" ", const\ char\ *" "devtype" ");" -.HP \w'int\ udev_monitor_filter_add_match_tag('u -.BI "int udev_monitor_filter_add_match_tag(struct\ udev_monitor\ *" "udev_monitor" ", const\ char\ *" "tag" ");" -.SH "RETURN VALUE" -.PP -On success, -\fBudev_monitor_filter_update()\fR, -\fBudev_monitor_filter_remove()\fR, -\fBudev_monitor_filter_add_match_subsystem_devtype()\fR -and -\fBudev_monitor_filter_add_match_tag()\fR -return an integer greater than, or equal to, -\fB0\fR\&. On failure, a negative error code is returned\&. -.SH "SEE ALSO" -.PP -\fBudev_new\fR(3), -\fBudev_device_new_from_syspath\fR(3), -\fBudev_enumerate_new\fR(3), -\fBudev_monitor_new_from_netlink\fR(3), -\fBudev_monitor_receive_device\fR(3), -\fBudev_list_entry\fR(3), -\fBsystemd\fR(1), diff --git a/upstream/opensuse-tumbleweed/man3/udev_monitor_new_from_netlink.3 b/upstream/opensuse-tumbleweed/man3/udev_monitor_new_from_netlink.3 deleted file mode 100644 index 0186e266..00000000 --- a/upstream/opensuse-tumbleweed/man3/udev_monitor_new_from_netlink.3 +++ /dev/null @@ -1,57 +0,0 @@ -'\" t -.TH "UDEV_MONITOR_NEW_FROM_NETLINK" "3" "" "systemd 254" "udev_monitor_new_from_netlink" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -udev_monitor_new_from_netlink, udev_monitor_ref, udev_monitor_unref \- Create, acquire and release a udev monitor object -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'struct\ udev_monitor\ *udev_monitor_new_from_netlink('u -.BI "struct udev_monitor *udev_monitor_new_from_netlink(struct\ udev\ *" "udev" ", const\ char\ *" "name" ");" -.HP \w'struct\ udev_monitor\ *udev_monitor_ref('u -.BI "struct udev_monitor *udev_monitor_ref(struct\ udev_monitor\ *" "udev_monitor" ");" -.HP \w'struct\ udev_monitor\ *udev_monitor_unref('u -.BI "struct udev_monitor *udev_monitor_unref(struct\ udev_monitor\ *" "udev_monitor" ");" -.SH "RETURN VALUE" -.PP -On success, -\fBudev_monitor_new_from_netlink()\fR -returns a pointer to the allocated udev monitor\&. On failure, -\fBNULL\fR -is returned\&. -\fBudev_monitor_ref()\fR -returns the argument that it was passed, unmodified\&. -\fBudev_monitor_unref()\fR -always returns -\fBNULL\fR\&. -.SH "SEE ALSO" -.PP -\fBudev_new\fR(3), -\fBudev_device_new_from_syspath\fR(3), -\fBudev_enumerate_new\fR(3), -\fBudev_monitor_filter_update\fR(3), -\fBudev_monitor_receive_device\fR(3), -\fBudev_list_entry\fR(3), -\fBsystemd\fR(1), diff --git a/upstream/opensuse-tumbleweed/man3/udev_monitor_receive_device.3 b/upstream/opensuse-tumbleweed/man3/udev_monitor_receive_device.3 deleted file mode 100644 index 1475ef13..00000000 --- a/upstream/opensuse-tumbleweed/man3/udev_monitor_receive_device.3 +++ /dev/null @@ -1,70 +0,0 @@ -'\" t -.TH "UDEV_MONITOR_RECEIVE_DEVICE" "3" "" "systemd 254" "udev_monitor_receive_device" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -udev_monitor_receive_device, udev_monitor_enable_receiving, udev_monitor_set_receive_buffer_size, udev_monitor_get_fd, udev_monitor_get_udev \- Query and modify device monitor -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'struct\ udev_device\ *udev_monitor_receive_device('u -.BI "struct udev_device *udev_monitor_receive_device(struct\ udev_monitor\ *" "udev_monitor" ");" -.HP \w'int\ udev_monitor_enable_receiving('u -.BI "int udev_monitor_enable_receiving(struct\ udev_monitor\ *" "udev_monitor" ");" -.HP \w'int\ udev_monitor_set_receive_buffer_size('u -.BI "int udev_monitor_set_receive_buffer_size(struct\ udev_monitor\ *" "udev_monitor" ", int\ " "size" ");" -.HP \w'int\ udev_monitor_get_fd('u -.BI "int udev_monitor_get_fd(struct\ udev_monitor\ *" "udev_monitor" ");" -.HP \w'struct\ udev\ *udev_monitor_get_udev('u -.BI "struct udev *udev_monitor_get_udev(struct\ udev_monitor\ *" "udev_monitor" ");" -.SH "RETURN VALUE" -.PP -On success, -\fBudev_monitor_receive_device()\fR -returns a pointer to a newly referenced device that was received via the monitor\&. The caller is responsible to drop this reference when done\&. On failure, -\fBNULL\fR -is returned\&. -.PP -On success, -\fBudev_monitor_enable_receiving()\fR -and -\fBudev_monitor_set_receive_buffer_size()\fR -return an integer greater than, or equal to, -\fB0\fR\&. On failure, a negative error code is returned\&. -.PP -On success, -\fBudev_monitor_get_fd()\fR -returns the file descriptor used by this monitor\&. On failure, a negative error code is returned\&. -.PP -\fBudev_monitor_get_udev()\fR -always returns a pointer to the udev context that this monitor is associated with\&. -.SH "SEE ALSO" -.PP -\fBudev_new\fR(3), -\fBudev_device_new_from_syspath\fR(3), -\fBudev_enumerate_new\fR(3), -\fBudev_monitor_new_from_netlink\fR(3), -\fBudev_monitor_filter_update\fR(3), -\fBudev_list_entry\fR(3), -\fBsystemd\fR(1), diff --git a/upstream/opensuse-tumbleweed/man3/udev_new.3 b/upstream/opensuse-tumbleweed/man3/udev_new.3 deleted file mode 100644 index dddbaddb..00000000 --- a/upstream/opensuse-tumbleweed/man3/udev_new.3 +++ /dev/null @@ -1,58 +0,0 @@ -'\" t -.TH "UDEV_NEW" "3" "" "systemd 254" "udev_new" -.\" ----------------------------------------------------------------- -.\" * Define some portability stuff -.\" ----------------------------------------------------------------- -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.\" http://bugs.debian.org/507673 -.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html -.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.ie \n(.g .ds Aq \(aq -.el .ds Aq ' -.\" ----------------------------------------------------------------- -.\" * set default formatting -.\" ----------------------------------------------------------------- -.\" disable hyphenation -.nh -.\" disable justification (adjust text to left margin only) -.ad l -.\" ----------------------------------------------------------------- -.\" * MAIN CONTENT STARTS HERE * -.\" ----------------------------------------------------------------- -.SH "NAME" -udev_new, udev_ref, udev_unref \- Create, acquire and release a udev context object -.SH "SYNOPSIS" -.sp -.ft B -.nf -#include -.fi -.ft -.HP \w'struct\ udev\ *udev_new('u -.BI "struct udev *udev_new(" "void" ");" -.HP \w'struct\ udev\ *udev_ref('u -.BI "struct udev *udev_ref(struct\ udev\ *" "udev" ");" -.HP \w'struct\ udev\ *udev_unref('u -.BI "struct udev *udev_unref(struct\ udev\ *" "udev" ");" -.SH "DESCRIPTION" -.PP -\fBudev_new()\fR -allocates a new udev context object and returns a pointer to it\&. This object is opaque and must not be accessed by the caller via different means than functions provided by libudev\&. Initially, the reference count of the context is 1\&. You can acquire further references, and drop gained references via -\fBudev_ref()\fR -and -\fBudev_unref()\fR\&. Once the reference count hits 0, the context object is destroyed and freed\&. -.SH "RETURN VALUE" -.PP -On success, -\fBudev_new()\fR -returns a pointer to the allocated udev context\&. On failure, -\fBNULL\fR -is returned\&. -\fBudev_ref()\fR -returns the argument that it was passed, unmodified\&. -\fBudev_unref()\fR -always returns -\fBNULL\fR\&. -.SH "SEE ALSO" -.PP -\fBsystemd\fR(1), diff --git a/upstream/opensuse-tumbleweed/man3/ulimit.3 b/upstream/opensuse-tumbleweed/man3/ulimit.3 index 8cd8f6dc..b1437616 100644 --- a/upstream/opensuse-tumbleweed/man3/ulimit.3 +++ b/upstream/opensuse-tumbleweed/man3/ulimit.3 @@ -5,7 +5,7 @@ .\" .\" Moved to man3, aeb, 980612 .\" -.TH ulimit 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ulimit 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ulimit \- get and set user limits .SH LIBRARY @@ -14,7 +14,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "[[deprecated]] long ulimit(int " cmd ", long " newlimit ); .fi .SH DESCRIPTION @@ -29,7 +29,7 @@ For the shell command .BR ulimit , see .BR bash (1). -.PP +.P The .BR ulimit () call will get or set some limit for the calling process. @@ -75,7 +75,6 @@ T{ .BR ulimit () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/undocumented.3 b/upstream/opensuse-tumbleweed/man3/undocumented.3 index 8ee34845..09d85e5c 100644 --- a/upstream/opensuse-tumbleweed/man3/undocumented.3 +++ b/upstream/opensuse-tumbleweed/man3/undocumented.3 @@ -7,7 +7,7 @@ .\" 2004-10-31, aeb, changed maintainer address, updated list .\" 2015-04-20, william@tuffbizz.com, updated list .\" -.TH undocumented 3 2022-10-30 "Linux man-pages 6.05.01" +.TH undocumented 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME undocumented \- undocumented library functions .SH SYNOPSIS diff --git a/upstream/opensuse-tumbleweed/man3/ungetwc.3 b/upstream/opensuse-tumbleweed/man3/ungetwc.3 index 04d55632..8892e31f 100644 --- a/upstream/opensuse-tumbleweed/man3/ungetwc.3 +++ b/upstream/opensuse-tumbleweed/man3/ungetwc.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH ungetwc 3 2023-07-20 "Linux man-pages 6.05.01" +.TH ungetwc 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME ungetwc \- push back a wide character onto a FILE stream .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wint_t ungetwc(wint_t " wc ", FILE *" stream ); .fi .SH DESCRIPTION @@ -30,7 +30,7 @@ function. It pushes back a wide character onto .I stream and returns it. -.PP +.P If .I wc is @@ -46,7 +46,7 @@ to .B EILSEQ and returns .BR WEOF . -.PP +.P If .I wc is a valid wide character, it is pushed back onto the stream @@ -55,12 +55,12 @@ The file-position indicator is decremented by one or more. The end-of-file indicator is cleared. The backing storage of the file is not affected. -.PP +.P Note: .I wc need not be the last wide-character read from the stream; it can be any other valid wide character. -.PP +.P If the implementation supports multiple push-back operations in a row, the pushed-back wide characters will be read in reverse order; however, only one level of push-back is guaranteed. @@ -87,7 +87,6 @@ T{ .BR ungetwc () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/unlocked_stdio.3 b/upstream/opensuse-tumbleweed/man3/unlocked_stdio.3 index a74e6b2a..d0c16502 100644 --- a/upstream/opensuse-tumbleweed/man3/unlocked_stdio.3 +++ b/upstream/opensuse-tumbleweed/man3/unlocked_stdio.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH unlocked_stdio 3 2023-07-30 "Linux man-pages 6.05.01" +.TH unlocked_stdio 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME getc_unlocked, getchar_unlocked, putc_unlocked, putchar_unlocked \- nonlocking stdio functions @@ -13,53 +13,53 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int getc_unlocked(FILE *" stream ); .B "int getchar_unlocked(void);" .BI "int putc_unlocked(int " c ", FILE *" stream ); .BI "int putchar_unlocked(int " c ); -.PP +.P .BI "void clearerr_unlocked(FILE *" stream ); .BI "int feof_unlocked(FILE *" stream ); .BI "int ferror_unlocked(FILE *" stream ); .BI "int fileno_unlocked(FILE *" stream ); .BI "int fflush_unlocked(FILE *_Nullable " stream ); -.PP +.P .BI "int fgetc_unlocked(FILE *" stream ); .BI "int fputc_unlocked(int " c ", FILE *" stream ); -.PP +.P .BI "size_t fread_unlocked(void " ptr "[restrict ." size " * ." n ], .BI " size_t " size ", size_t " n , .BI " FILE *restrict " stream ); .BI "size_t fwrite_unlocked(const void " ptr "[restrict ." size " * ." n ], .BI " size_t " size ", size_t " n , .BI " FILE *restrict " stream ); -.PP +.P .BI "char *fgets_unlocked(char " s "[restrict ." n "], int " n \ ", FILE *restrict " stream ); .BI "int fputs_unlocked(const char *restrict " s ", FILE *restrict " stream ); -.PP +.P .B #include -.PP +.P .BI "wint_t getwc_unlocked(FILE *" stream ); .B "wint_t getwchar_unlocked(void);" .BI "wint_t fgetwc_unlocked(FILE *" stream ); -.PP +.P .BI "wint_t fputwc_unlocked(wchar_t " wc ", FILE *" stream ); .BI "wint_t putwc_unlocked(wchar_t " wc ", FILE *" stream ); .BI "wint_t putwchar_unlocked(wchar_t " wc ); -.PP +.P .BI "wchar_t *fgetws_unlocked(wchar_t " ws "[restrict ." n "], int " n , .BI " FILE *restrict " stream ); .BI "int fputws_unlocked(const wchar_t *restrict " ws , .BI " FILE *restrict " stream ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR \%getc_unlocked (), .BR \%getchar_unlocked (), .BR \%putc_unlocked (), @@ -69,7 +69,7 @@ Feature Test Macro Requirements for glibc (see || /* glibc <= 2.23: */ _POSIX_C_SOURCE || /* glibc <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE .fi -.PP +.P .BR \%clearerr_unlocked (), .BR \%feof_unlocked (), .BR \%ferror_unlocked (), @@ -83,7 +83,7 @@ Feature Test Macro Requirements for glibc (see /* glibc >= 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE .fi -.PP +.P .BR \%fgets_unlocked (), .BR \%fputs_unlocked (), .BR \%getwc_unlocked (), @@ -163,7 +163,6 @@ T{ .BR fileno_unlocked () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR getc_unlocked () diff --git a/upstream/opensuse-tumbleweed/man3/unlockpt.3 b/upstream/opensuse-tumbleweed/man3/unlockpt.3 index 1ed2ad9f..ccdbf4f7 100644 --- a/upstream/opensuse-tumbleweed/man3/unlockpt.3 +++ b/upstream/opensuse-tumbleweed/man3/unlockpt.3 @@ -3,7 +3,7 @@ .\" This page is in the public domain. - aeb .\" %%%LICENSE_END .\" -.TH unlockpt 3 2023-07-20 "Linux man-pages 6.05.01" +.TH unlockpt 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME unlockpt \- unlock a pseudoterminal master/slave pair .SH LIBRARY @@ -13,15 +13,15 @@ Standard C library .nf .B #define _XOPEN_SOURCE .B #include -.PP +.P .BI "int unlockpt(int " fd ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR unlockpt (): .nf Since glibc 2.24: @@ -36,7 +36,7 @@ The function unlocks the slave pseudoterminal device corresponding to the master pseudoterminal referred to by the file descriptor .IR fd . -.PP +.P .BR unlockpt () should be called before opening the slave side of a pseudoterminal. .SH RETURN VALUE @@ -71,7 +71,6 @@ T{ .BR unlockpt () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/updwtmp.3 b/upstream/opensuse-tumbleweed/man3/updwtmp.3 index 99113e82..7a2c8f95 100644 --- a/upstream/opensuse-tumbleweed/man3/updwtmp.3 +++ b/upstream/opensuse-tumbleweed/man3/updwtmp.3 @@ -8,7 +8,7 @@ .\" Added -lutil remark, 030718 .\" 2008-07-02, mtk, document updwtmpx() .\" -.TH updwtmp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH updwtmp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME updwtmp, logwtmp \- append an entry to the wtmp file .SH LIBRARY @@ -17,7 +17,7 @@ System utilities library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "void updwtmp(const char *" wtmp_file ", const struct utmp *" ut ); .BI "void logwtmp(const char *" line ", const char *" name \ ", const char *" host ); @@ -27,7 +27,7 @@ System utilities library appends the utmp structure .I ut to the wtmp file. -.PP +.P .BR logwtmp () constructs a utmp structure using .IR line ", " name ", " host , @@ -54,12 +54,11 @@ T{ .BR logwtmp () T} Thread safety MT-Unsafe sig:ALRM timer .TE -.sp 1 .SH VERSIONS For consistency with the other "utmpx" functions (see .BR getutxent (3)), glibc provides (since glibc 2.1): -.PP +.P .in +4n .EX .BR "#define _GNU_SOURCE " "/* See feature_test_macros(7) */" @@ -67,7 +66,7 @@ glibc provides (since glibc 2.1): .BI "void updwtmpx (const char *" wtmpx_file ", const struct utmpx *" utx ); .EE .in -.PP +.P This function performs the same task as .BR updwtmp (), but differs in that it takes a diff --git a/upstream/opensuse-tumbleweed/man3/uselocale.3 b/upstream/opensuse-tumbleweed/man3/uselocale.3 index 19995c34..0856b9df 100644 --- a/upstream/opensuse-tumbleweed/man3/uselocale.3 +++ b/upstream/opensuse-tumbleweed/man3/uselocale.3 @@ -2,7 +2,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH uselocale 3 2023-03-30 "Linux man-pages 6.05.01" +.TH uselocale 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME uselocale \- set/get the locale for the calling thread .SH LIBRARY @@ -11,15 +11,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "locale_t uselocale(locale_t " newloc ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR uselocale (): .nf Since glibc 2.10: @@ -37,7 +37,7 @@ After a successful call to any calls by this thread to functions that depend on the locale will operate as though the locale has been set to .IR newloc . -.PP +.P The .I newloc argument can have one of the following values: diff --git a/upstream/opensuse-tumbleweed/man3/userptr.3form b/upstream/opensuse-tumbleweed/man3/userptr.3form index cbca18c8..2c3b621e 100644 --- a/upstream/opensuse-tumbleweed/man3/userptr.3form +++ b/upstream/opensuse-tumbleweed/man3/userptr.3form @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_userptr.3x,v 1.34 2023/11/25 13:58:47 tom Exp $ -.TH userptr 3FORM 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: form_userptr.3x,v 1.36 2024/03/16 15:35:01 tom Exp $ +.TH userptr 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBset_form_userptr\fP, \fBform_userptr\fP \- diff --git a/upstream/opensuse-tumbleweed/man3/userptr.3menu b/upstream/opensuse-tumbleweed/man3/userptr.3menu index 6263cb5f..20a57b62 100644 --- a/upstream/opensuse-tumbleweed/man3/userptr.3menu +++ b/upstream/opensuse-tumbleweed/man3/userptr.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: menu_userptr.3x,v 1.31 2023/11/25 13:58:47 tom Exp $ -.TH userptr 3MENU 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: menu_userptr.3x,v 1.33 2024/03/16 15:35:01 tom Exp $ +.TH userptr 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBset_menu_userptr\fP, \fBmenu_userptr\fP \- diff --git a/upstream/opensuse-tumbleweed/man3/usleep.3 b/upstream/opensuse-tumbleweed/man3/usleep.3 index a05472d3..fef133ee 100644 --- a/upstream/opensuse-tumbleweed/man3/usleep.3 +++ b/upstream/opensuse-tumbleweed/man3/usleep.3 @@ -11,7 +11,7 @@ .\" Modified 2001-04-01 by aeb .\" Modified 2003-07-23 by aeb .\" -.TH usleep 3 2023-07-20 "Linux man-pages 6.05.01" +.TH usleep 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME usleep \- suspend execution for microsecond intervals .SH LIBRARY @@ -20,15 +20,15 @@ Standard C library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "int usleep(useconds_t " usec ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR usleep (): .nf Since glibc 2.12: @@ -77,7 +77,6 @@ T{ .BR usleep () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS None. .SH HISTORY @@ -86,14 +85,14 @@ POSIX.1-2001 declares it obsolete, suggesting .BR nanosleep (2) instead. Removed in POSIX.1-2008. -.PP +.P On the original BSD implementation, and before glibc 2.2.2, the return type of this function is .IR void . The POSIX version returns .IR int , and this is also the prototype used since glibc 2.2.2. -.PP +.P Only the .B EINVAL error return is documented by SUSv2 and POSIX.1-2001. diff --git a/upstream/opensuse-tumbleweed/man3/util.3ncurses b/upstream/opensuse-tumbleweed/man3/util.3ncurses index 93209b5f..92325ac2 100644 --- a/upstream/opensuse-tumbleweed/man3/util.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/util.3ncurses @@ -28,8 +28,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_util.3x,v 1.96 2024/02/24 19:22:01 tom Exp $ -.TH util 3NCURSES 2024-02-24 "ncurses 6.4" "Library calls" +.\" $Id: curs_util.3x,v 1.101 2024/04/20 21:20:07 tom Exp $ +.TH util 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .ie \n(.g \{\ .ds `` \(lq .ds '' \(rq @@ -63,11 +63,11 @@ miscellaneous \fIcurses\fR utility routines .nf \fB#include .PP -\fBconst char *unctrl(chtype \fIc\fP); -\fBwchar_t *wunctrl(cchar_t *\fIc\fP); +\fBconst char *unctrl(chtype \fIch\fP); +\fBwchar_t *wunctrl(cchar_t *\fIwch\fP); .PP \fBconst char *keyname(int \fIc\fP); -\fBconst char *key_name(wchar_t \fIw\fP); +\fBconst char *key_name(wchar_t \fIwc\fP); .PP \fBvoid filter(void); .PP @@ -86,7 +86,7 @@ miscellaneous \fIcurses\fR utility routines .SH DESCRIPTION .SS unctrl The \fBunctrl\fP routine returns a character string which is a printable -representation of the character \fIc\fP: +representation of the character \fIch\fP: .bP Printable characters are displayed as themselves, e.g., a one-character string containing the key. @@ -106,7 +106,7 @@ In the latter case, the values may not be printable; this follows the X/Open specification. .PP The corresponding \fBwunctrl\fP returns a printable representation of -a complex character \fIc\fP. +a complex character \fIwch\fP. .PP In both \fBunctrl\fP and \fBwunctrl\fP the attributes and color associated with the character parameter are ignored. @@ -288,7 +288,7 @@ upon failure and \fBOK\fP (SVr4 specifies only "an integer value other than .PP Routines that return pointers return \fBNULL\fP on error. .PP -X/Open does not define any error conditions. +X/Open Curses does not specify any error conditions. In this implementation .RS 3 .TP 5 @@ -302,7 +302,7 @@ returns an error if the associated \fBfwrite\fP calls return an error. .SS filter The SVr4 documentation describes the action of \fBfilter\fP only in the vaguest terms. -The description here is adapted from the XSI Curses standard (which +The description here is adapted from X/Open Curses (which erroneously fails to describe the disabling of \fBcuu\fP). .SS "delay_output padding" The limitation to 30 seconds @@ -364,7 +364,7 @@ Doing that can run into problems mixing block- and buffered-I/O. This implementation reduces the problem on writes by flushing the output. However, reading from a file written using mixed schemes may not be successful. .SS "unctrl, wunctrl" -The XSI Curses standard, Issue 4 describes these functions. +X/Open Curses, Issue 4 describes these functions. It states that \fBunctrl\fP and \fBwunctrl\fP will return a null pointer if unsuccessful, but does not define any error conditions. This implementation checks for three cases: diff --git a/upstream/opensuse-tumbleweed/man3/wcpcpy.3 b/upstream/opensuse-tumbleweed/man3/wcpcpy.3 index dfdc0796..8d809537 100644 --- a/upstream/opensuse-tumbleweed/man3/wcpcpy.3 +++ b/upstream/opensuse-tumbleweed/man3/wcpcpy.3 @@ -8,7 +8,7 @@ .\" Dinkumware C library reference http://www.dinkumware.com/ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" -.TH wcpcpy 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcpcpy 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcpcpy \- copy a wide-character string, returning a pointer to its end .SH LIBRARY @@ -17,16 +17,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wchar_t *wcpcpy(wchar_t *restrict " dest \ ", const wchar_t *restrict " src ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR wcpcpy (): .nf Since glibc 2.10: @@ -45,9 +45,9 @@ It copies the wide-character string pointed to by including the terminating null wide character (L\[aq]\e0\[aq]), to the array pointed to by .IR dest . -.PP +.P The strings may not overlap. -.PP +.P The programmer must ensure that there is room for at least .I wcslen(src)+1 @@ -72,7 +72,6 @@ T{ .BR wcpcpy () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/wcpncpy.3 b/upstream/opensuse-tumbleweed/man3/wcpncpy.3 index 40538d03..b63d3d04 100644 --- a/upstream/opensuse-tumbleweed/man3/wcpncpy.3 +++ b/upstream/opensuse-tumbleweed/man3/wcpncpy.3 @@ -8,7 +8,7 @@ .\" Dinkumware C library reference http://www.dinkumware.com/ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" -.TH wcpncpy 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcpncpy 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcpncpy \- copy a fixed-size string of wide characters, returning a pointer to its end @@ -18,17 +18,17 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wchar_t *wcpncpy(wchar_t " dest "[restrict ." n ], .BI " const wchar_t " src "[restrict ." n ], .BI " size_t " n ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR wcpncpy (): .nf Since glibc 2.10: @@ -73,9 +73,9 @@ the string pointed to by .I dest will not be L\[aq]\e0\[aq] terminated. -.PP +.P The strings may not overlap. -.PP +.P The programmer must ensure that there is room for at least .I n wide @@ -99,7 +99,6 @@ T{ .BR wcpncpy () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH SEE ALSO diff --git a/upstream/opensuse-tumbleweed/man3/wcrtomb.3 b/upstream/opensuse-tumbleweed/man3/wcrtomb.3 index 2732832d..9e96b92d 100644 --- a/upstream/opensuse-tumbleweed/man3/wcrtomb.3 +++ b/upstream/opensuse-tumbleweed/man3/wcrtomb.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wcrtomb 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcrtomb 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcrtomb \- convert a wide character to a multibyte sequence .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t wcrtomb(char *restrict " s ", wchar_t " wc \ ", mbstate_t *restrict " ps ); .fi @@ -45,7 +45,7 @@ returns the length of said multibyte representation, that is, the number of bytes written at .IR s . -.PP +.P A different case is when .I s is not NULL, @@ -69,7 +69,7 @@ it into the initial state), and returns the length of the shift sequence plus one, that is, the number of bytes written at .IR s . -.PP +.P A third case is when .I s is NULL. @@ -77,17 +77,17 @@ In this case, .I wc is ignored, and the function effectively returns -.PP +.P .in +4n .EX wcrtomb(buf, L\[aq]\e0\[aq], ps) .EE .in -.PP +.P where .I buf is an internal anonymous buffer. -.PP +.P In all of the above cases, if .I ps is NULL, a static anonymous @@ -124,7 +124,6 @@ T{ .BR wcrtomb () T} Thread safety MT-Unsafe race:wcrtomb/!ps .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -136,7 +135,7 @@ depends on the .B LC_CTYPE category of the current locale. -.PP +.P Passing NULL as .I ps is not multithread safe. diff --git a/upstream/opensuse-tumbleweed/man3/wcscasecmp.3 b/upstream/opensuse-tumbleweed/man3/wcscasecmp.3 index 252228cb..b9d4c21e 100644 --- a/upstream/opensuse-tumbleweed/man3/wcscasecmp.3 +++ b/upstream/opensuse-tumbleweed/man3/wcscasecmp.3 @@ -8,7 +8,7 @@ .\" Dinkumware C library reference http://www.dinkumware.com/ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" -.TH wcscasecmp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcscasecmp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcscasecmp \- compare two wide-character strings, ignoring case .SH LIBRARY @@ -17,15 +17,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int wcscasecmp(const wchar_t *" s1 ", const wchar_t *" s2 ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR wcscasecmp (): .nf Since glibc 2.10: @@ -83,7 +83,6 @@ T{ .BR wcscasecmp () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wcscat.3 b/upstream/opensuse-tumbleweed/man3/wcscat.3 index 6f3e5397..5aecad32 100644 --- a/upstream/opensuse-tumbleweed/man3/wcscat.3 +++ b/upstream/opensuse-tumbleweed/man3/wcscat.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wcscat 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcscat 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcscat \- concatenate two wide-character strings .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wchar_t *wcscat(wchar_t *restrict " dest \ ", const wchar_t *restrict " src ); .fi @@ -34,9 +34,9 @@ It copies the wide-character string pointed to by including the terminating null wide character (L\[aq]\e0\[aq]), to the end of the wide-character string pointed to by .IR dest . -.PP +.P The strings may not overlap. -.PP +.P The programmer must ensure that there is room for at least .IR wcslen(dest) + wcslen(src) +1 wide characters at @@ -59,7 +59,6 @@ T{ .BR wcscat () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wcschr.3 b/upstream/opensuse-tumbleweed/man3/wcschr.3 index e4c1d76e..8b05e144 100644 --- a/upstream/opensuse-tumbleweed/man3/wcschr.3 +++ b/upstream/opensuse-tumbleweed/man3/wcschr.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wcschr 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcschr 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcschr \- search a wide character in a wide-character string .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wchar_t *wcschr(const wchar_t *" wcs ", wchar_t " wc ); .fi .SH DESCRIPTION @@ -57,7 +57,6 @@ T{ .BR wcschr () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wcscmp.3 b/upstream/opensuse-tumbleweed/man3/wcscmp.3 index 264bb09b..06c1f56b 100644 --- a/upstream/opensuse-tumbleweed/man3/wcscmp.3 +++ b/upstream/opensuse-tumbleweed/man3/wcscmp.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wcscmp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcscmp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcscmp \- compare two wide-character strings .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int wcscmp(const wchar_t *" s1 ", const wchar_t *" s2 ); .fi .SH DESCRIPTION @@ -69,7 +69,6 @@ T{ .BR wcscmp () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wcscpy.3 b/upstream/opensuse-tumbleweed/man3/wcscpy.3 index 76882b5a..5607bd7e 100644 --- a/upstream/opensuse-tumbleweed/man3/wcscpy.3 +++ b/upstream/opensuse-tumbleweed/man3/wcscpy.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wcscpy 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcscpy 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcscpy \- copy a wide-character string .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wchar_t *wcscpy(wchar_t *restrict " dest \ ", const wchar_t *restrict " src ); .fi @@ -34,9 +34,9 @@ It copies the wide-character string pointed to by including the terminating null wide character (L\[aq]\e0\[aq]), to the array pointed to by .IR dest . -.PP +.P The strings may not overlap. -.PP +.P The programmer must ensure that there is room for at least .I wcslen(src)+1 @@ -60,7 +60,6 @@ T{ .BR wcscpy () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wcscspn.3 b/upstream/opensuse-tumbleweed/man3/wcscspn.3 index 20fe000e..ddffa223 100644 --- a/upstream/opensuse-tumbleweed/man3/wcscspn.3 +++ b/upstream/opensuse-tumbleweed/man3/wcscspn.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wcscspn 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcscspn 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcscspn \- search a wide-character string for any of a set of wide characters .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t wcscspn(const wchar_t *" wcs ", const wchar_t *" reject ); .fi .SH DESCRIPTION @@ -71,7 +71,6 @@ T{ .BR wcscspn () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wcsdup.3 b/upstream/opensuse-tumbleweed/man3/wcsdup.3 index 8e7c71bc..41131a17 100644 --- a/upstream/opensuse-tumbleweed/man3/wcsdup.3 +++ b/upstream/opensuse-tumbleweed/man3/wcsdup.3 @@ -8,7 +8,7 @@ .\" Dinkumware C library reference http://www.dinkumware.com/ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" -.TH wcsdup 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcsdup 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcsdup \- duplicate a wide-character string .SH LIBRARY @@ -17,15 +17,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wchar_t *wcsdup(const wchar_t *" s ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR wcsdup (): .nf Since glibc 2.10: @@ -43,7 +43,7 @@ function. It allocates and returns a new wide-character string whose initial contents is a duplicate of the wide-character string pointed to by .IR s . -.PP +.P Memory for the new wide-character string is obtained with .BR malloc (3), @@ -74,7 +74,6 @@ T{ .BR wcsdup () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wcslen.3 b/upstream/opensuse-tumbleweed/man3/wcslen.3 index e716484a..4e96b948 100644 --- a/upstream/opensuse-tumbleweed/man3/wcslen.3 +++ b/upstream/opensuse-tumbleweed/man3/wcslen.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wcslen 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcslen 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcslen \- determine the length of a wide-character string .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t wcslen(const wchar_t *" s ); .fi .SH DESCRIPTION @@ -52,7 +52,6 @@ T{ .BR wcslen () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wcsncasecmp.3 b/upstream/opensuse-tumbleweed/man3/wcsncasecmp.3 index ad233b4d..dde8ec1c 100644 --- a/upstream/opensuse-tumbleweed/man3/wcsncasecmp.3 +++ b/upstream/opensuse-tumbleweed/man3/wcsncasecmp.3 @@ -8,7 +8,7 @@ .\" Dinkumware C library reference http://www.dinkumware.com/ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" -.TH wcsncasecmp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcsncasecmp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcsncasecmp \- compare two fixed-size wide-character strings, ignoring case .SH LIBRARY @@ -17,16 +17,16 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int wcsncasecmp(const wchar_t " s1 [. n "], const wchar_t " s2 [. n "], s\ ize_t " n ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR wcsncasecmp (): .nf Since glibc 2.10: @@ -89,7 +89,6 @@ T{ .BR wcsncasecmp () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wcsncat.3 b/upstream/opensuse-tumbleweed/man3/wcsncat.3 index 73ff7e8e..77181d2a 100644 --- a/upstream/opensuse-tumbleweed/man3/wcsncat.3 +++ b/upstream/opensuse-tumbleweed/man3/wcsncat.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wcsncat 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcsncat 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcsncat \- concatenate two wide-character strings .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wchar_t *wcsncat(wchar_t " dest "[restrict ." n ], .BI " const wchar_t " src "[restrict ." n ], .BI " size_t " n ); @@ -38,9 +38,9 @@ to the end of the wide-character string pointed to by .IR dest , and adds a terminating null wide character (L\[aq]\e0\[aq]). -.PP +.P The strings may not overlap. -.PP +.P The programmer must ensure that there is room for at least .IR wcslen(dest) + n +1 wide characters at @@ -63,7 +63,6 @@ T{ .BR wcsncat () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wcsncmp.3 b/upstream/opensuse-tumbleweed/man3/wcsncmp.3 index 8e53bf2d..2768894c 100644 --- a/upstream/opensuse-tumbleweed/man3/wcsncmp.3 +++ b/upstream/opensuse-tumbleweed/man3/wcsncmp.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wcsncmp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcsncmp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcsncmp \- compare two fixed-size wide-character strings .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int wcsncmp(const wchar_t " s1 [. n "], const wchar_t " s2 [. n "], \ size_t " n ); .fi @@ -84,7 +84,6 @@ T{ .BR wcsncmp () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wcsncpy.3 b/upstream/opensuse-tumbleweed/man3/wcsncpy.3 index ee046771..841f3566 100644 --- a/upstream/opensuse-tumbleweed/man3/wcsncpy.3 +++ b/upstream/opensuse-tumbleweed/man3/wcsncpy.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wcsncpy 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcsncpy 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcsncpy \- copy a fixed-size string of wide characters .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wchar_t *wcsncpy(wchar_t " dest "[restrict ." n ], .BI " const wchar_t " src "[restrict ." n ], .BI " size_t " n ); @@ -55,9 +55,9 @@ to the string pointed to by .I dest will not be terminated by a null wide character. -.PP +.P The strings may not overlap. -.PP +.P The programmer must ensure that there is room for at least .I n wide @@ -81,7 +81,6 @@ T{ .BR wcsncpy () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wcsnlen.3 b/upstream/opensuse-tumbleweed/man3/wcsnlen.3 index 8e2426da..e2c41160 100644 --- a/upstream/opensuse-tumbleweed/man3/wcsnlen.3 +++ b/upstream/opensuse-tumbleweed/man3/wcsnlen.3 @@ -8,7 +8,7 @@ .\" Dinkumware C library reference http://www.dinkumware.com/ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" -.TH wcsnlen 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcsnlen 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcsnlen \- determine the length of a fixed-size wide-character string .SH LIBRARY @@ -17,15 +17,15 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t wcsnlen(const wchar_t " s [. maxlen "], size_t " maxlen ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR wcsnlen (): .nf Since glibc 2.10: @@ -82,7 +82,6 @@ T{ .BR wcsnlen () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wcsnrtombs.3 b/upstream/opensuse-tumbleweed/man3/wcsnrtombs.3 index 21ad0fa1..1ef65814 100644 --- a/upstream/opensuse-tumbleweed/man3/wcsnrtombs.3 +++ b/upstream/opensuse-tumbleweed/man3/wcsnrtombs.3 @@ -8,7 +8,7 @@ .\" Dinkumware C library reference http://www.dinkumware.com/ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" -.TH wcsnrtombs 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcsnrtombs 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcsnrtombs \- convert a wide-character string to a multibyte string .SH LIBRARY @@ -17,18 +17,18 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t wcsnrtombs(char " dest "[restrict ." len "], \ const wchar_t **restrict " src , .BI " size_t " nwc ", size_t " len ", \ mbstate_t *restrict " ps ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR wcsnrtombs (): .nf Since glibc 2.10: @@ -47,7 +47,7 @@ starting at .IR *src , is limited to .IR nwc . -.PP +.P If .I dest is not NULL, @@ -115,7 +115,7 @@ of bytes written to .IR dest , excluding the terminating null byte (\[aq]\e0\[aq]), is returned. -.PP +.P If .I dest is NULL, @@ -124,7 +124,7 @@ is ignored, and the conversion proceeds as above, except that the converted bytes are not written out to memory, and that no destination length limit exists. -.PP +.P In both of the above cases, if .I ps @@ -132,7 +132,7 @@ is NULL, a static anonymous state known only to the .BR wcsnrtombs () function is used instead. -.PP +.P The programmer must ensure that there is room for at least .I len bytes @@ -170,7 +170,6 @@ T} Thread safety T{ MT-Unsafe race:wcsnrtombs/!ps T} .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH NOTES @@ -180,7 +179,7 @@ depends on the .B LC_CTYPE category of the current locale. -.PP +.P Passing NULL as .I ps is not multithread safe. diff --git a/upstream/opensuse-tumbleweed/man3/wcspbrk.3 b/upstream/opensuse-tumbleweed/man3/wcspbrk.3 index 539d881d..2b3286e0 100644 --- a/upstream/opensuse-tumbleweed/man3/wcspbrk.3 +++ b/upstream/opensuse-tumbleweed/man3/wcspbrk.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wcspbrk 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcspbrk 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcspbrk \- search a wide-character string for any of a set of wide characters .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wchar_t *wcspbrk(const wchar_t *" wcs ", const wchar_t *" accept ); .fi .SH DESCRIPTION @@ -59,7 +59,6 @@ T{ .BR wcspbrk () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wcsrchr.3 b/upstream/opensuse-tumbleweed/man3/wcsrchr.3 index beae570c..05b0e384 100644 --- a/upstream/opensuse-tumbleweed/man3/wcsrchr.3 +++ b/upstream/opensuse-tumbleweed/man3/wcsrchr.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wcsrchr 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcsrchr 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcsrchr \- search a wide character in a wide-character string .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wchar_t *wcsrchr(const wchar_t *" wcs ", wchar_t " wc ); .fi .SH DESCRIPTION @@ -57,7 +57,6 @@ T{ .BR wcsrchr () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wcsrtombs.3 b/upstream/opensuse-tumbleweed/man3/wcsrtombs.3 index 99304e40..9235dfbc 100644 --- a/upstream/opensuse-tumbleweed/man3/wcsrtombs.3 +++ b/upstream/opensuse-tumbleweed/man3/wcsrtombs.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wcsrtombs 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcsrtombs 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcsrtombs \- convert a wide-character string to a multibyte string .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t wcsrtombs(char " dest "[restrict ." len "], \ const wchar_t **restrict " src , .BI " size_t " len ", mbstate_t *restrict " ps ); @@ -86,7 +86,7 @@ of bytes written to .IR dest , excluding the terminating null byte (\[aq]\e0\[aq]), is returned. -.PP +.P If .I dest is NULL, @@ -95,7 +95,7 @@ is ignored, and the conversion proceeds as above, except that the converted bytes are not written out to memory, and that no length limit exists. -.PP +.P In both of the above cases, if .I ps @@ -103,7 +103,7 @@ is NULL, a static anonymous state known only to the .BR wcsrtombs () function is used instead. -.PP +.P The programmer must ensure that there is room for at least .I len bytes @@ -141,7 +141,6 @@ T} Thread safety T{ MT-Unsafe race:wcsrtombs/!ps T} .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -153,7 +152,7 @@ depends on the .B LC_CTYPE category of the current locale. -.PP +.P Passing NULL as .I ps is not multithread safe. diff --git a/upstream/opensuse-tumbleweed/man3/wcsspn.3 b/upstream/opensuse-tumbleweed/man3/wcsspn.3 index aa9e2653..1a66e098 100644 --- a/upstream/opensuse-tumbleweed/man3/wcsspn.3 +++ b/upstream/opensuse-tumbleweed/man3/wcsspn.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wcsspn 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcsspn 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcsspn \- get length of a prefix wide-character substring .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t wcsspn(const wchar_t *" wcs ", const wchar_t *" accept ); .fi .SH DESCRIPTION @@ -69,7 +69,6 @@ T{ .BR wcsspn () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wcsstr.3 b/upstream/opensuse-tumbleweed/man3/wcsstr.3 index 75b3d3b7..95e93595 100644 --- a/upstream/opensuse-tumbleweed/man3/wcsstr.3 +++ b/upstream/opensuse-tumbleweed/man3/wcsstr.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wcsstr 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcsstr 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcsstr \- locate a substring in a wide-character string .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wchar_t *wcsstr(const wchar_t *" haystack ", const wchar_t *" needle ); .fi .SH DESCRIPTION @@ -44,7 +44,7 @@ It returns NULL if does not occur as a substring in .IR haystack . -.PP +.P Note the special case: If .I needle @@ -66,7 +66,6 @@ T{ .BR wcsstr () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wcstoimax.3 b/upstream/opensuse-tumbleweed/man3/wcstoimax.3 index e3e5ed1d..ebd8691f 100644 --- a/upstream/opensuse-tumbleweed/man3/wcstoimax.3 +++ b/upstream/opensuse-tumbleweed/man3/wcstoimax.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH wcstoimax 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcstoimax 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcstoimax, wcstoumax \- convert wide-character string to integer .SH LIBRARY @@ -13,7 +13,7 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "intmax_t wcstoimax(const wchar_t *restrict " nptr , .BI " wchar_t **restrict " endptr ", int " base ); .BI "uintmax_t wcstoumax(const wchar_t *restrict " nptr , @@ -44,7 +44,6 @@ T{ .BR wcstoumax () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wcstok.3 b/upstream/opensuse-tumbleweed/man3/wcstok.3 index b63789c0..f2d19c83 100644 --- a/upstream/opensuse-tumbleweed/man3/wcstok.3 +++ b/upstream/opensuse-tumbleweed/man3/wcstok.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wcstok 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcstok 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcstok \- split wide-character string into tokens .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wchar_t *wcstok(wchar_t *restrict " wcs \ ", const wchar_t *restrict " delim , .BI " wchar_t **restrict " ptr ); @@ -36,7 +36,7 @@ to split a wide-character string into tokens, where a token is defined as a substring not containing any wide-characters from .IR delim . -.PP +.P The search starts at .IR wcs , if @@ -90,7 +90,6 @@ T{ .BR wcstok () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -102,7 +101,7 @@ wide-character string is destructively modified during the operation. .SH EXAMPLES The following code loops over the tokens contained in a wide-character string. -.PP +.P .EX wchar_t *wcs = ...; wchar_t *token; diff --git a/upstream/opensuse-tumbleweed/man3/wcstombs.3 b/upstream/opensuse-tumbleweed/man3/wcstombs.3 index a813615f..4d3ef56e 100644 --- a/upstream/opensuse-tumbleweed/man3/wcstombs.3 +++ b/upstream/opensuse-tumbleweed/man3/wcstombs.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wcstombs 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcstombs 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcstombs \- convert a wide-character string to a multibyte string .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "size_t wcstombs(char " dest "[restrict ." n "], \ const wchar_t *restrict " src , .BI " size_t " n ); @@ -59,13 +59,13 @@ In this case, the conversion ends in the initial shift state. The number of bytes written to .IR dest , excluding the terminating null byte (\[aq]\e0\[aq]), is returned. -.PP +.P The programmer must ensure that there is room for at least .I n bytes at .IR dest . -.PP +.P If .I dest is NULL, @@ -73,7 +73,7 @@ is NULL, is ignored, and the conversion proceeds as above, except that the converted bytes are not written out to memory, and no length limit exists. -.PP +.P In order to avoid the case 2 above, the programmer should make sure .I n is greater than or equal to @@ -102,7 +102,6 @@ T{ .BR wcstombs () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS The function .BR wcsrtombs (3) diff --git a/upstream/opensuse-tumbleweed/man3/wcswidth.3 b/upstream/opensuse-tumbleweed/man3/wcswidth.3 index a85254a6..b46fc527 100644 --- a/upstream/opensuse-tumbleweed/man3/wcswidth.3 +++ b/upstream/opensuse-tumbleweed/man3/wcswidth.3 @@ -8,7 +8,7 @@ .\" Dinkumware C library reference http://www.dinkumware.com/ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" -.TH wcswidth 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcswidth 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcswidth \- determine columns needed for a fixed-size wide-character string .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .nf .BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "int wcswidth(const wchar_t *" s ", size_t " n ); .fi .SH DESCRIPTION @@ -57,7 +57,6 @@ T{ .BR wcswidth () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wctob.3 b/upstream/opensuse-tumbleweed/man3/wctob.3 index c8a669db..b95ef37a 100644 --- a/upstream/opensuse-tumbleweed/man3/wctob.3 +++ b/upstream/opensuse-tumbleweed/man3/wctob.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wctob 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wctob 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wctob \- try to represent a wide character as a single byte .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int wctob(wint_t " c ); .fi .SH DESCRIPTION @@ -32,7 +32,7 @@ starting in the initial state, consists of a single byte. If so, it is returned as an .IR "unsigned char" . -.PP +.P Never use this function. It cannot help you in writing internationalized programs. @@ -60,7 +60,6 @@ T{ .BR wctob () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -72,7 +71,7 @@ depends on the .B LC_CTYPE category of the current locale. -.PP +.P This function should never be used. Internationalized programs must never distinguish single-byte and multibyte characters. diff --git a/upstream/opensuse-tumbleweed/man3/wctomb.3 b/upstream/opensuse-tumbleweed/man3/wctomb.3 index 70ddb28d..33a688a3 100644 --- a/upstream/opensuse-tumbleweed/man3/wctomb.3 +++ b/upstream/opensuse-tumbleweed/man3/wctomb.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wctomb 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wctomb 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wctomb \- convert a wide character to a multibyte sequence .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int wctomb(char *" s ", wchar_t " wc ); .fi .SH DESCRIPTION @@ -41,13 +41,13 @@ and returns the length of said multibyte representation, that is, the number of bytes written at .IR s . -.PP +.P The programmer must ensure that there is room for at least .B MB_CUR_MAX bytes at .IR s . -.PP +.P If .I s is NULL, the @@ -73,7 +73,7 @@ If can not be represented as a multibyte sequence (according to the current locale), \-1 is returned. -.PP +.P If .I s is NULL, the @@ -94,7 +94,6 @@ T{ .BR wctomb () T} Thread safety MT-Unsafe race .TE -.sp 1 .SH VERSIONS The function .BR wcrtomb (3) diff --git a/upstream/opensuse-tumbleweed/man3/wctrans.3 b/upstream/opensuse-tumbleweed/man3/wctrans.3 index ae176299..92a24094 100644 --- a/upstream/opensuse-tumbleweed/man3/wctrans.3 +++ b/upstream/opensuse-tumbleweed/man3/wctrans.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wctrans 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wctrans 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wctrans \- wide-character translation mapping .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wctrans_t wctrans(const char *" name ); .fi .SH DESCRIPTION @@ -37,7 +37,7 @@ values can be passed to the .BR towctrans (3) function to actually perform the wide-character mapping. -.PP +.P The .BR wctrans () function returns a mapping, given by its name. @@ -46,7 +46,7 @@ valid names depends on the .B LC_CTYPE category of the current locale, but the following names are valid in all locales. -.PP +.P .nf "tolower" \- realizes the \fBtolower\fP(3) mapping "toupper" \- realizes the \fBtoupper\fP(3) mapping @@ -73,7 +73,6 @@ T{ .BR wctrans () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wctype.3 b/upstream/opensuse-tumbleweed/man3/wctype.3 index 21de4421..cf6ce267 100644 --- a/upstream/opensuse-tumbleweed/man3/wctype.3 +++ b/upstream/opensuse-tumbleweed/man3/wctype.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wctype 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wctype 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wctype \- wide-character classification .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wctype_t wctype(const char *" name ); .fi .SH DESCRIPTION @@ -38,7 +38,7 @@ can be passed to the function to actually test whether a given wide character has the property. -.PP +.P The .BR wctype () function returns a property, given by its name. @@ -47,7 +47,7 @@ valid names depends on the .B LC_CTYPE category of the current locale, but the following names are valid in all locales. -.PP +.P .nf "alnum" \- realizes the \fBisalnum\fP(3) classification function "alpha" \- realizes the \fBisalpha\fP(3) classification function @@ -85,7 +85,6 @@ T{ .BR wctype () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wcwidth.3 b/upstream/opensuse-tumbleweed/man3/wcwidth.3 index 127b3ed1..5aaba2b9 100644 --- a/upstream/opensuse-tumbleweed/man3/wcwidth.3 +++ b/upstream/opensuse-tumbleweed/man3/wcwidth.3 @@ -8,7 +8,7 @@ .\" Dinkumware C library reference http://www.dinkumware.com/ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" -.TH wcwidth 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wcwidth 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wcwidth \- determine columns needed for a wide character .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .nf .BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */" .B #include -.PP +.P .BI "int wcwidth(wchar_t " c ); .fi .SH DESCRIPTION @@ -55,14 +55,13 @@ T{ .BR wcwidth () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY POSIX.1-2001. -.PP +.P Note that before glibc 2.2.5, glibc used the prototype -.PP +.P .nf .BI "int wcwidth(wint_t " c ); .fi diff --git a/upstream/opensuse-tumbleweed/man3/win.3form b/upstream/opensuse-tumbleweed/man3/win.3form index 58d08502..0e6243fe 100644 --- a/upstream/opensuse-tumbleweed/man3/win.3form +++ b/upstream/opensuse-tumbleweed/man3/win.3form @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2006,2010 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: form_win.3x,v 1.33 2023/11/25 13:58:47 tom Exp $ -.TH win 3FORM 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: form_win.3x,v 1.35 2024/03/16 15:35:01 tom Exp $ +.TH win 3FORM 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBform_win\fP \- make and break form window and subwindow associations diff --git a/upstream/opensuse-tumbleweed/man3/win.3menu b/upstream/opensuse-tumbleweed/man3/win.3menu index 0ed1ab46..63e1c0cd 100644 --- a/upstream/opensuse-tumbleweed/man3/win.3menu +++ b/upstream/opensuse-tumbleweed/man3/win.3menu @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2006,2010 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: menu_win.3x,v 1.30 2023/11/25 13:58:47 tom Exp $ -.TH win 3MENU 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: menu_win.3x,v 1.32 2024/03/16 15:35:01 tom Exp $ +.TH win 3MENU 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fBmenu_win\fP \- make and break menu window and subwindow associations diff --git a/upstream/opensuse-tumbleweed/man3/window.3ncurses b/upstream/opensuse-tumbleweed/man3/window.3ncurses index f426a1ea..e0359fbd 100644 --- a/upstream/opensuse-tumbleweed/man3/window.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/window.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2020-2022,2023 Thomas E. Dickey * +.\" Copyright 2020-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2015,2016 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,8 +27,8 @@ .\" authorization. * .\"*************************************************************************** .\" -.\" $Id: curs_window.3x,v 1.44 2023/12/16 20:32:22 tom Exp $ -.TH window 3NCURSES 2023-12-16 "ncurses 6.4" "Library calls" +.\" $Id: curs_window.3x,v 1.48 2024/04/20 21:20:07 tom Exp $ +.TH window 3NCURSES 2024-04-20 "ncurses 6.5" "Library calls" .de bP .ie n .IP \(bu 4 .el .IP \(bu 2 @@ -222,7 +222,7 @@ degrade performance. .PP Note that \fBsyncok\fP may be a macro. .SH PORTABILITY -The XSI Curses standard, Issue 4 describes these functions. +X/Open Curses, Issue 4 describes these functions. .PP X/Open Curses states regarding \fBdelwin\fP: .bP diff --git a/upstream/opensuse-tumbleweed/man3/wmemchr.3 b/upstream/opensuse-tumbleweed/man3/wmemchr.3 index 15cc1cf1..d4cf541e 100644 --- a/upstream/opensuse-tumbleweed/man3/wmemchr.3 +++ b/upstream/opensuse-tumbleweed/man3/wmemchr.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wmemchr 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wmemchr 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wmemchr \- search a wide character in a wide-character array .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wchar_t *wmemchr(const wchar_t " s [. n "], wchar_t " c ", size_t " n ); .fi .SH DESCRIPTION @@ -61,7 +61,6 @@ T{ .BR wmemchr () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wmemcmp.3 b/upstream/opensuse-tumbleweed/man3/wmemcmp.3 index ebc9cef1..f89e8a1f 100644 --- a/upstream/opensuse-tumbleweed/man3/wmemcmp.3 +++ b/upstream/opensuse-tumbleweed/man3/wmemcmp.3 @@ -8,7 +8,7 @@ .\" Dinkumware C library reference http://www.dinkumware.com/ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" -.TH wmemcmp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wmemcmp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wmemcmp \- compare two arrays of wide-characters .SH LIBRARY @@ -17,7 +17,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "int wmemcmp(const wchar_t " s1 [. n "], const wchar_t " s2 [. n "], \ size_t " n ); .fi @@ -81,7 +81,6 @@ T{ .BR wmemcmp () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wmemcpy.3 b/upstream/opensuse-tumbleweed/man3/wmemcpy.3 index 155a3d55..808a6ae4 100644 --- a/upstream/opensuse-tumbleweed/man3/wmemcpy.3 +++ b/upstream/opensuse-tumbleweed/man3/wmemcpy.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wmemcpy 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wmemcpy 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wmemcpy \- copy an array of wide-characters .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wchar_t *wmemcpy(wchar_t " dest "[restrict ." n ], .BI " const wchar_t " src "[restrict ." n ], .BI " size_t " n ); @@ -35,12 +35,12 @@ wide characters from the array starting at .I src to the array starting at .IR dest . -.PP +.P The arrays may not overlap; use .BR wmemmove (3) to copy between overlapping arrays. -.PP +.P The programmer must ensure that there is room for at least .I n wide @@ -64,7 +64,6 @@ T{ .BR wmemcpy () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wmemmove.3 b/upstream/opensuse-tumbleweed/man3/wmemmove.3 index ff518ad8..aff1bea6 100644 --- a/upstream/opensuse-tumbleweed/man3/wmemmove.3 +++ b/upstream/opensuse-tumbleweed/man3/wmemmove.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wmemmove 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wmemmove 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wmemmove \- copy an array of wide-characters .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wchar_t *wmemmove(wchar_t " dest [. n "], const wchar_t " src [. n "], \ size_t " n ); .fi @@ -37,7 +37,7 @@ to the array starting at .IR dest . The arrays may overlap. -.PP +.P The programmer must ensure that there is room for at least .I n wide @@ -61,7 +61,6 @@ T{ .BR wmemmove () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wmemset.3 b/upstream/opensuse-tumbleweed/man3/wmemset.3 index 4ef4cf92..b4c4cb27 100644 --- a/upstream/opensuse-tumbleweed/man3/wmemset.3 +++ b/upstream/opensuse-tumbleweed/man3/wmemset.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wmemset 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wmemset 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wmemset \- fill an array of wide-characters with a constant wide character .SH LIBRARY @@ -18,7 +18,7 @@ Standard C library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "wchar_t *wmemset(wchar_t " wcs [. n "], wchar_t " wc ", size_t " n ); .fi .SH DESCRIPTION @@ -53,7 +53,6 @@ T{ .BR wmemset () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY diff --git a/upstream/opensuse-tumbleweed/man3/wordexp.3 b/upstream/opensuse-tumbleweed/man3/wordexp.3 index 554c2660..945befc7 100644 --- a/upstream/opensuse-tumbleweed/man3/wordexp.3 +++ b/upstream/opensuse-tumbleweed/man3/wordexp.3 @@ -3,7 +3,7 @@ .\" .\" SPDX-License-Identifier: GPL-2.0-or-later .\" -.TH wordexp 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wordexp 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wordexp, wordfree \- perform word expansion like a posix-shell .SH LIBRARY @@ -12,17 +12,17 @@ Standard C library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "int wordexp(const char *restrict " s ", wordexp_t *restrict " p \ ", int " flags ); .BI "void wordfree(wordexp_t *" p ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR wordexp (), .BR wordfree (): .nf @@ -62,7 +62,7 @@ is sometimes (depending on see below) used to indicate the number of initial elements in the .I we_wordv array that should be filled with NULLs. -.PP +.P The function .BR wordfree () frees the allocated memory again. @@ -80,7 +80,7 @@ parameters. In particular, there must not be any unescaped newline or |, &, ;, <, >, (, ), {, } characters outside a command substitution or parameter substitution context. -.PP +.P If the argument .I s contains a word that starts with an unquoted comment character #, @@ -93,10 +93,10 @@ variable substitution (replacing $FOO by the value of the environment variable FOO), command substitution (replacing $(command) or \`command\` by the output of command), arithmetic expansion, field splitting, wildcard expansion, quote removal. -.PP +.P The result of expansion of special parameters ($@, $*, $#, $?, $\-, $$, $!, $0) is unspecified. -.PP +.P Field splitting is done using the environment variable $IFS. If it is not set, the field separators are space, tab, and newline. .SS The output array @@ -195,7 +195,7 @@ T{ .BR wordfree () T} Thread safety MT-Safe .TE -.sp 1 +.P In the above table, .I utent in @@ -218,7 +218,7 @@ glibc 2.1. .SH EXAMPLES The output of the following example program is approximately that of "ls [a-c]*.c". -.PP +.P .\" SRC BEGIN (wordexp.c) .EX #include diff --git a/upstream/opensuse-tumbleweed/man3/wprintf.3 b/upstream/opensuse-tumbleweed/man3/wprintf.3 index 95854a33..6aaf3b48 100644 --- a/upstream/opensuse-tumbleweed/man3/wprintf.3 +++ b/upstream/opensuse-tumbleweed/man3/wprintf.3 @@ -9,7 +9,7 @@ .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html .\" ISO/IEC 9899:1999 .\" -.TH wprintf 3 2023-07-20 "Linux man-pages 6.05.01" +.TH wprintf 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME wprintf, fwprintf, swprintf, vwprintf, vfwprintf, vswprintf \- formatted wide-character output conversion @@ -20,25 +20,25 @@ Standard C library .nf .B #include .B #include -.PP +.P .BI "int wprintf(const wchar_t *restrict " format ", ...);" .BI "int fwprintf(FILE *restrict " stream , .BI " const wchar_t *restrict " format ", ...);" .BI "int swprintf(wchar_t " wcs "[restrict ." maxlen "], size_t " maxlen , .BI " const wchar_t *restrict " format ", ...);" -.PP +.P .BI "int vwprintf(const wchar_t *restrict " format ", va_list " args ); .BI "int vfwprintf(FILE *restrict " stream , .BI " const wchar_t *restrict " format ", va_list " args ); .BI "int vswprintf(wchar_t " wcs "[restrict ." maxlen "], size_t " maxlen , .BI " const wchar_t *restrict " format ", va_list " args ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P All functions shown above: .\" .BR wprintf (), .\" .BR fwprintf (), @@ -59,7 +59,7 @@ the wide-character equivalent of the family of functions. It performs formatted output of wide characters. -.PP +.P The .BR wprintf () and @@ -71,7 +71,7 @@ perform wide-character output to must not be byte oriented; see .BR fwide (3) for more information. -.PP +.P The .BR fwprintf () and @@ -83,7 +83,7 @@ perform wide-character output to must not be byte oriented; see .BR fwide (3) for more information. -.PP +.P The .BR swprintf () and @@ -97,7 +97,7 @@ room for at least wide characters at .IR wcs . -.PP +.P These functions are like the .BR printf (3), @@ -135,7 +135,7 @@ take a .I maxlen argument, but these functions do not return \-1 upon buffer overflow on Linux.) -.PP +.P The treatment of the conversion characters .B c and @@ -222,7 +222,6 @@ T{ .BR vswprintf () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS C11, POSIX.1-2008. .SH HISTORY @@ -235,7 +234,7 @@ on the .B LC_CTYPE category of the current locale. -.PP +.P If the .I format string contains non-ASCII wide characters, the program diff --git a/upstream/opensuse-tumbleweed/man3/wresize.3ncurses b/upstream/opensuse-tumbleweed/man3/wresize.3ncurses index c1949a7b..375de49e 100644 --- a/upstream/opensuse-tumbleweed/man3/wresize.3ncurses +++ b/upstream/opensuse-tumbleweed/man3/wresize.3ncurses @@ -1,5 +1,5 @@ .\"*************************************************************************** -.\" Copyright 2018-2022,2023 Thomas E. Dickey * +.\" Copyright 2018-2023,2024 Thomas E. Dickey * .\" Copyright 1998-2010,2015 Free Software Foundation, Inc. * .\" * .\" Permission is hereby granted, free of charge, to any person obtaining a * @@ -29,8 +29,8 @@ .\" .\" Author: Thomas E. Dickey 1996 .\" -.\" $Id: wresize.3x,v 1.34 2023/11/25 14:26:30 tom Exp $ -.TH wresize 3NCURSES 2023-11-25 "ncurses 6.4" "Library calls" +.\" $Id: wresize.3x,v 1.36 2024/03/16 15:35:01 tom Exp $ +.TH wresize 3NCURSES 2024-03-16 "ncurses 6.5" "Library calls" .SH NAME \fB\%wresize\fP \- resize a \fIcurses\fR window diff --git a/upstream/opensuse-tumbleweed/man3/xcrypt.3 b/upstream/opensuse-tumbleweed/man3/xcrypt.3 index 1a603274..d00642a6 100644 --- a/upstream/opensuse-tumbleweed/man3/xcrypt.3 +++ b/upstream/opensuse-tumbleweed/man3/xcrypt.3 @@ -9,7 +9,7 @@ .\" 3. xencrypt() a hexstring .\" to bad to be true :( .\" -.TH XCRYPT 3 2023-07-20 "Linux man-pages 6.05.01" +.TH XCRYPT 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME xencrypt, xdecrypt, passwd2des \- RFS password encryption .SH LIBRARY @@ -18,9 +18,9 @@ Standard C library .SH SYNOPSIS .nf .B "#include " -.PP +.P .BI "void passwd2des(char " *passwd ", char *" key ");" -.PP +.P .BI "int xencrypt(char *" secret ", char *" passwd ");" .BI "int xdecrypt(char *" secret ", char *" passwd ");" .fi @@ -28,7 +28,7 @@ Standard C library .BR WARNING : Do not use these functions in new code. They do not achieve any type of acceptable cryptographic security guarantees. -.PP +.P The function .BR passwd2des () takes a character string @@ -44,7 +44,7 @@ Both other functions described here use this function to turn their argument .I passwd into a DES key. -.PP +.P The .BR xencrypt () function takes the ASCII character string @@ -61,7 +61,7 @@ and outputs the result again in as a hex string .\" (over the alphabet 0123456789abcdef) of the same length. -.PP +.P The .BR xdecrypt () function performs the converse operation. @@ -87,7 +87,6 @@ T{ .BR xdecrypt () T} Thread safety MT-Safe .TE -.sp 1 .SH VERSIONS These functions are available since glibc 2.1. .SH BUGS diff --git a/upstream/opensuse-tumbleweed/man3/xdr.3 b/upstream/opensuse-tumbleweed/man3/xdr.3 index a3f9a027..9aa20c47 100644 --- a/upstream/opensuse-tumbleweed/man3/xdr.3 +++ b/upstream/opensuse-tumbleweed/man3/xdr.3 @@ -9,7 +9,7 @@ .\" .\" 2007-12-30, mtk, Convert function prototypes to modern C syntax .\" -.TH xdr 3 2023-07-20 "Linux man-pages 6.05.01" +.TH xdr 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME xdr \- library routines for external data representation .SH LIBRARY @@ -20,24 +20,24 @@ These routines allow C programmers to describe arbitrary data structures in a machine-independent fashion. Data for remote procedure calls are transmitted using these routines. -.PP +.P The prototypes below are declared in .I and make use of the following types: -.PP +.P .RS 4 .EX .BI "typedef int " bool_t ; -.PP +.P .BI "typedef bool_t (*" xdrproc_t ")(XDR *, void *,...);" .EE .RE -.PP +.P For the declaration of the .I XDR type, see .IR . -.PP +.P .nf .BI "bool_t xdr_array(XDR *" xdrs ", char **" arrp ", unsigned int *" sizep , .BI " unsigned int " maxsize ", unsigned int " elsize , @@ -63,7 +63,7 @@ is an XDR filter that translates between the array elements' C form, and their external representation. This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "bool_t xdr_bool(XDR *" xdrs ", bool_t *" bp ); .fi @@ -74,7 +74,7 @@ and their external representations. When encoding data, this filter produces values of either one or zero. This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "bool_t xdr_bytes(XDR *" xdrs ", char **" sp ", unsigned int *" sizep , .BI " unsigned int " maxsize ); @@ -91,7 +91,7 @@ string is located at address strings cannot be longer than .IR maxsize . This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "bool_t xdr_char(XDR *" xdrs ", char *" cp ); .fi @@ -106,7 +106,7 @@ consider .BR xdr_opaque (), or .BR xdr_string (). -.PP +.P .nf .BI "void xdr_destroy(XDR *" xdrs ); .fi @@ -120,7 +120,7 @@ Using after invoking .BR xdr_destroy () is undefined. -.PP +.P .nf .BI "bool_t xdr_double(XDR *" xdrs ", double *" dp ); .fi @@ -129,7 +129,7 @@ A filter primitive that translates between C .I double precision numbers and their external representations. This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "bool_t xdr_enum(XDR *" xdrs ", enum_t *" ep ); .fi @@ -138,7 +138,7 @@ A filter primitive that translates between C .IR enum s (actually integers) and their external representations. This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "bool_t xdr_float(XDR *" xdrs ", float *" fp ); .fi @@ -147,7 +147,7 @@ A filter primitive that translates between C .IR float s and their external representations. This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "void xdr_free(xdrproc_t " proc ", char *" objp ); .fi @@ -160,7 +160,7 @@ Note: the pointer passed to this routine is freed, but what it points to .I is freed (recursively). -.PP +.P .nf .BI "unsigned int xdr_getpos(XDR *" xdrs ); .fi @@ -173,7 +173,7 @@ which indicates the position of the XDR byte stream. A desirable feature of XDR streams is that simple arithmetic works with this number, although the XDR stream instances need not guarantee this. -.PP +.P .nf .BI "long *xdr_inline(XDR *" xdrs ", int " len ); .fi @@ -193,7 +193,7 @@ may return NULL (0) if it cannot allocate a contiguous piece of a buffer. Therefore the behavior may vary among stream instances; it exists for the sake of efficiency. -.PP +.P .nf .BI "bool_t xdr_int(XDR *" xdrs ", int *" ip ); .fi @@ -201,7 +201,7 @@ it exists for the sake of efficiency. A filter primitive that translates between C integers and their external representations. This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "bool_t xdr_long(XDR *" xdrs ", long *" lp ); .fi @@ -210,7 +210,7 @@ A filter primitive that translates between C .I long integers and their external representations. This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "void xdrmem_create(XDR *" xdrs ", char *" addr ", unsigned int " size , .BI " enum xdr_op " op ); @@ -231,7 +231,7 @@ determines the direction of the XDR stream (either .BR XDR_DECODE , or .BR XDR_FREE ). -.PP +.P .nf .BI "bool_t xdr_opaque(XDR *" xdrs ", char *" cp ", unsigned int " cnt ); .fi @@ -244,7 +244,7 @@ is the address of the opaque object, and .I cnt is its size in bytes. This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "bool_t xdr_pointer(XDR *" xdrs ", char **" objpp , .BI " unsigned int " objsize ", xdrproc_t " xdrobj ); @@ -260,7 +260,7 @@ Thus, can represent recursive data structures, such as binary trees or linked lists. -.PP +.P .nf .BI "void xdrrec_create(XDR *" xdrs ", unsigned int " sendsize , .BI " unsigned int " recvsize ", char *" handle , @@ -303,7 +303,7 @@ record boundary information. Also, XDR streams created with different .B xdr*_create APIs are not compatible for the same reason. -.PP +.P .nf .BI "bool_t xdrrec_endofrecord(XDR *" xdrs ", int " sendnow ); .fi @@ -315,7 +315,7 @@ and the output buffer is optionally written out if .I sendnow is nonzero. This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "bool_t xdrrec_eof(XDR *" xdrs ); .fi @@ -325,7 +325,7 @@ This routine can be invoked only on streams created by After consuming the rest of the current record in the stream, this routine returns one if the stream has no more input, zero otherwise. -.PP +.P .nf .BI "bool_t xdrrec_skiprecord(XDR *" xdrs ); .fi @@ -336,7 +336,7 @@ streams created by It tells the XDR implementation that the rest of the current record in the stream's input buffer should be discarded. This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "bool_t xdr_reference(XDR *" xdrs ", char **" pp ", unsigned int " size , .BI " xdrproc_t " proc ); @@ -361,7 +361,7 @@ Warning: this routine does not understand null pointers. Use .BR xdr_pointer () instead. -.PP +.P .nf .BI "xdr_setpos(XDR *" xdrs ", unsigned int " pos ); .fi @@ -379,7 +379,7 @@ and zero otherwise. Warning: it is difficult to reposition some types of XDR streams, so this routine may fail with one type of stream and succeed with another. -.PP +.P .nf .BI "bool_t xdr_short(XDR *" xdrs ", short *" sp ); .fi @@ -388,7 +388,7 @@ A filter primitive that translates between C .I short integers and their external representations. This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "void xdrstdio_create(XDR *" xdrs ", FILE *" file ", enum xdr_op " op ); .fi @@ -413,7 +413,7 @@ on the .I file stream, but never .BR fclose (3). -.PP +.P .nf .BI "bool_t xdr_string(XDR *" xdrs ", char **" sp ", unsigned int " maxsize ); .fi @@ -426,7 +426,7 @@ Note: .I sp is the address of the string's pointer. This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "bool_t xdr_u_char(XDR *" xdrs ", unsigned char *" ucp ); .fi @@ -435,7 +435,7 @@ A filter primitive that translates between .I unsigned C characters and their external representations. This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "bool_t xdr_u_int(XDR *" xdrs ", unsigned int *" up ); .fi @@ -444,7 +444,7 @@ A filter primitive that translates between C .I unsigned integers and their external representations. This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "bool_t xdr_u_long(XDR *" xdrs ", unsigned long *" ulp ); .fi @@ -453,7 +453,7 @@ A filter primitive that translates between C .I "unsigned long" integers and their external representations. This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "bool_t xdr_u_short(XDR *" xdrs ", unsigned short *" usp ); .fi @@ -462,7 +462,7 @@ A filter primitive that translates between C .I "unsigned short" integers and their external representations. This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "bool_t xdr_union(XDR *" xdrs ", enum_t *" dscmp ", char *" unp , .BI " const struct xdr_discrim *" choices , @@ -501,7 +501,7 @@ array, then the .I defaultarm procedure is called (if it is not NULL). Returns one if it succeeds, zero otherwise. -.PP +.P .nf .BI "bool_t xdr_vector(XDR *" xdrs ", char *" arrp ", unsigned int " size , .BI " unsigned int " elsize ", xdrproc_t " elproc ); @@ -524,7 +524,7 @@ is an XDR filter that translates between the array elements' C form, and their external representation. This routine returns one if it succeeds, zero otherwise. -.PP +.P .nf .B bool_t xdr_void(void); .fi @@ -532,7 +532,7 @@ This routine returns one if it succeeds, zero otherwise. This routine always returns one. It may be passed to RPC routines that require a function argument, where nothing is to be done. -.PP +.P .nf .BI "bool_t xdr_wrapstring(XDR *" xdrs ", char **" sp ); .fi @@ -594,10 +594,9 @@ T{ .BR xdr_wrapstring () T} Thread safety MT-Safe .TE -.sp 1 .SH SEE ALSO .BR rpc (3) -.PP +.P The following manuals: .RS eXternal Data Representation Standard: Protocol Specification diff --git a/upstream/opensuse-tumbleweed/man3/y0.3 b/upstream/opensuse-tumbleweed/man3/y0.3 index 16c20322..af9628f1 100644 --- a/upstream/opensuse-tumbleweed/man3/y0.3 +++ b/upstream/opensuse-tumbleweed/man3/y0.3 @@ -14,7 +14,7 @@ .\" Modified 2004-11-12 as per suggestion by Fabian Kreutz/AEB .\" 2008-07-24, mtk, created this page, based on material from j0.3. .\" -.TH y0 3 2023-07-20 "Linux man-pages 6.05.01" +.TH y0 3 2024-05-02 "Linux man-pages (unreleased)" .SH NAME y0, y0f, y0l, y1, y1f, y1l, yn, ynf, ynl \- Bessel functions of the second kind @@ -24,25 +24,25 @@ Math library .SH SYNOPSIS .nf .B #include -.PP +.P .BI "double y0(double " x ); .BI "double y1(double " x ); .BI "double yn(int " n ", double " x ); -.PP +.P .BI "float y0f(float " x ); .BI "float y1f(float " x ); .BI "float ynf(int " n ", float " x ); -.PP +.P .BI "long double y0l(long double " x ); .BI "long double y1l(long double " x ); .BI "long double ynl(int " n ", long double " x ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR y0 (), .BR y1 (), .BR yn (): @@ -51,7 +51,7 @@ Feature Test Macro Requirements for glibc (see || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _SVID_SOURCE || _BSD_SOURCE .fi -.PP +.P .BR y0f (), .BR y0l (), .BR y1f (), @@ -79,11 +79,11 @@ returns the Bessel function of .I x of the second kind of order .IR n . -.PP +.P The value of .I x must be positive. -.PP +.P The .BR y0f (), .BR y1f (), @@ -104,11 +104,11 @@ values. On success, these functions return the appropriate Bessel value of the second kind for .IR x . -.PP +.P If .I x is a NaN, a NaN is returned. -.PP +.P If .I x is negative, @@ -120,7 +120,7 @@ or .RB \- HUGE_VALL , respectively. (POSIX.1-2001 also allows a NaN return for this case.) -.PP +.P If .I x is 0.0, @@ -131,11 +131,11 @@ and the functions return or .RB \- HUGE_VALL , respectively. -.PP +.P If the result underflows, a range error occurs, and the functions return 0.0 -.PP +.P If the result overflows, a range error occurs, and the functions return @@ -150,7 +150,7 @@ See .BR math_error (7) for information on how to determine whether an error has occurred when calling these functions. -.PP +.P The following errors can occur: .TP Domain error: \fIx\fP is negative @@ -224,7 +224,6 @@ T{ .BR ynl () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS .TP .BR y0 () @@ -260,13 +259,13 @@ instead of and no .B FE_DIVBYZERO exception was raised. -.PP +.P Before glibc 2.17, .\" https://www.sourceware.org/bugzilla/show_bug.cgi?id=6808 did not set .I errno for "range error: result underflow". -.PP +.P In glibc 2.3.2 and earlier, .\" Actually, 2.3.2 is the earliest test result I have; so yet .\" to confirm if this error occurs only in glibc 2.3.2. -- cgit v1.2.3