-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathosheaders.h
46 lines (39 loc) · 869 Bytes
/
osheaders.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef _OSHEADERS_H_
#define _OSHEADERS_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//#include <sstream>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <semaphore.h>
#include <pthread.h>
#include <sys/wait.h>
#include <signal.h>
#include <time.h>
#include <ctype.h>
#include <sys/time.h>
#define MAXCHILD 30
#define MAXSIZE 1000
#define MAXLEN 10000
#define MILLION 1000000
#define BILLION 1000000000
void Decompression(int ,int );
void Compression(int ,int );
void writefile(int ,int );
void Compress(char *,int);
void Forking();
void PipeCompress();
void PipeWrite();
void FileWrite();
char* Parsing(int);
int parseLine(char *);
int parseline(char *,char **);
#endif /*OSHEADER_H_*/