summaryrefslogtreecommitdiff
path: root/Libraries/LibC/netdb.h
AgeCommit message (Collapse)Author
2020-04-18LibC: getprotoent() family of functionsRead H
This commit implements the getprotoent() family of functions, including getprotoent() getprotobyname() getprotobynumber() setprotoent() endprotoent() This implementation is very similar to the getservent family of functions, which is what led to the discovery of a bug in the process of reading the aliases. The ByteBuffer for the alias strings didn't include a null terminating character, this was fixed for both the protoent and servent family of functions by appending a null character to the end of them before adding them to the alias lists.
2020-04-16LibC: Service entry APIRead H
This commit implements the getservent family of functions: getservent() setservent() endservent() getservbyname() getservbyport() for accessing the /etc/services file. This commit has addressed the issues identified by utilizing more C++ structures, addressing unchecked error possibilities, strncpy bounds checking, and other issues found in the initial pull request
2020-02-20LibC: Add h_errno and stub out getservbyname()Andreas Kling
2020-01-18Meta: Add license header to source filesAndreas Kling
As suggested by Joshua, this commit adds the 2-clause BSD license as a comment block to the top of every source file. For the first pass, I've just added myself for simplicity. I encourage everyone to add themselves as copyright holders of any file they've added or modified in some significant way. If I've added myself in error somewhere, feel free to replace it with the appropriate copyright holder instead. Going forward, all new source files should include a license header.
2019-07-04Libraries: Create top level directory for libraries.Andreas Kling
Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.