summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore20
-rw-r--r--mb.c4
-rw-r--r--seekp.c1
-rw-r--r--serv.c5
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
diff --git a/mb.c b/mb.c
index 7ced833..5d3cb5f 100644
--- a/mb.c
+++ b/mb.c
@@ -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);
diff --git a/seekp.c b/seekp.c
index c97afcf..effab28 100644
--- a/seekp.c
+++ b/seekp.c
@@ -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>
diff --git a/serv.c b/serv.c
index 093cc12..3fb88ac 100644
--- a/serv.c
+++ b/serv.c
@@ -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;