Cisco Cisco WAP200 Wireless-G Access Point - PoE Rangebooster 릴리즈 노트
![Cisco](https://files.manualsbrain.com/attachments/7380d0050044647c30f5c24bbbf5d0c0b6d9bb84/common/fit/150/50/faa183d287233c52228cfea3dbc2a127fe780f60564fcb0955d9c3d1cd23/brand_logo.png)
78-21112-01 Open Source Used In WAP200 2.0.6.x
105
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <string.h>
#include <config/autoconf.h>
int
main(int argc, char *argv[])
{
int fdi;
int fdo;
unsigned int pos;
unsigned int len;
unsigned int count;
char *buf;
count = 0;
if (argc < 3) {
fprintf(stderr,"usage: %s fromfile tofile\n", argv[0]);
exit(1);
}
if ((fdi = open(argv[1],O_RDONLY)) < 0) {
fprintf(stderr,"Can't open compressed file %s\n",argv[1]);
exit(2);
}
if ((fdo = open(argv[2],O_WRONLY | O_CREAT | O_TRUNC, 0666)) < 0) {
fprintf(stderr,"Can't open expanded file %s\n",argv[2]);
close(fdi);
exit(3);
}
if (!(buf = malloc(2048))) {
fprintf(stderr,"can't allocate memory\n");
close(fdi);
close(fdo);
exit(10);
}
/* Prefill */
read(fdi,&len,4);
len = ntohl(len);
#ifndef CONFIG_USER_INIT_EXPAND_NOZEROES
memset(buf, 0, 2048);