Searched defs:file (Results 1 - 25 of 68) sorted by last modified time

123

/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
H A Dres_debug.c139 fp_resstat(struct __res_state *statp, FILE *file) { argument
142 fprintf(file, ";; res options:");
147 fprintf(file, " %s", p_option(mask));
148 putc('\n', file);
152 do_section(ns_msg *handle, ns_sect section, int pflag, FILE *file) { argument
169 fprintf(file, ";; ns_parserr: %s\n",
173 putc('\n', file);
177 fprintf(file, ";; %s SECTION:\n",
180 fprintf(file, ";;\t%s, type = %s, class = %s\n",
191 fprintf(file, ";; ns_sprintr
211 fp_query(const u_char *msg, FILE *file) argument
220 fp_nquery(const u_char *msg, int len, FILE *file) argument
295 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) argument
309 p_cdname(const u_char *cp, const u_char *msg, FILE *file) argument
342 p_fqname(const u_char *cp, const u_char *msg, FILE *file) argument
[all...]
H A Dres_query.c394 char *file; local
404 file = getenv("HOSTALIASES");
405 if (file == NULL || (fp = fopen(file, "r")) == NULL)
H A Dres_send.c135 # define Aerror(file, string, error, address) /*empty*/
136 # define Perror(file, string, error) /*empty*/
146 FILE *file,
155 fprintf(file, "res_send: %s ([%s].%u): %s\n",
167 FILE *file,
175 fprintf(file, "res_send: %s: %s\n",
145 Aerror( FILE *file, char *string, int error, struct sockaddr_in address ) argument
166 Perror( FILE *file, char *string, int error ) argument
/device/linaro/bootloader/edk2/StdLib/Include/sys/
H A Dfile.h33 * @(#)file.h 8.3 (Berkeley) 1/9/95
34 * $Id: file.h,v 1.1.1.1 2006/05/30 06:12:53 hhzhou Exp $
55 struct file { struct
56 LIST_ENTRY(file) f_list;/* list of active files */
58 #define DTYPE_VNODE 1 /* file */
67 int (*fo_read) __P((struct file *fp, struct uio *uio,
69 int (*fo_write) __P((struct file *fp, struct uio *uio,
72 int (*fo_ioctl) __P((struct file *fp, u_long com,
74 int (*fo_poll) __P((struct file *fp, int events,
76 int (*fo_close) __P((struct file *f
[all...]
/device/linaro/bootloader/edk2/StdLib/LibC/Main/
H A Dassert.c1 /** @file
31 @param[in] file The name of the file containing the assert.
43 IN const char *file,
50 printf("Assertion failed: (%s), file %s, line %d.\n",
51 failedexpr, file, line);
53 printf("Assertion failed: (%s), file %s, function %s, line %d.\n",
54 failedexpr, file, func, line);
42 __assert( IN const char *file, IN const char *func, IN int line, IN const char *failedexpr ) argument
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/
H A Dfopen.c1 /** @file
60 fopen(const char *file, const char *mode) argument
66 _DIAGASSERT(file != NULL);
71 if ((f = open(file, oflags, DEFFILEMODE)) < 0)
99 * the file extends, this will fail, but there is not much
H A Dfreopen.c1 /** @file
63 * Re-direct an existing, open (probably) file to some other file.
64 * ANSI is written such that the original file gets closed if at
68 freopen(const char *file, const char *mode, FILE *fp) argument
73 _DIAGASSERT(file != NULL);
92 * Remember whether the stream was open to begin with, and which file
95 * should work. This is unnecessary if it was not a Unix file.
113 /* Get a new descriptor to refer to the new file. */
114 f = open(file, oflag
[all...]
H A Dremove.c1 /** @file
57 remove(const char *file) argument
61 _DIAGASSERT(file != NULL);
63 if (lstat(file, &sb) < 0)
67 * The file system may prohibit using unlink(2) on directories,
71 return (rmdir(file));
73 return (unlink(file));
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/h/
H A DPBlackBox.h56 FILE *file; member in class:ParserBlackBox
63 file = f;
81 file = f;
96 fclose(file);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Efi/
H A Dedk2module.c1 /** @file
77 #define HAVE_UTIME_H /* pretend we do for the rest of this file */
323 {"st_flags", "user defined flags for file"},
642 Change the access permissions of a file.");
666 Change the access permissions of the file given by file\n\
687 Change the access permissions of a file. If path is a symlink, this\n\
713 Set file flags.");
738 Set file flags.\n\
776 force write of file wit
3240 _PyPclose(FILE *file) argument
3993 _PyPclose(FILE *file) argument
4774 char *file = NULL; local
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Python/
H A Dimport.c35 a .pyc file in text mode the magic number will be wrong; also, the
139 Py_FatalError("Can't initialize import file table.");
703 /* Given a pathname for a Python source file, fill a buffer with the
704 pathname for the corresponding compiled file. Return the pathname
705 for the compiled file, or NULL if there's no space in the buffer.
729 /* Given a pathname for a Python source file, its time of last
730 modification, and a pathname for a compiled file, check whether the
731 compiled file represents the same version of the source. If so,
732 return a FILE pointer for the compiled file, positioned just after
766 /* Read a code object from a file an
1041 PyObject *file = NULL; local
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/_io/
H A D_iomodule.c88 " I/O classes. open() uses the file's blksize (as obtained by os.stat) if\n"
182 "Open file and return a stream. Raise IOError upon failure.\n"
184 "file is either a text or byte string giving the name (and the path\n"
185 "if the file isn't in the current working directory) of the file to\n"
186 "be opened or an integer file descriptor of the file to be\n"
187 "wrapped. (If a file descriptor is given, it is closed when the\n"
190 "mode is an optional string that specifies the mode in which the file\n"
192 "mode. Other common values are 'w' for writing (truncating the file i
293 PyObject *file; local
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
H A DcPickle.c335 PyObject *file; member in struct:Picklerobject
365 PyObject *file; member in struct:Unpicklerobject
434 PyFile_IncUseCount((PyFileObject *)self->file);
438 PyFile_DecUseCount((PyFileObject *)self->file);
457 if (PycStringIO->cwrite((PyObject *)self->file, s, INT_MAX) != INT_MAX) {
463 if (PycStringIO->cwrite((PyObject *)self->file, s, n) != n) {
518 PDATA_PUSH(self->file, py_str, -1);
551 PyFile_IncUseCount((PyFileObject *)self->file);
555 PyFile_DecUseCount((PyFileObject *)self->file);
626 if (PycStringIO->cread((PyObject *)self->file,
3018 newPicklerobject(PyObject *file, int proto) argument
3127 PyObject *file = NULL; local
5527 get_Unpickler(PyObject *self, PyObject *file) argument
5679 PyObject *ob, *file, *res = NULL; local
5708 PyObject *ob, *file = 0, *res = NULL; local
5758 PyObject *ob, *file = 0, *res = NULL; local
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/zlib/
H A Dgzwrite.c13 /* Initialize state for writing a gzip file. Mark initialization by setting
64 /* Compress whatever is at avail_in and next_in and write to the output file.
65 Return -1 if there is an error writing to the output file, otherwise 0.
68 is true, then simply write to the output file without compressing, and
165 int ZEXPORT gzwrite(file, buf, len)
166 gzFile file;
175 if (file == NULL)
177 state = (gz_statep)file;
232 /* directly compress user buffer to file */
245 int ZEXPORT gzputc(file,
310 gzvprintf(gzFile file, const char *format, va_list va) argument
372 gzprintf(gzFile file, const char *format, ...) argument
[all...]
H A Dminigzip.c9 * full-featured gzip. No attempt is made to deal with file systems
12 * real thing. On MSDOS, use only on file names without extension
38 # define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
40 # define SET_BINARY_MODE(file)
54 # define fileno(file) file->__file
171 FILE *file; member in struct:gzFile_s
222 gz->file = path == NULL ? fdopen(fd, gz->write ? "wb" : "rb") :
224 if (gz->file
562 gzFile file; local
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
H A Dfileobject.c116 In Python, there should be no file objects referring to
346 /* rexec.py can't stop a user from getting the file() constructor --
347 all they have to do is get *any* file object f, and then do
351 "file() constructor not accessible in restricted mode");
433 "operation on the same file object.");
512 PyFileObject *file = (PyFileObject *)f; local
532 fflush(file->f_fp);
534 PyMem_Free(file->f_setbuf);
535 file->f_setbuf = NULL;
537 file
560 PyFileObject *file = (PyFileObject*)f; local
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/
H A Dedk2module.c1 /** @file
78 #define HAVE_UTIME_H /* pretend we do for the rest of this file */
324 {"st_flags", "user defined flags for file"},
643 Change the access permissions of a file.");
667 Change the access permissions of the file given by file\n\
688 Change the access permissions of a file. If path is a symlink, this\n\
714 Set file flags.");
739 Set file flags.\n\
777 force write of file wit
2780 char *file = NULL; local
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
H A Dbltinmodule.c17 /* The default encoding used by the platform file system APIs
811 Read and execute a Python script from a file.\n\
1498 "open(name[, mode[, buffering]]) -> file object\n\
1500 Open a file using the file() type, returns a file object. This is the\n\
1501 preferred way to open a file. See file.__doc__ for further information.");
1571 static char *kwlist[] = {"sep", "end", "file", 0};
1576 PyObject *sep = NULL, *end = NULL, *file local
[all...]
H A Dimport.c35 a .pyc file in text mode the magic number will be wrong; also, the
167 Py_FatalError("Can't initialize import file table.");
735 /* Given a pathname for a Python source file, fill a buffer with the
736 pathname for the corresponding compiled file. Return the pathname
737 for the compiled file, or NULL if there's no space in the buffer.
761 /* Given a pathname for a Python source file, its time of last
762 modification, and a pathname for a compiled file, check whether the
763 compiled file represents the same version of the source. If so,
764 return a FILE pointer for the compiled file, positioned just after
798 /* Read a code object from a file an
1129 PyObject *file = NULL; local
[all...]
H A Dsysmodule.c10 - stdin, stdout, stderr: standard file objects
894 /* Defined in objects.c because it uses static globals if that file */
899 /* Defined in ceval.c because it uses static globals if that file */
1078 stdin -- standard input file object; used by raw_input() and input()\n\
1079 stdout -- standard output file object; used by the print statement\n\
1081 By assigning other file objects (or objects that behave like files)\n\
1396 * streams and check for errors before the file objects are deleted.
1756 PyObject *file; local
1760 file = PySys_GetObject(name);
1761 if (file
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
H A Dcgi.py73 """Write a log message, if there is a log file.
77 (initially), to dolog (once the log file has been opened), or to
83 will write "a: b" to the log file, followed by a newline.
85 If the global logfp is not None, it should be a file object to
89 giving a filename to open, in append mode. This file should be
90 world writable!!! If the file can't be opened, logging is
108 """Write a log message to the log file. See initlog() for docs."""
126 """Parse a query in the environment or from a file (default stdin)
130 fp : file pointer; default: sys.stdin
198 fp : input file
336 file = None variable in class:MiniFieldStorage
[all...]
H A Dcgitb.py119 for frame, file, lnum, func, lines, index in records:
120 if file:
121 file = os.path.abspath(file) variable
122 link = '<a href="file://%s">%s</a>' % (file, pydoc.html.escape(file))
124 file = link = '?'
135 try: return linecache.getline(file, lnum[0])
207 for frame, file, lnu
208 file = file and os.path.abspath(file) or '?' variable
[all...]
H A Dftplib.py92 To download a file, use ftp.retrlines('RETR ' + filename),
94 To upload a file, use ftp.storlines() or ftp.storbinary(),
95 which have an open file as argument (see their definitions
105 file = None variable in class:FTP
134 self.file = self.sock.makefile('rb')
183 line = self.file.readline()
230 '''Abort a file transfer. Uses out-of-band data.
439 """Store a file in binary mode. A new port is created for you.
443 fp: A file-like object with a read(num_bytes) method.
464 """Store a file i
[all...]
H A Dposixfile.py1 """Extended file operations available in POSIX.
7 will create a posixfile object from a builtin file object
9 f.file()
10 will return the original builtin file object
13 will return a new file object based on a new filedescriptor
16 will return a new file object based on the given filedescriptor
60 """File wrapper class that provides extra POSIX file routines."""
68 file = self._file_
70 (self.states[file.closed], file
96 def file(self): member in class:_posixfile_
[all...]
H A Drfc822.py16 To create a Message object: first open a file, e.g.:
18 fp = open(file, 'r')
20 You can use any other legal way of getting an open file object, e.g. use
21 sys.stdin or call os.popen(). Then pass the open file object to the Message()
37 an unseekable object such as a a file object created from a socket object. If
39 file object is called once; if this raises an exception, seekable is reset to
117 """Rewind the file to the start of the body (if seekable)."""
119 raise IOError, "unseekable file"
135 file).
979 file variable
[all...]

Completed in 296 milliseconds

123