[InterNetNews/inn] d7b2ec: Document libinn functions fdreserve, Fopen, Fclose

Julien ÉLIE noreply at github.com
Fri Aug 4 21:02:47 UTC 2023


  Branch: refs/heads/2.7
  Home:   https://github.com/InterNetNews/inn
  Commit: d7b2ec746f72cc99adcfc8e7bee5adff4e72ddca
      https://github.com/InterNetNews/inn/commit/d7b2ec746f72cc99adcfc8e7bee5adff4e72ddca
  Author: Julien ÉLIE <Julien-Elie at users.noreply.github.com>
  Date:   2023-08-04 (Fri, 04 Aug 2023)

  Changed paths:
    M doc/pod/libinn.pod
    M include/inn/libinn.h
    M lib/reservedfd.c

  Log Message:
  -----------
  Document libinn functions fdreserve, Fopen, Fclose

see #229


  Commit: 771abe94f5fca9c15ff222928743ad06ec0c68b5
      https://github.com/InterNetNews/inn/commit/771abe94f5fca9c15ff222928743ad06ec0c68b5
  Author: Julien ÉLIE <Julien-Elie at users.noreply.github.com>
  Date:   2023-08-04 (Fri, 04 Aug 2023)

  Changed paths:
    M doc/pod/inn.conf.pod
    M doc/pod/innfeed.conf.pod

  Log Message:
  -----------
  Fix wording about Solaris 11

Solaris 11 is 64-bit only.


  Commit: b564814f3c7279eb7f252bae1732edbd5b2aadb3
      https://github.com/InterNetNews/inn/commit/b564814f3c7279eb7f252bae1732edbd5b2aadb3
  Author: Julien ÉLIE <Julien-Elie at users.noreply.github.com>
  Date:   2023-08-04 (Fri, 04 Aug 2023)

  Changed paths:
    M lib/fdlimit.c

  Log Message:
  -----------
  lib/fdlimit.c: Fix the name of getfdlimit function

It was still named getfdcount in one #ifdef case.


  Commit: 7104776b544197ccb004bf60e22c2dd6de51b711
      https://github.com/InterNetNews/inn/commit/7104776b544197ccb004bf60e22c2dd6de51b711
  Author: Julien ÉLIE <Julien-Elie at users.noreply.github.com>
  Date:   2023-08-04 (Fri, 04 Aug 2023)

  Changed paths:
    M doc/pod/libinn.pod

  Log Message:
  -----------
  Document libinn functions getfdlimit, setfdlimit

see #229


  Commit: e4ba1ba3a9542bd1776e6010d77cd1533908d7bf
      https://github.com/InterNetNews/inn/commit/e4ba1ba3a9542bd1776e6010d77cd1533908d7bf
  Author: Julien ÉLIE <Julien-Elie at users.noreply.github.com>
  Date:   2023-08-04 (Fri, 04 Aug 2023)

  Changed paths:
    M doc/pod/libinn.pod
    M doc/pod/news.pod
    M include/inn/libinn.h
    M innd/cc.c
    M innd/chan.c
    M innd/innd.c
    M innd/lc.c
    M innd/rc.c
    M innd/site.c
    M innfeed/endpoint.c
    M lib/fdlimit.c
    M tests/innd/chan-t.c

  Log Message:
  -----------
  innd: Ensure channels do not have a large fd

innd no longer malfunctions nor throttles when the maximum number of
file descriptors supported by the system is reached.  It was happily
select'ing on those and corrupting data structures in memory.

Add a new function isvalidfd() in lib/fdlimit.c used by innfeed and
innd.  Call it before CHANcreate() and NCcreate() so that they do not
create a channel with a too high file descriptor.

Also limit the file descriptors to (sizeof(fd_set) * CHAR_BIT - 1) when
FD_SETSIZE is not set.

Thanks to Jesse Rehmer for the bug report.

close #273


  Commit: 90cb45b72b71efa7c61537984b7bb643e4eed60b
      https://github.com/InterNetNews/inn/commit/90cb45b72b71efa7c61537984b7bb643e4eed60b
  Author: Julien ÉLIE <Julien-Elie at users.noreply.github.com>
  Date:   2023-08-04 (Fri, 04 Aug 2023)

  Changed paths:
    M innd/chan.c

  Log Message:
  -----------
  Print a warning in CHANcreate, not returning NULL

Let's play safe, and not return NULL when the file descriptor is too
large.  The rest of the code currently does not handle such a response,
but ensures the file descriptor is valid before calling CHANcreate().

see #273


  Commit: ebfa50bba0eb064a55855899b7edcc542d8a4152
      https://github.com/InterNetNews/inn/commit/ebfa50bba0eb064a55855899b7edcc542d8a4152
  Author: Julien ÉLIE <Julien-Elie at users.noreply.github.com>
  Date:   2023-08-04 (Fri, 04 Aug 2023)

  Changed paths:
    M .clang-format
    M lib/Makefile
    M lib/asprintf.c
    M lib/getaddrinfo.c
    M lib/getnameinfo.c
    M lib/inet_aton.c
    M lib/inet_ntoa.c
    M lib/inet_ntop.c
    M lib/network.c
    M tests/innd/fakeinnd.c
    M tests/lib/asprintf-t.c
    M tests/lib/fdflag-t.c
    M tests/lib/getaddrinfo-t.c
    M tests/lib/getnameinfo-t.c
    M tests/lib/inet_aton-t.c
    M tests/lib/inet_ntoa-t.c
    M tests/lib/inet_ntop-t.c
    M tests/lib/network/addr-ipv4-t.c
    M tests/lib/network/addr-ipv6-t.c
    M tests/lib/network/client-t.c
    M tests/lib/network/server-t.c

  Log Message:
  -----------
  Include portable/system.h as first portable header

In a block of included headers, sort them with config.h first, followed
with portable/system.h and then the other headers in alphabetical
order.

Otherwise some defines in portable/system.h which could be used by
other headers may not be defined.  It notably affects the forced
FD_SETSIZE redefinition which was not taken into account when
portable/socket.h was included before portable/system.h.  This is now
fixed.

Thanks to Jesse Rehmer for the bug report.

see #273


  Commit: bfb8fb49e33034df343180364f1c92b5b48d9164
      https://github.com/InterNetNews/inn/commit/bfb8fb49e33034df343180364f1c92b5b48d9164
  Author: Julien ÉLIE <Julien-Elie at users.noreply.github.com>
  Date:   2023-08-04 (Fri, 04 Aug 2023)

  Changed paths:
    M contrib/authmysql.config
    M contrib/authmysql.in

  Log Message:
  -----------
  contrib/authmysql: Typos, proof-read of comments


  Commit: e919fad645d2244f63119354cef17f39f05e6727
      https://github.com/InterNetNews/inn/commit/e919fad645d2244f63119354cef17f39f05e6727
  Author: Julien ÉLIE <Julien-Elie at users.noreply.github.com>
  Date:   2023-08-04 (Fri, 04 Aug 2023)

  Changed paths:
    M doc/pod/install.pod
    M doc/pod/libinn_dbz.pod
    M doc/pod/makedbz.pod

  Log Message:
  -----------
  Improve documentation of the optimal history size

Mention the use of "makedbz -s size" in INSTALL.

Explain what the size defaults to, and how makedbz uses the size of the
previous history file to rebuild a new one.


  Commit: f7d111aadd5809dd12c9215f7aefe395c819f188
      https://github.com/InterNetNews/inn/commit/f7d111aadd5809dd12c9215f7aefe395c819f188
  Author: Julien ÉLIE <Julien-Elie at users.noreply.github.com>
  Date:   2023-08-04 (Fri, 04 Aug 2023)

  Changed paths:
    M doc/pod/news.pod
    M scripts/innreport.in

  Log Message:
  -----------
  innreport: Support high-precision timestamps

This format is now the default in some distributions (like Debian 12).
It should be supported by innreport.

close #276


Compare: https://github.com/InterNetNews/inn/compare/6cc8c5f7a849...f7d111aadd58


More information about the inn-committers mailing list