projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ancora reindicizzazioni, piĆ¹ CLONE_VFORK, CLONE_VM, CLONE_PTRACED
[gapil.git]
/
sources
/
gethost.c
diff --git
a/sources/gethost.c
b/sources/gethost.c
index da2a6c96cc284691bcafce3dc2a169cb74c85f36..c269def1e9c3187503398433140201c00c0bd59f 100644
(file)
--- a/
sources/gethost.c
+++ b/
sources/gethost.c
@@
-1,6
+1,6
@@
/* gethost.c
*
/* gethost.c
*
- * Copyright (C) 200
1
Simone Piccardi
+ * Copyright (C) 200
5
Simone Piccardi
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-26,8
+26,6
@@
*
* Usage: gethost -h give all info's
*
*
* Usage: gethost -h give all info's
*
- * $Id: gethost.c,v 1.3 2003/05/02 09:55:14 piccardi Exp $
- *
****************************************************************/
/*
* Include needed headers
****************************************************************/
/*
* Include needed headers
@@
-37,19
+35,25
@@
#include <stdlib.h> /* C standard library */
#include <unistd.h> /* unix standard library */
#include <stdio.h> /* standard I/O library */
#include <stdlib.h> /* C standard library */
#include <unistd.h> /* unix standard library */
#include <stdio.h> /* standard I/O library */
-#include <string.h> /*
string functions
*/
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netdb.h>
+#include <string.h> /*
C strings library
*/
+#include <sys/types.h>
/* primitive system data types */
+#include <sys/socket.h>
/* socket constants, types and functions */
+#include <netdb.h>
/* C resolver library */
-/* Help printing routine */
-void usage(void);
-int main(int argc, char *argv[])
-{
/*
/*
- *
Variables definition
+ *
Function and globals definitions
*/
*/
+void usage(void); /* Help printing routine */
+
+/*
+ * Main program
+ */
+int main(int argc, char *argv[])
+{
+ /*
+ * Variables definition
+ */
int i;
int use = 0;
struct hostent *host;
int i;
int use = 0;
struct hostent *host;