Searched defs:fptr (Results 1 - 25 of 54) sorted by relevance

123

/illumos-gate/usr/src/cmd/mail/
H A Ddoopen.c41 FILE *fptr; local
45 (fptr = fopen(file, type)) == NULL) {
54 return(fptr);
/illumos-gate/usr/src/cmd/sgs/libconv/common/
H A Dcap_machelf.c39 Conv_fmt_flags_t fmt_flags, elfcap_to_str_func_t *fptr)
57 if ((*fptr)(ELFCAP_STYLE_UC, val, str, len, ELFCAP_FMT_SNGSPACE,
38 conv_cap(Xword val, char *str, size_t len, Half mach, Conv_fmt_flags_t fmt_flags, elfcap_to_str_func_t *fptr) argument
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dldap_service_stash.c54 FILE *fptr=NULL; local
87 if ((fptr = fopen(file, "rF")) == NULL) {
95 while (fgets(line, RECORDLEN, fptr) != NULL) {
113 (void) fclose (fptr);
/illumos-gate/usr/src/lib/lvm/libsvm/common/
H A Dmetaconf.c132 FILE *fptr = NULL; local
145 if ((fptr = fopen(MD_CONF, "a")) == NULL) {
152 (void) fclose(fptr);
215 if (fprintf(fptr, "md_xlate_ver=\"%s\";\n"
221 if (fprintf(fptr, ",%lu,%lu", statb_edev.st_rdev,
227 if (fprintf(fptr, ";\n") < 0)
229 (void) fclose(fptr);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/
H A Derrors.c30 static const char *(KRB5_CALLCONV *fptr)(long); /* = &error_message */ variable
95 if (fptr == NULL) {
131 r = (char *) fptr(code);
166 fptr = f;
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Ddebug.c58 FILE *fptr; /* File to send debug output */ member in struct:__anon1708
73 (void) fclose(dbg_ofile.fptr);
75 dbg_ofile.fptr = stderr;
109 FILE *fptr = fopen(ofile, MSG_ORIG(MSG_DBG_FOPEN_MODE)); local
110 if (fptr == NULL) {
118 dbg_ofile.fptr = fptr;
207 dbg_ofile.fptr);
209 (void) fputs(MSG_INTL(MSG_DBG_DFLT_FMT), dbg_ofile.fptr);
228 (void) vfprintf(dbg_ofile.fptr, forma
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/backend/mech/
H A Dseq.c219 typedef OM_uint32 (*fptr)(OM_uint32 *, gss_ctx_id_t, void *); typedef
222 static fptr __context_debug_entry_array[] = {
235 fptr *entrys;
237 sizeof (__context_debug_entry_array)/sizeof (fptr),
/illumos-gate/usr/src/cmd/pwck/
H A Dpwck.c69 FILE *fptr; local
90 if ((fptr = fopen(pw_file, "r")) == NULL) {
95 if (fstat(fileno(fptr), &stat_buf) < 0) {
98 (void) fclose(fptr);
104 (void) fclose(fptr);
108 while (fgets(buf, sizeof (buf), fptr) != NULL) {
217 (void) fclose(fptr);
/illumos-gate/usr/src/cmd/format/
H A Dmenu_defect.c543 FILE *fptr; local
571 if ((fptr = fopen(str, "w+")) == NULL) {
579 (void) fprintf(fptr, "0x%08x%8d 0x%08x\n",
588 (void) fprintf(fptr, "%4d%8d%7d%8d%8d%8d\n",
596 (void) fclose(fptr);
618 FILE *fptr; local
660 if ((fptr = fopen(filename, "r")) == NULL) {
668 items = fscanf(fptr, "0x%x%d 0x%x\n", &magicno,
710 items = fscanf(fptr, "%*d%hd%hd%d%hd%hd\n", &dptr->cyl,
741 (void) fclose(fptr);
[all...]
/illumos-gate/usr/src/cmd/sgs/libcrle/common/
H A Ddump.c124 * mapped in (fptr == load()) and then once again to dldump(3x) the mapped
125 * objects (fptr == dump()).
128 scanconfig(Addr addr, int (*fptr)()) argument
160 if ((*fptr)(str, strtbl + obj->co_alter) != 0)
170 if (fptr == load) {
/illumos-gate/usr/src/cmd/cmd-crypto/tpmadm/
H A Dmain.c60 cmdfunc_t fptr = NULL; local
83 fptr = p->func;
87 if (fptr == NULL) {
94 ret = fptr(hContext, hTPM, argc, argv);
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_hba_fru.c270 ql_fcache_t *fptr = ha->fcache; local
273 while ((fptr != NULL) && (types != 0)) {
275 if ((fptr = ql_get_fbuf(ha->fcache, types)) != NULL) {
277 switch (fptr->type) {
281 "%s fcode: %s;", orv, fptr->verstr);
286 "%s BIOS: %s;", orv, fptr->verstr);
291 "%s EFI: %s;", orv, fptr->verstr);
295 fptr->type);
298 types &= ~(fptr->type);
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Drandom.c117 * fptr and rptr are two pointers into the state info, a front and a rear
127 long *fptr, *rptr; member in struct:_randomjunk
217 rp->fptr = &rp->state[rp->rand_sep];
342 rp->fptr = &rp->state[(rear + rp->rand_sep) % rp->rand_deg];
375 *rp->fptr += *rp->rptr;
376 i = (*rp->fptr >> 1)&0x7fffffff; /* chucking least random bit */
377 if (++rp->fptr >= rp->end_ptr) {
378 rp->fptr = rp->state;
/illumos-gate/usr/src/lib/libc/port/gen/
H A Drandom.c134 * fptr and rptr are two pointers into the state info, a front and a rear
144 unsigned int *fptr, *rptr; member in struct:_randomjunk
336 rp->fptr = &rp->state[ (rear + rp->rand_sep)%rp->rand_deg ];
370 *rp->fptr += *rp->rptr;
371 i = (*rp->fptr >> 1)&0x7fffffff; /* chucking least random bit */
372 if (++rp->fptr >= rp->end_ptr) {
373 rp->fptr = rp->state;
410 rp->fptr = &rp->state[ rp->rand_sep ];
/illumos-gate/usr/src/head/
H A Dsdssc.h152 void **fptr; /* pointer to storage for global pointer */ member in struct:__anon2344
/illumos-gate/usr/src/cmd/oamuser/user/
H A Duserdefs.c55 (void) fprintf(fptr, "\n"); \
111 FILE *defptr; /* default file - fptr */
225 dispusrdef(FILE *fptr, unsigned flags, char *usertype) argument
233 outcount += fprintf(fptr, "group=%s,%ld ",
239 outcount += fprintf(fptr, "project=%s,%ld ",
245 outcount += fprintf(fptr, "basedir=%s ", deflts->defparent);
250 outcount += fprintf(fptr, "rid=%ld ", deflts->defrid);
255 outcount += fprintf(fptr, "skel=%s ", deflts->defskel);
260 outcount += fprintf(fptr, "shell=%s ", deflts->defshell);
265 outcount += fprintf(fptr, "inactiv
[all...]
/illumos-gate/usr/src/cmd/sgs/ar/common/
H A Dcmd.c246 ARFILE *fptr; local
249 for (fptr = getfile(cmd_info); fptr; fptr = getfile(cmd_info)) {
250 if (match(fptr->ar_longname, cmd_info) != NULL) {
260 mesg('d', fptr->ar_longname, cmd_info);
273 mesg('u', fptr->ar_longname, cmd_info);
274 backptr = fptr;
514 ARFILE *fptr; local
520 for (fptr
[all...]
/illumos-gate/usr/src/cmd/grpck/
H A Dgrpck.c68 FILE *fptr; variable
129 if ((fptr = fopen(argv[1], "r")) == NULL) {
159 while (!feof(fptr) && !ferror(fptr)) {
162 while (fgets(buf_off, (bufsize - buf_len), fptr) != NULL) {
164 if (buf[buf_len - 1] == '\n' || feof(fptr))
/illumos-gate/usr/src/cmd/ldap/common/
H A Dconvutf8.c68 const char *fptr; local
96 fptr = src;
99 ret = iconv(cd, &fptr, &ileft, &tptr, &oleft);
106 if (fptr == NULL) /* already in initial state */
108 fptr = NULL;
/illumos-gate/usr/src/lib/libast/common/uwin/
H A Drandom.c179 static long int *fptr = &randtbl[SEP_3 + 1]; variable
219 fptr = &state[rand_sep];
336 fptr = &state[(rear + rand_sep) % rand_deg];
366 *fptr += *rptr;
368 i = (*fptr >> 1) & LONG_MAX;
369 ++fptr;
370 if (fptr >= end_ptr)
372 fptr = state;
/illumos-gate/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c214 fake_elf64(struct ps_prochandle *P, file_info_t *fptr, uintptr_t addr, argument
218 fake_elf32(struct ps_prochandle *P, file_info_t *fptr, uintptr_t addr,
727 fptr->file_elfmem = elfdata;
H A DPzone.c775 file_info_t *fptr = mptr->map_file; local
780 if ((fptr != NULL) && (fptr->file_rname != NULL)) {
781 (void) strlcpy(s, fptr->file_rname, n);
788 ((fptr != NULL) && (fptr->file_lname != NULL) &&
789 (strcmp(fptr->file_lname, "a.out") == 0))) {
812 fptr = mptr->map_file;
813 if ((fptr != NULL) && (fptr
[all...]
/illumos-gate/usr/src/lib/libxcurses/src/tic/
H A Dticparse.c61 struct use_item *fptr, *bptr; member in struct:use_item
78 * | ----+-->| ----+-->| NULL | fptr
138 for (ptr = use_list.head; ptr != NULL; ptr = ptr->fptr)
142 fprintf(stderr, "ptr %x off %d bptr %x fptr %x str %s",
143 ptr, ptr->offset, ptr->bptr, ptr->fptr, line);
197 use_list.tail->fptr = item;
198 item->fptr = NULL;
204 item->fptr = item->bptr = NULL;
219 if (ptr->fptr == NULL)
222 (ptr->fptr)
[all...]
/illumos-gate/usr/src/cmd/csplit/
H A Dcsplit.c341 * flag is set, getfile positions the file pointer(fptr) at the end of
342 * the file name prefix on the first call(fptr=0). The file counter is
352 static char *fptr; local
360 if (fptr == 0)
361 for (fptr = file; *fptr != NULL; fptr++)
363 (void) sprintf(fptr, "%.*d", fiwidth, ctr++);
366 if (strlen(fptr) > fiwidth) {
395 (void) sprintf(fptr, "
[all...]
/illumos-gate/usr/src/cmd/fgrep/
H A Dfgrep.c92 &buf[fw_lBufsiz + BUFSIZ] - p, fptr))\
95 sizeof (char), BUFSIZ, fptr)) <= 0) \
123 FILE *fptr; variable
318 if ((fptr = fopen(file, "r")) == NULL) {
325 fptr = stdin;
362 &buf[fw_lBufsiz + BUFSIZ] - p, fptr))
366 BUFSIZ, fptr)) <= 0)
417 &buf[fw_lBufsiz + BUFSIZ] - p, fptr)) <= 0) break;
419 fptr)) <= 0) break;
432 (void) fclose(fptr);
[all...]

Completed in 89 milliseconds

123