summaryrefslogtreecommitdiffstats
path: root/c/src/exec
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/exec')
-rw-r--r--c/src/exec/libnetworking/ChangeLog4
-rw-r--r--c/src/exec/libnetworking/libc/rcmd.c18
2 files changed, 13 insertions, 9 deletions
diff --git a/c/src/exec/libnetworking/ChangeLog b/c/src/exec/libnetworking/ChangeLog
index a37fd48fbd..67a44d5c51 100644
--- a/c/src/exec/libnetworking/ChangeLog
+++ b/c/src/exec/libnetworking/ChangeLog
@@ -1,3 +1,7 @@
+2002-03-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * libc/rcmd.c: Replace __rtems w/ __rtems__.
+
2002-03-27 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac:
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;