28 {
"http", { {
"tcp", 80,
"http", {
"www",
"www-http" } },
31 {
"smtp", { {
"tcp", 25,
"smtp", {
"mail" } } } },
32 {
"mail", { {
"tcp", 25,
"smtp", {
"mail" } } } },
33 {
"microsoft-ds", { {
"tcp", 445,
"microsoft-ds", },
34 {
"udp", 445,
"microsoft-ds", } } },
35 {
"cmd", { {
"tcp", 514,
"cmd", {
"shell" } },
37 {
"syslog", { {
"udp", 514,
"syslog" },
39 {
"directplaysrvr", { {
"tcp", 47624,
"directplaysrvr" },
40 {
"udp", 47624,
"directplaysrvr" } } },
49 ok(Serv ==
NULL,
"Serv = %p\n", Serv);
72 ok(Serv ==
NULL,
"[%s, %s] getservbyname succeeded unexpectedly\n",
80 ok(Serv !=
NULL,
"[%s, %s] getservbyname failed with %d\n",
91 "[%s, %s] s_name = '%s', expected '%s'\n",
101 ok(0,
"[%s, %s] Too many aliases\n",
108 "[%s, %s] getservbyname did not return expected alias '%s'\n",
112 if (
Tests[
i].Protos[ExpectProto].Aliases[Alias] ==
NULL)
115 "[%s, %s] getservbyname returned additional alias '%s'\n",
121 "[%s, %s] Got alias '%s', expected '%s'\n",
130 ok(!
strcmp(Serv->
s_proto,
Tests[
i].Protos[ExpectProto].Proto),
"[%s, %s] s_proto = '%s', expected '%s'\n",
133 }
while (
Tests[
i].Protos[Proto++].Proto !=
NULL);
int strcmp(const char *String1, const char *String2)
#define ok_dec(expression, result)
INT WINAPI WSAStartup(IN WORD wVersionRequested, OUT LPWSADATA lpWSAData)
PSERVENT WSAAPI getservbyname(IN const char FAR *name, IN const char FAR *proto)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define WSANOTINITIALISED
int PASCAL FAR WSAGetLastError(void)
int PASCAL FAR WSACleanup(void)