| /titanic_53/usr/src/cmd/lp/lib/msgs/ |
| H A D | mdisconnect.c | 43 int mdisconnect ( MESG * md ) in mdisconnect() argument 45 int mdisconnect (md) in mdisconnect() 46 MESG *md; in mdisconnect() 53 if (!md) 59 switch(md->type) 64 if (md->writefd >= 0) 65 (void) Close(md->writefd); 66 if (md->readfd >= 0) 67 (void) Close(md->readfd); 72 disconnect3_2(md); [all …]
|
| H A D | mconnect.c | 68 MESG *md; local 120 if ((md = (MESG *)Malloc(MDSIZE)) == NULL) 126 memset(md, 0, sizeof (MESG)); 127 md->gid = getgid(); 128 md->on_discon = NULL; 129 md->readfd = fd; 130 md->state = MDS_IDLE; 131 md->type = MD_STREAM; 132 md->uid = getuid(); 133 md->writefd = fd; [all …]
|
| H A D | mlisten.c | 56 mlisteninit(MESG * md) in mlisteninit() argument 58 if (md == NULL) in mlisteninit() 78 Connections[0] = md; in mlisteninit() 79 PollFdList[0].fd = md->readfd; in mlisteninit() 87 mlistenadd(MESG * md, short events) in mlistenadd() argument 125 fdp->fd = md->readfd; in mlistenadd() 133 Connections[NumCons + NumNewCons++] = md; in mlistenadd() 141 MESG * md; in mlistenreset() local 151 md = Connections[0]; in mlistenreset() 161 return(md); in mlistenreset() [all …]
|
| H A D | mwrite.c | 43 static int _mwrite ( MESG * md , char * msgbuf , int ); 54 mflush(MESG *md) in mflush() argument 59 if (md == NULL || md->mque == NULL) { in mflush() 64 while ((p = md->mque) != NULL) { in mflush() 65 if (_mwrite(md, p->dat->buf, p->dat->len) != 0) in mflush() 69 md->mque = p->next; in mflush() 87 int mwrite ( MESG * md, char * msgbuf ) in mwrite() argument 94 if (md == NULL) in mwrite() 112 if (md->mque) in mwrite() 115 if (_mwrite(md, msgbuf, size) == 0) in mwrite() [all …]
|
| H A D | mcreate.c | 50 MESG *md; local 63 if ((md = (MESG *)Malloc(MDSIZE)) == NULL) 66 memset(md, 0, sizeof (MESG)); 67 md->admin = 1; 68 md->file = Strdup(path); 69 md->gid = getgid(); 70 md->readfd = fds[0]; 71 md->state = MDS_IDLE; 72 md->type = MD_MASTER; 73 md->uid = getuid(); [all …]
|
| H A D | mgetputm.c | 62 int mgetm ( MESG * md, int type, ... ) in mgetm() argument 64 int mgetm (md, type, va_alist) in mgetm() 65 MESG *md; in mgetm() 80 needsize = mpeek(md); 96 if (mread(md, MBG, MBGSize) < 0) 107 int mputm ( MESG * md, int type, ... ) in mputm() argument 109 int mputm (md, type, va_alist) in mputm() 110 MESG *md; in mputm() 153 return(mwrite(md, MBP)); 171 short mpeek ( MESG * md ) in mpeek() argument [all …]
|
| H A D | mdestroy.c | 41 int mdestroy(MESG *md) in mdestroy() argument 46 if (!md || md->type != MD_MASTER || md->file == NULL) { in mdestroy() 51 if (fdetach(md->file) != 0) in mdestroy() 54 pfd.fd = md->readfd; in mdestroy() 57 if (ioctl(md->readfd, I_RECVFD, &recbuf) == 0) in mdestroy() 64 if (ioctl(md->writefd, I_POP, 0) != 0) in mdestroy() 67 Free(md->file); in mdestroy() 68 md->file = NULL; in mdestroy() 70 (void) mdisconnect(md); in mdestroy()
|
| H A D | mread.c | 58 int mread ( MESG * md, char * msgbuf, int size ) in mread() argument 60 int mread ( md, msgbuf, size ) in mread() 61 MESG *md; in mread() 71 if (md == NULL || msgbuf == NULL) 77 switch(md->type) 96 if (Getmsg(md, &ctl, &dat, &flag) < 0) 105 (void) Close(md->readfd); 118 if (read3_2(md, msgbuf, size) < 0)
|
| /titanic_53/usr/src/cmd/lp/cmd/lpsched/ |
| H A D | msgs.c | 68 MESG * md; in take_message() local 71 if ((md = mlisten()) == NULL) in take_message() 92 if ((md->event & POLLHUP) && !(md->event & POLLIN) || in take_message() 93 (md->event & (POLLERR|POLLNVAL))) { in take_message() 94 switch (md->type) { in take_message() 104 if (Exec_Table[i]->md == md) in take_message() 123 if (md->readfd == -1) { /* something happened to the readfd */ in take_message() 127 bytes = mread(md, Message, MSGMAX); in take_message() 142 if (do_msg(md)) in take_message() 154 do_msg(MESG *md) in do_msg() argument [all …]
|
| H A D | disp1.c | 44 s_alloc_files(char *m, MESG *md) /* funcdef */ in s_alloc_files() argument 60 if ((file_prefix = _alloc_files(count, (char *)0, md->uid, md->gid))) { in s_alloc_files() 61 mputm(md, R_ALLOC_FILES, MOK, file_prefix); in s_alloc_files() 62 add_flt_act(md, FLT_FILES, file_prefix, count); in s_alloc_files() 64 mputm(md, R_ALLOC_FILES, MERRDEST, ""); in s_alloc_files() 66 mputm(md, R_ALLOC_FILES, MNOMEM, ""); in s_alloc_files() 77 s_print_request(char *m, MESG *md) in s_print_request() argument 129 rp->secure->uid = md->uid; in s_print_request() 130 rp->secure->gid = md->gid; in s_print_request() 131 if (md->slabel != NULL) in s_print_request() [all …]
|
| H A D | disp4.c | 40 s_accept_dest(char *m, MESG *md) in s_accept_dest() argument 80 mputm (md, R_ACCEPT_DEST, status); in s_accept_dest() 89 s_reject_dest(char *m, MESG *md) in s_reject_dest() argument 134 mputm (md, R_REJECT_DEST, status); in s_reject_dest() 143 s_enable_dest(char *m, MESG *md) in s_enable_dest() argument 164 mputm (md, R_ENABLE_DEST, status); in s_enable_dest() 173 s_disable_dest(char *m, MESG *md) in s_disable_dest() argument 218 mputm (md, R_DISABLE_DEST, status, NB(req_id)); in s_disable_dest() 230 s_load_filter_table(char *m, MESG *md) in s_load_filter_table() argument 248 mputm (md, R_LOAD_FILTER_TABLE, status); in s_load_filter_table() [all …]
|
| H A D | disptab.c | 304 dispatch(int type, char *m, MESG *md) in dispatch() argument 309 dispatchName(type), m, md); in dispatch() 312 mputm(md, R_BAD_MESSAGE); in dispatch() 315 mputm(md, R_BAD_MESSAGE); in dispatch() 317 else if (pd->flags & D_ADMIN && !md->admin) in dispatch() 319 (*pd->fncp) (md, type+1); in dispatch() 321 mputm(md, R_BAD_MESSAGE); in dispatch() 323 else if (pd->flags & D_SYSTEM && md->type != MD_CHILD && in dispatch() 324 md->type != MD_BOUND) in dispatch() 326 (*pd->fncp) (md, type+1); in dispatch() [all …]
|
| H A D | disp2.c | 56 s_load_printer(char *m, MESG *md) in s_load_printer() argument 172 mputm (md, R_LOAD_PRINTER, status); in s_load_printer() 215 s_unload_printer(char *m, MESG *md) in s_unload_printer() argument 266 mputm (md, R_UNLOAD_PRINTER, status); in s_unload_printer() 304 local_printer_status(MESG *md, PSTATUS *pps, short status) in local_printer_status() argument 313 send(md, R_INQUIRE_PRINTER_STATUS, status, pps->printer->name, in local_printer_status() 332 s_inquire_printer_status(char *m, MESG *md) in s_inquire_printer_status() argument 347 local_printer_status(md, pps, MOKMORE); in s_inquire_printer_status() 354 local_printer_status(md, pps, MOK); in s_inquire_printer_status() 356 mputm(md, R_INQUIRE_PRINTER_STATUS, MNODEST, "", "", "", "", in s_inquire_printer_status() [all …]
|
| H A D | flt.c | 55 add_flt_act(MESG * md, ...) in add_flt_act() argument 60 va_start (arg, md); in add_flt_act() 67 f->ident = md; in add_flt_act() 69 if (md->on_discon == NULL) in add_flt_act() 70 if (mon_discon(md, do_flt_acts)) in add_flt_act() 93 del_flt_act(MESG *md, ...) in del_flt_act() argument 100 va_start(arg, md); in del_flt_act() 105 if (f->next->type == type && f->next->ident == md) in del_flt_act() 117 do_flt_acts(MESG *md) in do_flt_acts() argument 129 if (f->next->ident == md) in do_flt_acts()
|
| /titanic_53/usr/src/tools/ctf/stabs/common/ |
| H A D | genassym.c | 216 ga_member_cb_data_t *md = arg; in ga_member_cb() local 220 if (strcmp(name, md->gmcb_memname) != 0) in ga_member_cb() 223 md->gmcb_off += off / 8; /* off is in bits */ in ga_member_cb() 225 if (md->gmcb_submem != NULL) { in ga_member_cb() 232 smd.gmcb_memname = md->gmcb_submem; in ga_member_cb() 234 smd.gmcb_offdef = md->gmcb_offdef; in ga_member_cb() 235 smd.gmcb_off = md->gmcb_off; in ga_member_cb() 240 if (md->gmcb_offdef == NULL) { in ga_member_cb() 243 label = md->gmcb_memname; in ga_member_cb() 247 label = md->gmcb_offdef; in ga_member_cb() [all …]
|
| /titanic_53/usr/src/cmd/mdb/sun4v/modules/mdesc/ |
| H A D | mdesc.c | 43 machine_descrip_t md; in mdhdr() local 62 if (mdb_vread(&md, sizeof (md), mdp) == -1) { in mdhdr() 69 mdp, md.va, md.memops, md.size); in mdhdr() 73 } while ((mdp = (uintptr_t)md.next) != NULL); in mdhdr() 83 machine_descrip_t md; in mdinfo() local 104 if (mdb_vread(&md, sizeof (md), mdp) == -1) { in mdinfo() 108 vaddr = (uintptr_t)md.va; in mdinfo() 238 machine_descrip_t md; in mddump() local 254 if (mdb_vread(&md, sizeof (md), mdp) == -1) { in mddump() 258 vaddr = (uintptr_t)md.va; in mddump() [all …]
|
| /titanic_53/usr/src/boot/sys/boot/i386/libi386/ |
| H A D | bootinfo32.c | 104 struct file_metadata *md; in bi_copymodules32() local 117 for (md = fp->f_metadata; md != NULL; md = md->md_next) in bi_copymodules32() 118 if (!(md->md_type & MODINFOMD_NOCOPY)) in bi_copymodules32() 119 MOD_METADATA(addr, md, c); in bi_copymodules32() 139 struct file_metadata *md; in bi_load32() local 232 md = file_findmetadata(kfp, MODINFOMD_KERNEND); in bi_load32() 233 bcopy(&kernend, md->md_data, sizeof kernend); in bi_load32() 239 md = file_findmetadata(kfp, MODINFOMD_SSYM); in bi_load32() 240 if (md != NULL) in bi_load32() 241 ssym = *((vm_offset_t *)&(md->md_data)); in bi_load32() [all …]
|
| H A D | bootinfo64.c | 105 struct file_metadata *md; in bi_copymodules64() local 121 for (md = fp->f_metadata; md != NULL; md = md->md_next) in bi_copymodules64() 122 if (!(md->md_type & MODINFOMD_NOCOPY)) in bi_copymodules64() 123 MOD_METADATA(addr, md, c); in bi_copymodules64() 184 struct file_metadata *md; in bi_load64() local 251 md = file_findmetadata(kfp, MODINFOMD_KERNEND); in bi_load64() 252 bcopy(&kernend, md->md_data, sizeof kernend); in bi_load64() 255 md = file_findmetadata(kfp, MODINFOMD_ENVP); in bi_load64() 256 bcopy(&envp, md->md_data, sizeof envp); in bi_load64()
|
| /titanic_53/usr/src/boot/sys/boot/userboot/userboot/ |
| H A D | bootinfo32.c | 104 struct file_metadata *md; in bi_copymodules32() local 117 for (md = fp->f_metadata; md != NULL; md = md->md_next) in bi_copymodules32() 118 if (!(md->md_type & MODINFOMD_NOCOPY)) in bi_copymodules32() 119 MOD_METADATA(addr, md, c); in bi_copymodules32() 139 struct file_metadata *md; in bi_load32() local 211 md = file_findmetadata(kfp, MODINFOMD_KERNEND); in bi_load32() 212 bcopy(&kernend, md->md_data, sizeof kernend); in bi_load32() 218 md = file_findmetadata(kfp, MODINFOMD_SSYM); in bi_load32() 219 if (md != NULL) in bi_load32() 220 ssym = *((vm_offset_t *)&(md->md_data)); in bi_load32() [all …]
|
| /titanic_53/usr/src/uts/sun4v/os/ |
| H A D | mpo.c | 179 static int valid_pages(md_t *md, mde_cookie_t cpu0); 239 get_int(md_t md, mde_cookie_t node, char *propname, uint64_t *val) in get_int() argument 241 int err = md_get_prop_val(md, node, propname, val); in get_int() 306 cpuid_to_cpunode(md_t *md, int cpuid) in cpuid_to_cpunode() argument 312 if (md == NULL) in cpuid_to_cpunode() 315 rootnode = md_root_node(md); in cpuid_to_cpunode() 319 n_cpunodes = md_alloc_scan_dag(md, rootnode, PROP_LG_CPU, in cpuid_to_cpunode() 325 if (md_get_prop_val(md, cpunodes[i], PROP_LG_CPU_ID, in cpuid_to_cpunode() 330 md_free_scan_dag(md, &cpunodes); in cpuid_to_cpunode() 336 md_free_scan_dag(md, &cpunodes); in cpuid_to_cpunode() [all …]
|
| /titanic_53/usr/src/boot/sys/boot/common/ |
| H A D | module.c | 256 struct file_metadata *md; in command_lsmod() local 300 for (md = fp->f_metadata; md != NULL; md = md->md_next) { in command_lsmod() 301 sprintf(lbuf, " 0x%04x, 0x%lx\n", md->md_type, (long) md->md_size); in command_lsmod() 359 struct file_metadata *md; in file_load_dependencies() local 366 md = file_findmetadata(base_file, MODINFOMD_DEPLIST); in file_load_dependencies() 367 if (md == NULL) in file_load_dependencies() 371 verinfo = (struct mod_depend*)md->md_data; in file_load_dependencies() 391 md = metadata_next(md, MODINFOMD_DEPLIST); in file_load_dependencies() 392 } while (md); in file_load_dependencies() 735 struct file_metadata *md; in file_addmetadata() local [all …]
|
| /titanic_53/usr/src/boot/sys/boot/efi/loader/arch/i386/ |
| H A D | bootinfo.c | 182 struct file_metadata *md; in bi_copymodules() local 193 for (md = fp->f_metadata; md != NULL; md = md->md_next) { in bi_copymodules() 194 if (!(md->md_type & MODINFOMD_NOCOPY)) in bi_copymodules() 195 MOD_METADATA(addr, md); in bi_copymodules() 213 struct file_metadata *md; in bi_load() local 235 md = file_findmetadata(fp, MODINFOMD_SSYM); in bi_load() 236 ssym = (md != NULL) ? *((vm_offset_t *)&(md->md_data)) : 0; in bi_load() 237 md = file_findmetadata(fp, MODINFOMD_ESYM); in bi_load() 238 esym = (md != NULL) ? *((vm_offset_t *)&(md->md_data)) : 0; in bi_load()
|
| /titanic_53/usr/src/cmd/smbios/ |
| H A D | smbios.c | 906 smbios_memdevice_t md; in print_memdevice() local 908 (void) smbios_info_memdevice(shp, id, &md); in print_memdevice() 910 id_printf(fp, " Physical Memory Array: ", md.smbmd_array); in print_memdevice() 911 id_printf(fp, " Memory Error Data: ", md.smbmd_error); in print_memdevice() 913 if (md.smbmd_twidth != -1u) in print_memdevice() 914 oprintf(fp, " Total Width: %u bits\n", md.smbmd_twidth); in print_memdevice() 918 if (md.smbmd_dwidth != -1u) in print_memdevice() 919 oprintf(fp, " Data Width: %u bits\n", md.smbmd_dwidth); in print_memdevice() 923 switch (md.smbmd_size) { in print_memdevice() 932 (u_longlong_t)md.smbmd_size); in print_memdevice() [all …]
|
| /titanic_53/usr/src/lib/krb5/plugins/preauth/pkinit/ |
| H A D | pkinit_matching.c | 485 pkinit_cert_matching_data *md) in component_match() argument 496 match = regexp_match(context, rc, md->subject_dn); in component_match() 499 match = regexp_match(context, rc, md->issuer_dn); in component_match() 502 if (md->sans == NULL) in component_match() 504 for (i = 0, p = md->sans[i]; p != NULL; p = md->sans[++i]) { in component_match() 524 rc->eku_bits, md->eku_bits); in component_match() 525 if ((rc->eku_bits & md->eku_bits) == rc->eku_bits) in component_match() 531 rc->ku_bits, md->ku_bits); in component_match() 532 if ((rc->ku_bits & md->ku_bits) == rc->ku_bits) in component_match() 567 pkinit_cert_matching_data *md; in check_all_certs() local [all …]
|
| /titanic_53/usr/src/boot/sys/boot/uboot/common/ |
| H A D | metadata.c | 216 struct file_metadata *md; in md_copymodules() local 231 for (md = fp->f_metadata; md != NULL; md = md->md_next) { in md_copymodules() 232 if (!(md->md_type & MODINFOMD_NOCOPY)) in md_copymodules() 233 MOD_METADATA(addr, md, c); in md_copymodules() 253 struct file_metadata *md; in md_load() local 344 md = file_findmetadata(kfp, MODINFOMD_KERNEND); in md_load() 345 bcopy(&kernend, md->md_data, sizeof kernend); in md_load() 353 md = file_findmetadata(xp, mdt[i]); in md_load() 354 if (md) { in md_load() 355 bcopy(md->md_data, &vaddr, sizeof vaddr); in md_load() [all …]
|