root / trunk / data / inetutils / mdns.diff
| Revision 218, 18.2 kB (checked in by saurik, 7 months ago) |
|---|
-
inetutils-1.
diff -rui inetutils-1.5/ftp/main.c inetutils-1.5+iPhone/ftp/main.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* 2 4 * Copyright (c) 1985, 1989, 1993, 1994, 2002 3 5 * The Regents of the University of California. All rights reserved. … … 115 117 int 116 118 main (int argc, char *argv[]) 117 119 { 120 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 121 struct nlist nl[2]; 122 memset(nl, 0, sizeof(nl)); 123 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 124 nlist("/usr/lib/libc.dylib", nl); 125 if (nl[0].n_type != N_UNDF) 126 *(int *) nl[0].n_value = 0; 127 #endif 128 118 129 int ch, top; 119 130 struct passwd *pw = NULL; 120 131 char *cp; -
ftpd/ftpd.c
diff -rui inetutils-1.5/ftpd/ftpd.c inetutils-1.5+iPhone/ftpd/ftpd.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* - Ftp Server 2 4 * Copyright (c) 1985, 1988, 1990, 1992, 1993, 1994, 2002 3 5 * The Regents of the University of California. All rights reserved. … … 328 330 int 329 331 main(int argc, char *argv[], char **envp) 330 332 { 333 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 334 struct nlist nl[2]; 335 memset(nl, 0, sizeof(nl)); 336 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 337 nlist("/usr/lib/libc.dylib", nl); 338 if (nl[0].n_type != N_UNDF) 339 *(int *) nl[0].n_value = 0; 340 #endif 341 331 342 int option; 332 343 333 344 program_name = argv[0]; -
gwhois/whois.c
diff -rui inetutils-1.5/gwhois/whois.c inetutils-1.5+iPhone/gwhois/whois.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* Copyright 1999 by Marco d'Itri <md@linux.it>. 2 4 * 3 5 * This program is free software; you can redistribute it and/or modify … … 47 49 48 50 int main(int argc, char *argv[]) 49 51 { 52 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 53 struct nlist nl[2]; 54 memset(nl, 0, sizeof(nl)); 55 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 56 nlist("/usr/lib/libc.dylib", nl); 57 if (nl[0].n_type != N_UNDF) 58 *(int *) nl[0].n_value = 0; 59 #endif 60 50 61 int ch, nopar = 0; 51 62 const char *server = NULL, *port = NULL; 52 63 char *p, *q, *qstring, fstring[64] = "\0"; -
ifconfig/ifconfig.c
diff -rui inetutils-1.5/ifconfig/ifconfig.c inetutils-1.5+iPhone/ifconfig/ifconfig.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* ifconfig.c -- network interface configuration utility 2 4 3 5 Copyright (C) 2001, 2002, 2007 Free Software Foundation, Inc. … … 56 58 int 57 59 main(int argc, char *argv[]) 58 60 { 61 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 62 struct nlist nl[2]; 63 memset(nl, 0, sizeof(nl)); 64 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 65 nlist("/usr/lib/libc.dylib", nl); 66 if (nl[0].n_type != N_UNDF) 67 *(int *) nl[0].n_value = 0; 68 #endif 69 59 70 int err = 0; 60 71 int sfd; 61 72 struct ifconfig *ifp; -
inetd/inetd.c
diff -rui inetutils-1.5/inetd/inetd.c inetutils-1.5+iPhone/inetd/inetd.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 2 4 Free Software Foundation, Inc. 3 5 … … 386 388 int 387 389 main (int argc, char *argv[], char *envp[]) 388 390 { 391 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 392 struct nlist nl[2]; 393 memset(nl, 0, sizeof(nl)); 394 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 395 nlist("/usr/lib/libc.dylib", nl); 396 if (nl[0].n_type != N_UNDF) 397 *(int *) nl[0].n_value = 0; 398 #endif 399 389 400 int option; 390 401 struct servtab *sep; 391 402 int dofork; -
logger/logger.c
diff -rui inetutils-1.5/logger/logger.c inetutils-1.5+iPhone/logger/logger.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* 2 4 * Copyright (c) 1983, 1993, 2002 3 5 * The Regents of the University of California. All rights reserved. … … 101 103 int 102 104 main (int argc, char *argv[]) 103 105 { 106 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 107 struct nlist nl[2]; 108 memset(nl, 0, sizeof(nl)); 109 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 110 nlist("/usr/lib/libc.dylib", nl); 111 if (nl[0].n_type != N_UNDF) 112 *(int *) nl[0].n_value = 0; 113 #endif 114 104 115 int option, logflags, pri; 105 116 char *tag, buf[1024]; 106 117 -
ping/ping6.c
diff -rui inetutils-1.5/ping/ping6.c inetutils-1.5+iPhone/ping/ping6.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* Copyright (C) 1998, 2001, 2002, 2004, 2005, 2007 Free Software Foundation, Inc. 2 4 3 5 This file is part of GNU Inetutils. … … 81 83 int 82 84 main (int argc, char **argv) 83 85 { 86 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 87 struct nlist nl[2]; 88 memset(nl, 0, sizeof(nl)); 89 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 90 nlist("/usr/lib/libc.dylib", nl); 91 if (nl[0].n_type != N_UNDF) 92 *(int *) nl[0].n_value = 0; 93 #endif 94 84 95 int c; 85 96 char *p; 86 97 int one = 1; -
ping/ping.c
diff -rui inetutils-1.5/ping/ping.c inetutils-1.5+iPhone/ping/ping.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* Copyright (C) 1998,2001, 2002, 2005, 2007 Free Software Foundation, Inc. 2 4 3 5 This file is part of GNU Inetutils. … … 106 108 int 107 109 main (int argc, char **argv) 108 110 { 111 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 112 struct nlist nl[2]; 113 memset(nl, 0, sizeof(nl)); 114 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 115 nlist("/usr/lib/libc.dylib", nl); 116 if (nl[0].n_type != N_UNDF) 117 *(int *) nl[0].n_value = 0; 118 #endif 119 109 120 int c; 110 121 char *p; 111 122 int one = 1; -
inetutils-1.
diff -rui inetutils-1.5/rcp/rcp.c inetutils-1.5+iPhone/rcp/rcp.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* 2 4 * Copyright (c) 1983, 1990, 1992, 1993, 2002 3 5 * The Regents of the University of California. All rights reserved. … … 156 158 int 157 159 main (int argc, char *argv[]) 158 160 { 161 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 162 struct nlist nl[2]; 163 memset(nl, 0, sizeof(nl)); 164 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 165 nlist("/usr/lib/libc.dylib", nl); 166 if (nl[0].n_type != N_UNDF) 167 *(int *) nl[0].n_value = 0; 168 #endif 169 159 170 struct servent *sp; 160 171 int ch, fflag, tflag; 161 172 char *targ; -
rexecd/rexecd.c
diff -rui inetutils-1.5/rexecd/rexecd.c inetutils-1.5+iPhone/rexecd/rexecd.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* 2 4 * Copyright (c) 1983, 1993 3 5 * The Regents of the University of California. All rights reserved. … … 105 107 int 106 108 main (int argc, char **argv) 107 109 { 110 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 111 struct nlist nl[2]; 112 memset(nl, 0, sizeof(nl)); 113 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 114 nlist("/usr/lib/libc.dylib", nl); 115 if (nl[0].n_type != N_UNDF) 116 *(int *) nl[0].n_value = 0; 117 #endif 118 108 119 struct sockaddr_in from; 109 120 int fromlen, sockfd = STDIN_FILENO; 110 121 int c; -
rlogin/rlogin.c
diff -rui inetutils-1.5/rlogin/rlogin.c inetutils-1.5+iPhone/rlogin/rlogin.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* 2 4 * Copyright (c) 1983, 1990, 1993, 2002 3 5 * The Regents of the University of California. All rights reserved. … … 236 238 int 237 239 main(int argc, char *argv[]) 238 240 { 241 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 242 struct nlist nl[2]; 243 memset(nl, 0, sizeof(nl)); 244 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 245 nlist("/usr/lib/libc.dylib", nl); 246 if (nl[0].n_type != N_UNDF) 247 *(int *) nl[0].n_value = 0; 248 #endif 249 239 250 struct passwd *pw; 240 251 struct servent *sp; 241 252 sigset_t smask; -
rlogind/rlogind.c
diff -rui inetutils-1.5/rlogind/rlogind.c inetutils-1.5+iPhone/rlogind/rlogind.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* Copyright (C) 1998,2001, 2002, 2007 Free Software Foundation, Inc. 2 4 3 5 This file is part of GNU Inetutils. … … 267 269 int 268 270 main (int argc, char *argv[]) 269 271 { 272 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 273 struct nlist nl[2]; 274 memset(nl, 0, sizeof(nl)); 275 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 276 nlist("/usr/lib/libc.dylib", nl); 277 if (nl[0].n_type != N_UNDF) 278 *(int *) nl[0].n_value = 0; 279 #endif 280 270 281 int port = 0; 271 282 int maxchildren = DEFMAXCHILDREN; 272 283 int mode = MODE_INETD; -
inetutils-1.
diff -rui inetutils-1.5/rsh/rsh.c inetutils-1.5+iPhone/rsh/rsh.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /*- 2 4 * Copyright (c) 1983, 1990, 1993, 1994, 2002 3 5 * The Regents of the University of California. All rights reserved. … … 220 222 int 221 223 main (int argc, char **argv) 222 224 { 225 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 226 struct nlist nl[2]; 227 memset(nl, 0, sizeof(nl)); 228 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 229 nlist("/usr/lib/libc.dylib", nl); 230 if (nl[0].n_type != N_UNDF) 231 *(int *) nl[0].n_value = 0; 232 #endif 233 223 234 struct passwd *pw; 224 235 struct servent *sp; 225 236 sigset_t sigs, osigs; -
rshd/rshd.c
diff -rui inetutils-1.5/rshd/rshd.c inetutils-1.5+iPhone/rshd/rshd.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /*- 2 4 * Copyright (c) 1988, 1989, 1992, 1993, 1994, 2002 3 5 * The Regents of the University of California. All rights reserved. … … 158 160 int 159 161 main (int argc, char *argv[]) 160 162 { 163 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 164 struct nlist nl[2]; 165 memset(nl, 0, sizeof(nl)); 166 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 167 nlist("/usr/lib/libc.dylib", nl); 168 if (nl[0].n_type != N_UNDF) 169 *(int *) nl[0].n_value = 0; 170 #endif 171 161 172 extern int __check_rhosts_file; /* hook in rcmd(3) */ 162 173 struct linger linger; 163 174 int ch, on = 1, fromlen; -
syslogd/syslogd.c
diff -rui inetutils-1.5/syslogd/syslogd.c inetutils-1.5+iPhone/syslogd/syslogd.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* syslogd - log system messages 2 4 * 3 5 * Copyright (c) 1983, 1988, 1993, 1994, 2002 … … 353 355 int 354 356 main (int argc, char *argv[]) 355 357 { 358 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 359 struct nlist nl[2]; 360 memset(nl, 0, sizeof(nl)); 361 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 362 nlist("/usr/lib/libc.dylib", nl); 363 if (nl[0].n_type != N_UNDF) 364 *(int *) nl[0].n_value = 0; 365 #endif 366 356 367 int option; 357 368 size_t i; 358 369 FILE *fp; -
talk/talk.c
diff -rui inetutils-1.5/talk/talk.c inetutils-1.5+iPhone/talk/talk.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* 2 4 * Copyright (c) 1983, 1993 3 5 * The Regents of the University of California. All rights reserved. … … 71 73 int 72 74 main (int argc, char *argv[]) 73 75 { 76 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 77 struct nlist nl[2]; 78 memset(nl, 0, sizeof(nl)); 79 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 80 nlist("/usr/lib/libc.dylib", nl); 81 if (nl[0].n_type != N_UNDF) 82 *(int *) nl[0].n_value = 0; 83 #endif 84 74 85 int c; 75 86 76 87 program_name = argv[0]; -
talkd/talkd.c
diff -rui inetutils-1.5/talkd/talkd.c inetutils-1.5+iPhone/talkd/talkd.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* Copyright (C) 1998,2001, 2002, 2007 Free Software Foundation, Inc. 2 4 3 5 This file is part of GNU Inetutils. … … 59 61 int 60 62 main(int argc, char *argv[]) 61 63 { 64 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 65 struct nlist nl[2]; 66 memset(nl, 0, sizeof(nl)); 67 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 68 nlist("/usr/lib/libc.dylib", nl); 69 if (nl[0].n_type != N_UNDF) 70 *(int *) nl[0].n_value = 0; 71 #endif 72 62 73 int c; 63 74 char *acl_file = NULL; 64 75 -
telnet/main.c
diff -rui inetutils-1.5/telnet/main.c inetutils-1.5+iPhone/telnet/main.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* 2 4 * Copyright (c) 1988, 1990, 1993 3 5 * The Regents of the University of California. All rights reserved. … … 180 182 int 181 183 main(int argc, char *argv[]) 182 184 { 185 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 186 struct nlist nl[2]; 187 memset(nl, 0, sizeof(nl)); 188 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 189 nlist("/usr/lib/libc.dylib", nl); 190 if (nl[0].n_type != N_UNDF) 191 *(int *) nl[0].n_value = 0; 192 #endif 193 183 194 extern char *optarg; 184 195 extern int optind; 185 196 int ch; -
telnetd/telnetd.c
diff -rui inetutils-1.5/telnetd/telnetd.c inetutils-1.5+iPhone/telnetd/telnetd.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* Copyright (C) 1998, 2001, 2002, 2004, 2007x Free Software Foundation, Inc. 2 4 3 5 This file is part of GNU Inetutils. … … 112 114 int 113 115 main (int argc, char **argv) 114 116 { 117 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 118 struct nlist nl[2]; 119 memset(nl, 0, sizeof(nl)); 120 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 121 nlist("/usr/lib/libc.dylib", nl); 122 if (nl[0].n_type != N_UNDF) 123 *(int *) nl[0].n_value = 0; 124 #endif 125 115 126 int c; 116 127 program_name = argv[0]; 117 128 while ((c = getopt_long (argc, argv, short_options, long_options, NULL)) -
tftp/main.c
diff -rui inetutils-1.5/tftp/main.c inetutils-1.5+iPhone/tftp/main.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* 2 4 * Copyright (c) 1983, 1993 3 5 * The Regents of the University of California. All rights reserved. … … 154 156 int 155 157 main (int argc, char *argv[]) 156 158 { 159 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 160 struct nlist nl[2]; 161 memset(nl, 0, sizeof(nl)); 162 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 163 nlist("/usr/lib/libc.dylib", nl); 164 if (nl[0].n_type != N_UNDF) 165 *(int *) nl[0].n_value = 0; 166 #endif 167 157 168 struct sockaddr_in sin; 158 169 159 170 program_name = argv[0]; -
tftpd/tftpd.c
diff -rui inetutils-1.5/tftpd/tftpd.c inetutils-1.5+iPhone/tftpd/tftpd.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* 2 4 * Copyright (c) 1983, 1993 3 5 * The Regents of the University of California. All rights reserved. … … 124 126 int 125 127 main (int argc, char *argv[]) 126 128 { 129 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 130 struct nlist nl[2]; 131 memset(nl, 0, sizeof(nl)); 132 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 133 nlist("/usr/lib/libc.dylib", nl); 134 if (nl[0].n_type != N_UNDF) 135 *(int *) nl[0].n_value = 0; 136 #endif 137 127 138 register struct tftphdr *tp; 128 139 register int n; 129 140 int ch, on; -
uucpd/uucpd.c
diff -rui inetutils-1.5/uucpd/uucpd.c inetutils-1.5+iPhone/uucpd/uucpd.c
old new 1 #include <mach-o/nlist.h> 2 1 3 /* 2 4 * Copyright (c) 1985, 1993 3 5 * The Regents of the University of California. All rights reserved. … … 111 113 int 112 114 main (int argc, char **argv) 113 115 { 116 #if !defined(__ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__) || __ENVIRONMENT_ASPEN_VERSION_MIN_REQUIRED__ < 10200 117 struct nlist nl[2]; 118 memset(nl, 0, sizeof(nl)); 119 nl[0].n_un.n_name = (char *) "_useMDNSResponder"; 120 nlist("/usr/lib/libc.dylib", nl); 121 if (nl[0].n_type != N_UNDF) 122 *(int *) nl[0].n_value = 0; 123 #endif 124 114 125 #ifndef BSDINETD 115 126 register int s, tcp_socket; 116 127 struct servent *sp;
Note: See TracBrowser
for help on using the browser.
