extern unsigned char buf[]; extern unsigned int buf_size;