Changeset d7478774 in rtems
- Timestamp:
- 03/20/02 22:08:06 (21 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- df6348bb
- Parents:
- 3e0c94f
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/libnetworking/ChangeLog
r3e0c94f rd7478774 1 2001-03-20 Till Straumann <strauman@SLAC.Stanford.EDU> 2 3 * PR158 4 * libc/rcmd.c, libc/rcmd.c: Enable the rcmd() library call by 5 commenting out the parts that deal with signals. This enables 6 RTEMS to 'rsh' command to a server connecting fd to remote stdio. 7 The 'server-side' parts of this file which deal with authentication 8 are disabled since they are not needed. 9 1 10 2002-02-27 Ilya Alexeev <ilya@continuum.ru> 2 11 -
c/src/exec/libnetworking/libc/Makefile.am
r3e0c94f rd7478774 16 16 ns_parse.c ns_print.c ns_ttl.c res_comp.c res_data.c res_debug.c \ 17 17 res_init.c res_mkquery.c res_mkupdate.c res_query.c res_send.c \ 18 res_stubs.c res_update.c strsep.c 18 res_stubs.c res_update.c strsep.c rcmd.c 19 19 C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o) 20 20 -
c/src/exec/libnetworking/libc/rcmd.c
r3e0c94f rd7478774 60 60 #endif 61 61 62 63 #define max(a, b) ((a > b) ? a : b) 64 65 #ifdef __rtems 66 int rresvport(); 67 #define bzero(a,s) memset((a),0,(s)) 68 #define bcmp memcmp 69 #define bcopy(s,d,i) memcpy(d,s,i) 70 #else /* __rtems */ 71 62 72 extern int innetgr __P(( const char *, const char *, const char *, const char * )); 63 64 #define max(a, b) ((a > b) ? a : b)65 73 66 74 int __ivaliduser __P((FILE *, u_long, const char *, const char *)); 67 75 static int __icheckhost __P((u_long, char *)); 76 77 #endif 68 78 69 79 int … … 77 87 struct sockaddr_in sin, from; 78 88 fd_set reads; 89 #ifndef __rtems 79 90 long oldmask; 91 #endif 80 92 pid_t pid; 81 93 int s, lport, timo; … … 89 101 } 90 102 *ahost = hp->h_name; 103 #ifndef __rtems 91 104 oldmask = sigblock(sigmask(SIGURG)); 105 #endif 92 106 for (timo = 1, lport = IPPORT_RESERVED - 1;;) { 93 107 s = rresvport(&lport); … … 99 113 (void)fprintf(stderr, "rcmd: socket: %s\n", 100 114 strerror(errno)); 115 #ifndef __rtems 101 116 sigsetmask(oldmask); 117 #endif 102 118 return (-1); 103 119 } … … 134 150 } 135 151 (void)fprintf(stderr, "%s: %s\n", hp->h_name, strerror(errno)); 152 #ifndef __rtems 136 153 sigsetmask(oldmask); 154 #endif 137 155 return (-1); 138 156 } … … 222 240 goto bad2; 223 241 } 242 #ifndef __rtems 224 243 sigsetmask(oldmask); 244 #endif 225 245 return (s); 226 246 bad2: … … 229 249 bad: 230 250 (void)close(s); 251 #ifndef __rtems 231 252 sigsetmask(oldmask); 253 #endif 232 254 return (-1); 233 255 } … … 265 287 } 266 288 289 #ifndef __rtems 267 290 int __check_rhosts_file = 1; 268 291 char *__rcmd_errstr; … … 519 542 return (0); 520 543 } 544 #endif -
c/src/libnetworking/ChangeLog
r3e0c94f rd7478774 1 2001-03-20 Till Straumann <strauman@SLAC.Stanford.EDU> 2 3 * PR158 4 * libc/rcmd.c, libc/rcmd.c: Enable the rcmd() library call by 5 commenting out the parts that deal with signals. This enables 6 RTEMS to 'rsh' command to a server connecting fd to remote stdio. 7 The 'server-side' parts of this file which deal with authentication 8 are disabled since they are not needed. 9 1 10 2002-02-27 Ilya Alexeev <ilya@continuum.ru> 2 11 -
c/src/libnetworking/libc/Makefile.am
r3e0c94f rd7478774 16 16 ns_parse.c ns_print.c ns_ttl.c res_comp.c res_data.c res_debug.c \ 17 17 res_init.c res_mkquery.c res_mkupdate.c res_query.c res_send.c \ 18 res_stubs.c res_update.c strsep.c 18 res_stubs.c res_update.c strsep.c rcmd.c 19 19 C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o) 20 20 -
c/src/libnetworking/libc/rcmd.c
r3e0c94f rd7478774 60 60 #endif 61 61 62 63 #define max(a, b) ((a > b) ? a : b) 64 65 #ifdef __rtems 66 int rresvport(); 67 #define bzero(a,s) memset((a),0,(s)) 68 #define bcmp memcmp 69 #define bcopy(s,d,i) memcpy(d,s,i) 70 #else /* __rtems */ 71 62 72 extern int innetgr __P(( const char *, const char *, const char *, const char * )); 63 64 #define max(a, b) ((a > b) ? a : b)65 73 66 74 int __ivaliduser __P((FILE *, u_long, const char *, const char *)); 67 75 static int __icheckhost __P((u_long, char *)); 76 77 #endif 68 78 69 79 int … … 77 87 struct sockaddr_in sin, from; 78 88 fd_set reads; 89 #ifndef __rtems 79 90 long oldmask; 91 #endif 80 92 pid_t pid; 81 93 int s, lport, timo; … … 89 101 } 90 102 *ahost = hp->h_name; 103 #ifndef __rtems 91 104 oldmask = sigblock(sigmask(SIGURG)); 105 #endif 92 106 for (timo = 1, lport = IPPORT_RESERVED - 1;;) { 93 107 s = rresvport(&lport); … … 99 113 (void)fprintf(stderr, "rcmd: socket: %s\n", 100 114 strerror(errno)); 115 #ifndef __rtems 101 116 sigsetmask(oldmask); 117 #endif 102 118 return (-1); 103 119 } … … 134 150 } 135 151 (void)fprintf(stderr, "%s: %s\n", hp->h_name, strerror(errno)); 152 #ifndef __rtems 136 153 sigsetmask(oldmask); 154 #endif 137 155 return (-1); 138 156 } … … 222 240 goto bad2; 223 241 } 242 #ifndef __rtems 224 243 sigsetmask(oldmask); 244 #endif 225 245 return (s); 226 246 bad2: … … 229 249 bad: 230 250 (void)close(s); 251 #ifndef __rtems 231 252 sigsetmask(oldmask); 253 #endif 232 254 return (-1); 233 255 } … … 265 287 } 266 288 289 #ifndef __rtems 267 290 int __check_rhosts_file = 1; 268 291 char *__rcmd_errstr; … … 519 542 return (0); 520 543 } 544 #endif -
cpukit/libnetworking/ChangeLog
r3e0c94f rd7478774 1 2001-03-20 Till Straumann <strauman@SLAC.Stanford.EDU> 2 3 * PR158 4 * libc/rcmd.c, libc/rcmd.c: Enable the rcmd() library call by 5 commenting out the parts that deal with signals. This enables 6 RTEMS to 'rsh' command to a server connecting fd to remote stdio. 7 The 'server-side' parts of this file which deal with authentication 8 are disabled since they are not needed. 9 1 10 2002-02-27 Ilya Alexeev <ilya@continuum.ru> 2 11 -
cpukit/libnetworking/libc/Makefile.am
r3e0c94f rd7478774 16 16 ns_parse.c ns_print.c ns_ttl.c res_comp.c res_data.c res_debug.c \ 17 17 res_init.c res_mkquery.c res_mkupdate.c res_query.c res_send.c \ 18 res_stubs.c res_update.c strsep.c 18 res_stubs.c res_update.c strsep.c rcmd.c 19 19 C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o) 20 20 -
cpukit/libnetworking/libc/rcmd.c
r3e0c94f rd7478774 60 60 #endif 61 61 62 63 #define max(a, b) ((a > b) ? a : b) 64 65 #ifdef __rtems 66 int rresvport(); 67 #define bzero(a,s) memset((a),0,(s)) 68 #define bcmp memcmp 69 #define bcopy(s,d,i) memcpy(d,s,i) 70 #else /* __rtems */ 71 62 72 extern int innetgr __P(( const char *, const char *, const char *, const char * )); 63 64 #define max(a, b) ((a > b) ? a : b)65 73 66 74 int __ivaliduser __P((FILE *, u_long, const char *, const char *)); 67 75 static int __icheckhost __P((u_long, char *)); 76 77 #endif 68 78 69 79 int … … 77 87 struct sockaddr_in sin, from; 78 88 fd_set reads; 89 #ifndef __rtems 79 90 long oldmask; 91 #endif 80 92 pid_t pid; 81 93 int s, lport, timo; … … 89 101 } 90 102 *ahost = hp->h_name; 103 #ifndef __rtems 91 104 oldmask = sigblock(sigmask(SIGURG)); 105 #endif 92 106 for (timo = 1, lport = IPPORT_RESERVED - 1;;) { 93 107 s = rresvport(&lport); … … 99 113 (void)fprintf(stderr, "rcmd: socket: %s\n", 100 114 strerror(errno)); 115 #ifndef __rtems 101 116 sigsetmask(oldmask); 117 #endif 102 118 return (-1); 103 119 } … … 134 150 } 135 151 (void)fprintf(stderr, "%s: %s\n", hp->h_name, strerror(errno)); 152 #ifndef __rtems 136 153 sigsetmask(oldmask); 154 #endif 137 155 return (-1); 138 156 } … … 222 240 goto bad2; 223 241 } 242 #ifndef __rtems 224 243 sigsetmask(oldmask); 244 #endif 225 245 return (s); 226 246 bad2: … … 229 249 bad: 230 250 (void)close(s); 251 #ifndef __rtems 231 252 sigsetmask(oldmask); 253 #endif 232 254 return (-1); 233 255 } … … 265 287 } 266 288 289 #ifndef __rtems 267 290 int __check_rhosts_file = 1; 268 291 char *__rcmd_errstr; … … 519 542 return (0); 520 543 } 544 #endif
Note: See TracChangeset
for help on using the changeset viewer.