Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 4856) sorted by relevance

12345678910>>...195

/external/ltp/testcases/kernel/io/disktest/
Dparse.c47 int fill_cld_args(int argc, char **argv, child_args_t * args) in fill_cld_args() argument
62 pMsg(WARN, args, "Missing argument for perameter.\n"); in fill_cld_args()
68 pMsg(WARN, args, in fill_cld_args()
73 pMsg(WARN, args, in fill_cld_args()
79 pMsg(ERR, args, in fill_cld_args()
87 args->flags |= CLD_FLG_DUMP; in fill_cld_args()
91 pMsg(WARN, args, in fill_cld_args()
96 pMsg(WARN, args, in fill_cld_args()
100 args->seed = (unsigned int)strtol(optarg, NULL, 0); in fill_cld_args()
104 pMsg(WARN, args, in fill_cld_args()
[all …]
Dchildmain.c99 void add_action(test_env_t * env, const child_args_t * args, in add_action() argument
103 if (env->action_list_entry == args->t_kids) { /* we should never get here */ in add_action()
141 void decrement_io_count(const child_args_t * args, test_env_t * env, in decrement_io_count() argument
144 if (args->flags & CLD_FLG_LBA_SYNC) { in decrement_io_count()
179 void update_test_state(child_args_t * args, test_env_t * env, in update_test_state() argument
185 if (args->flags & CLD_FLG_ALLDIE) { in update_test_state()
187 PDBG4(DBUG, args, in update_test_state()
191 args->test_state = SET_STS_FAIL(args->test_state); in update_test_state()
196 PDBG4(DBUG, args, in update_test_state()
200 args->test_state = SET_STS_FAIL(args->test_state); in update_test_state()
[all …]
Dmain.c74 if (test->args->flags & CLD_FLG_W) { in linear_read_write_test()
76 *(pVal1 + OFF_WLBA) = test->args->start_lba; in linear_read_write_test()
77 test->args->test_state = DIRCT_INC(test->args->test_state); in linear_read_write_test()
79 test->args->test_state = SET_OPER_W(test->args->test_state); in linear_read_write_test()
80 test->args->test_state = SET_wFST_TIME(test->args->test_state); in linear_read_write_test()
83 sizeof(action_t) * test->args->t_kids); in linear_read_write_test()
87 if (test->args->flags & CLD_FLG_CYC) in linear_read_write_test()
88 if (test->args->cycles == 0) { in linear_read_write_test()
89 pMsg(INFO, test->args, in linear_read_write_test()
93 pMsg(INFO, test->args, in linear_read_write_test()
[all …]
/external/skia/experimental/SkV8Example/
DPath2DBuilder.cpp17 void Path2DBuilder::ConstructPath(const v8::FunctionCallbackInfo<v8::Value>& args) { in ConstructPath() argument
20 args.This()->SetInternalField( in ConstructPath()
64 Path2DBuilder* Path2DBuilder::Unwrap(const v8::FunctionCallbackInfo<v8::Value>& args) { in Unwrap() argument
66 args.This()->GetInternalField(0)); in Unwrap()
71 void Path2DBuilder::ClosePath(const v8::FunctionCallbackInfo<v8::Value>& args) { in ClosePath() argument
72 Path2DBuilder* path = Unwrap(args); in ClosePath()
76 void Path2DBuilder::MoveTo(const v8::FunctionCallbackInfo<v8::Value>& args) { in MoveTo() argument
77 if (args.Length() != 2) { in MoveTo()
78 args.GetIsolate()->ThrowException( in MoveTo()
80 args.GetIsolate(), "Error: 2 arguments required.")); in MoveTo()
[all …]
/external/ltp/testcases/kernel/hotplug/memory_hotplug/
Dcommands.c143 static size_t get_scaled_value(char *args, char *what) in get_scaled_value() argument
146 size_t size = size_kmgp(args); in get_scaled_value()
157 static int get_range(char *args, range_t * range, char **nextarg) in get_range() argument
160 if (isdigit(*args)) { in get_range()
163 args = strtok_r(args, whitespace, &nextarg); in get_range()
164 range->offset = get_scaled_value(args, "offset"); in get_range()
167 args = nextarg + strspn(nextarg, whitespace); in get_range()
172 if (*args != '\0') { in get_range()
173 args = strtok_r(args, whitespace, &nextarg); in get_range()
174 if (*args != '*') { in get_range()
[all …]
/external/icu/icu4c/source/common/
Ducnv_u32.c47 T_UConverter_toUnicode_UTF32_BE(UConverterToUnicodeArgs * args, in T_UConverter_toUnicode_UTF32_BE() argument
50 const unsigned char *mySource = (unsigned char *) args->source; in T_UConverter_toUnicode_UTF32_BE()
51 UChar *myTarget = args->target; in T_UConverter_toUnicode_UTF32_BE()
52 const unsigned char *sourceLimit = (unsigned char *) args->sourceLimit; in T_UConverter_toUnicode_UTF32_BE()
53 const UChar *targetLimit = args->targetLimit; in T_UConverter_toUnicode_UTF32_BE()
54 unsigned char *toUBytes = args->converter->toUBytes; in T_UConverter_toUnicode_UTF32_BE()
58 if (args->converter->toUnicodeStatus && myTarget < targetLimit) { in T_UConverter_toUnicode_UTF32_BE()
59 i = args->converter->toULength; /* restore # of bytes consumed */ in T_UConverter_toUnicode_UTF32_BE()
60 args->converter->toULength = 0; in T_UConverter_toUnicode_UTF32_BE()
62 …ch = args->converter->toUnicodeStatus - 1;/*Stores the previously calculated ch from a previous ca… in T_UConverter_toUnicode_UTF32_BE()
[all …]
Ducnv_cb.c37 ucnv_cbFromUWriteBytes (UConverterFromUnicodeArgs *args, in ucnv_cbFromUWriteBytes() argument
48 args->converter, in ucnv_cbFromUWriteBytes()
50 &args->target, args->targetLimit, in ucnv_cbFromUWriteBytes()
51 &args->offsets, offsetIndex, in ucnv_cbFromUWriteBytes()
56 ucnv_cbFromUWriteUChars(UConverterFromUnicodeArgs *args, in ucnv_cbFromUWriteUChars() argument
81 oldTarget = args->target; in ucnv_cbFromUWriteUChars()
83 ucnv_fromUnicode(args->converter, in ucnv_cbFromUWriteUChars()
84 &args->target, in ucnv_cbFromUWriteUChars()
85 args->targetLimit, in ucnv_cbFromUWriteUChars()
92 if(args->offsets) in ucnv_cbFromUWriteUChars()
[all …]
Ducnvhz.c41 #define CONCAT_ESCAPE_MACRO( args, targetIndex,targetLength,strToAppend, err, len,sourceIndex){ … argument
44args->target[targetIndex] = (unsigned char) *strToAppend; …
45 …if(args->offsets!=NULL){ …
51args->converter->charErrorBuffer[(int)args->converter->charErrorBufferLength++] = (unsigned char) …
156 UConverter_toUnicode_HZ_OFFSETS_LOGIC(UConverterToUnicodeArgs *args, in UConverter_toUnicode_HZ_OFFSETS_LOGIC() argument
159 const char *mySource = ( char *) args->source; in UConverter_toUnicode_HZ_OFFSETS_LOGIC()
160 UChar *myTarget = args->target; in UConverter_toUnicode_HZ_OFFSETS_LOGIC()
161 const char *mySourceLimit = args->sourceLimit; in UConverter_toUnicode_HZ_OFFSETS_LOGIC()
164 UConverterDataHZ* myData=(UConverterDataHZ*)(args->converter->extraInfo); in UConverter_toUnicode_HZ_OFFSETS_LOGIC()
176 if(myTarget < args->targetLimit){ in UConverter_toUnicode_HZ_OFFSETS_LOGIC()
[all …]
/external/selinux/python/semanage/
Dsemanage201 def handle_opts(args, dict, target_key):
206 for k in args.__dict__.keys():
208 if k in dict[target_key][0] and args.__dict__[k]:
214 for k in args.__dict__.keys():
216 if k in dict[target_key][1] and not args.__dict__[k]:
223 def handleLogin(args):
227 handle_opts(args, login_args, args.action)
230 OBJECT.set_reload(args.noreload)
232 if args.action is "add":
233 OBJECT.add(args.login, args.seuser, args.range)
[all …]
/external/libxml2/os400/
Dxmlcatlgcl.c146 main(int argsc, arguments * args) in main() argument
157 if (args->catalog->len) { in main()
158 for (i = 0; i < args->catalog->len && in main()
159 !args->catalog->item[i].param.len; i++) in main()
163 if (i < args->catalog->len) { in main()
165 for (i = 0; i < args->catalog->len; i++) { in main()
166 if (!args->catalog->item[i].param.len) in main()
171 &args->catalog->item[i].param); in main()
179 for (i = 0; i < 10 && args->pgm[i] && args->pgm[i] != '/'; i++) in main()
184 vary4nappend(&cmd, args->pgm, i); in main()
[all …]
/external/selinux/prebuilts/bin/
Dsesearch.py122 args = parser.parse_args() variable
124 if args.A:
126 args.tertypes.extend(["allow", "allowxperm"])
128 args.tertypes = ["allow", "allowxperm"]
130 if not args.tertypes and not args.mlsrtypes and not args.rbacrtypes:
133 if args.debug:
136 elif args.verbose:
142 p = setools.SELinuxPolicy(args.policy)
144 if args.tertypes:
146 ruletype=args.tertypes,
[all …]
Dseinfo.py104 args = parser.parse_args() variable
106 if args.debug:
109 elif args.verbose:
115 p = setools.SELinuxPolicy(args.policy)
118 if args.boolquery or args.all:
120 if isinstance(args.boolquery, str):
121 q.name = args.boolquery
125 if args.mlscatsquery or args.all:
127 if isinstance(args.mlscatsquery, str):
128 q.name = args.mlscatsquery
[all …]
/external/strace/
Dbtrfs.c602 struct btrfs_ioctl_defrag_range_args args; in MPERS_PRINTER_DECL() local
606 if (umove_or_printaddr(tcp, arg, &args)) in MPERS_PRINTER_DECL()
609 tprintf("{start=%" PRIu64 ", len=", (uint64_t)args.start); in MPERS_PRINTER_DECL()
611 tprintf("%" PRIu64, (uint64_t) args.len); in MPERS_PRINTER_DECL()
612 if (args.len == UINT64_MAX) in MPERS_PRINTER_DECL()
616 printflags64(btrfs_defrag_flags, args.flags, in MPERS_PRINTER_DECL()
619 args.extent_thresh); in MPERS_PRINTER_DECL()
620 printxval(btrfs_compress_types, args.compress_type, in MPERS_PRINTER_DECL()
627 struct btrfs_ioctl_dev_info_args args; in MPERS_PRINTER_DECL() local
637 if (umove_or_printaddr(tcp, arg, &args)) in MPERS_PRINTER_DECL()
[all …]
/external/valgrind/none/tests/ppc32/
Dtest_fx.c39 double* args, int nargs, in do_one() argument
47 a = args[i]; in do_one()
60 double* args = malloc(nargs * sizeof(double)); in main() local
61 args[0] = 0.0; in main()
62 args[1] = 1.0 / 0.0; // inf in main()
63 args[2] = -args[1]; // -inf in main()
64 args[3] = args[2]/args[2]; // nan in main()
65 args[4] = -args[3]; // -nan in main()
66 args[5] = -5e100; in main()
67 args[6] = -5e20; in main()
[all …]
Dtest_gx.c74 double* args, int nargs, in do_one() argument
82 a = args[i]; in do_one()
95 double* args = malloc(nargs * sizeof(double)); in main() local
96 args[0] = 0.0; in main()
97 args[1] = 1.0 / 0.0; // inf in main()
98 args[2] = -args[1]; // -inf in main()
99 args[3] = args[2]/args[2]; // nan in main()
100 args[4] = -args[3]; // -nan in main()
101 args[5] = -5e100; in main()
102 args[6] = -5e20; in main()
[all …]
/external/chromium-trace/catapult/telemetry/telemetry/testing/
Drun_tests.py81 def ProcessCommandLineArgs(cls, parser, args, _): argument
84 if not args.retry_limit and not args.positional_args:
85 args.retry_limit = 3
87 if args.no_browser:
90 if args.start_xvfb and xvfb.ShouldStartXvfb():
94 args.browser_options.AppendExtraBrowserArgs('--disable-gpu')
97 possible_browser = browser_finder.FindBrowser(args)
104 'available browser types.' % args.browser_type)
107 def main(cls, args=None, stream=None): # pylint: disable=arguments-differ argument
111 options, positional_args = parser.parse_args(args)
[all …]
/external/strace/tests-m32/
Dbtrfs.c255 btrfs_print_vol_args_v2(struct btrfs_ioctl_vol_args_v2 *args, int print_qgroups) in btrfs_print_vol_args_v2() argument
257 printf("{fd=%d, flags=", (int) args->fd); in btrfs_print_vol_args_v2()
258 printflags(btrfs_snap_flags_v2, args->flags, "BTRFS_SUBVOL_???"); in btrfs_print_vol_args_v2()
260 if (args->flags & BTRFS_SUBVOL_QGROUP_INHERIT) { in btrfs_print_vol_args_v2()
261 printf(", size=%" PRI__u64 ", qgroup_inherit=", args->size); in btrfs_print_vol_args_v2()
262 if (args->qgroup_inherit && print_qgroups) in btrfs_print_vol_args_v2()
263 btrfs_print_qgroup_inherit(args->qgroup_inherit); in btrfs_print_vol_args_v2()
264 else if (args->qgroup_inherit) in btrfs_print_vol_args_v2()
265 printf("%p", args->qgroup_inherit); in btrfs_print_vol_args_v2()
269 printf(", name=\"%s\"}", args->name); in btrfs_print_vol_args_v2()
[all …]
/external/strace/tests/
Dbtrfs.c255 btrfs_print_vol_args_v2(struct btrfs_ioctl_vol_args_v2 *args, int print_qgroups) in btrfs_print_vol_args_v2() argument
257 printf("{fd=%d, flags=", (int) args->fd); in btrfs_print_vol_args_v2()
258 printflags(btrfs_snap_flags_v2, args->flags, "BTRFS_SUBVOL_???"); in btrfs_print_vol_args_v2()
260 if (args->flags & BTRFS_SUBVOL_QGROUP_INHERIT) { in btrfs_print_vol_args_v2()
261 printf(", size=%" PRI__u64 ", qgroup_inherit=", args->size); in btrfs_print_vol_args_v2()
262 if (args->qgroup_inherit && print_qgroups) in btrfs_print_vol_args_v2()
263 btrfs_print_qgroup_inherit(args->qgroup_inherit); in btrfs_print_vol_args_v2()
264 else if (args->qgroup_inherit) in btrfs_print_vol_args_v2()
265 printf("%p", args->qgroup_inherit); in btrfs_print_vol_args_v2()
269 printf(", name=\"%s\"}", args->name); in btrfs_print_vol_args_v2()
[all …]
/external/strace/tests-mx32/
Dbtrfs.c255 btrfs_print_vol_args_v2(struct btrfs_ioctl_vol_args_v2 *args, int print_qgroups) in btrfs_print_vol_args_v2() argument
257 printf("{fd=%d, flags=", (int) args->fd); in btrfs_print_vol_args_v2()
258 printflags(btrfs_snap_flags_v2, args->flags, "BTRFS_SUBVOL_???"); in btrfs_print_vol_args_v2()
260 if (args->flags & BTRFS_SUBVOL_QGROUP_INHERIT) { in btrfs_print_vol_args_v2()
261 printf(", size=%" PRI__u64 ", qgroup_inherit=", args->size); in btrfs_print_vol_args_v2()
262 if (args->qgroup_inherit && print_qgroups) in btrfs_print_vol_args_v2()
263 btrfs_print_qgroup_inherit(args->qgroup_inherit); in btrfs_print_vol_args_v2()
264 else if (args->qgroup_inherit) in btrfs_print_vol_args_v2()
265 printf("%p", args->qgroup_inherit); in btrfs_print_vol_args_v2()
269 printf(", name=\"%s\"}", args->name); in btrfs_print_vol_args_v2()
[all …]
/external/e2fsprogs/intl/
Dprintf.c80 libintl_vfprintf (FILE *stream, const char *format, va_list args) in libintl_vfprintf() argument
83 return vfprintf (stream, format, args); in libintl_vfprintf()
87 char *result = libintl_vasnprintf (NULL, &length, format, args); in libintl_vfprintf()
103 va_list args; in libintl_fprintf() local
106 va_start (args, format); in libintl_fprintf()
107 retval = libintl_vfprintf (stream, format, args); in libintl_fprintf()
108 va_end (args); in libintl_fprintf()
114 libintl_vprintf (const char *format, va_list args) in libintl_vprintf() argument
116 return libintl_vfprintf (stdout, format, args); in libintl_vprintf()
123 va_list args; in libintl_printf() local
[all …]
/external/clang/tools/scan-build-py/libscanbuild/
Danalyze.py41 args = parser.parse_args()
42 validate(parser, args, from_build_command)
45 initialize_logging(args.verbose)
46 logging.debug('Parsed arguments: %s', args)
48 with report_directory(args.output, args.keep_empty) as target_dir:
51 run_analyzer(args, target_dir)
52 number_of_bugs = document(args, target_dir, True)
53 return number_of_bugs if args.status_bugs else 0
54 elif args.intercept_first:
56 exit_code = capture(args, bin_dir)
[all …]
/external/ltp/tools/netpipe-2.4/
Dnetpipe.c50 ArgStruct args; /* Argumentsfor all the calls */ in main() local
116 args.prot.rcvbufsz = atoi(optarg); in main()
117 args.prot.sndbufsz = args.prot.rcvbufsz; in main()
139 args.host = (char *)malloc(strlen(optarg) + 1); in main()
140 strcpy(args.host, optarg); in main()
172 args.nbuff = TRIALS; in main()
173 args.tr = trans; in main()
174 args.port = port; in main()
178 args.prot.sndbufsz = 0; in main()
179 args.prot.rcvbufsz = 0; in main()
[all …]
/external/ltp/tools/netpipe-2.4-ipv6/
Dnetpipe.c87 ArgStruct args; /* Argumentsfor all the calls */ in main() local
152 args.prot.rcvbufsz = atoi(optarg); in main()
153 args.prot.sndbufsz = args.prot.rcvbufsz; in main()
175 args.host = (char *)malloc(strlen(optarg) + 1); in main()
176 strcpy(args.host, optarg); in main()
177 printf("host is %s\n", args.host); in main()
187 args.server_host = in main()
189 strcpy(args.server_host, optarg); in main()
190 printf("server is %s\n", args.server_host); in main()
223 args.nbuff = TRIALS; in main()
[all …]
/external/autotest/site_utils/
Dtest_that_unittest.py18 args = test_that.parse_arguments(
21 self.assertEqual('some_board', args.board)
22 self.assertEqual('some_image', args.build)
23 self.assertEqual('some_args', args.args)
24 self.assertEqual('some_remote', args.remote)
25 self.assertEqual(['test1', 'test2'], args.tests)
28 args, remote_argv = test_that._parse_arguments_internal(
31 self.assertEqual('some_board', args.board)
32 self.assertEqual('some_image', args.build)
33 self.assertEqual('some_args', args.args)
[all …]
/external/llvm/lib/Support/
DGraphWriter.cpp81 static bool ExecGraphViewer(StringRef ExecPath, std::vector<const char *> &args, in ExecGraphViewer() argument
84 assert(args.back() == nullptr); in ExecGraphViewer()
86 if (sys::ExecuteAndWait(ExecPath, args.data(), nullptr, nullptr, 0, 0, in ExecGraphViewer()
94 sys::ExecuteNoWait(ExecPath, args.data(), nullptr, nullptr, 0, &ErrMsg); in ExecGraphViewer()
145 std::vector<const char *> args; in DisplayGraph() local
146 args.push_back(ViewerPath.c_str()); in DisplayGraph()
148 args.push_back("-W"); in DisplayGraph()
149 args.push_back(Filename.c_str()); in DisplayGraph()
150 args.push_back(nullptr); in DisplayGraph()
152 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg)) in DisplayGraph()
[all …]

12345678910>>...195