makesyscalls.sh (285307) | makesyscalls.sh (289769) |
---|---|
1#! /bin/sh - 2# @(#)makesyscalls.sh 8.1 (Berkeley) 6/10/93 | 1#! /bin/sh - 2# @(#)makesyscalls.sh 8.1 (Berkeley) 6/10/93 |
3# $FreeBSD: head/sys/kern/makesyscalls.sh 285307 2015-07-09 07:20:15Z ed $ | 3# $FreeBSD: head/sys/kern/makesyscalls.sh 289769 2015-10-22 21:28:20Z jhb $ |
4 5set -e 6 7# name of compat options: 8compat=COMPAT_43 9compat4=COMPAT_FREEBSD4 10compat6=COMPAT_FREEBSD6 11compat7=COMPAT_FREEBSD7 --- 394 unchanged lines hidden (view full) --- 406 for (i = 1; i <= argc; i++) { 407 arg = argtype[i] 408 sub("__restrict$", "", arg) 409 printf("\t\tcase %d:\n\t\t\tp = \"%s\";\n\t\t\tbreak;\n", i - 1, arg) > systracetmp 410 if (index(arg, "*") > 0 || arg == "caddr_t") 411 printf("\t\tuarg[%d] = (intptr_t) p->%s; /* %s */\n", \ 412 i - 1, \ 413 argname[i], arg) > systrace | 4 5set -e 6 7# name of compat options: 8compat=COMPAT_43 9compat4=COMPAT_FREEBSD4 10compat6=COMPAT_FREEBSD6 11compat7=COMPAT_FREEBSD7 --- 394 unchanged lines hidden (view full) --- 406 for (i = 1; i <= argc; i++) { 407 arg = argtype[i] 408 sub("__restrict$", "", arg) 409 printf("\t\tcase %d:\n\t\t\tp = \"%s\";\n\t\t\tbreak;\n", i - 1, arg) > systracetmp 410 if (index(arg, "*") > 0 || arg == "caddr_t") 411 printf("\t\tuarg[%d] = (intptr_t) p->%s; /* %s */\n", \ 412 i - 1, \ 413 argname[i], arg) > systrace |
414 else if (arg == "union l_semun") 415 printf("\t\tuarg[%d] = p->%s.buf; /* %s */\n", \ 416 i - 1, \ 417 argname[i], arg) > systrace |
|
414 else if (substr(arg, 1, 1) == "u" || arg == "size_t") 415 printf("\t\tuarg[%d] = p->%s; /* %s */\n", \ 416 i - 1, \ 417 argname[i], arg) > systrace 418 else 419 printf("\t\tiarg[%d] = p->%s; /* %s */\n", \ 420 i - 1, \ 421 argname[i], arg) > systrace --- 238 unchanged lines hidden --- | 418 else if (substr(arg, 1, 1) == "u" || arg == "size_t") 419 printf("\t\tuarg[%d] = p->%s; /* %s */\n", \ 420 i - 1, \ 421 argname[i], arg) > systrace 422 else 423 printf("\t\tiarg[%d] = p->%s; /* %s */\n", \ 424 i - 1, \ 425 argname[i], arg) > systrace --- 238 unchanged lines hidden --- |