| /freebsd-12-stable/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| D | fifo.c | 62 fifonode_t *fn = xmalloc(sizeof (fifonode_t)); in fifo_add() local 64 fn->fn_data = data; in fifo_add() 65 fn->fn_next = NULL; in fifo_add() 68 f->f_head = f->f_tail = fn; in fifo_add() 70 f->f_tail->fn_next = fn; in fifo_add() 71 f->f_tail = fn; in fifo_add() 79 fifonode_t *fn; in fifo_remove() local 82 if ((fn = f->f_head) == NULL) in fifo_remove() 85 data = fn->fn_data; in fifo_remove() 86 if ((f->f_head = fn->fn_next) == NULL) in fifo_remove() [all …]
|
| /freebsd-12-stable/include/ |
| D | tgmath.h | 67 #define __tg_generic(x, cfnl, cfn, cfnf, fnl, fn, fnf) \ argument 73 default: fn, \ 79 #define __tg_impl_simple(x, y, z, fnl, fn, fnf, ...) \ argument 82 fnl, fn, fnf, fnl, fn, fnf)(__VA_ARGS__) 83 #define __tg_impl_full(x, y, cfnl, cfn, cfnf, fnl, fn, fnf, ...) \ argument 86 cfnl, cfn, cfnf, fnl, fn, fnf)(__VA_ARGS__) 88 #define __tg_generic_simple(x, fnl, fn, fnf) \ argument 90 __generic(x, double _Complex, fn, \ 93 __generic(x, float, fnf, fn))))) 94 #define __tg_impl_simple(x, y, z, fnl, fn, fnf, ...) \ argument [all …]
|
| /freebsd-12-stable/lib/msun/src/ |
| D | e_scalbf.c | 24 scalbf(float x, int fn) in scalbf() argument 27 scalbf(float x, float fn) in scalbf() 31 return scalbnf(x,fn); in scalbf() 33 if ((isnanf)(x)||(isnanf)(fn)) return x*fn; in scalbf() 34 if (!finitef(fn)) { in scalbf() 35 if(fn>(float)0.0) return x*fn; in scalbf() 36 else return x/(-fn); in scalbf() 38 if (rintf(fn)!=fn) return (fn-fn)/(fn-fn); in scalbf() 39 if ( fn > (float)65000.0) return scalbnf(x, 65000); in scalbf() 40 if (-fn > (float)65000.0) return scalbnf(x,-65000); in scalbf() [all …]
|
| D | e_scalb.c | 28 scalb(double x, int fn) in scalb() argument 31 scalb(double x, double fn) in scalb() 35 return scalbn(x,fn); in scalb() 37 if (isnan(x)||isnan(fn)) return x*fn; in scalb() 38 if (!finite(fn)) { in scalb() 39 if(fn>0.0) return x*fn; in scalb() 40 else return x/(-fn); in scalb() 42 if (rint(fn)!=fn) return (fn-fn)/(fn-fn); in scalb() 43 if ( fn > 65000.0) return scalbn(x, 65000); in scalb() 44 if (-fn > 65000.0) return scalbn(x,-65000); in scalb() [all …]
|
| /freebsd-12-stable/contrib/gcc/ |
| D | gcov.c | 503 function_t *fn; in process_file() local 518 for (fn = functions; fn; fn = fn->next) in process_file() 519 solve_flow_graph (fn); in process_file() 522 for (fn = functions; fn; fn = fn->next) in process_file() 527 coverage.name = fn->name; in process_file() 528 add_line_counts (flag_function_summary ? &coverage : NULL, fn); in process_file() 569 function_t *fn; in release_structures() local 586 while ((fn = functions)) in release_structures() 591 functions = fn->next; in release_structures() 592 for (ix = fn->num_blocks, block = fn->blocks; ix--; block++) in release_structures() [all …]
|
| D | c-objc-common.c | 59 c_disregard_inline_limits (tree fn) in c_disregard_inline_limits() argument 61 if (lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn)) != NULL) in c_disregard_inline_limits() 64 return (!flag_really_no_inline && DECL_DECLARED_INLINE_P (fn) in c_disregard_inline_limits() 65 && DECL_EXTERNAL (fn)); in c_disregard_inline_limits() 71 tree fn = *fnp; in c_cannot_inline_tree_fn() local 73 && DECL_INLINE (fn) in c_cannot_inline_tree_fn() 74 && DECL_DECLARED_INLINE_P (fn) in c_cannot_inline_tree_fn() 75 && !DECL_IN_SYSTEM_HEADER (fn)); in c_cannot_inline_tree_fn() 78 && lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn)) == NULL) in c_cannot_inline_tree_fn() 82 "is suppressed using -fno-inline", fn); in c_cannot_inline_tree_fn() [all …]
|
| D | fix-header.c | 404 struct fn_decl *fn; in lookup_std_proto() local 407 fn = &std_protos[hash_tab[i]]; in lookup_std_proto() 408 if ((int) strlen (fn->fname) == name_length in lookup_std_proto() 409 && strncmp (fn->fname, name, name_length) == 0) in lookup_std_proto() 410 return fn; in lookup_std_proto() 443 struct fn_decl *fn; member 459 struct fn_decl *fn = lookup_std_proto (fname, strlen (fname)); in recognized_macro() local 462 if (fn) in recognized_macro() 464 if (REQUIRED (fn)) in recognized_macro() 466 SET_SEEN (fn); in recognized_macro() [all …]
|
| /freebsd-12-stable/contrib/gcc/cp/ |
| D | optimize.c | 81 maybe_clone_body (tree fn) in maybe_clone_body() argument 87 if (!DECL_MAYBE_IN_CHARGE_CONSTRUCTOR_P (fn) in maybe_clone_body() 88 && !DECL_MAYBE_IN_CHARGE_DESTRUCTOR_P (fn)) in maybe_clone_body() 92 (*debug_hooks->deferred_inline_function) (fn); in maybe_clone_body() 97 FOR_EACH_CLONE (clone, fn) in maybe_clone_body() 105 DECL_SOURCE_LOCATION (clone) = DECL_SOURCE_LOCATION (fn); in maybe_clone_body() 106 DECL_INLINE (clone) = DECL_INLINE (fn); in maybe_clone_body() 107 DECL_DECLARED_INLINE_P (clone) = DECL_DECLARED_INLINE_P (fn); in maybe_clone_body() 108 DECL_COMDAT (clone) = DECL_COMDAT (fn); in maybe_clone_body() 109 DECL_WEAK (clone) = DECL_WEAK (fn); in maybe_clone_body() [all …]
|
| D | except.c | 167 tree fn; in do_get_exception_ptr() local 169 fn = get_identifier ("__cxa_get_exception_ptr"); in do_get_exception_ptr() 170 if (!get_global_value_if_present (fn, &fn)) in do_get_exception_ptr() 174 fn = push_library_fn (fn, build_function_type (ptr_type_node, tmp)); in do_get_exception_ptr() 177 return build_function_call (fn, tree_cons (NULL_TREE, build_exc_ptr (), in do_get_exception_ptr() 187 tree fn; in do_begin_catch() local 189 fn = get_identifier ("__cxa_begin_catch"); in do_begin_catch() 190 if (!get_global_value_if_present (fn, &fn)) in do_begin_catch() 194 fn = push_library_fn (fn, build_function_type (ptr_type_node, tmp)); in do_begin_catch() 197 return build_function_call (fn, tree_cons (NULL_TREE, build_exc_ptr (), in do_begin_catch() [all …]
|
| D | call.c | 389 tree fn; member 983 f = cand->fn; in convert_class_to_reference() 1008 (TREE_TYPE (cand->fn))), in convert_class_to_reference() 1038 TREE_TYPE (TREE_TYPE (cand->fn)), in convert_class_to_reference() 1309 tree fn, tree args, in add_candidate() argument 1317 cand->fn = fn; in add_candidate() 1339 tree fn, tree ctype, tree arglist, in add_function_candidate() argument 1343 tree parmlist = TYPE_ARG_TYPES (TREE_TYPE (fn)); in add_function_candidate() 1353 gcc_assert (!DECL_ANTICIPATED (fn) || DECL_HIDDEN_FRIEND_P (fn)); in add_function_candidate() 1357 if (DECL_CONSTRUCTOR_P (fn)) in add_function_candidate() [all …]
|
| D | method.c | 837 tree fn = (*extractor) (BINFO_TYPE (base_binfo), client); in synthesize_exception_spec() local 838 if (fn) in synthesize_exception_spec() 840 tree fn_raises = TYPE_RAISES_EXCEPTIONS (TREE_TYPE (fn)); in synthesize_exception_spec() 848 tree fn; in synthesize_exception_spec() local 857 fn = (*extractor) (type, client); in synthesize_exception_spec() 858 if (fn) in synthesize_exception_spec() 860 tree fn_raises = TYPE_RAISES_EXCEPTIONS (TREE_TYPE (fn)); in synthesize_exception_spec() 893 tree fn = OVL_CURRENT (fns); in locate_ctor() local 894 tree parms = TYPE_ARG_TYPES (TREE_TYPE (fn)); in locate_ctor() 896 parms = skip_artificial_parms_for (fn, parms); in locate_ctor() [all …]
|
| /freebsd-12-stable/lib/libc/stdlib/ |
| D | atexit.c | 134 struct atexit_fn fn; in atexit() local 137 fn.fn_type = ATEXIT_FN_STD; in atexit() 138 fn.fn_ptr.std_func = func; in atexit() 139 fn.fn_arg = NULL; in atexit() 140 fn.fn_dso = NULL; in atexit() 142 error = atexit_register(&fn); in atexit() 153 struct atexit_fn fn; in atexit_b() local 163 fn.fn_type = ATEXIT_FN_CXA; in atexit_b() 164 fn.fn_ptr.cxa_func = (void(*)(void*))GET_BLOCK_FUNCTION(func); in atexit_b() 165 fn.fn_arg = func; in atexit_b() [all …]
|
| /freebsd-12-stable/contrib/netbsd-tests/lib/libc/regex/ |
| D | split.c | 51 int fn; in split() local 74 fn = nfields; in split() 77 fn--; in split() 78 if (fn == 0) in split() 82 return(nfields - fn); in split() 86 fn = nfields; in split() 90 return(fn); in split() 91 fn++; in split() 98 fn = nfields; in split() 101 fn--; in split() [all …]
|
| /freebsd-12-stable/lib/libc/regex/grot/ |
| D | split.c | 23 int fn; in split() local 46 fn = nfields; in split() 49 fn--; in split() 50 if (fn == 0) in split() 54 return(nfields - fn); in split() 58 fn = nfields; in split() 62 return(fn); in split() 63 fn++; in split() 70 fn = nfields; in split() 73 fn--; in split() [all …]
|
| /freebsd-12-stable/lib/libutil/tests/ |
| D | flopen_test.c | 50 const char *fn = "test_flopen_create"; in test_flopen_create() local 54 unlink(fn); in test_flopen_create() 55 fd = flopen(fn, O_RDWR|O_CREAT, 0640); in test_flopen_create() 61 unlink(fn); in test_flopen_create() 71 const char *fn = "test_flopen_open"; in test_flopen_open() local 75 fd = open(fn, O_RDWR|O_CREAT, 0640); in test_flopen_open() 80 fd = flopen(fn, O_RDWR); in test_flopen_open() 87 unlink(fn); in test_flopen_open() 97 const char *fn = "test_flopen_lock_self"; in test_flopen_lock_self() local 101 unlink(fn); in test_flopen_lock_self() [all …]
|
| D | pidfile_test.c | 63 const char *fn = "test_pidfile_uncontested"; in test_pidfile_uncontested() local 67 unlink(fn); in test_pidfile_uncontested() 68 pf = pidfile_open(fn, 0600, &other); in test_pidfile_uncontested() 75 unlink(fn); in test_pidfile_uncontested() 79 unlink(fn); in test_pidfile_uncontested() 89 const char *fn = "test_pidfile_self"; in test_pidfile_self() local 94 unlink(fn); in test_pidfile_self() 95 pf1 = pidfile_open(fn, 0600, &other); in test_pidfile_self() 103 unlink(fn); in test_pidfile_self() 107 pf2 = pidfile_open(fn, 0600, &other); in test_pidfile_self() [all …]
|
| /freebsd-12-stable/sys/compat/linuxkpi/common/include/linux/ |
| D | module.h | 67 void (*fn)(void); in _module_run() local 79 fn = arg; in _module_run() 80 fn(); in _module_run() 83 #define module_init(fn) \ argument 84 SYSINIT(fn, SI_SUB_OFED_MODINIT, SI_ORDER_FIRST, _module_run, (fn)) 86 #define module_exit(fn) \ argument 87 SYSUNINIT(fn, SI_SUB_OFED_MODINIT, SI_ORDER_SECOND, _module_run, (fn)) 93 #define module_init_order(fn, order) \ argument 94 SYSINIT(fn, SI_SUB_OFED_MODINIT, (order), _module_run, (fn)) 96 #define module_exit_order(fn, order) \ argument [all …]
|
| /freebsd-12-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| D | sanitizer_win_dll_thunk.h | 94 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \ 95 fn(); \ 102 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \ 103 fn(arg); \ 110 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \ 111 fn(arg1, arg2); \ 118 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \ 119 fn(arg1, arg2, arg3); \ 126 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \ 127 return fn(); \ [all …]
|
| /freebsd-12-stable/contrib/netbsd-tests/lib/libm/ |
| D | t_libm.h | 10 #define T_LIBM_CHECK(subtest, fn, arg, expect_, epsilon_) do { \ argument 13 long double r = fn(arg); \ 17 "subtest %u: " #fn "(%g) is %Lg (%.14La) " \ 24 #define T_LIBM_CHECK_NAN(subtest, fn, arg) do { \ argument 25 double r = fn(arg); \ 27 atf_tc_fail_nonfatal("subtest %u: " #fn "(%g) is %g not NaN", \ 32 #define T_LIBM_CHECK_NAN(subtest, fn, arg) (void)(arg) argument 36 #define T_LIBM_CHECK_PLUS_ZERO(subtest, fn, arg) do { \ argument 37 double r = fn(arg); \ 39 atf_tc_fail_nonfatal("subtest %u: " #fn "(%g) is %g not +0.0", \ [all …]
|
| /freebsd-12-stable/crypto/heimdal/lib/roken/ |
| D | test-readenv.c | 60 write_file(const char *fn, const char *s) in write_file() argument 63 f = fopen(fn, "w"); in write_file() 65 unlink(fn); in write_file() 71 unlink(fn); in write_file() 81 char fn[MAXPATHLEN]; in main() local 84 make_file(fn, sizeof(fn)); in main() 86 write_file(fn, s1); in main() 87 count = read_environment(fn, &env); in main() 93 write_file(fn, s2); in main() 94 count = read_environment(fn, &env); in main() [all …]
|
| /freebsd-12-stable/crypto/openssl/crypto/evp/ |
| D | names.c | 99 void (*fn) (const EVP_CIPHER *ciph, member 107 dc->fn(NULL, nm->name, nm->data, dc->arg); in do_all_cipher_fn() 109 dc->fn((const EVP_CIPHER *)nm->data, nm->name, NULL, dc->arg); in do_all_cipher_fn() 112 void EVP_CIPHER_do_all(void (*fn) (const EVP_CIPHER *ciph, in EVP_CIPHER_do_all() 121 dc.fn = fn; in EVP_CIPHER_do_all() 126 void EVP_CIPHER_do_all_sorted(void (*fn) (const EVP_CIPHER *ciph, in EVP_CIPHER_do_all_sorted() 135 dc.fn = fn; in EVP_CIPHER_do_all_sorted() 142 void (*fn) (const EVP_MD *ciph, member 150 dc->fn(NULL, nm->name, nm->data, dc->arg); in do_all_md_fn() 152 dc->fn((const EVP_MD *)nm->data, nm->name, NULL, dc->arg); in do_all_md_fn() [all …]
|
| /freebsd-12-stable/tools/tools/ansify/ |
| D | ansify.pl | 41 my $fn = shift; 65 warn("[$fn:$line] $func(): can't parse argument list\n"); 77 warn("[$fn:$line] $func(): unknown type for '$arg' argument\n"); 97 warn("[$fn:$line] $func(): too many arguments\n"); 105 warn("[$fn:$line] $func(): definition exceeds 80 characters\n") 117 my $fn = shift; 119 my $tfn = "$fn.ansify"; 123 if (open(IN, "<", $fn)) { 125 ansify(*IN{IO}, *OUT{IO}, $fn); 126 if (!rename($tfn, $fn)) { [all …]
|
| /freebsd-12-stable/lib/csu/common/ |
| D | ignore_init.c | 93 void (*fn)(void); in finalizer() local 98 fn = __fini_array_start[n - 1]; in finalizer() 99 if ((uintptr_t)fn != 0 && (uintptr_t)fn != 1) in finalizer() 100 (fn)(); in finalizer() 108 void (*fn)(int, char **, char **); in handle_static_init() local 118 fn = __preinit_array_start[n]; in handle_static_init() 119 if ((uintptr_t)fn != 0 && (uintptr_t)fn != 1) in handle_static_init() 120 fn(argc, argv, env); in handle_static_init() 125 fn = __init_array_start[n]; in handle_static_init() 126 if ((uintptr_t)fn != 0 && (uintptr_t)fn != 1) in handle_static_init() [all …]
|
| /freebsd-12-stable/tools/tools/hcomp/ |
| D | hcomp.pl | 40 my $fn = shift; 45 warn("$fn\n") 48 open(FILE, "<", $fn) 49 or die("$fn: $!\n"); 70 open(FILE, ">", "$fn.new") 71 or die("$fn.new: $!\n"); 75 rename($fn, "$fn.$opt_b") 77 rename("$fn.new", $fn);
|
| /freebsd-12-stable/contrib/sendmail/libsmutil/ |
| D | safefile.c | 45 safefile(fn, uid, gid, user, flags, mode, st) 46 char *fn; 64 fn, (int) uid, (int) gid, flags, mode); 66 if (sm_strlcpy(fbuf, fn, sizeof fbuf) >= sizeof fbuf) 72 fn = fbuf; 82 if ((bitset(SFF_NOSLINK, flags) ? lstat(fn, st) 83 : stat(fn, st)) < 0) 85 if (stat(fn, st) < 0) 125 p = strrchr(fn, '/'); 134 ret = safedirpath(fn, uid, gid, user, [all …]
|