1
1
--------
1. malloc casts to the right pointers
2. function parameter casts in the components (eg., recv requires a (char *) typecast 
   else cL compiler barfs)
3. added my own errno indirection. this is only in oob/tcp module. ompi_errno is #defined
   ro errno in unix land and to a function ompi_get_error which returns the equivalent
   error code.
4. implemented our own fcntl to prevent spaghetti coding. this currently only takes
   F_GETFL and F_SETFL arguments, does nothing on F_GETFL and sets the nonblocking 
   option on F_SETFL
5. Moved some extern declarations to global scope since the CL compiler does not do 
   the right things if they are declared and used in static inline functions.
6. Protection around some header files. changed sys/errno to errno.
7. defined in_proto_t (unsigned uint16_t) to DWORD ... comments are welcome

This commit was SVN r3393.
Этот коммит содержится в:
Prabhanjan Kambadur 2004-10-28 18:12:32 +00:00
родитель 6a82494d28
Коммит 0fbed91d96

Просмотреть файл

@ -32,17 +32,11 @@
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_QUEUE_H
#include <sys/queue.h>
#endif
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#ifdef HAVE_ERR_H
#include <err.h>
#endif
#ifdef USE_LOG
#include "log.h"
@ -51,9 +45,9 @@
#define log_error(x) perror(x)
#endif
#include "event/event.h"
#include "event/compat/sys/queue.h"
#include "event/compat/err.h"
#include "event/event.h"
extern struct ompi_event_list ompi_timequeue;
extern struct ompi_event_list ompi_eventqueue;