From 339954714f69bbd395aa9bbe46850dcaa98e9f29 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Thu, 11 Jul 2024 13:49:50 +0200 Subject: convert form make to meson Add .editorconfig. Removed unused fallback definitions (for POSIX systems). --- man/INSTALL | 12 ------- man/meson.build | 53 ++++++++++++++++++++++++++++++ man/x.html | 99 --------------------------------------------------------- 3 files changed, 53 insertions(+), 111 deletions(-) delete mode 100644 man/INSTALL create mode 100644 man/meson.build delete mode 100644 man/x.html (limited to 'man') diff --git a/man/INSTALL b/man/INSTALL deleted file mode 100644 index 7281ed9..0000000 --- a/man/INSTALL +++ /dev/null @@ -1,12 +0,0 @@ -Imstallation of fehQlibs man pages -================================== - -a) It is expected that the fehQlibs are installed at /usr/local. -b) Check your manpath settings: $ manpath -c) You might want to compress the manpages: gzip *.3 -d) If available, the compressed or raw man pages can be simply copied to - - /usr/local/man/man3 or - - /usr/local/share/man/man3 - 'root' is required to complete this step. - -That's it! diff --git a/man/meson.build b/man/meson.build new file mode 100644 index 0000000..53c6a41 --- /dev/null +++ b/man/meson.build @@ -0,0 +1,53 @@ +qlibs_mans = [ + 'alloc.3', + 'buffer.3', + 'byte.3', + 'case.3', + 'cdbmake.3', + 'cdbread.3', + 'constmap.3', + 'dns.3', + 'dnsstub.3', + 'env.3', + 'error.3', + 'fd.3', + 'fmt.3', + 'getln.3', + 'getoptb.3', + 'iopause.3', + 'ip4.3', + 'ip6.3', + 'logmsg.3', + 'pathexec.3', + 'scan.3', + 'socket_bind.3', + 'socket_connect.3', + 'socket_if.3', + 'socket_info.3', + 'socket_recv.3', + 'socket_send.3', + 'socket_setup.3', + 'socket_tcp.3', + 'socket_udp.3', + 'str.3', + 'stralloc.3', + 'taia.3', + 'timeout.3', + 'timeoutconn.3', + 'wait.3', +] + +man_section = get_option('man_section') +renamed = [] + +foreach m : qlibs_mans + if m.endswith('.3') + renamed += m.substring(0, -1) + man_section + endif +endforeach + +install_data( + sources : qlibs_mans, + rename : renamed, + install_tag : 'man', + install_dir : get_option('mandir') / ('man' + man_section)) diff --git a/man/x.html b/man/x.html deleted file mode 100644 index 224edc1..0000000 --- a/man/x.html +++ /dev/null @@ -1,99 +0,0 @@ - - -
-
-SYNTAX
-       #include "logmsg.h"
-
-       int logmsg(const char *who, int ecode, unsigned int classs, char *msg)
-
-       err_sys(w,e) logmsg(w,e,FATAL,"")
-       err_sys_plus(w,e,m) logmsg(w,e,FATAL,m)
-       err_tmp(w,e) logmsg(w,e,WARN,"")
-       err_tmp_plus(w,e,m) logmsg(w,e,WARN,m)
-       err_int(w,e,c) logmsg(w,e,c,"")
-       err_int_plus(w,e,c,m) logmsg(w,e,c,m)
-       log_who(w,m) logmsg(w,0,LOG,m)
-       log_anon(m) logmsg("",0,LOG,m)
-
-DESCRIPTION
-       logmsg  prints  error,  warning, or info/logging messages to stderr and
-       potentially terminates the calling  program,  depending  on  the  class
-       given.   who  is the name of the program, ecode is an error code, class
-       determines the behavior upon call and msg is the logging message.  Read
-       "error.h" to learn more about related constants.
-
-ECODE
-       ecode is the error code and subject to be displayed in the log file and
-       potentially used upon exit if the class equals ERROR, FATAL, or DROP.
-
-       To avoid conflicts with syscall error codes, appplication defined error
-       codes  should  be negative.  The values -15, -100 and -111 are reserved
-       for backward compatibility.
-
-CLASS
-       The class parameter indicates how the  application  handles  exceptions
-       and displays the log message.
-
-       o   LOG, INFO, ALERT, WARN - display message and continue operation
-
-       o   DROP  - display warning message and continue while returning to the
-           calling program
-
-       o   USAGE, SYNTAX, FATAL, ERROR - display error message and exit appli‐
-           cation with error code
-
-       INFO,  ALERT, WARN, DROP, USAGE, and FATAL as well as ERROR display the
-       respective class string like warning: in the  log  message,  while  LOG
-       shows the log message only.
-
-       The  class FATAL should be used for system error codes only, rather ER‐
-       ROR and WARN shall be  set  in  conjunction  with  an  application  er‐
-       ror/warning.
-
-MESSAGE
-       If the custom message msg is given, it will be printed additionally.
-
-       Dan  Bernstein  used sets of strerr_dieY*() and strerr_warnY() messages
-       which explicitely determine the  message  and  behavior  class.   Other
-       classes were occasionally defined on demand, such als usage().
-
-       Kai  Peter introduced the errmsg facility in his qlibs including a sys‐
-       log compliant severity as second parameter.
-
-EXAMPLES
-       The macro definitions uses  w for the  calling  program,  e  for  error
-       code, c for class, and m for message.
-
-         #include "logmsg.h"
-         #define WHO "my_prog"
-
-         err_sys(WHO,errno);
-         err_sys_plus(WHO,-111,"additional message");
-
-         err_tmp("",-100);
-         err_tmp_plus("",errno,"additional message");
-
-         log_who(WHO,"message");
-
-       log_anon() is like log_who() but doesn't print the caller name.
-
-       An user defined message s can be build from multiple arguments by using
-       the B (build) macro:
-
-         err_sys_plus((errno),B("unable to run: ",*argv));
-
-SEE ALSO
-       syslog(3)
-
-
-
-                                       3                        qlibs:(logmsg)
-
-
-
-Man(1) output converted with -man2html -
- - -- cgit v1.2.3