Print this page
make: unifdef for TEAMWARE_MAKE_CMN (defined)


   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 
  26 #ifdef TEAMWARE_MAKE_CMN
  27 
  28 /*
  29  * Included files
  30  */
  31 #include <arpa/inet.h>
  32 #include <mk/defs.h>
  33 #include <mksh/misc.h>
  34 #include <netdb.h>
  35 #include <netinet/in.h>
  36 #include <sys/socket.h>
  37 #include <sys/stat.h>
  38 #include <sys/types.h>
  39 #include <sys/utsname.h>
  40 #include <rpc/rpc.h>              /* host2netname(), netname2host() */
  41 
  42 /*
  43  * Defined macros
  44  */
  45 
  46 /*


 400                 return((int) limit);
 401         } else {
 402                 ms++;
 403                 SKIPSPACE(ms);
 404                 if ((*ms != '\n') && (*ms != '\0')) {
 405                         /* We've found, hopefully, a valid "max" value. */
 406                         limit = (int) wcstol(ms, &ms, 10);
 407                         if (limit < 1) {
 408                                 limit = PMAKE_DEF_MAX_JOBS;
 409                                 warning(catgets(catd, 1, 320, "max value cannot be less than or equal to zero for host %s"), mbs_buffer);
 410                         }
 411                 } else {
 412                         /* No "max" value after "max=". */
 413                         warning(catgets(catd, 1, 321, "no max value specified for host %s"), mbs_buffer);
 414                 }
 415                 *ms_address = ms;
 416                 return(limit);
 417         }
 418 }
 419 
 420 #endif
 421 


   6  * You may not use this file except in compliance with the License.
   7  *
   8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  23  * Use is subject to license terms.
  24  */
  25 

  26 
  27 /*
  28  * Included files
  29  */
  30 #include <arpa/inet.h>
  31 #include <mk/defs.h>
  32 #include <mksh/misc.h>
  33 #include <netdb.h>
  34 #include <netinet/in.h>
  35 #include <sys/socket.h>
  36 #include <sys/stat.h>
  37 #include <sys/types.h>
  38 #include <sys/utsname.h>
  39 #include <rpc/rpc.h>              /* host2netname(), netname2host() */
  40 
  41 /*
  42  * Defined macros
  43  */
  44 
  45 /*


 399                 return((int) limit);
 400         } else {
 401                 ms++;
 402                 SKIPSPACE(ms);
 403                 if ((*ms != '\n') && (*ms != '\0')) {
 404                         /* We've found, hopefully, a valid "max" value. */
 405                         limit = (int) wcstol(ms, &ms, 10);
 406                         if (limit < 1) {
 407                                 limit = PMAKE_DEF_MAX_JOBS;
 408                                 warning(catgets(catd, 1, 320, "max value cannot be less than or equal to zero for host %s"), mbs_buffer);
 409                         }
 410                 } else {
 411                         /* No "max" value after "max=". */
 412                         warning(catgets(catd, 1, 321, "no max value specified for host %s"), mbs_buffer);
 413                 }
 414                 *ms_address = ms;
 415                 return(limit);
 416         }
 417 }
 418 

 419