| /osnet-11/usr/src/grub/grub2/grub-core/commands/ |
| H A D | test.c | 26 #include <grub/file.h> 49 auto void update_val (int val); 53 void update_val (int val) argument 56 ret = invert ? ! val : val; 60 /* Check if file exists and fetch its information. */ 338 grub_file_t file; local 340 file = grub_file_open (args[*argn + 1]); 341 update_val (file && (grub_file_size (file) ! [all...] |
| /osnet-11/usr/src/lib/libast/common/sfio/ |
| H A D | sftmp.c | 26 ** When this memory is exceeded, a real temp file will be created. 27 ** The temp file creation sequence is somewhat convoluted so that 35 /* File not removable while there is an open file descriptor. 37 ** 1. A discipline to remove a file when the corresponding stream is closed. 38 ** Care must be taken to close the file descriptor before removing the 39 ** file because systems such as NT do not allow file removal while 40 ** there is an open file handle. 50 char name[1]; /* temp file name */ 56 static int _tmprmfile(Sfio_t* f, int type, Void_t* val, Sfdisc_ argument 119 _rmtmp(Sfio_t* f, char* file) argument 206 reg char* file; local 285 _tmpexcept(Sfio_t* f, int type, Void_t* val, Sfdisc_t* disc) argument [all...] |
| /osnet-11/usr/src/lib/libpp/common/ |
| H A D | ppop.c | 44 set(register long* p, register long op, int val) argument 53 if (val) 104 ppmapinclude(char* file, register char* s) argument 118 old_file = error_info.file; 122 else if (file) 124 if (*file == '-') 126 if (!error_info.file) 128 error(1, "%s: input file name required for %s ignore", file, dirname(INCLUDE)); 131 s = t = strcopy(pp.tmpbuf, error_info.file); 235 identical(char* file, int fd) argument [all...] |
| /osnet-11/usr/src/lib/libdevalloc/common/ |
| H A D | getdaent.c | 4 * The contents of this file are subject to the terms of the 6 * You may not use this file except in compliance with the License. 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 222 * rewinds the device_allocate file to the begining. 240 * closes device_allocate file. 258 * changes the default device_allocate file to the one specified. 259 * It does not close the previous file. If this is desired, enddaent 263 setdafile(char *file) argument 273 DEVALLOC_FILE = file; 463 da_interpret(char *val) argument [all...] |
| H A D | getdment.c | 4 * The contents of this file are subject to the terms of the 6 * You may not use this file except in compliance with the License. 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 93 * rewinds the device_maps file to the beginning. 110 * closes device_maps file. 140 * changes the default device_maps file to the one specified. 141 * It does not close the previous file. If this is desired, enddmapent 145 setdmapfile(char *file) argument 155 DEVMAPS_FILE = file; 542 dmap_interpret(char *val, devmap_t *dm) argument 557 dmap_interpretf(char *val, devmap_t *dm) argument [all...] |
| /osnet-11/usr/src/lib/fm/libasr/common/ |
| H A D | asr_buf.c | 4 * The contents of this file are subject to the terms of the 6 * You may not use this file except in compliance with the License. 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 554 * Prints out XML <additional-information> element with data. If val is NULL 558 asr_buf_append_xml_ai(asr_buf_t *bp, int pad, const char *name, const char *val) argument 560 if (val == NULL) 563 "additional-information", val)); 606 * Reads a line of data from the file into the given buffer. Either a complete 611 asr_buf_readln(asr_buf_t *abp, FILE *file) argument [all...] |
| H A D | asr_audit.c | 4 * The contents of this file are subject to the terms of the 6 * You may not use this file except in compliance with the License. 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 27 * This file contains the code that creates ASR audit messages. 180 int32_t val; local 181 (void) nvpair_value_int32(nvp, &val); 182 (void) asr_buf_append(value, " %d", val); 187 uint32_t val; local 188 (void) nvpair_value_uint32(nvp, &val); 194 int64_t val; local 201 uint64_t val; local 208 double val; local 215 char *val; local 222 nvlist_t *val; local 236 int32_t *val; local 246 uint32_t *val; local 256 int64_t *val; local 266 uint64_t *val; local 276 char **val; local 307 asr_buf_t *val, *buf; local 670 asr_buf_t *file; local [all...] |
| /osnet-11/usr/src/grub/grub2/grub-core/gettext/ |
| H A D | gettext.c | 27 #include <grub/file.h> 34 .mo file information from: 65 grub_gettext_pread (grub_file_t file, void *buf, grub_size_t len, argument 68 if (grub_file_seek (file, offset) == (grub_off_t) - 1) 72 return grub_file_read (file, buf, len); 246 grub_error (GRUB_ERR_BAD_FILE_TYPE, "mo: invalid mo file: %s", 258 "mo: invalid mo version in file: %s", filename); 352 __attribute__ ((unused)), const char *val) 354 grub_gettext_init_ext (val); 358 return grub_strdup (val); 351 grub_gettext_env_write_lang(struct grub_env_var *var __attribute__ ((unused)), const char *val) argument [all...] |
| /osnet-11/usr/src/grub/grub2/grub-core/loader/i386/pc/ |
| H A D | linux.c | 21 #include <grub/file.h> 86 grub_file_t file = 0; local 105 file = grub_file_open (argv[0]); 106 if (! file) 109 if (grub_file_read (file, &lh, sizeof (lh)) != sizeof (lh)) 112 grub_error (GRUB_ERR_READ_ERROR, N_("premature end of file %s"), 183 grub_linux16_prot_size = grub_file_size (file) 220 char *val = argv[i] + 4; local 222 if (grub_strcmp (val, "normal") == 0) 224 else if (grub_strcmp (val, "ex 238 char *val = argv[i] + 4; local [all...] |
| /osnet-11/usr/src/grub/grub2/grub-core/normal/ |
| H A D | main.c | 25 #include <grub/file.h> 45 /* Read a line from the file FILE. */ 47 grub_file_getline (grub_file_t file) argument 62 if (grub_file_read (file, &c, 1) != 1) 151 grub_file_t file; local 160 *line = buf = grub_file_getline (file); 185 /* Try to open the config file. */ 186 file = grub_file_open (config); 187 if (! file) 205 grub_file_close (file); 247 read_lists(const char *val) argument 259 read_lists_hook(struct grub_env_var *var __attribute__ ((unused)), const char *val) argument 460 grub_env_write_pager(struct grub_env_var *var __attribute__ ((unused)), const char *val) argument [all...] |
| /osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/SDBM_File/sdbm/ |
| H A D | sdbm.c | 23 # include <sys/file.h> 77 sdbm_open(register char *file, register int flags, register int mode) argument 84 if (file == NULL || !*file) 89 n = strlen(file) * 2 + strlen(DIRFEXT) + strlen(PAGFEXT) + 2; 94 * build the file names 96 dirname = strcat(strcpy(dirname, file), DIRFEXT); 97 pagname = strcpy(dirname + strlen(dirname) + 1, file); 212 * update the page file 225 sdbm_store(register DBM *db, datum key, datum val, in argument [all...] |
| /osnet-11/usr/src/lib/libsldap/common/ |
| H A D | ns_confmgr.c | 4 * The contents of this file are subject to the terms of the 6 * You may not use this file except in compliance with the License. 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 94 /* end of file */ 111 char *file; local 116 file = NSCREDFILE; 118 file = NSCONFIGFILE; 120 fp = fopen(file, "rF"); 124 "for reading (errno=%d)."), file, errn 796 __ns_ldap_DumpConfiguration(char *file) argument 827 char val[BUFSIZE]; local [all...] |
| /osnet-11/usr/src/lib/libipadm/common/ |
| H A D | ipadm_persist.c | 4 * The contents of this file are subject to the terms of the 6 * You may not use this file except in compliance with the License. 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 26 * This file contains routines to read entries from the libipadm data 138 * The value will be interpreted as explained at the top of this file. 454 char *nv, *name, *val, *buf, *cp, *sep; local 487 if ((val = strchr(nv, '=')) != NULL) 488 *val++ = '\0'; 497 (void) i_ipadm_add_nvpair(*ipnvl, name, val); 518 char file[MAXPATHLEN]; local [all...] |
| /osnet-11/usr/src/lib/fm/topo/libtopo/common/ |
| H A D | sw.c | 4 * The contents of this file are subject to the terms of the 6 * You may not use this file except in compliance with the License. 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 118 sw_add_optl_string(nvlist_t *nvl, char *name, char *val) argument 120 if (val) 121 return (nvlist_add_string(nvl, name, val) != 0); 367 char *file, *func, *token; local 402 file = func = token = NULL; 406 * Prefer 'token' to file/fun [all...] |
| /osnet-11/usr/src/lib/libresolv2/common/dst/ |
| H A D | dst_api.c | 22 * This file contains the interface between the DST API and the crypto API. 23 * This is the only file that needs to be changed if the crypto system is 394 * If there is already a file with this name, an error is returned. 409 char file[PATH_MAX]; local 427 /* Now I can create the file I want to use */ 428 dst_s_build_filename(file, key->dk_key_name, key->dk_id, key->dk_alg, 431 /* Do not overwrite an existing file */ 432 if ((fp = dst_s_fopen(file, "w", 0600)) != NULL) { 436 file, len, nn, errno)); 442 EREPORT(("dst_write_private_key(): Can not create file 705 u_int16_t val; local [all...] |
| /osnet-11/usr/src/lib/libsec/common/ |
| H A D | aclutils.c | 4 * The contents of this file are subject to the terms of the 6 * You may not use this file except in compliance with the License. 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 48 const char *file; member in union:__anon2487 54 * Determine whether a file has a trivial ACL 65 int val = 0; local 87 val = ace_trivial(acep, aclcnt); 91 val = 1; 93 return (val); 389 acl_strip(const char *file, uid_t owner, gid_t group, mode_t mode) argument [all...] |
| /osnet-11/usr/src/lib/libshell/common/bltins/ |
| H A D | shiocmd_solaris.c | 57 static void put_time(Namval_t* np, const char* val, int flag, Namfun_t* nfp) argument 61 if(val) 67 t = *(Sfdouble_t*)val; 69 t = *(double*)val; 73 t = tmdate(val, &last, (time_t*)0); 75 errormsg(SH_DICT, ERROR_exit(1),"%s: invalid date/time string", val); 83 nv_putv(np, val, flag, nfp); 130 static void put_mode(Namval_t* np, const char* val, int flag, Namfun_t* nfp) argument 132 if(val) 139 mode = *(Sfdouble_t*)val; 226 char *val = np->nvalue + fp->offset; local 352 put_classval(Namval_t* np, const char* val, int flag, Namfun_t* nfp) argument 668 FILE *file = NULL; local [all...] |
| /osnet-11/usr/src/grub/grub2/grub-core/loader/i386/ |
| H A D | linux.c | 22 #include <grub/file.h> 578 grub_file_t file = 0; local 594 file = grub_file_open (argv[0]); 595 if (! file) 598 if (grub_file_read (file, &lh, sizeof (lh)) != sizeof (lh)) 601 grub_error (GRUB_ERR_READ_ERROR, N_("premature end of file %s"), 656 prot_size = grub_file_size (file) - real_size - GRUB_DISK_SECTOR_SIZE; 668 if (grub_file_read (file, (char *) real_mode_mem + sizeof (lh), len) != len) 671 grub_error (GRUB_ERR_FILE_READ_ERROR, N_("premature end of file %s"), 722 grub_file_seek (file, real_siz 734 char *val = argv[i] + 4; local 816 char *val = argv[i] + 4; local [all...] |
| /osnet-11/usr/src/lib/cfgadm_plugins/usb/common/ |
| H A D | cfga_configfile.c | 4 * The contents of this file are subject to the terms of the 6 * (the "License"). You may not use this file except in compliance 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 272 lex(char *buf, char *val, char **errmsg) argument 278 cp = val; 337 cp = val; 728 int file; local 758 /* open config_map.conf file */ 759 file [all...] |
| /osnet-11/usr/src/lib/libresolv2/common/resolv/ |
| H A D | res_debug.c | 158 fp_resstat(const res_state statp, FILE *file) { argument 161 fprintf(file, ";; res options:"); 164 fprintf(file, " %s", p_option(mask)); 165 putc('\n', file); 171 int pflag, FILE *file) 188 fprintf(file, ";; memory allocation failure\n"); 197 fprintf(file, ";; ns_parserr: %s\n", 201 putc('\n', file); 205 fprintf(file, ";; %s SECTION:\n", 208 fprintf(file, ";;\ 169 do_section(const res_state statp, ns_msg *handle, ns_sect section, int pflag, FILE *file) argument 298 res_pquery(const res_state statp, const u_char *msg, int len, FILE *file) argument 370 p_cdnname(const u_char *cp, const u_char *msg, int len, FILE *file) argument 384 p_cdname(const u_char *cp, const u_char *msg, FILE *file) argument 416 p_fqname(const u_char *cp, const u_char *msg, FILE *file) argument 788 unsigned long val; local [all...] |
| /osnet-11/usr/src/lib/libshell/common/sh/ |
| H A D | jobs.c | 270 pid_t val; local 287 val = (csp->id<<16)|n|COPID_BIT; 293 if((cp && val==pw->p_pid) || (pw->p_cojob && pw->p_cojob->local==(void*)csp)) 886 int job_walk(Sfio_t *file,int (*fun)(struct process*,int),int arg,char *joblist[]) argument 893 outfile = file; 1284 int val,bg=0; local 1286 int val; local 1374 if ((val = job_chksave(pid)) >= 0) 1376 pw->p_exit = val;
|
| H A D | path.c | 490 const char *val; local 494 if(val=sh_scoped(shp,(PATHNOD))->nvalue.cp) 496 shp->pathlist = pp = (void*)path_addpath(shp,(Pathcomp_t*)shp->pathlist,val,PATH_PATH); 504 if(val=sh_scoped(shp,(FPATHNOD))->nvalue.cp) 506 pp = (void*)path_addpath(shp,(Pathcomp_t*)shp->pathlist,val,PATH_FPATH); 533 * open file corresponding to name using path give by <pp> 575 * open file corresponding to name using path give by <pp> 616 * load functions from file <fno> 753 * do a path search and find the full pathname of file name 885 * sets exec_err if file i 947 path_relative(Shell_t *shp,register const char* file) argument 1769 talias_put(register Namval_t* np,const char *val,int flags,Namfun_t *fp) argument [all...] |
| /osnet-11/usr/src/lib/libdladm/common/ |
| H A D | libdladm.c | 4 * The contents of this file are subject to the terms of the 6 * You may not use this file except in compliance with the License. 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 468 " dsfield=val[:dsfield_mask]"; 545 int val; local 549 val = strtol(oarg, &endp, 10); 550 if (errno != 0 || val <= 0 || *endp != '\0') 553 *interval = val; 781 char file[MAXPATHLE local [all...] |
| /osnet-11/usr/src/lib/libdtrace_jni/common/ |
| H A D | dtrace_jni.c | 4 * The contents of this file are subject to the terms of the 6 * You may not use this file except in compliance with the License. 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 77 * indicated in this file by a comment above the function that assumes prior 733 const char *file; local 747 file = dtj_GetStringNativeChars(env, filename); 748 if ((fp = fopen(file, "r")) == NULL) { 749 dtj_throw_dtrace_exception(&jc, "failed to open %s", file); 750 dtj_ReleaseStringNativeChars(env, filename, file); 928 const char *val; local [all...] |
| /osnet-11/usr/src/grub/grub2/grub-core/font/ |
| H A D | font.c | 1 /* font.c - Font API and font file loader. */ 22 #include <grub/file.h> 60 grub_file_t file; member in struct:grub_font 84 /* The file this section is in. */ 85 grub_file_t file; member in struct:font_file_section 209 font->file = 0; 214 /* Default leading value, not in font file yet. */ 226 /* Open the next section in the file. 232 If 1 is returned due to being at the end of the file, then section->eof is 235 open_section (grub_file_t file, struc argument 287 load_font_index(grub_file_t file, grub_uint32_t sect_length, struct grub_font *font) argument 426 grub_file_t file = 0; local 651 read_be_uint16(grub_file_t file, grub_uint16_t * value) argument 660 read_be_int16(grub_file_t file, grub_int16_t * value) argument 1159 add_device_width(int val) argument [all...] |