summaryrefslogtreecommitdiffstats
path: root/c/src/exec/libnetworking/libc/rcmd.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-04-01 13:27:46 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-04-01 13:27:46 +0000
commit51301198fb744ae3d5bf0268b4d6098d468f3959 (patch)
tree46dc914a25f48241fdf95ec987121ef72a58f163 /c/src/exec/libnetworking/libc/rcmd.c
parent88f3393b2a6f8f48bfcf6bfbd84c3b0d86253191 (diff)
downloadrtems-51301198fb744ae3d5bf0268b4d6098d468f3959.tar.bz2
2002-03-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* libc/rcmd.c: Replace __rtems w/ __rtems__.
Diffstat (limited to 'c/src/exec/libnetworking/libc/rcmd.c')
-rw-r--r--c/src/exec/libnetworking/libc/rcmd.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/c/src/exec/libnetworking/libc/rcmd.c b/c/src/exec/libnetworking/libc/rcmd.c
index b934fae5a5..8dd4d0cbe2 100644
--- a/c/src/exec/libnetworking/libc/rcmd.c
+++ b/c/src/exec/libnetworking/libc/rcmd.c
@@ -62,12 +62,12 @@ static char sccsid[] = "@(#)rcmd.c 8.3 (Berkeley) 3/26/94";
#define max(a, b) ((a > b) ? a : b)
-#ifdef __rtems
+#ifdef __rtems__
int rresvport();
#define bzero(a,s) memset((a),0,(s))
#define bcmp memcmp
#define bcopy(s,d,i) memcpy(d,s,i)
-#else /* __rtems */
+#else /* __rtems__ */
extern int innetgr __P(( const char *, const char *, const char *, const char * ));
@@ -86,7 +86,7 @@ rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
struct hostent *hp;
struct sockaddr_in sin, from;
fd_set reads;
-#ifndef __rtems
+#ifndef __rtems__
long oldmask;
#endif
pid_t pid;
@@ -100,7 +100,7 @@ rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
return (-1);
}
*ahost = hp->h_name;
-#ifndef __rtems
+#ifndef __rtems__
oldmask = sigblock(sigmask(SIGURG));
#endif
for (timo = 1, lport = IPPORT_RESERVED - 1;;) {
@@ -112,7 +112,7 @@ rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
else
(void)fprintf(stderr, "rcmd: socket: %s\n",
strerror(errno));
-#ifndef __rtems
+#ifndef __rtems__
sigsetmask(oldmask);
#endif
return (-1);
@@ -149,7 +149,7 @@ rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
continue;
}
(void)fprintf(stderr, "%s: %s\n", hp->h_name, strerror(errno));
-#ifndef __rtems
+#ifndef __rtems__
sigsetmask(oldmask);
#endif
return (-1);
@@ -239,7 +239,7 @@ again:
}
goto bad2;
}
-#ifndef __rtems
+#ifndef __rtems__
sigsetmask(oldmask);
#endif
return (s);
@@ -248,7 +248,7 @@ bad2:
(void)close(*fd2p);
bad:
(void)close(s);
-#ifndef __rtems
+#ifndef __rtems__
sigsetmask(oldmask);
#endif
return (-1);
@@ -286,7 +286,7 @@ rresvport(alport)
return (s);
}
-#ifndef __rtems
+#ifndef __rtems__
int __check_rhosts_file = 1;
char *__rcmd_errstr;