|
@@ -1,5 +1,6 @@
|
|
|
/*
|
|
/*
|
|
|
* Copyright (c) 2005 MontaVista Software, Inc.
|
|
* Copyright (c) 2005 MontaVista Software, Inc.
|
|
|
|
|
+ * Copyright (c) 2006 Sun Microsystems, Inc.
|
|
|
*
|
|
*
|
|
|
* All rights reserved.
|
|
* All rights reserved.
|
|
|
*
|
|
*
|
|
@@ -29,26 +30,7 @@
|
|
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
|
|
* THE POSSIBILITY OF SUCH DAMAGE.
|
|
* THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
*/
|
|
*/
|
|
|
-#include <assert.h>
|
|
|
|
|
-#include <sys/mman.h>
|
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/types.h>
|
|
|
-#include <sys/stat.h>
|
|
|
|
|
-#include <sys/socket.h>
|
|
|
|
|
-#include <netdb.h>
|
|
|
|
|
-#include <sys/un.h>
|
|
|
|
|
-#include <sys/ioctl.h>
|
|
|
|
|
-#include <netinet/in.h>
|
|
|
|
|
-#include <arpa/inet.h>
|
|
|
|
|
-#include <unistd.h>
|
|
|
|
|
-#include <fcntl.h>
|
|
|
|
|
-#include <stdlib.h>
|
|
|
|
|
-#include <stdio.h>
|
|
|
|
|
-#include <errno.h>
|
|
|
|
|
-#include <signal.h>
|
|
|
|
|
-#include <sched.h>
|
|
|
|
|
-#include <time.h>
|
|
|
|
|
-#include <sys/time.h>
|
|
|
|
|
-#include <sys/poll.h>
|
|
|
|
|
|
|
|
|
|
#define swab16(x) \
|
|
#define swab16(x) \
|
|
|
({ \
|
|
({ \
|