Lines Matching refs:num
144 int buflen, int *num, const char **err_context) in call_daemon() argument
153 if (((op == 4) || (op == 5)) && !num) { in call_daemon()
179 if ((*num)*16 > buflen-4) in call_daemon()
180 *num = (buflen-4) / 16; in call_daemon()
185 memcpy(op_buf+1, num, sizeof(int)); in call_daemon()
214 memcpy(buf+16, num, sizeof(int)); in call_daemon()
216 *num = -1; in call_daemon()
219 if (*num >= (int) sizeof(int)) in call_daemon()
220 memcpy(buf, num, sizeof(int)); in call_daemon()
222 *num = -1; in call_daemon()
241 int i, s, ns, len, num; in server_loop() local
359 if (read_all(ns, (char *) &num, sizeof(num)) != 4) in server_loop()
363 op, num); in server_loop()
377 num = 1; in server_loop()
378 uuid__generate_time(uu, &num); in server_loop()
387 num = 1; in server_loop()
388 uuid__generate_random(uu, &num); in server_loop()
397 uuid__generate_time(uu, &num); in server_loop()
403 "subsequent UUIDs\n", num), in server_loop()
404 str, num); in server_loop()
408 memcpy(reply_buf+reply_len, &num, sizeof(num)); in server_loop()
409 reply_len += sizeof(num); in server_loop()
412 if (num < 0) in server_loop()
413 num = 1; in server_loop()
414 if (num > 1000) in server_loop()
415 num = 1000; in server_loop()
416 if (num*16 > (int) (sizeof(reply_buf)-sizeof(num))) in server_loop()
417 num = (sizeof(reply_buf)-sizeof(num)) / 16; in server_loop()
419 sizeof(num), &num); in server_loop()
421 printf(_("Generated %d UUID's:\n"), num); in server_loop()
422 for (i=0, cp=reply_buf+sizeof(num); in server_loop()
423 i < num; i++, cp+=16) { in server_loop()
428 reply_len = (num*16) + sizeof(num); in server_loop()
429 memcpy(reply_buf, &num, sizeof(num)); in server_loop()
454 int debug = 0, do_type = 0, do_kill = 0, num = 0; in main() local
475 num = strtol(optarg, &tmp, 0); in main()
476 if ((num < 0) || *tmp) { in main()
530 if (num && do_type) { in main()
532 sizeof(buf), &num, &err_context); in main()
539 if (ret != sizeof(uu) + sizeof(num)) in main()
545 "%s and subsequent %d UUIDs\n", num), in main()
546 str, num); in main()
550 if (ret != (int) (sizeof(num) + num*sizeof(uu))) in main()
552 for (i=0; i < num; i++, cp+=16) { in main()