/illumos-gate/usr/src/cmd/lp/lib/msgs/ |
H A D | mclose.c | 40 MESG *md = lp_Md; local 44 return(mdisconnect(md));
|
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 [all...] |
H A D | mdestroy.c | 41 int mdestroy(MESG *md) argument 46 if (!md || md->type != MD_MASTER || md->file == NULL) { 51 if (fdetach(md->file) != 0) 54 pfd.fd = md->readfd; 57 if (ioctl(md->readfd, I_RECVFD, &recbuf) == 0) 64 if (ioctl(md->writefd, I_POP, 0) != 0) 67 Free(md->file); 68 md [all...] |
H A D | mread.c | 47 ** EINVAL Bad value for md or msgbuf. 58 int mread ( MESG * md, char * msgbuf, int size ) argument 60 int mread ( md, msgbuf, size ) 61 MESG *md; 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 | 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 [all...] |
H A D | mgetputm.c | 62 int mgetm ( MESG * md, int type, ... ) argument 64 int mgetm (md, type, va_alist) 65 MESG *md; 80 needsize = mpeek(md); 96 if (mread(md, MBG, MBGSize) < 0) 107 int mputm ( MESG * md, int type, ... ) argument 109 int mputm (md, type, va_alist) 110 MESG *md; 153 return(mwrite(md, MBP)); 171 short mpeek ( MESG * md ) [all...] |
H A D | mwrite.c | 43 static int _mwrite ( MESG * md , char * msgbuf , int ); 54 mflush(MESG *md) argument 59 if (md == NULL || md->mque == NULL) { 64 while ((p = md->mque) != NULL) { 65 if (_mwrite(md, p->dat->buf, p->dat->len) != 0) 69 md->mque = p->next; 83 * and md->mque is updated. 87 int mwrite ( MESG * md, char * msgbuf ) argument 94 if (md 163 _mwrite( MESG * md, char * msgbuf , int size ) argument [all...] |
H A D | streamio.c | 104 int read3_2 ( MESG * md, char *msgbuf, int size ) argument 108 if (md->type == MD_USR_FIFO) 109 (void) Close (Open(md->file, O_RDONLY, 0)); 113 switch (read_fifo(md->readfd, msgbuf, size)) 154 int write3_2 ( MESG * md, char * msgbuf, int size ) argument 166 rval = write_fifo(md->writefd, tmpbuf, size + EXCESS_3_2_LEN);
|
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/ |
H A D | disp5.c | 45 s_child_done(char *m, MESG *md) argument 57 if ((Exec_Table[i]->key == key) && (Exec_Table[i]->md == md)) { 62 key, md, ep); 69 DROP_MD (ep->md);
|
H A D | disptab.c | 304 dispatch(int type, char *m, MESG *md) argument 309 dispatchName(type), m, md); 312 mputm(md, R_BAD_MESSAGE); 315 mputm(md, R_BAD_MESSAGE); 317 else if (pd->flags & D_ADMIN && !md->admin) 319 (*pd->fncp) (md, type+1); 321 mputm(md, R_BAD_MESSAGE); 323 else if (pd->flags & D_SYSTEM && md->type != MD_CHILD && 324 md->type != MD_BOUND) 326 (*pd->fncp) (md, typ 340 r_H(MESG *md, int type) argument 346 r_HS(MESG *md, int type) argument [all...] |
H A D | msgs.c | 68 MESG * md; local 71 if ((md = mlisten()) == NULL) 92 if ((md->event & POLLHUP) && !(md->event & POLLIN) || 93 (md->event & (POLLERR|POLLNVAL))) { 94 switch (md->type) { 104 if (Exec_Table[i]->md == md) 123 if (md->readfd == -1) { /* something happened to the readfd */ 127 bytes = mread(md, Messag 154 do_msg(MESG *md) argument 219 MESG * md; local 247 MESG *md; local [all...] |
H A D | flt.c | 55 add_flt_act(MESG * md, ...) argument 60 va_start (arg, md); 67 f->ident = md; 69 if (md->on_discon == NULL) 70 if (mon_discon(md, do_flt_acts)) 93 del_flt_act(MESG *md, ...) argument 100 va_start(arg, md); 105 if (f->next->type == type && f->next->ident == md) 117 do_flt_acts(MESG *md) argument 129 if (f->next->ident == md) [all...] |
H A D | disp2.c | 56 s_load_printer(char *m, MESG *md) argument 172 mputm (md, R_LOAD_PRINTER, status); 215 s_unload_printer(char *m, MESG *md) argument 266 mputm (md, R_UNLOAD_PRINTER, status); 304 local_printer_status(MESG *md, PSTATUS *pps, short status) argument 313 send(md, R_INQUIRE_PRINTER_STATUS, status, pps->printer->name, 332 s_inquire_printer_status(char *m, MESG *md) argument 347 local_printer_status(md, pps, MOKMORE); 354 local_printer_status(md, pps, MOK); 356 mputm(md, R_INQUIRE_PRINTER_STATU 367 s_load_class(char *m, MESG *md) argument 461 s_unload_class(char *m, MESG *md) argument 533 s_inquire_class(char *m, MESG *md) argument 572 s_paper_allowed(char *m, MESG *md) argument [all...] |
H A D | disp3.c | 235 s_max_trays(char *m, MESG *md) argument 281 mputm(md, R_MAX_TRAYS, status); 289 s_mount(char *m, MESG *md) argument 327 mputm(md, R_MOUNT, status); 335 s_mount_tray(char *m, MESG *md) argument 380 mputm (md, R_MOUNT_TRAY, status); 388 s_unmount(char *m, MESG *md) argument 430 mputm (md, R_UNMOUNT, status); 438 s_unmount_tray(char *m, MESG *md) argument 478 mputm (md, R_UNMOUNT_TRA 487 s_load_form(char *m, MESG *md) argument 595 s_unload_form(char *m, MESG *md) argument 652 s_load_printwheel(char *m, MESG *md) argument 758 s_unload_printwheel(char *m, MESG *md) argument [all...] |
/illumos-gate/usr/src/uts/sun4/io/fpc/ |
H A D | fpc.c | 56 static struct modldrv md = { variable in typeref:struct:modldrv 64 (void *)&md,
|
/illumos-gate/usr/src/cmd/lp/lib/papi/ |
H A D | papi_impl.h | 59 MESG *md; member in struct:__anon813
|
/illumos-gate/usr/src/boot/sys/boot/efi/loader/arch/i386/ |
H A D | elf32_freebsd.c | 65 struct file_metadata *md; local 70 if ((md = file_findmetadata(fp, MODINFOMD_ELFHDR)) == NULL) 72 ehdr = (Elf_Ehdr *)&(md->md_data);
|
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/ |
H A D | elf32_freebsd.c | 56 struct file_metadata *md; local 61 if ((md = file_findmetadata(fp, MODINFOMD_ELFHDR)) == NULL) 63 ehdr = (Elf_Ehdr *)&(md->md_data);
|
H A D | elf64_freebsd.c | 74 struct file_metadata *md; local 80 if ((md = file_findmetadata(fp, MODINFOMD_ELFHDR)) == NULL) 82 ehdr = (Elf_Ehdr *)&(md->md_data);
|
/illumos-gate/usr/src/boot/sys/boot/efi/loader/arch/arm64/ |
H A D | exec.c | 76 struct file_metadata *md; local 110 if ((md = file_findmetadata(fp, MODINFOMD_ELFHDR)) == NULL) 113 ehdr = (Elf_Ehdr *)&(md->md_data);
|
/illumos-gate/usr/src/boot/sys/boot/userboot/userboot/ |
H A D | elf32_freebsd.c | 59 struct file_metadata *md; local 66 if ((md = file_findmetadata(fp, MODINFOMD_ELFHDR)) == NULL) 68 ehdr = (Elf_Ehdr *)&(md->md_data);
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | security.c | 261 unsigned char md[EVP_MAX_MD_SIZE]; local 264 if (!X509_digest(cert, alg, md, &n)) { 273 (void) snprintf(tmp, ATTR_MAX, "%02X:", md[i]);
|
/illumos-gate/usr/src/cmd/mdb/sun4v/modules/mdesc/ |
H A D | mdesc.c | 43 machine_descrip_t md; local 62 if (mdb_vread(&md, sizeof (md), mdp) == -1) { 69 mdp, md.va, md.memops, md.size); 73 } while ((mdp = (uintptr_t)md.next) != NULL); 83 machine_descrip_t md; local 104 if (mdb_vread(&md, sizeof (md), md 238 machine_descrip_t md; local [all...] |
/illumos-gate/usr/src/uts/sun4v/io/n2piupc/ |
H A D | n2piupc.c | 88 static struct modldrv md = { variable in typeref:struct:modldrv 96 (void *)&md,
|
/illumos-gate/usr/src/cmd/sendmail/libsmutil/ |
H A D | safefile.c | 207 int md = S_IWRITE|S_IEXEC; local 218 md >>= 3; 234 md >>= 3; 238 md >>= 3; 240 if ((stbuf.st_mode & md) != md)
|