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

1.1     ! root        1: #include "copyright.h"
        !             2: 
        !             3: /* $Header: XIntAtom.c,v 11.10 87/09/08 14:32:02 newman Exp $ */
        !             4: /* Copyright    Massachusetts Institute of Technology    1986  */
        !             5: 
        !             6: #define NEED_REPLIES
        !             7: #include "Xlibint.h"
        !             8: 
        !             9: Atom XInternAtom (dpy, name, onlyIfExists)
        !            10:     register Display *dpy;
        !            11:     char *name;
        !            12:     Bool onlyIfExists;
        !            13: {
        !            14:     register long nbytes;
        !            15:     xInternAtomReply rep;
        !            16:     register xInternAtomReq *req;
        !            17:     LockDisplay(dpy);
        !            18:     GetReq(InternAtom, req);
        !            19:     nbytes = req->nbytes = strlen(name);
        !            20:     req->onlyIfExists = onlyIfExists;
        !            21:     req->length += (nbytes+3)>>2;
        !            22:     _XSend (dpy, name, nbytes);
        !            23:        /* use _XSend instead of Data, since the following _XReply
        !            24:            will always flush the buffer anyway */
        !            25:     if(_XReply (dpy, (xReply *)&rep, 0, xTrue) == 0) rep.atom = None;
        !            26:     UnlockDisplay(dpy);
        !            27:     SyncHandle();
        !            28:     return (rep.atom);
        !            29: }
        !            30: 

unix.superglobalmegacorp.com

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