diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-11-03 19:38:36 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-11-03 19:38:36 +0000 |
commit | 2899b719ae11e4ae18fef3995cdb84c64ac60bc3 (patch) | |
tree | 79e1f3baf4b3041111bbecf4dc29e29f2c6038f2 /sys/man/2 | |
parent | 2d56837b2fabf6a7cc11f02b51f20a1e35128c57 (diff) |
libndb: move mkptrname() into libndb to avoid duplication
Diffstat (limited to 'sys/man/2')
-rw-r--r-- | sys/man/2/ndb | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/sys/man/2/ndb b/sys/man/2/ndb index ac805bbe8..4df54857d 100644 --- a/sys/man/2/ndb +++ b/sys/man/2/ndb @@ -1,6 +1,6 @@ .TH NDB 2 .SH NAME -ndbopen, ndbcat, ndbchanged, ndbclose, ndbreopen, ndbsearch, ndbsnext, ndbgetvalue, ndbfree, ipattr, ndbgetipaddr, ndbipinfo, csipinfo, ndbhash, ndbparse, csgetvalue, ndbfindattr, dnsquery, ndbdiscard, ndbconcatenate, ndbreorder, ndbsubstitute, ndbdedup \- network database +ndbopen, ndbcat, ndbchanged, ndbclose, ndbreopen, ndbsearch, ndbsnext, ndbgetvalue, ndbfree, ipattr, mkptrname, ndbgetipaddr, ndbipinfo, csipinfo, ndbhash, ndbparse, csgetvalue, ndbfindattr, dnsquery, ndbdiscard, ndbconcatenate, ndbreorder, ndbsubstitute, ndbdedup \- network database .SH SYNOPSIS .B #include <u.h> .br @@ -47,6 +47,9 @@ char* csgetvalue(char *netroot, char *attr, char *val, char* ipattr(char *name) .PP .B +void mkptrname(char *ip, char *rip, int rlen); +.PP +.B Ndbtuple* ndbgetipaddr(Ndb *db, char *sys); .PP .B @@ -236,6 +239,26 @@ Internet number system name .RE .PP +.I Mkptrname +converts the address string +.I ip +to a reverse lookup domain-name, returned in +.IR rip . +The +.I rlen +argument gives the maximum size of the +.I rip +buffer including the NUL-terminator. +If +.I ip +already is a reverse lookup domain-name +or has invalid ip address syntax, +then +.I ip +is copied into +.I rip +verbatim. +.PP .I Ndbgetipaddr looks in .I db |