Mercurial > hg > toybox
view lib/net.c @ 1366:4cf313dbd885 draft
Cleanup read_password(), factor out set_terminal(), fix salt bug (des wants the salt raw, no $ at the beginning).
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 28 Jun 2014 20:02:01 -0500 |
parents | e11684e3bbc5 |
children |
line wrap: on
line source
#include "toys.h" int xsocket(int domain, int type, int protocol) { int fd = socket(domain, type, protocol); if (fd < 0) perror_exit("socket %x %x", type, protocol); return fd; }