/haiku/src/system/libroot/posix/glibc/stdio-common/ |
H A D | printf-parse.h | 131 parse_one_spec (const UCHAR_T *format, size_t posn, struct printf_spec *spec, in parse_one_spec() argument 134 parse_one_spec (const UCHAR_T *format, size_t posn, struct printf_spec *spec, in parse_one_spec() 145 spec->data_arg = -1; in parse_one_spec() 146 spec->info.alt = 0; in parse_one_spec() 147 spec->info.space = 0; in parse_one_spec() 148 spec->info.left = 0; in parse_one_spec() 149 spec->info.showsign = 0; in parse_one_spec() 150 spec->info.group = 0; in parse_one_spec() 151 spec->info.i18n = 0; in parse_one_spec() 152 spec->info.pad = ' '; in parse_one_spec() [all …]
|
H A D | printf-parse.c | 69 struct printf_spec spec; in parse_printf_format() local 73 for (fmt = find_spec(fmt /*, &mbstate*/); *fmt != '\0'; fmt = spec.next_fmt) { in parse_printf_format() 75 nargs += parse_one_spec(fmt, nargs, &spec, &max_ref_arg /*, &mbstate*/); in parse_printf_format() 78 if (spec.width_arg != -1 && (size_t)spec.width_arg < n) in parse_printf_format() 79 argtypes[spec.width_arg] = PA_INT; in parse_printf_format() 82 if (spec.prec_arg != -1 && (size_t) spec.prec_arg < n) in parse_printf_format() 83 argtypes[spec.prec_arg] = PA_INT; in parse_printf_format() 85 if ((size_t) spec.data_arg < n) { in parse_printf_format() 86 switch (spec.ndata_args) { in parse_printf_format() 90 argtypes[spec.data_arg] = spec.data_arg_type; in parse_printf_format() [all …]
|
H A D | printf-prs.c | 82 struct printf_spec spec; local 89 for (fmt = find_spec (fmt, &mbstate); *fmt != '\0'; fmt = spec.next_fmt) 92 nargs += parse_one_spec (fmt, nargs, &spec, &max_ref_arg, &mbstate); 95 if (spec.width_arg != -1 && (size_t) spec.width_arg < n) 96 argtypes[spec.width_arg] = PA_INT; 99 if (spec.prec_arg != -1 && (size_t) spec.prec_arg < n) 100 argtypes[spec.prec_arg] = PA_INT; 102 if ((size_t) spec.data_arg < n) 103 switch (spec.ndata_args) 108 argtypes[spec.data_arg] = spec.data_arg_type; [all …]
|
H A D | reg-printf.c | 39 __register_printf_function (spec, converter, arginfo) in __register_printf_function() argument 40 int spec; in __register_printf_function() 44 if (spec < 0 || spec > (int) UCHAR_MAX) 60 __printf_function_table[spec] = converter; 61 __printf_arginfo_table[spec] = arginfo;
|
H A D | printf_fphex.c | 119 info->spec == 'A'); \ 122 16, info->spec == 'A'); \ 126 numstr = _itoa (num, numbuf + sizeof numbuf, 16, info->spec == 'A');\ 129 16, info->spec == 'A'); \ 259 if (isupper (info->spec)) in __printf_fphex() 275 if (isupper (info->spec)) in __printf_fphex() 298 if (isupper (info->spec)) in __printf_fphex() 314 if (isupper (info->spec)) in __printf_fphex() 372 info->spec == 'A'); in __printf_fphex() 374 info->spec == 'A'); in __printf_fphex() [all …]
|
H A D | vfprintf.c | 314 spec = (ChExpr); \ in vfprintf() 315 offset = NOT_IN_JUMP_RANGE (spec) ? REF (form_unknown) \ in vfprintf() 316 : table[CHAR_CLASS (spec)]; \ in vfprintf() 327 spec = (ChExpr); \ in vfprintf() 328 ptr = NOT_IN_JUMP_RANGE (spec) ? REF (form_unknown) \ in vfprintf() 329 : table[CHAR_CLASS (spec)]; \ in vfprintf() 649 spec == L_('X')); \ in vfprintf() 707 spec == L_('X')); \ in vfprintf() 750 outchar (spec); \ in vfprintf() 781 outchar (spec); \ in vfprintf() [all …]
|
H A D | printf_fp.c | 331 if (isupper (info->spec)) in __printf_fp() 345 if (isupper (info->spec)) in __printf_fp() 375 if (isupper (info->spec)) in __printf_fp() 389 if (isupper (info->spec)) in __printf_fp() 808 if (_tolower (info->spec) == 'e') in __printf_fp() 810 type = info->spec; in __printf_fp() 818 else if (_tolower (info->spec) == 'f') in __printf_fp() 820 type = info->spec; in __printf_fp() 843 type = 'E' + (info->spec - 'G'); in __printf_fp() 845 type = isupper (info->spec) ? 'E' : 'e'; in __printf_fp() [all …]
|
H A D | printf_size.c | 103 const char *tag = units[isupper (info->spec) != 0]; in printf_size() 104 int divisor = isupper (info->spec) ? 1000 : 1024; in printf_size() 208 fp_info.spec = 'f'; in printf_size()
|
/haiku/headers/private/libroot/ |
H A D | time_private.h | 37 bigtime_to_timespec(bigtime_t time, timespec& spec) in bigtime_to_timespec() argument 39 spec.tv_sec = time / 1000000; in bigtime_to_timespec() 40 spec.tv_nsec = (time % 1000000) * 1000; in bigtime_to_timespec() 45 timespec_to_bigtime(const timespec& spec, bigtime_t& _time) in timespec_to_bigtime() argument 47 if (spec.tv_sec < 0 || spec.tv_nsec < 0 || spec.tv_nsec >= 1000000000) in timespec_to_bigtime() 50 _time = (bigtime_t)spec.tv_sec * 1000000 + (spec.tv_nsec + 999) / 1000; in timespec_to_bigtime() 57 timeval_to_timespec(const timeval& val, timespec& spec) in timeval_to_timespec() argument 62 spec.tv_sec = val.tv_sec; in timeval_to_timespec() 63 spec.tv_nsec = val.tv_usec * 1000; in timeval_to_timespec() 72 timespec spec; in timeval_to_bigtime() local [all …]
|
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | ntfstime.h | 70 struct timespec spec; in ntfs2timespec() local 74 spec.tv_sec = (cputime - (NTFS_TIME_OFFSET)) / 10000000; in ntfs2timespec() 75 spec.tv_nsec = (cputime - (NTFS_TIME_OFFSET) in ntfs2timespec() 76 - (s64)spec.tv_sec*10000000)*100; in ntfs2timespec() 78 if ((spec.tv_nsec < 0) || (spec.tv_nsec > 999999999)) in ntfs2timespec() 79 spec.tv_nsec = 0; in ntfs2timespec() 80 return (spec); in ntfs2timespec() 99 static __inline__ ntfs_time timespec2ntfs(struct timespec spec) in timespec2ntfs() argument 103 units = (s64)spec.tv_sec * 10000000 in timespec2ntfs() 104 + NTFS_TIME_OFFSET + spec.tv_nsec/100; in timespec2ntfs()
|
/haiku/headers/private/kernel/ |
H A D | AreaKeeper.h | 23 area_id Create(const char *name, void **_virtualAddress, uint32 spec, 26 size_t numBytes, uint32 spec, uint32 protection, 52 AreaKeeper::Create(const char *name, void **_virtualAddress, uint32 spec, in Create() argument 55 fArea = create_area(name, _virtualAddress, spec, size, lock, protection); in Create() 62 uint32 spec, uint32 protection, void **_virtualAddress) in Map() argument 64 fArea = map_physical_memory(name, physicalAddress, numBytes, spec, in Map()
|
/haiku/src/system/libroot/posix/sys/ |
H A D | itimer.cpp | 25 itimerval_to_itimerspec(const itimerval& val, itimerspec& spec) in itimerval_to_itimerspec() argument 27 return timeval_to_timespec(val.it_value, spec.it_value) in itimerval_to_itimerspec() 28 && timeval_to_timespec(val.it_interval, spec.it_interval); in itimerval_to_itimerspec() 33 itimerspec_to_itimerval(const itimerspec& spec, itimerval& val) in itimerspec_to_itimerval() argument 35 timespec_to_timeval(spec.it_value, val.it_value); in itimerspec_to_itimerval() 36 timespec_to_timeval(spec.it_interval, val.it_interval); in itimerspec_to_itimerval()
|
/haiku/src/tests/kits/app/bpropertyinfo/ |
H A D | PropertyFindMatchTest.cpp | 132 uint32 spec, in ExecFindMatch() argument 138 BMessage specMsg(spec); in ExecFindMatch() 143 assert(propTest->FindMatch(&msg, 0, &specMsg, spec, prop, &extra_data) == result); in ExecFindMatch() 147 assert(propTest->FindMatch(&msg, 0, NULL, spec, prop, &extra_data) == result); in ExecFindMatch() 149 assert(propTest->FindMatch(&msg, 1, &specMsg, spec, prop, &extra_data) == result); in ExecFindMatch() 150 assert(propTest->FindMatch(&msg, 1, NULL, spec, prop, &extra_data) == result); in ExecFindMatch() 152 assert(propTest->FindMatch(&msg, 1, &specMsg, spec, prop, &extra_data) == -1); in ExecFindMatch() 153 assert(propTest->FindMatch(&msg, 1, NULL, spec, prop, &extra_data) == -1); in ExecFindMatch()
|
H A D | PropertyFindMatchTest.h | 25 uint32 spec,
|
/haiku/src/tests/kits/opengl/glsl/ |
H A D | CH06-brick.vert | 28 float spec = 0.0; 32 spec = max(dot(reflectVec, viewVec), 0.0); 33 spec = pow(spec, 16.0); 37 SpecularContribution * spec;
|
/haiku/src/system/libroot/posix/time/ |
H A D | timer_support.cpp | 28 info_to_itimerspec(const user_timer_info& info, itimerspec& spec) in info_to_itimerspec() argument 30 bigtime_to_timespec(info.interval, spec.it_interval); in info_to_itimerspec() 34 bigtime_to_timespec(info.remaining_time, spec.it_value); in info_to_itimerspec() 36 spec.it_value.tv_sec = 0; in info_to_itimerspec() 37 spec.it_value.tv_nsec = 0; in info_to_itimerspec() 43 itimerspec_to_bigtimes(const itimerspec& spec, bigtime_t& _nextTime, in itimerspec_to_bigtimes() argument 46 if (!timespec_to_bigtime(spec.it_interval, _interval) in itimerspec_to_bigtimes() 47 || !timespec_to_bigtime(spec.it_value, _nextTime)) { in itimerspec_to_bigtimes()
|
/haiku/src/servers/print/ |
H A D | Transport.Scripting.cpp | 40 BMessage spec; in HandleScriptingCommand() local 43 if ((rc=msg->GetCurrentSpecifier(&idx,&spec)) == B_OK in HandleScriptingCommand() 44 && (rc=spec.FindString("property",&propName)) == B_OK) { in HandleScriptingCommand() 82 Transport::ResolveSpecifier(BMessage* msg, int32 index, BMessage* spec, in ResolveSpecifier() argument 89 switch (idx=prop_info.FindMatch(msg,0,spec,form,prop)) { in ResolveSpecifier() 91 rc = Inherited::ResolveSpecifier(msg,index,spec,form,prop); in ResolveSpecifier()
|
H A D | Printer.Scripting.cpp | 48 BMessage spec; in HandleScriptingCommand() local 51 if ((rc=msg->GetCurrentSpecifier(&idx,&spec)) == B_OK && in HandleScriptingCommand() 52 (rc=spec.FindString("property",&propName)) == B_OK) { in HandleScriptingCommand() 89 Printer::ResolveSpecifier(BMessage* msg, int32 index, BMessage* spec, in ResolveSpecifier() argument 96 switch( idx=prop_info.FindMatch(msg,0,spec,form,prop) ) { in ResolveSpecifier() 98 rc = Inherited::ResolveSpecifier(msg,index,spec,form,prop); in ResolveSpecifier()
|
H A D | PrintServerApp.Scripting.cpp | 57 BMessage spec; in HandleScriptingCommand() local 60 if (msg->GetCurrentSpecifier(&idx,&spec) == B_OK && in HandleScriptingCommand() 61 spec.FindString("property",&propName) == B_OK) { in HandleScriptingCommand() 117 Printer* printer = GetPrinterFromSpecifier(&spec); in HandleScriptingCommand() 214 PrintServerApp::ResolveSpecifier(BMessage* msg, int32 index, BMessage* spec, in ResolveSpecifier() argument 221 switch( idx=prop_info.FindMatch(msg,0,spec,form,prop) ) { in ResolveSpecifier() 223 rc = Inherited::ResolveSpecifier(msg,index,spec,form,prop); in ResolveSpecifier() 228 if ((rc=GetPrinterFromSpecifier(spec)) == NULL) { in ResolveSpecifier() 239 if ((rc=GetTransportFromSpecifier(spec)) == NULL) { in ResolveSpecifier()
|
/haiku/src/libs/posix_error_mapper/ |
H A D | pthread_mutex.cpp | 43 (pthread_mutex_t *mutex, const struct timespec *spec), 44 return B_TO_POSITIVE_ERROR(sReal_pthread_mutex_timedlock(mutex, spec));
|
/haiku/src/preferences/shortcuts/ |
H A D | ShortcutsWindow.cpp | 369 ShortcutsSpec* spec in _LoadKeySet() local 371 if (spec != NULL) in _LoadKeySet() 372 fColumnListView->AddRow(spec); in _LoadKeySet() 448 ShortcutsSpec* spec; in _AddNewSpec() local 451 spec = new ShortcutsSpec(*((ShortcutsSpec*)curSel)); in _AddNewSpec() 453 spec = new ShortcutsSpec(""); in _AddNewSpec() 455 spec->SetField(new BStringField(""), i); in _AddNewSpec() 458 fColumnListView->AddRow(spec); in _AddNewSpec() 459 fColumnListView->AddToSelection(spec); in _AddNewSpec() 460 fColumnListView->ScrollTo(spec); in _AddNewSpec() [all …]
|
/haiku/src/servers/notification/ |
H A D | NotificationServer.cpp | 92 BMessage* spec, int32 from, const char* prop) in ResolveSpecifier() argument 102 return BApplication::ResolveSpecifier(msg, index, spec, from, prop); in ResolveSpecifier()
|
H A D | NotificationServer.h | 25 BMessage* spec, int32 form,
|
/haiku/src/bin/fwcontrol/ |
H A D | fwcrom.c | 178 crom_has_specver(uint32_t *p, uint32_t spec, uint32_t ver) in crom_has_specver() argument 189 if (reg->key == CSRKEY_SPEC && reg->val == spec) in crom_has_specver() 263 crom_desc_specver(uint32_t spec, uint32_t ver, char *buf, int len) in crom_desc_specver() argument 267 if (spec == CSRVAL_ANSIT10 || spec == 0) { in crom_desc_specver() 273 if (spec != 0) in crom_desc_specver() 277 if (spec == CSRVAL_1394TA || spec == 0) { in crom_desc_specver() 307 if (spec != 0) in crom_desc_specver()
|
/haiku/src/libs/alm/ |
H A D | SharedSolver.cpp | 30 inline void CallSolverMethod(LinearSpec* spec, VariableList* vars) in CallSolverMethod() 32 spec->FindMins(vars); in CallSolverMethod() 49 inline void CallSolverMethod(LinearSpec* spec, VariableList* vars) in CallSolverMethod() 51 spec->FindMaxs(vars); in CallSolverMethod() 69 inline void CallSolverMethod(LinearSpec* spec, VariableList* vars) in CallSolverMethod() 71 spec->Solve(); in CallSolverMethod()
|