Samba 3.0.22 Porting by Vidya Sagar

20
#else
#define MAX_SOCKET_IO_LEN SSIZE_MAX
#endif
/* File: ./lib/system.c */
/*******************************************************************
A sendto wrapper that will deal with EINTR.
********************************************************************/
ssize_t sys_sendto(int s, const void *msg, size_t len, int flags, const struct
sockaddr *to, socklen_t tolen)
{
ssize_t ret;
do {
#ifdef mpeix /* Vidya Sagar: Socket Buffer size on MPE/iX is 30000 */
ret = sendto(s, msg, len > MAX_SOCKET_IO_LEN ? MAX_SOCKET_IO_LEN
:len , flags, to, tolen);
#else
ret = sendto(s, msg, len, flags, to, tolen);
#endif /* mpeix */
} while (ret == -1 && errno == EINTR);
return ret;
}
The other known issues/limitations should also be searched and changed with the above mentioned strategy.
3.7 Build Prototypes
In order to incorporate better portability, some portable applications do not include the prototypes of their internal
routines into the downloadable source tree. The prototypes (some times called headers) are generated on target
machine before final build of the application. Such applications tells programmer through file README or
INSTALL how to build prototypes. Samba is one such application. Prototypes are built in Samba by invoking make
protoin the POSIX shell.
shell/iX> pwd
/SAMBA/SMB3022/src/samba-3.0.22-mpe/source
shell/iX> make proto
Making Prototypes...
make delheaders; \
make smbd/build_options.c; \
make include/proto.h; \
make include/build_env.h; \
make include/wrepld_proto.h; \
make nsswitch/winbindd_proto.h; \
.
.
.
creating /SAMBA/SMB3022/src/samba-3.0.22-mpe/source/client/client_proto.h
make[1]: Leaving directory `/SAMBA/SMB3022/src/samba-3.0.22-mpe/source'
make[1]: Entering directory `/SAMBA/SMB3022/src/samba-3.0.22-mpe/source'
creating /SAMBA/SMB3022/src/samba-3.0.22-mpe/source/utils/ntlm_auth_proto.h
make[1]: Leaving directory `/SAMBA/SMB3022/src/samba-3.0.22-mpe/source'
make[1]: Entering directory `/SAMBA/SMB3022/src/samba-3.0.22-mpe/source'
creating /SAMBA/SMB3022/src/samba-3.0.22-mpe/source/utils/net_proto.h
make[1]: Leaving directory `/SAMBA/SMB3022/src/samba-3.0.22-mpe/source'
make[1]: Entering directory `/SAMBA/SMB3022/src/samba-3.0.22-mpe/source'
creating /SAMBA/SMB3022/src/samba-3.0.22-mpe/source/utils/passwd_proto.h
make[1]: Leaving directory `/SAMBA/SMB3022/src/samba-3.0.22-mpe/source'