Searched refs:nbytes (Results 1 - 25 of 165) sorted by relevance

1234567

/xsrc/external/mit/libFS/dist/src/
H A DFSErrDis.c83 int nbytes)
85 if (nbytes == 0)
88 if (strlcpy(buffer, defaultp, nbytes) >= nbytes)
91 (void) strncpy(buffer, defaultp, nbytes);
92 if ((strlen(defaultp) + 1) > nbytes)
93 buffer[nbytes - 1] = '\0';
102 int nbytes)
107 if (nbytes == 0)
112 FSGetErrorDatabaseText(svr, "FSProtoError", buf, defaultp, buffer, nbytes);
77 FSGetErrorDatabaseText(FSServer * svr,const char * name,const char * type,const char * defaultp,char * buffer,int nbytes) argument
98 FSGetErrorText(register FSServer * svr,register int code,char * buffer,int nbytes) argument
[all...]
H A DFSOpenFont.c65 size_t nbytes; local in function:FSOpenBitmapFont
72 nbytes = strnlen(name, 256);
74 nbytes = strlen(name);
77 if ((nbytes == 0) || (nbytes > 255) ||
78 (nbytes > (FSMaxRequestBytes(svr) - SIZEOF(fsOpenBitmapFontReq))))
81 buf[0] = (CARD8) nbytes;
82 memcpy(&buf[1], name, nbytes);
83 nbytes++;
87 req->length += (CARD16) ((nbytes
[all...]
H A DFSSetCats.c91 size_t nbytes; local in function:FSSetCatalogues
94 nbytes = strnlen(cats[i], 256);
96 nbytes = strlen(cats[i]);
99 if (nbytes < 256) {
100 buf[0] = (CARD8) nbytes;
101 memcpy(&buf[1], cats[i], nbytes);
102 nbytes++;
103 _FSSend(svr, buf, (long) nbytes);
H A DFSFtNames.c74 req->nbytes = 0;
76 size_t nbytes; local in function:FSListFonts
79 nbytes = strnlen(pattern, FSMaxRequestBytes(svr));
81 nbytes = strlen(pattern);
84 if (nbytes <= (FSMaxRequestBytes(svr) - SIZEOF(fsListFontsReq))) {
85 req->nbytes = (CARD16) nbytes;
86 req->length += (CARD16) ((nbytes + 3) >> 2);
87 _FSSend(svr, pattern, (long) nbytes);
H A DFSListCats.c73 req->nbytes = 0;
75 size_t nbytes; local in function:FSListCatalogues
78 nbytes = strnlen(pattern, FSMaxRequestBytes(svr));
80 nbytes = strlen(pattern);
83 if (nbytes <= (FSMaxRequestBytes(svr) - SIZEOF(fsListCataloguesReq))) {
84 req->nbytes = (CARD16) nbytes;
85 req->length += (CARD16) ((nbytes + 3) >> 2);
86 _FSSend(svr, pattern, (long) nbytes);
/xsrc/external/mit/freetype/dist/src/pcf/
H A Dpcfutil.c44 size_t nbytes )
46 for ( ; nbytes > 0; nbytes--, buf++ )
66 size_t nbytes )
68 for ( ; nbytes >= 2; nbytes -= 2, buf += 2 )
85 size_t nbytes )
87 for ( ; nbytes >= 4; nbytes -= 4, buf += 4 )
43 BitOrderInvert(unsigned char * buf,size_t nbytes) argument
65 TwoByteSwap(unsigned char * buf,size_t nbytes) argument
84 FourByteSwap(unsigned char * buf,size_t nbytes) argument
H A Dpcfutil.h40 size_t nbytes );
44 size_t nbytes );
48 size_t nbytes );
/xsrc/external/mit/libXmu/dist/include/X11/Xmu/
H A DLookup.h42 int nbytes,
50 int nbytes,
57 int nbytes,
64 int nbytes,
71 int nbytes,
78 int nbytes,
85 int nbytes,
92 int nbytes,
99 int nbytes,
106 int nbytes,
[all...]
/xsrc/external/mit/libX11/dist/src/
H A DLoadFont.c38 register long nbytes; local in function:XLoadFont
50 nbytes = req->nbytes = name ? (CARD16) strlen(name) : 0;
52 req->length += (nbytes+3)>>2;
53 Data (dpy, name, nbytes);
H A DFreeCols.c41 register long nbytes; local in function:XFreeColors
51 nbytes = npixels << 2; /* watch out for macros... */
52 Data32 (dpy, (long *) pixels, nbytes);
H A DRotProp.c40 register long nbytes; local in function:XRotateWindowProperties
50 nbytes = nprops << 2;
52 Data32 (dpy, (long *) properties, nbytes);
H A DStBytes.c57 int *nbytes,
65 *nbytes = 0;
74 *nbytes = nitems;
83 int *nbytes)
85 return (XFetchBuffer (dpy, nbytes, 0));
92 int nbytes,
97 XA_STRING, 8, PropModeReplace, (_Xconst unsigned char *) bytes, nbytes);
104 int nbytes)
106 return XStoreBuffer (dpy, bytes, nbytes, 0);
55 XFetchBuffer(register Display * dpy,int * nbytes,register int buffer) argument
81 XFetchBytes(register Display * dpy,int * nbytes) argument
89 XStoreBuffer(register Display * dpy,_Xconst char * bytes,int nbytes,register int buffer) argument
101 XStoreBytes(register Display * dpy,_Xconst char * bytes,int nbytes) argument
H A DStrToText.c47 register unsigned int nbytes; local in function:XStringListToTextProperty
51 for (i = 0, nbytes = 0; i < argc; i++) {
52 nbytes += (unsigned) ((argv[i] ? strlen (argv[i]) : 0) + 1);
58 if (nbytes)
59 proto.nitems = nbytes - 1; /* subtract one for trailing <NUL> */
65 if (nbytes > 0) {
66 register char *buf = Xmalloc (nbytes);
H A DGetPntMap.c47 unsigned long nbytes, remainder = 0; local in function:XGetPointerMapping
67 nbytes = (unsigned long) rep.length << 2;
68 if (nbytes > sizeof mapping) {
69 remainder = nbytes - sizeof mapping;
70 nbytes = sizeof mapping;
72 _XRead (dpy, (char *)mapping, nbytes);
97 unsigned long nbytes; local in function:XGetKeyboardMapping
124 nbytes = nkeysyms << 2;
125 _XRead32 (dpy, (long *) mapping, nbytes);
H A DGetProp.c76 unsigned long nbytes, netbytes; local in function:XGetWindowProperty
94 nbytes = netbytes = reply.nItems;
95 if (nbytes + 1 > 0 && (*prop = Xmalloc (nbytes + 1)))
100 nbytes = reply.nItems * sizeof (short);
102 if (nbytes + 1 > 0 && (*prop = Xmalloc (nbytes + 1)))
107 nbytes = reply.nItems * sizeof (long);
109 if (nbytes + 1 > 0 && (*prop = Xmalloc (nbytes
[all...]
H A DimConv.c101 * with nbytes bytes, nbytes should be >= 8) and is NUL terminated.
112 int nbytes)
124 count = (*cvt)((XPointer)NULL, buf, ucs4, nbytes);
129 if (count>nbytes)
130 return nbytes;
131 if (count<nbytes)
140 int nbytes,
148 ret = XLookupString(event, (char *)buffer, nbytes, keysym, status);
162 int nbytes,
108 _XimGetCharCode(XPointer ucs_conv,KeySym keysym,unsigned char * buf,int nbytes) argument
137 lookup_string(XKeyEvent * event,char * buffer,int nbytes,KeySym * keysym,XComposeStatus * status) argument
158 _XimLookupMBText(Xic ic,XKeyEvent * event,char * buffer,int nbytes,KeySym * keysym,XComposeStatus * status) argument
231 _XimLookupWCText(Xic ic,XKeyEvent * event,wchar_t * buffer,int nbytes,KeySym * keysym,XComposeStatus * status) argument
303 _XimLookupUTF8Text(Xic ic,XKeyEvent * event,char * buffer,int nbytes,KeySym * keysym,XComposeStatus * status) argument
[all...]
H A DErrDes.c104 int nbytes)
110 if (nbytes == 0) return 0;
115 buffer, nbytes);
121 (*ext->error_string)(dpy, code, &ext->codes, buffer, nbytes);
130 (void) XGetErrorDatabaseText(dpy, "XProtoError", buf, "", buffer, nbytes);
133 snprintf(buffer, nbytes, "%d", code);
145 int nbytes)
155 if (nbytes == 0) return 0;
209 (void) strncpy (buffer, (char *) result.addr, (size_t)nbytes);
210 if (result.size > nbytes) buffe
100 XGetErrorText(register Display * dpy,register int code,char * buffer,int nbytes) argument
139 XGetErrorDatabaseText(Display * dpy,register _Xconst char * name,register _Xconst char * type,_Xconst char * defaultp,char * buffer,int nbytes) argument
[all...]
H A DPolyTxt.c112 int nbytes = SIZEOF(xTextElt); local in function:XDrawText
140 BufAlloc (char *, tbuf , nbytes);
146 nbytes = 254;
152 nbytes += SIZEOF(xTextElt);
153 BufAlloc (char *, tbuf, nbytes);
159 BufAlloc(char *, DummyChar, nbytes);
164 nbytes += SIZEOF(xTextElt);
165 BufAlloc (char *, tbuf, nbytes);
177 nbytes = PartialNChars;
183 nbytes
[all...]
H A DPolyTxt16.c112 int nbytes = SIZEOF(xTextElt); local in function:XDrawText16
138 BufAlloc (xTextElt *, elt, nbytes);
144 nbytes = 254 * 2;
150 nbytes += SIZEOF(xTextElt);
151 BufAlloc (xTextElt *, elt, nbytes);
157 BufAlloc(char *, DummyChar, nbytes);
165 nbytes += SIZEOF(xTextElt);
166 BufAlloc (xTextElt *, elt, nbytes);
178 nbytes = PartialNChars * 2;
184 nbytes
[all...]
H A DDrPoints.c42 register long nbytes; local in function:XDrawPoints
59 nbytes = ((long)n) << 2; /* watch out for macros... */
64 if (nbytes > 4) {
65 Data16 (dpy, (short *) (points + 1), nbytes - 4);
68 Data16 (dpy, (short *) points, nbytes);
H A DGetFPath.c39 unsigned long nbytes = 0; local in function:XGetFontPath
55 nbytes = (unsigned long) rep.length << 2;
56 ch = Xmalloc (nbytes + 1);
69 _XReadPad (dpy, ch, nbytes);
73 chend = ch + nbytes;
H A DQuTextE16.c47 long nbytes; local in function:XQueryTextExtents16
51 nbytes = nchars << 1;
54 if ((buf = _XAllocScratch (dpy, (unsigned long) nbytes))) {
55 req->length += (nbytes + 3)>>2;
61 Data (dpy, buf, nbytes);
H A DQuTextExt.c47 long nbytes; local in function:XQueryTextExtents
51 nbytes = nchars << 1;
54 if ((buf = _XAllocScratch (dpy, (unsigned long) nbytes))) {
55 req->length += (nbytes + 3)>>2;
61 Data (dpy, buf, nbytes);
/xsrc/external/mit/libXi/dist/src/
H A DXGetKMap.c74 long nbytes; local in function:XGetDeviceKeyMapping
100 nbytes = (long)rep.length << 2;
101 mapping = (KeySym *) Xmalloc((unsigned)nbytes);
104 nbytes = 0;
108 _XRead(dpy, (char *)mapping, nbytes);
H A DXGetMMap.c69 unsigned long nbytes; local in function:XGetDeviceModifierMapping
91 nbytes = (unsigned long)rep.length << 2;
94 nbytes = 0;
98 res->modifiermap = (KeyCode *) Xmalloc(nbytes);
100 _XReadPad(dpy, (char *)res->modifiermap, nbytes);

Completed in 19 milliseconds

1234567