Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 3259) sorted by relevance

12345678910>>...131

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Dxxci.py22 for file in os.listdir(os.curdir):
23 if not skipfile(file):
24 list.append((getmtime(file), file))
31 for mtime, file in list: args.append(file)
34 def getmtime(file): argument
36 st = os.stat(file)
60 def skipfile(file): argument
62 if fnmatch.fnmatch(file, p): return 1
64 st = os.lstat(file)
73 data = open(file, 'r').read(len(EXECMAGIC))
[all …]
Dcheckappend.py65 def check(file): argument
66 if os.path.isdir(file) and not os.path.islink(file):
68 print "%r: listing directory" % (file,)
69 names = os.listdir(file)
71 fullname = os.path.join(file, name)
79 f = open(file)
81 errprint("%r: I/O Error: %s" % (file, msg))
85 print "checking %r ..." % (file,)
87 ok = AppendChecker(file, f).run()
89 print "%r: Clean bill of health." % (file,)
[all …]
/device/asus/fugu/self-extractors/
Dfiles-by-owner.sh67 while read file
70 auto_owner=$(grep ^$file: ../vendor_owner_info.txt | cut -d : -f 2)
71 if test $file = system/lib/hw/gps.msm8974.so -o $file = system/lib/libgps.utils.so -o $file = syste…
78 echo $file has no known owner
81 if test "$auto_owner" = "$target_owner" -a $file != system/app/shutdownlistener.apk -a $file != sys…
83 if test $file != ZZZ
85 if [[ $file == *.apk ]]
87 echo " $file \\" >> extract-lists.txt
91 if [[ $file == */lib64/* ]]
93 …echo " vendor/$target_owner/fugu/proprietary/lib64/$(basename $file):$file:$target_owner \\" >>…
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/
Dcvslib.py57 def __init__(self, file = None): argument
58 if file and '/' in file:
60 self.file = file
65 return cmp(self.file, other.file)
69 self.lmtime, self.lctime = os.stat(self.file)[-2:]
73 self.lsum = md5.new(open(self.file).read()).digest()
78 if self.file and words[1] != self.file:
80 self.file = words[1]
104 self.rrev = self.proxy.head(self.file)
108 self.rsum = self.proxy.sum(self.file)
[all …]
/device/google/marlin/sepolicy/
Dueventd.te1 allow ueventd sysfs_camera:file w_file_perms;
2 allow ueventd sysfs_fingerprint:file w_file_perms;
3 allow ueventd sysfs_leds:file w_file_perms;
4 allow ueventd sysfs_msm_core:file w_file_perms;
5 allow ueventd sysfs_msm_subsys:file w_file_perms;
6 allow ueventd sysfs_nanoapp_cmd:file w_file_perms;
7 allow ueventd sysfs_net:file w_file_perms;
8 allow ueventd sysfs_pcie:file w_file_perms;
9 allow ueventd sysfs_rmtfs:file w_file_perms;
10 allow ueventd sysfs_soc:file w_file_perms;
[all …]
Dhal_dumpstate_impl.te8 allow hal_dumpstate_impl vendor_shell_exec:file rx_file_perms;
9 allow hal_dumpstate_impl vendor_toolbox_exec:file rx_file_perms;
10 # system file execution
14 allow hal_dumpstate_impl smlog_dump_exec:file rx_file_perms;
17 allow hal_dumpstate_impl smlog_dump_file:file create_file_perms;
20 allow hal_dumpstate_impl radio_data_file:file r_file_perms;
21 allow hal_dumpstate_impl netmgr_data_file:file r_file_perms;
32 allow hal_dumpstate_impl debugfs_rpm:file r_file_perms;
33 allow hal_dumpstate_impl debugfs_bufinfo:file r_file_perms;
36 allow hal_dumpstate_impl debugfs_wlan:file r_file_perms;
[all …]
Dinit_foreground.te6 allow init_foreground proc:file getattr;
7 allow init_foreground proc_iomem:file getattr;
8 allow init_foreground proc_meminfo:file getattr;
9 allow init_foreground proc_sysrq:file getattr;
10 dontaudit init_foreground proc_interrupts:file getattr;
11 dontaudit init_foreground proc_stat:file getattr;
12 dontaudit init_foreground proc_timer:file getattr;
13 dontaudit init_foreground proc_zoneinfo:file getattr;
15 allow init_foreground vendor_shell_exec:file rx_file_perms;
16 allow init_foreground vendor_toolbox_exec:file rx_file_perms;
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_print.py22 lambda args, sep, end, file: print(*args),
24 lambda args, sep, end, file: print(file=file, *args),
26 lambda args, sep, end, file: print(end=end, *args),
28 lambda args, sep, end, file: print(end=end, file=file, *args),
30 lambda args, sep, end, file: print(sep=sep, *args),
32 lambda args, sep, end, file: print(sep=sep, file=file, *args),
34 lambda args, sep, end, file: print(sep=sep, end=end, *args),
36 lambda args, sep, end, file: print(sep=sep, end=end, file=file, *args),
48 sep=NotDefined, end=NotDefined, file=NotDefined): argument
57 file is not NotDefined)]
[all …]
/device/google/dragon/self-extractors/
Dfiles-by-owner.sh61 while read file
64 auto_owner=$(grep ^$file: ../vendor_owner_info.txt | cut -d : -f 2)
65 if test $file = system/lib/hw/gps.msm8974.so -o $file = system/lib/libgps.utils.so -o $file = syste…
72 echo $file has no known owner
75 if test "$auto_owner" = "$target_owner" -a $file != system/app/shutdownlistener.apk -a $file != sys…
77 if test $file != ZZZ
79 if [[ $file == */lib64/* ]]
81 …echo " vendor/$target_owner/dragon/proprietary/lib64/$(basename $file):$file:$target_owner \\" …
83 …echo " vendor/$target_owner/dragon/proprietary/$(basename $file):$file:$target_owner \\" >> $ta…
86 echo " $file \\" >> extract-lists.txt
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/zlib/
Dminigzip.c35 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY) argument
37 # define SET_BINARY_MODE(file) argument
47 # define fileno(file) file->__file argument
80 void file_compress OF((char *file, char *mode));
81 void file_uncompress OF((char *file));
193 void file_compress(file, mode) in file_compress() argument
194 char *file; in file_compress()
201 strcpy(outfile, file);
204 in = fopen(file, "rb");
206 perror(file);
[all …]
Dgzio.c60 FILE *file; /* .gz file */ member
77 local int do_flush OF((gzFile file, int flush));
81 local void putLong OF((FILE *file, uLong x));
117 s->file = NULL;
181 s->file = fd < 0 ? F_OPEN(path, fmode) : (FILE*)fdopen(fd, fmode);
183 if (s->file == NULL) {
189 fprintf(s->file, "%c%c%c%c%c%c%c%c%c%c", gz_magic[0], gz_magic[1],
199 s->start = ftell(s->file) - s->stream.avail_in;
234 int ZEXPORT gzsetparams (file, level, strategy) in gzsetparams() argument
235 gzFile file; in gzsetparams()
[all …]
/device/google/wahoo/sepolicy/vendor/
Dhal_dumpstate_impl.te8 allow hal_dumpstate_impl vendor_shell_exec:file rx_file_perms;
9 allow hal_dumpstate_impl vendor_toolbox_exec:file rx_file_perms;
15 allow hal_dumpstate_impl modem_dump_file:file create_file_perms;
19 allow hal_dumpstate_impl radio_data_file:file r_file_perms;
20 allow hal_dumpstate_impl radio_vendor_data_file:file r_file_perms;
21 allow hal_dumpstate_impl netmgr_data_file:file r_file_perms;
23 allow hal_dumpstate_impl debugfs_ipc:file r_file_perms;
25 allow hal_dumpstate_impl sysfs_usb_device:file r_file_perms;
26 allow hal_dumpstate_impl sysfs_msm_subsys:file write;
40 allow hal_dumpstate_impl debugfs_ion:file r_file_perms;
[all …]
/device/lge/bullhead/sepolicy/
Ddevice_domain_deprecated.te5 allow device_domain_deprecated rootfs:file r_file_perms;
7 allow device_domain_deprecated device:file read;
9 allow device_domain_deprecated system_file:file r_file_perms;
12 allow device_domain_deprecated vendor_file_type:file r_file_perms;
14 allow device_domain_deprecated system_data_file:file { getattr read };
17 allow device_domain_deprecated apk_data_file:file r_file_perms;
20 allow device_domain_deprecated dalvikcache_data_file:file r_file_perms;
22 allow device_domain_deprecated cache_file:file { getattr read };
26 allow device_domain_deprecated proc:{ file lnk_file } r_file_perms;
28 allow device_domain_deprecated sysfs:{ file lnk_file } r_file_perms;
[all …]
Dhal_dumpstate_impl.te8 allow hal_dumpstate_impl shell_exec:file rx_file_perms;
9 allow hal_dumpstate_impl toolbox_exec:file rx_file_perms;
12 allow hal_dumpstate_impl debugfs_rpm:file r_file_perms;
14 allow hal_dumpstate_impl debugfs_ipc:file r_file_perms;
15 allow hal_dumpstate_impl debugfs_bufinfo:file r_file_perms;
16 allow hal_dumpstate_impl sysfs_batteryinfo:file r_file_perms;
18 allow hal_dumpstate_impl sysfs_devices_system_cpu:file r_file_perms;
19 allow hal_dumpstate_impl sysfs_hwmon:file r_file_perms;
21 allow hal_dumpstate_impl proc_interrupts:file r_file_perms;
/device/huawei/angler/sepolicy/
Ddevice_domain_deprecated.te5 allow device_domain_deprecated rootfs:file r_file_perms;
7 allow device_domain_deprecated device:file read;
9 allow device_domain_deprecated system_file:file r_file_perms;
12 allow device_domain_deprecated vendor_file_type:file r_file_perms;
14 allow device_domain_deprecated system_data_file:file { getattr read };
17 allow device_domain_deprecated apk_data_file:file r_file_perms;
20 allow device_domain_deprecated dalvikcache_data_file:file r_file_perms;
22 allow device_domain_deprecated cache_file:file { getattr read };
26 allow device_domain_deprecated proc:{ file lnk_file } r_file_perms;
28 allow device_domain_deprecated sysfs:{ file lnk_file } r_file_perms;
[all …]
Dinit-power-sh.te6 allow init-power-sh shell_exec:file r_file_perms;
7 allow init-power-sh sysfs_devices_system_cpu:file w_file_perms;
9 allow init-power-sh sysfs_performance:file w_file_perms;
11 allow init-power-sh sysfs_thermal:file rw_file_perms;
12 allow init-power-sh proc_kernel_sched:file w_file_perms;
15 allow init-power-sh sysfs:{ dir file lnk_file } relabelfrom;
16 allow init-power-sh sysfs_devices_system_cpu:{ dir file lnk_file } relabelto;
17 allow init-power-sh file_contexts_file:file r_file_perms;
20 allow init-power-sh sysfs:file rw_file_perms;
21 allow init-power-sh sysfs_usb:file w_file_perms;
[all …]
/device/asus/fugu/sepolicy/
Ddevice_domain_deprecated.te5 allow device_domain_deprecated rootfs:file r_file_perms;
7 allow device_domain_deprecated device:file read;
9 allow device_domain_deprecated system_file:file r_file_perms;
12 allow device_domain_deprecated vendor_file_type:file r_file_perms;
14 allow device_domain_deprecated system_data_file:file { getattr read };
17 allow device_domain_deprecated apk_data_file:file r_file_perms;
20 allow device_domain_deprecated dalvikcache_data_file:file r_file_perms;
22 allow device_domain_deprecated cache_file:file { getattr read };
26 allow device_domain_deprecated proc:{ file lnk_file } r_file_perms;
28 allow device_domain_deprecated sysfs:{ file lnk_file } r_file_perms;
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dtraceback.py12 def _print(file, str='', terminator='\n'): argument
13 file.write(str+terminator)
16 def print_list(extracted_list, file=None): argument
19 if file is None:
20 file = sys.stderr
22 _print(file,
25 _print(file, ' %s' % line.strip())
46 def print_tb(tb, limit=None, file=None): argument
54 if file is None:
55 file = sys.stderr
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dtraceback.py12 def _print(file, str='', terminator='\n'): argument
13 file.write(str+terminator)
16 def print_list(extracted_list, file=None): argument
19 if file is None:
20 file = sys.stderr
22 _print(file,
25 _print(file, ' %s' % line.strip())
46 def print_tb(tb, limit=None, file=None): argument
54 if file is None:
55 file = sys.stderr
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/
Dminigzip.c38 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY) argument
40 # define SET_BINARY_MODE(file) argument
54 # define fileno(file) file->__file argument
171 FILE *file; member
222 gz->file = path == NULL ? fdopen(fd, gz->write ? "wb" : "rb") :
224 if (gz->file == NULL) {
253 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file);
278 got = fread(in, 1, 1, gz->file);
313 fwrite(out, 1, BUFLEN - strm->avail_out, gz->file);
319 fclose(gz->file);
[all …]
Dgzlib.c314 int ZEXPORT gzbuffer(file, size) in gzbuffer() argument
315 gzFile file; in gzbuffer()
321 if (file == NULL)
323 state = (gz_statep)file;
339 int ZEXPORT gzrewind(file) in gzrewind() argument
340 gzFile file; in gzrewind()
345 if (file == NULL)
347 state = (gz_statep)file;
362 z_off64_t ZEXPORT gzseek64(file, offset, whence) in gzseek64() argument
363 gzFile file; in gzseek64()
[all …]
Dgzclose.c11 int ZEXPORT gzclose(file) in gzclose() argument
12 gzFile file; in gzclose()
17 if (file == NULL)
19 state = (gz_statep)file;
21 return state->mode == GZ_READ ? gzclose_r(file) : gzclose_w(file);
23 return gzclose_r(file);
/device/google/dragon/sepolicy/
Ddevice_domain_deprecated.te5 allow device_domain_deprecated rootfs:file r_file_perms;
7 allow device_domain_deprecated device:file read;
9 allow device_domain_deprecated system_file:file r_file_perms;
12 allow device_domain_deprecated vendor_file_type:file r_file_perms;
14 allow device_domain_deprecated system_data_file:file { getattr read };
17 allow device_domain_deprecated apk_data_file:file r_file_perms;
20 allow device_domain_deprecated dalvikcache_data_file:file r_file_perms;
22 allow device_domain_deprecated cache_file:file { getattr read };
26 allow device_domain_deprecated proc:{ file lnk_file } r_file_perms;
28 allow device_domain_deprecated sysfs:{ file lnk_file } r_file_perms;
[all …]
/device/google/marlin/dataservices/datatop/src/
Ddatatop_sys_snap.c48 static int dtop_system_snapshot_helper_print(char *file, const char *str) in dtop_system_snapshot_helper_print() argument
50 FILE *snap_file = fopen(file, "a"); in dtop_system_snapshot_helper_print()
72 static int dtop_run_and_log(char *file, const char *c1, const char **args) in dtop_run_and_log() argument
78 dtop_system_snapshot_helper_print(file, "\n" in dtop_run_and_log()
82 dtop_system_snapshot_helper_print(file, args[i++]); in dtop_run_and_log()
83 dtop_system_snapshot_helper_print(file, " "); in dtop_run_and_log()
85 dtop_system_snapshot_helper_print(file, "\n"); in dtop_run_and_log()
90 int fd = open(file, O_WRONLY | O_APPEND | O_CREAT, in dtop_run_and_log()
148 dtop_run_and_log(file, X[0], X);
156 int dtop_print_system_snapshot(char *file) in dtop_print_system_snapshot() argument
[all …]
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
Dres_debug.c139 fp_resstat(struct __res_state *statp, FILE *file) { in fp_resstat() argument
142 fprintf(file, ";; res options:"); in fp_resstat()
147 fprintf(file, " %s", p_option(mask)); in fp_resstat()
148 putc('\n', file); in fp_resstat()
152 do_section(ns_msg *handle, ns_sect section, int pflag, FILE *file) { in do_section() argument
169 fprintf(file, ";; ns_parserr: %s\n", in do_section()
173 putc('\n', file); in do_section()
177 fprintf(file, ";; %s SECTION:\n", in do_section()
180 fprintf(file, ";;\t%s, type = %s, class = %s\n", in do_section()
191 fprintf(file, ";; ns_sprintrr: %s\n", in do_section()
[all …]

12345678910>>...131