Annotation of researchv9/X11/src/X.V11R1/lib/X/XQuKeybd.c, revision 1.1

1.1     ! root        1: #include "copyright.h"
        !             2: 
        !             3: /* $Header: XQuKeybd.c,v 11.8 87/09/11 08:06:01 toddb Exp $ */
        !             4: /* Copyright    Massachusetts Institute of Technology    1986  */
        !             5: 
        !             6: #define NEED_REPLIES
        !             7: #include "Xlibint.h"
        !             8: 
        !             9: struct kmap {
        !            10:   char map[32];
        !            11: };
        !            12: 
        !            13: XQueryKeymap(dpy, keys)
        !            14:     register Display *dpy;
        !            15:     char keys[32];
        !            16: 
        !            17: {       
        !            18:     xQueryKeymapReply rep;
        !            19:     register xReq *req;
        !            20: 
        !            21:     LockDisplay(dpy);
        !            22:     GetEmptyReq(QueryKeymap, req);
        !            23:     (void) _XReply(dpy, (xReply *)&rep, 
        !            24:        (sizeof (xQueryKeymapReply) - sizeof (xReply)) >> 2, xTrue);
        !            25:     *(struct kmap *) keys = *(struct kmap *)rep.map;  /* faster than bcopy */
        !            26:     UnlockDisplay(dpy);
        !            27:     SyncHandle();
        !            28: }
        !            29: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.