| /third_party/PyYAML/tests/lib/ |
| H A D | test_emitter.py | 18 with open(data_filename, 'rb') as file: 19 events = list(yaml.parse(file)) 30 with open(canonical_filename, 'rb') as file: 31 events = list(yaml.parse(file)) 44 with open(filename, 'rb') as file: 45 events = list(yaml.parse(file)) 92 with open(events_filename, 'rb') as file: 93 events = list(yaml.load(file, Loader=EventsLoader))
|
| /third_party/libsnd/tests/ |
| H A D | compression_size_test.c | 53 SNDFILE * file ; in vorbis_test() local 65 /* Set up output file type. */ in vorbis_test() 71 /* Write the output file. */ in vorbis_test() 77 if ((file = sf_open (filename, SFM_WRITE, &sfinfo)) == NULL) in vorbis_test() 90 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in vorbis_test() 93 test_write_float_or_die (file, 0, float_data, ARRAY_LEN (float_data), __LINE__) ; in vorbis_test() 94 sf_close (file) ; in vorbis_test() 98 /* Read the file back in again. */ in vorbis_test() 100 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_FALSE, __LINE__) ; in vorbis_test() 101 test_read_float_or_die (file, in vorbis_test() [all...] |
| /third_party/mesa3d/src/freedreno/rnn/ |
| H A D | rnn.h | 100 char *file; member 109 char *file; member 162 char *file; member 170 char *file; member 184 char *file; member 225 char *file; member 231 char *file; member 236 void rnn_parsefile (struct rnndb *db, char *file);
|
| /third_party/ltp/testcases/kernel/firmware/fw_load_user/ |
| H A D | fw_load.c | 51 char *file; member 97 printf(" -n x Write x bytes to firmware file, default is %d\n", in help() 139 /* make non-existent firmware file */ in setup() 140 SAFE_ASPRINTF(cleanup, &fw[fw_num].file, "/n%d_%s", fw_num, fw_name); in setup() 161 fw[i].file + offset); in test_run() 173 if (fw[i].remove_file && remove(fw[i].file) == -1) in cleanup() 174 tst_resm(TWARN, "Can't remove: %s", fw[i].file); in cleanup() 175 free(fw[i].file); in cleanup() 197 /* create test firmware file */ in create_firmware() 198 SAFE_ASPRINTF(cleanup, &fi->file, " in create_firmware() [all...] |
| /third_party/node/deps/openssl/openssl/crypto/err/ |
| H A D | err_prn.c | 5 * this file except in compliance with the License. You can obtain a copy 6 * in the file LICENSE in the source distribution or at 25 const char *file, *data, *func; in ERR_print_errors_cb() local 28 while ((l = ERR_get_error_all(&file, &line, &func, &data, &flags)) != 0) { in ERR_print_errors_cb() 42 file, line, data); in ERR_print_errors_cb() 51 const char *file, int line) in put_error() 54 ERR_set_debug(file, line, func); in put_error() 62 const char *file = NULL; in ERR_add_error_txt() local 81 ERR_peek_last_error_all(&file, &line, &func, &data, &flags); in ERR_add_error_txt() 129 put_error(ERR_GET_LIB(err), func, err, file, lin in ERR_add_error_txt() local 50 put_error(int lib, const char *func, int reason, const char *file, int line) put_error() argument [all...] |
| /third_party/pcre2/pcre2/maint/ |
| H A D | GenerateCommon.py | 6 # This file is a Python module containing common lists and functions for the 19 # BIDI classes in the DerivedBidiClass.txt file, with comments. 48 # is changed, the table called "catposstab" in the pcre2_auto_possess.c file 84 # The Extended_Pictographic property is not found in the file where all the 86 # file, but we list it here so that the name has the correct index value. 127 file = open('Unicode.tables/' + filename, 'r') 132 for line in file: 144 file.close() 283 # Open an output file, using the command's argument or a default. Write common 288 print('** Too many arguments: just give a file nam [all...] |
| /third_party/openssl/crypto/err/ |
| H A D | err_prn.c | 5 * this file except in compliance with the License. You can obtain a copy 6 * in the file LICENSE in the source distribution or at 25 const char *file, *data, *func; in ERR_print_errors_cb() local 28 while ((l = ERR_get_error_all(&file, &line, &func, &data, &flags)) != 0) { in ERR_print_errors_cb() 42 file, line, data); in ERR_print_errors_cb() 51 const char *file, int line) in put_error() 54 ERR_set_debug(file, line, func); in put_error() 62 const char *file = NULL; in ERR_add_error_txt() local 81 ERR_peek_last_error_all(&file, &line, &func, &data, &flags); in ERR_add_error_txt() 129 put_error(ERR_GET_LIB(err), func, err, file, lin in ERR_add_error_txt() local 50 put_error(int lib, const char *func, int reason, const char *file, int line) put_error() argument [all...] |
| /third_party/protobuf/src/google/protobuf/compiler/ |
| H A D | annotation_test_util.cc | 41 #include <google/protobuf/testing/file.h> 42 #include <google/protobuf/testing/file.h> 56 // Does not own file; file must outlive the Generator. 57 explicit DescriptorCapturingGenerator(FileDescriptorProto* file) in DescriptorCapturingGenerator() argument 58 : file_(file) {} in DescriptorCapturingGenerator() 60 virtual bool Generate(const FileDescriptor* file, in Generate() argument 63 file->CopyTo(file_); in Generate() 79 CommandLineInterface* cli, FileDescriptorProto* file) { in RunProtoCompiler() 82 DescriptorCapturingGenerator capturing_generator(file); in RunProtoCompiler() 77 RunProtoCompiler(const std::string& filename, const std::string& plugin_specific_args, CommandLineInterface* cli, FileDescriptorProto* file) RunProtoCompiler() argument [all...] |
| /kernel/linux/linux-6.6/drivers/media/pci/bt8xx/ |
| H A D | bttv-driver.c | 1602 static int bttv_s_std(struct file *file, void *priv, v4l2_std_id id) in bttv_s_std() argument 1604 struct bttv *btv = video_drvdata(file); in bttv_s_std() 1617 static int bttv_g_std(struct file *file, void *priv, v4l2_std_id *id) in bttv_g_std() argument 1619 struct bttv *btv = video_drvdata(file); in bttv_g_std() 1625 static int bttv_querystd(struct file *file, void *f, v4l2_std_id *id) in bttv_querystd() argument 1627 struct bttv *btv = video_drvdata(file); in bttv_querystd() 1636 static int bttv_enum_input(struct file *fil argument 1669 bttv_g_input(struct file *file, void *priv, unsigned int *i) bttv_g_input() argument 1678 bttv_s_input(struct file *file, void *priv, unsigned int i) bttv_s_input() argument 1689 bttv_s_tuner(struct file *file, void *priv, const struct v4l2_tuner *t) bttv_s_tuner() argument 1707 bttv_g_frequency(struct file *file, void *priv, struct v4l2_frequency *f) bttv_g_frequency() argument 1743 bttv_s_frequency(struct file *file, void *priv, const struct v4l2_frequency *f) bttv_s_frequency() argument 1755 bttv_log_status(struct file *file, void *f) bttv_log_status() argument 1766 bttv_g_register(struct file *file, void *f, struct v4l2_dbg_register *reg) bttv_g_register() argument 1779 bttv_s_register(struct file *file, void *f, const struct v4l2_dbg_register *reg) bttv_s_register() argument 1986 bttv_g_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f) bttv_g_fmt_vid_cap() argument 2012 bttv_try_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f) bttv_try_fmt_vid_cap() argument 2067 bttv_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f) bttv_s_fmt_vid_cap() argument 2114 bttv_querycap(struct file *file, void *priv, struct v4l2_capability *cap) bttv_querycap() argument 2145 bttv_enum_fmt_vid_cap(struct file *file, void *priv, struct v4l2_fmtdesc *f) bttv_enum_fmt_vid_cap() argument 2164 bttv_g_parm(struct file *file, void *f, struct v4l2_streamparm *parm) bttv_g_parm() argument 2178 bttv_g_tuner(struct file *file, void *priv, struct v4l2_tuner *t) bttv_g_tuner() argument 2200 bttv_g_pixelaspect(struct file *file, void *priv, int type, struct v4l2_fract *f) bttv_g_pixelaspect() argument 2213 bttv_g_selection(struct file *file, void *f, struct v4l2_selection *sel) bttv_g_selection() argument 2237 bttv_s_selection(struct file *file, void *f, struct v4l2_selection *sel) bttv_s_selection() argument 2368 radio_open(struct file *file) radio_open() argument 2386 radio_release(struct file *file) radio_release() argument 2403 radio_g_tuner(struct file *file, void *priv, struct v4l2_tuner *t) radio_g_tuner() argument 2424 radio_s_tuner(struct file *file, void *priv, const struct v4l2_tuner *t) radio_s_tuner() argument 2437 radio_s_hw_freq_seek(struct file *file, void *priv, const struct v4l2_hw_freq_seek *a) radio_s_hw_freq_seek() argument 2448 radio_enum_freq_bands(struct file *file, void *priv, struct v4l2_frequency_band *band) radio_enum_freq_bands() argument 2459 radio_read(struct file *file, char __user *data, size_t count, loff_t *ppos) radio_read() argument 2477 radio_poll(struct file *file, poll_table *wait) radio_poll() argument [all...] |
| /kernel/linux/linux-5.10/drivers/gpu/drm/ |
| H A D | drm_client.c | 37 struct drm_file *file; in drm_client_open() local 39 file = drm_file_alloc(dev->primary); in drm_client_open() 40 if (IS_ERR(file)) in drm_client_open() 41 return PTR_ERR(file); in drm_client_open() 44 list_add(&file->lhead, &dev->filelist_internal); in drm_client_open() 47 client->file = file; in drm_client_open() 57 list_del(&client->file->lhead); in drm_client_close() 60 drm_file_free(client->file); in drm_client_close() 143 * is fbdev which cannot free the buffer if userspace has open file descriptor [all...] |
| /kernel/linux/linux-5.10/drivers/scsi/qedf/ |
| H A D | qedf_debugfs.c | 19 * qedf_dbg_host_init - setup the debugfs file for the pf 99 qedf_dbg_fp_int_cmd_read(struct file *filp, char __user *buffer, size_t count, in qedf_dbg_fp_int_cmd_read() 136 qedf_dbg_fp_int_cmd_write(struct file *filp, const char __user *buffer, in qedf_dbg_fp_int_cmd_write() 146 qedf_dbg_debug_cmd_read(struct file *filp, char __user *buffer, size_t count, in qedf_dbg_debug_cmd_read() 161 qedf_dbg_debug_cmd_write(struct file *filp, const char __user *buffer, in qedf_dbg_debug_cmd_write() 192 qedf_dbg_stop_io_on_error_cmd_read(struct file *filp, char __user *buffer, in qedf_dbg_stop_io_on_error_cmd_read() 210 qedf_dbg_stop_io_on_error_cmd_write(struct file *filp, in qedf_dbg_stop_io_on_error_cmd_write() 289 qedf_dbg_io_trace_open(struct inode *inode, struct file *file) in qedf_dbg_io_trace_open() argument 295 return single_open(file, qedf_io_trace_sho in qedf_dbg_io_trace_open() 376 qedf_dbg_driver_stats_open(struct inode *inode, struct file *file) qedf_dbg_driver_stats_open() argument 468 qedf_dbg_offload_stats_open(struct inode *inode, struct file *file) qedf_dbg_offload_stats_open() argument [all...] |
| /kernel/linux/linux-5.10/drivers/usb/ |
| H A D | usb-skeleton.c | 36 /* our private defines. if this grows any larger, use your own .h file */ 83 static int skel_open(struct inode *inode, struct file *file) in skel_open() argument 113 /* save our object in the file's private structure */ in skel_open() 114 file->private_data = dev; in skel_open() 120 static int skel_release(struct inode *inode, struct file *file) in skel_release() argument 124 dev = file->private_data; in skel_release() 136 static int skel_flush(struct file *file, fl_owner_ argument 224 skel_read(struct file *file, char *buffer, size_t count, loff_t *ppos) skel_read() argument 359 skel_write(struct file *file, const char *user_buffer, size_t count, loff_t *ppos) skel_write() argument [all...] |
| /kernel/linux/linux-5.10/fs/ecryptfs/ |
| H A D | miscdev.c | 23 * @file: dev file 29 ecryptfs_miscdev_poll(struct file *file, poll_table *pt) in ecryptfs_miscdev_poll() argument 31 struct ecryptfs_daemon *daemon = file->private_data; in ecryptfs_miscdev_poll() 46 poll_wait(file, &daemon->wait, pt); in ecryptfs_miscdev_poll() 59 * @file: file for miscdev handle 64 ecryptfs_miscdev_open(struct inode *inode, struct file *file) in ecryptfs_miscdev_open() argument 107 ecryptfs_miscdev_release(struct inode *inode, struct file *file) ecryptfs_miscdev_release() argument 210 ecryptfs_miscdev_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) ecryptfs_miscdev_read() argument 352 ecryptfs_miscdev_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) ecryptfs_miscdev_write() argument [all...] |
| /kernel/linux/linux-5.10/fs/ceph/ |
| H A D | locks.c | 4 #include <linux/file.h> 209 static int try_unlock_file(struct file *file, struct file_lock *fl) in try_unlock_file() argument 214 err = locks_lock_file_wait(file, fl); in try_unlock_file() 228 int ceph_lock(struct file *file, int cmd, struct file_lock *fl) in ceph_lock() argument 230 struct inode *inode = file_inode(file); in ceph_lock() 240 if (__mandatory_lock(file->f_mapping->host) && fl->fl_type != F_UNLCK) in ceph_lock() 258 posix_lock_file(file, fl, NULL); in ceph_lock() 270 err = try_unlock_file(file, f in ceph_lock() 294 ceph_flock(struct file *file, int cmd, struct file_lock *fl) ceph_flock() argument [all...] |
| /kernel/linux/linux-6.6/fs/ecryptfs/ |
| H A D | miscdev.c | 23 * @file: dev file 29 ecryptfs_miscdev_poll(struct file *file, poll_table *pt) in ecryptfs_miscdev_poll() argument 31 struct ecryptfs_daemon *daemon = file->private_data; in ecryptfs_miscdev_poll() 46 poll_wait(file, &daemon->wait, pt); in ecryptfs_miscdev_poll() 59 * @file: file for miscdev handle 64 ecryptfs_miscdev_open(struct inode *inode, struct file *file) in ecryptfs_miscdev_open() argument 107 ecryptfs_miscdev_release(struct inode *inode, struct file *file) ecryptfs_miscdev_release() argument 210 ecryptfs_miscdev_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) ecryptfs_miscdev_read() argument 353 ecryptfs_miscdev_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) ecryptfs_miscdev_write() argument [all...] |
| /kernel/linux/linux-6.6/drivers/usb/ |
| H A D | usb-skeleton.c | 36 /* our private defines. if this grows any larger, use your own .h file */ 83 static int skel_open(struct inode *inode, struct file *file) in skel_open() argument 113 /* save our object in the file's private structure */ in skel_open() 114 file->private_data = dev; in skel_open() 120 static int skel_release(struct inode *inode, struct file *file) in skel_release() argument 124 dev = file->private_data; in skel_release() 136 static int skel_flush(struct file *file, fl_owner_ argument 224 skel_read(struct file *file, char *buffer, size_t count, loff_t *ppos) skel_read() argument 359 skel_write(struct file *file, const char *user_buffer, size_t count, loff_t *ppos) skel_write() argument [all...] |
| /kernel/linux/linux-6.6/drivers/gpu/drm/ |
| H A D | drm_client.c | 38 struct drm_file *file; in drm_client_open() local 40 file = drm_file_alloc(dev->primary); in drm_client_open() 41 if (IS_ERR(file)) in drm_client_open() 42 return PTR_ERR(file); in drm_client_open() 45 list_add(&file->lhead, &dev->filelist_internal); in drm_client_open() 48 client->file = file; in drm_client_open() 58 list_del(&client->file->lhead); in drm_client_close() 61 drm_file_free(client->file); in drm_client_close() 165 * is fbdev which cannot free the buffer if userspace has open file descriptor [all...] |
| /kernel/linux/linux-6.6/drivers/scsi/qedf/ |
| H A D | qedf_debugfs.c | 19 * qedf_dbg_host_init - setup the debugfs file for the pf 99 qedf_dbg_fp_int_cmd_read(struct file *filp, char __user *buffer, size_t count, in qedf_dbg_fp_int_cmd_read() 136 qedf_dbg_fp_int_cmd_write(struct file *filp, const char __user *buffer, in qedf_dbg_fp_int_cmd_write() 146 qedf_dbg_debug_cmd_read(struct file *filp, char __user *buffer, size_t count, in qedf_dbg_debug_cmd_read() 161 qedf_dbg_debug_cmd_write(struct file *filp, const char __user *buffer, in qedf_dbg_debug_cmd_write() 192 qedf_dbg_stop_io_on_error_cmd_read(struct file *filp, char __user *buffer, in qedf_dbg_stop_io_on_error_cmd_read() 210 qedf_dbg_stop_io_on_error_cmd_write(struct file *filp, in qedf_dbg_stop_io_on_error_cmd_write() 289 qedf_dbg_io_trace_open(struct inode *inode, struct file *file) in qedf_dbg_io_trace_open() argument 295 return single_open(file, qedf_io_trace_sho in qedf_dbg_io_trace_open() 376 qedf_dbg_driver_stats_open(struct inode *inode, struct file *file) qedf_dbg_driver_stats_open() argument 468 qedf_dbg_offload_stats_open(struct inode *inode, struct file *file) qedf_dbg_offload_stats_open() argument [all...] |
| /third_party/python/Tools/c-analyzer/c_common/ |
| H A D | fsutil.py | 204 """Yield each file in the tree under the given directory name. 222 """Yield each file in the tree under the given directory name. 242 """Yield each file in the tree under the given directory name. 289 """Yield each file in the tree that has the given suffixes. 301 # file info 310 def is_readable(file, *, user=None, check=False): 311 filename, st, mode = _get_file_info(file) 323 def is_writable(file, *, user=None, check=False): 324 filename, st, mode = _get_file_info(file) 336 def is_executable(file, *, use [all...] |
| /kernel/linux/linux-5.10/fs/notify/inotify/ |
| H A D | inotify_user.c | 16 #include <linux/file.h> 102 /* intofiy userspace file descriptor functions */ 103 static __poll_t inotify_poll(struct file *file, poll_table *wait) in inotify_poll() argument 105 struct fsnotify_group *group = file->private_data; in inotify_poll() 108 poll_wait(file, &group->notification_waitq, wait); in inotify_poll() 214 static ssize_t inotify_read(struct file *file, char __user *buf, in inotify_read() argument 224 group = file->private_data; in inotify_read() 248 if (file in inotify_read() 266 inotify_release(struct inode *ignored, struct file *file) inotify_release() argument 278 inotify_ioctl(struct file *file, unsigned int cmd, unsigned long arg) inotify_ioctl() argument [all...] |
| /kernel/linux/linux-5.10/drivers/net/wireless/ti/wl18xx/ |
| H A D | debugfs.c | 3 * This file is part of wl18xx 178 static ssize_t conf_read(struct file *file, char __user *user_buf, in conf_read() argument 181 struct wl1271 *wl = file->private_data; in conf_read() 220 static ssize_t clear_fw_stats_write(struct file *file, in clear_fw_stats_write() argument 224 struct wl1271 *wl = file->private_data; in clear_fw_stats_write() 248 static ssize_t radar_detection_write(struct file *file, in radar_detection_write() argument 252 struct wl1271 *wl = file in radar_detection_write() 290 dynamic_fw_traces_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) dynamic_fw_traces_write() argument 326 dynamic_fw_traces_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) dynamic_fw_traces_read() argument 343 radar_debug_mode_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) radar_debug_mode_write() argument 390 radar_debug_mode_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) radar_debug_mode_read() argument [all...] |
| /kernel/linux/linux-6.6/fs/notify/inotify/ |
| H A D | inotify_user.c | 16 #include <linux/file.h> 139 /* inotify userspace file descriptor functions */ 140 static __poll_t inotify_poll(struct file *file, poll_table *wait) in inotify_poll() argument 142 struct fsnotify_group *group = file->private_data; in inotify_poll() 145 poll_wait(file, &group->notification_waitq, wait); in inotify_poll() 250 static ssize_t inotify_read(struct file *file, char __user *buf, in inotify_read() argument 260 group = file->private_data; in inotify_read() 284 if (file in inotify_read() 302 inotify_release(struct inode *ignored, struct file *file) inotify_release() argument 314 inotify_ioctl(struct file *file, unsigned int cmd, unsigned long arg) inotify_ioctl() argument [all...] |
| /kernel/linux/linux-6.6/drivers/net/wireless/ti/wl18xx/ |
| H A D | debugfs.c | 3 * This file is part of wl18xx 178 static ssize_t conf_read(struct file *file, char __user *user_buf, in conf_read() argument 181 struct wl1271 *wl = file->private_data; in conf_read() 220 static ssize_t clear_fw_stats_write(struct file *file, in clear_fw_stats_write() argument 224 struct wl1271 *wl = file->private_data; in clear_fw_stats_write() 248 static ssize_t radar_detection_write(struct file *file, in radar_detection_write() argument 252 struct wl1271 *wl = file in radar_detection_write() 288 dynamic_fw_traces_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) dynamic_fw_traces_write() argument 322 dynamic_fw_traces_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) dynamic_fw_traces_read() argument 339 radar_debug_mode_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) radar_debug_mode_write() argument 384 radar_debug_mode_read(struct file *file, char __user *userbuf, size_t count, loff_t *ppos) radar_debug_mode_read() argument [all...] |
| /kernel/linux/linux-6.6/sound/core/ |
| H A D | jack.c | 170 static ssize_t sw_inject_enable_read(struct file *file, in sw_inject_enable_read() argument 173 struct snd_jack_kctl *jack_kctl = file->private_data; in sw_inject_enable_read() 184 static ssize_t sw_inject_enable_write(struct file *file, in sw_inject_enable_write() argument 187 struct snd_jack_kctl *jack_kctl = file->private_data; in sw_inject_enable_write() 208 static ssize_t jackin_inject_write(struct file *file, in jackin_inject_write() argument 211 struct snd_jack_kctl *jack_kctl = file->private_data; in jackin_inject_write() 229 static ssize_t jack_kctl_id_read(struct file *fil argument 267 jack_kctl_mask_bits_read(struct file *file, char __user *to, size_t count, loff_t *ppos) jack_kctl_mask_bits_read() argument 280 jack_kctl_status_read(struct file *file, char __user *to, size_t count, loff_t *ppos) jack_kctl_status_read() argument 295 jack_type_read(struct file *file, char __user *to, size_t count, loff_t *ppos) jack_type_read() argument [all...] |
| /third_party/node/deps/openssl/config/archs/darwin64-x86_64-cc/asm/include/openssl/ |
| H A D | crypto.h | 9 * this file except in compliance with the License. You can obtain a copy 10 * in the file LICENSE in the source distribution or at 333 typedef void *(*CRYPTO_malloc_fn)(size_t num, const char *file, int line); 334 typedef void *(*CRYPTO_realloc_fn)(void *addr, size_t num, const char *file, 336 typedef void (*CRYPTO_free_fn)(void *addr, const char *file, int line); 344 void *CRYPTO_malloc(size_t num, const char *file, int line); 345 void *CRYPTO_zalloc(size_t num, const char *file, int line); 346 void *CRYPTO_memdup(const void *str, size_t siz, const char *file, int line); 347 char *CRYPTO_strdup(const char *str, const char *file, int line); 348 char *CRYPTO_strndup(const char *str, size_t s, const char *file, in [all...] |