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

1.1     ! root        1: #include "copyright.h"
        !             2: 
        !             3: /* $Header: XLiProps.c,v 11.16 87/07/10 00:39:09 newman Exp $ */
        !             4: /* Copyright    Massachusetts Institute of Technology    1986  */
        !             5: 
        !             6: #define NEED_REPLIES
        !             7: #include "Xlibint.h"
        !             8: 
        !             9: Atom *XListProperties(dpy, window, n_props)
        !            10: register Display *dpy;
        !            11: Window window;
        !            12: int *n_props;  /* RETURN */
        !            13: {
        !            14:     long nbytes;
        !            15:     xListPropertiesReply rep;
        !            16:     Atom *properties;
        !            17:     register xResourceReq *req;
        !            18: 
        !            19:     LockDisplay(dpy);
        !            20:     GetResReq(ListProperties, window, req);
        !            21:     if (!_XReply(dpy, (xReply *)&rep, 0, xFalse)) {
        !            22:        *n_props = 0;
        !            23:        UnlockDisplay(dpy);
        !            24:         SyncHandle();
        !            25:        return (NULL);
        !            26:        }
        !            27: 
        !            28:     *n_props = rep.nProperties;
        !            29:     properties = (Atom *) Xmalloc (
        !            30:        (unsigned)(nbytes = ((long)rep.nProperties * sizeof(Atom))));
        !            31:     _XRead (dpy, (char *) properties, nbytes);
        !            32: 
        !            33:     UnlockDisplay(dpy);
        !            34:     SyncHandle();
        !            35:     return (properties);
        !            36: }

unix.superglobalmegacorp.com

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