/titanic_41/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)
|
H A D | streamio.c | 104 int read3_2 ( MESG * md, char *msgbuf, int size ) in read3_2() argument 108 if (md->type == MD_USR_FIFO) in read3_2() 109 (void) Close (Open(md->file, O_RDONLY, 0)); in read3_2() 113 switch (read_fifo(md->readfd, msgbuf, size)) in read3_2() 154 int write3_2 ( MESG * md, char * msgbuf, int size ) in write3_2() argument 166 rval = write_fifo(md->writefd, tmpbuf, size + EXCESS_3_2_LEN); in write3_2()
|
/titanic_41/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()
|
H A D | disp5.c | 45 s_child_done(char *m, MESG *md) in s_child_done() argument 57 if ((Exec_Table[i]->key == key) && (Exec_Table[i]->md == md)) { in s_child_done() 62 key, md, ep); in s_child_done() 69 DROP_MD (ep->md); in s_child_done()
|
H A D | disp3.c | 235 s_max_trays(char *m, MESG *md) in s_max_trays() argument 281 mputm(md, R_MAX_TRAYS, status); in s_max_trays() 289 s_mount(char *m, MESG *md) in s_mount() argument 327 mputm(md, R_MOUNT, status); in s_mount() 335 s_mount_tray(char *m, MESG *md) in s_mount_tray() argument 380 mputm (md, R_MOUNT_TRAY, status); in s_mount_tray() 388 s_unmount(char *m, MESG *md) in s_unmount() argument 430 mputm (md, R_UNMOUNT, status); in s_unmount() 438 s_unmount_tray(char *m, MESG *md) in s_unmount_tray() argument 478 mputm (md, R_UNMOUNT_TRAY, status); in s_unmount_tray() [all …]
|
/titanic_41/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_41/usr/src/cmd/lvm/etc/ |
H A D | svm.cleanup.sh | 35 IN_CONF=${FLASH_ROOT}/kernel/drv/md.conf 39 TMP_CONF=/var/tmp/md.conf.1 67 if [ -h /kernel/drv/md.conf ]; then 85 cp /kernel/drv/md.conf ${IN_CONF} 103 sed -e 's/#.*$//' /kernel/drv/md.conf | \ 131 cp ${SAVE_DIR}/md.conf ${FLASH_ROOT}/kernel/drv/md.conf 133 cp ${SAVE_DIR}/md.cf ${FLASH_ROOT}/etc/lvm/md.cf 134 cp ${SAVE_DIR}/md.ctlrmap ${FLASH_ROOT}/etc/lvm/md.ctlrmap 135 cp ${SAVE_DIR}/md.tab ${FLASH_ROOT}/etc/lvm/md.tab
|
/titanic_41/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_init.c | 143 md_unit_t *md, in meta_setup_geom() argument 156 total_blocks = rounddown(md->c.un_actual_tb, cylsize); in meta_setup_geom() 158 total_blocks = md->c.un_actual_tb; in meta_setup_geom() 161 md->c.un_total_blocks = total_blocks; in meta_setup_geom() 162 md->c.un_nhead = geomp->nhead; in meta_setup_geom() 163 md->c.un_nsect = geomp->nsect; in meta_setup_geom() 164 md->c.un_rpm = geomp->rpm; in meta_setup_geom() 165 md->c.un_wr_reinstruct = write_reinstruct; in meta_setup_geom() 166 md->c.un_rd_reinstruct = read_reinstruct; in meta_setup_geom() 176 md_unit_t *md, in meta_adjust_geom() argument [all …]
|
/titanic_41/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_41/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_41/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_41/usr/src/cmd/ssh/libssh/common/ |
H A D | mpaux.c | 38 MD5_CTX md; in compute_session_id() local 42 MD5_Init(&md); in compute_session_id() 43 MD5_Update(&md, buf, bytes); in compute_session_id() 44 MD5_Update(&md, cookie, 8); in compute_session_id() 45 MD5_Final(session_id, &md); in compute_session_id()
|
/titanic_41/usr/src/cmd/smbios/ |
H A D | smbios.c | 825 smbios_memdevice_t md; in print_memdevice() local 827 (void) smbios_info_memdevice(shp, id, &md); in print_memdevice() 829 id_printf(fp, " Physical Memory Array: ", md.smbmd_array); in print_memdevice() 830 id_printf(fp, " Memory Error Data: ", md.smbmd_error); in print_memdevice() 832 if (md.smbmd_twidth != -1u) in print_memdevice() 833 oprintf(fp, " Total Width: %u bits\n", md.smbmd_twidth); in print_memdevice() 837 if (md.smbmd_dwidth != -1u) in print_memdevice() 838 oprintf(fp, " Data Width: %u bits\n", md.smbmd_dwidth); in print_memdevice() 842 switch (md.smbmd_size) { in print_memdevice() 851 (u_longlong_t)md.smbmd_size); in print_memdevice() [all …]
|