Print this page
5218 posix definition of NULL
correct unistd.h and iso/stddef_iso.h
update gate source affected


 132         g_turbo_supported = B_FALSE;
 133         g_sig_resize = B_FALSE;
 134         g_curr_sugg = NULL;
 135 
 136         while ((c = getopt_long(argc, argv, "d:t:hvc:", opts, &index2))
 137             != EOF) {
 138                 if (c == -1)
 139                         break;
 140 
 141                 switch (c) {
 142                 case 'd':
 143                         if (PT_ON_DUMP) {
 144                                 pt_usage();
 145                                 exit(EXIT_USAGE);
 146                         }
 147 
 148                         g_op_mode |= PT_MODE_DUMP;
 149                         g_gui = B_FALSE;
 150                         dump_count = (int)strtod(optarg, &endptr);
 151 
 152                         if (dump_count <= 0 || *endptr != NULL) {
 153                                 pt_usage();
 154                                 exit(EXIT_USAGE);
 155                         }
 156 
 157                         break;
 158                 case 't':
 159                         if (PT_ON_TIME) {
 160                                 pt_usage();
 161                                 exit(EXIT_USAGE);
 162                         }
 163 
 164                         g_op_mode |= PT_MODE_TIME;
 165                         interval = interval_usr = (double)strtod(optarg,
 166                             &endptr);
 167 
 168                         if (*endptr != NULL || interval < 1 ||
 169                             interval > INTERVAL_MAX) {
 170                                 pt_usage();
 171                                 exit(EXIT_USAGE);
 172                         }
 173 
 174                         break;
 175                 case 'v':
 176                         if (PT_ON_CPU || PT_ON_VERBOSE) {
 177                                 pt_usage();
 178                                 exit(EXIT_USAGE);
 179                         }
 180 
 181                         g_op_mode |= PT_MODE_VERBOSE;
 182                         break;
 183                 case 'c':
 184                         if (PT_ON_CPU || PT_ON_VERBOSE) {
 185                                 pt_usage();
 186                                 exit(EXIT_USAGE);
 187                         }
 188 




 132         g_turbo_supported = B_FALSE;
 133         g_sig_resize = B_FALSE;
 134         g_curr_sugg = NULL;
 135 
 136         while ((c = getopt_long(argc, argv, "d:t:hvc:", opts, &index2))
 137             != EOF) {
 138                 if (c == -1)
 139                         break;
 140 
 141                 switch (c) {
 142                 case 'd':
 143                         if (PT_ON_DUMP) {
 144                                 pt_usage();
 145                                 exit(EXIT_USAGE);
 146                         }
 147 
 148                         g_op_mode |= PT_MODE_DUMP;
 149                         g_gui = B_FALSE;
 150                         dump_count = (int)strtod(optarg, &endptr);
 151 
 152                         if (dump_count <= 0 || *endptr != '\0') {
 153                                 pt_usage();
 154                                 exit(EXIT_USAGE);
 155                         }
 156 
 157                         break;
 158                 case 't':
 159                         if (PT_ON_TIME) {
 160                                 pt_usage();
 161                                 exit(EXIT_USAGE);
 162                         }
 163 
 164                         g_op_mode |= PT_MODE_TIME;
 165                         interval = interval_usr = (double)strtod(optarg,
 166                             &endptr);
 167 
 168                         if (*endptr != '\0' || interval < 1 ||
 169                             interval > INTERVAL_MAX) {
 170                                 pt_usage();
 171                                 exit(EXIT_USAGE);
 172                         }
 173 
 174                         break;
 175                 case 'v':
 176                         if (PT_ON_CPU || PT_ON_VERBOSE) {
 177                                 pt_usage();
 178                                 exit(EXIT_USAGE);
 179                         }
 180 
 181                         g_op_mode |= PT_MODE_VERBOSE;
 182                         break;
 183                 case 'c':
 184                         if (PT_ON_CPU || PT_ON_VERBOSE) {
 185                                 pt_usage();
 186                                 exit(EXIT_USAGE);
 187                         }
 188