Artifact 6e481a59d5ec4798ba8b6c54a58bcbe5074f05ba:
- File gethostname.h — part of check-in [0d7a0b3376] at 2006-03-12 02:10:44 on branch trunk — Added a "gethostname()" replacement Added "backuppcd_notify()" and related code. No authentication is currently present. Created a small example "notify-server" in Tcl. This server just manipulates the "/etc/hosts" file. (user: rkeene size: 327)
#ifndef _REPL_GETHOSTBYNAME_H #define _REPL_GETHOSTBYNAME_H #include "compat.h" #ifndef HOST_NAME_MAX # ifdef _USE_WIN32_ # ifdef MAX_COMPUTERNAME_LENGTH # define HOST_NAME_MAX MAX_COMPUTERNAME_LENGTH # endif # else # define HOST_NAME_MAX 255 # endif #endif int gethostname(char *name, size_t len); #endif