forked from Imagelibrary/rtems
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
25 lines
407 B
C
25 lines
407 B
C
#if HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
|
|
/*
|
|
* Solaris doesn't include the gethostname call by default.
|
|
*/
|
|
#include <sys/utsname.h>
|
|
#include <sys/systeminfo.h>
|
|
|
|
#include <netdb.h>
|
|
|
|
/*
|
|
* PUBLIC: #ifndef HAVE_GETHOSTNAME
|
|
* PUBLIC: int gethostname __P((char *, int));
|
|
* PUBLIC: #endif
|
|
*/
|
|
int
|
|
gethostname(host, len)
|
|
char *host;
|
|
int len;
|
|
{
|
|
return (sysinfo(SI_HOSTNAME, host, len) == -1 ? -1 : 0);
|
|
}
|