diff options
-rw-r--r-- | .gitignore | 20 | ||||
-rw-r--r-- | mb.c | 4 | ||||
-rw-r--r-- | seekp.c | 1 | ||||
-rw-r--r-- | serv.c | 5 |
4 files changed, 29 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b0edb98 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +asc +bin2db +cfile +cfile8 +ctime +err +hex +insertbom +int2bin +mb +num +pathconf +purge +sc2001 +seekp +serv +sig +sock +strlen +total @@ -2,6 +2,10 @@ */ #include <stdlib.h> #include <stdio.h> +#include <string.h> + +#include <unistd.h> +#include <sys/stat.h> void Process(FILE *fp, const char *p); @@ -6,6 +6,7 @@ #include <errno.h> #include <string.h> +#include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> @@ -4,6 +4,9 @@ #include <stdio.h> #include <string.h> #include <errno.h> +#include <ctype.h> + +#include <unistd.h> #include <sys/types.h> @@ -95,7 +98,7 @@ int main(int argc, char *argv[]) struct sockaddr_in addr; char buff[1024]; int len; - int addrlen; + socklen_t addrlen; int sock_fd; int connect_fd; |