logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dnsjit.core.receiver - Non-system depended time specification structure definition

Authors And Contributors

       Jerry Lundström (DNS-OARC), Tomáš Křížek (CZ.NIC), Petr Špaček (ISC)

       Maintained by DNS-OARC

              https://www.dns-oarc.net/

Bugs

       For issues and feature requests please use:

              https://github.com/DNS-OARC/dnsjit/issues

       For question and help please use:

              admin@dns-oarc.net

dnsjit                                                1.5.0                              dnsjit.core.receiver(3)

Description

       Mainly used in C modules for a system independent time specification structure that can be passed to Lua.

   FunctionsTimespec:max_init()
              Return  a  new  structure  with  both  sec  and  nsec set to 2LL ^ 62, the maximum positive values
              according to Lua.

Name

       dnsjit.core.receiver - Non-system depended time specification structure definition

Synopsis

         typedef struct core_timespec {
             int64_t sec;
             int64_t nsec;
         } core_timespec_t;

   C
         #include "core/timespec.h"

   Lua
         require("dnsjit.core.timespec_h")

   Luafunctions
         local ts = require("dnsjit.core.timespec"):max_init()

See Also