Searched refs:maxlen (Results 1 - 24 of 24) sorted by relevance

/xsrc/external/mit/xlsclients/dist/
H A Dstrnlen.c34 size_t strnlen(const char *s, size_t maxlen) { argument
35 const char *p = memchr(s, 0, maxlen);
36 return (size_t)(p ? (p - s) : maxlen);
H A Dstrnlen.h31 extern size_t strnlen(const char *s, size_t maxlen);
H A Dxlsclients.c63 static int print_quoted_word (char *s, int maxlen);
603 int maxlen) /* max number of chars we can print */
630 charsprinted++; maxlen--;
632 for (cp = s; *cp && maxlen>0; cp++) {
636 charsprinted++; maxlen--;
639 charsprinted++; maxlen--;
647 charsprinted++; maxlen--;
650 if (in_quote && maxlen>0) {
652 charsprinted++; maxlen--;
602 print_quoted_word(char * s,int maxlen) argument
/xsrc/external/mit/xwininfo/dist/
H A Dstrnlen.c34 size_t strnlen(const char *s, size_t maxlen) { argument
35 const char *p = memchr(s, 0, maxlen);
36 return (size_t)(p ? (p - s) : maxlen);
H A Dstrnlen.h31 extern size_t strnlen(const char *s, size_t maxlen);
/xsrc/external/mit/libXmu/dist/src/
H A DGetHost.c50 XmuGetHostname(char *buf, int maxlen) argument
61 (void) gethostname (buf, maxlen);
62 buf [maxlen - 1] = '\0';
/xsrc/external/mit/libXmu/dist/include/X11/Xmu/
H A DSysUtil.h37 int maxlen
/xsrc/external/mit/xauth/dist/
H A Dxauth.h53 extern char *get_local_hostname ( char *buf, int maxlen );
H A Dparsedpy.c73 get_local_hostname (char *buf, int maxlen) argument
76 (void) XmuGetHostname (buf, maxlen);
H A Dprocess.c80 int maxlen; /* strlen(name) */ member in struct:_CommandTable
636 if (n >= ct->minlen && n <= ct->maxlen &&
1450 if ((col + ct->maxlen) > WIDEST_COLUMN) {
1458 col += ct->maxlen;
1459 for (int i = ct->maxlen; i < COMMAND_NAMES_PADDED_WIDTH; i++) {
/xsrc/external/mit/xf86-video-qxl/dist/src/
H A Dspiceqxl_audio.c224 static int process_fifos(qxl_screen_t *qxl, struct audio_data *data, int maxlen) argument
226 while (maxlen > 0) {
242 maxlen -= data->spice_buffer_bytes;
281 int maxlen = 0; local in function:read_from_fifos
321 if (f->len > maxlen)
322 maxlen = f->len;
329 if (maxlen && !data->active) {
334 if (!process_fifos(qxl, data, maxlen)) {
/xsrc/external/mit/brotli/dist/c/enc/
H A Dstatic_dict.c36 size_t maxlen) {
39 BROTLI_MIN(size_t, len, maxlen));
96 size_t maxlen; local in function:BrotliFindAllStaticDictionaryMatches
117 maxlen = BROTLI_MIN(size_t, matchlen, l - 2);
118 for (len = minlen; len <= maxlen; ++len) {
32 DictMatchLength(const BrotliDictionary * dictionary,const uint8_t * data,size_t id,size_t len,size_t maxlen) argument
H A Dhash_to_binary_tree_inc.h250 size_t maxlen = BROTLI_MIN( local in function:FN
253 for (l = minlen; l <= maxlen; ++l) {
/xsrc/external/mit/MesaLib/dist/src/freedreno/rnn/
H A Dheadergen2.c382 unsigned maxlen = 0; local in function:printhead
385 if(len > maxlen)
386 maxlen = len;
390 fprintf(f.file, "- %s%*s ", db->files[i], maxlen - len, "");
/xsrc/external/mit/iceauth/dist/
H A Dprocess.c56 unsigned int maxlen; /* strlen(name) */ member in struct:_CommandTable
469 if (n >= ct->minlen && n <= ct->maxlen &&
1098 if ((col + ct->maxlen) > WIDEST_COLUMN) {
1106 col += ct->maxlen;
1107 for (unsigned int i = ct->maxlen; i < COMMAND_NAMES_PADDED_WIDTH; i++) {
/xsrc/external/mit/xtrans/dist/
H A DXtrans.c1349 int TRANS(GetHostname) (char *buf, int maxlen)
1359 if (len >= maxlen) len = maxlen - 1;
1364 (void) gethostname (buf, maxlen);
1365 buf [maxlen - 1] = '\0';
H A DXtranssock.c738 ssize_t maxlen = sizeof(s.sun_path) - 1; local in function:set_sun_path
754 if ((ssize_t)(strlen(at) + strlen(upath) + strlen(port)) > maxlen)
/xsrc/external/mit/libXt/dist/src/
H A DInitialize.c138 GetHostname(char *buf, int maxlen) argument
140 if (maxlen <= 0 || buf == NULL)
144 (void) gethostname(buf, (size_t) maxlen);
145 buf[maxlen - 1] = '\0';
/xsrc/external/mit/MesaLib/dist/include/android_stub/log/
H A Dlog_event_list.h75 size_t maxlen);
/xsrc/external/mit/libX11/dist/src/
H A DXlibInt.c1714 int maxlen)
1721 if (maxlen <= 0 || buf == NULL)
1726 if (len >= maxlen) len = maxlen - 1;
1730 if (maxlen <= 0 || buf == NULL)
1734 (void) gethostname (buf, maxlen);
1735 buf [maxlen - 1] = '\0';
1712 _XGetHostname(char * buf,int maxlen) argument
/xsrc/external/mit/MesaLib/dist/src/asahi/lib/
H A Ddecode.c42 agx_disassemble(void *_code, size_t maxlen, FILE *fp) argument
/xsrc/external/mit/xterm/dist/
H A Dgraphics_regis.c3202 extract_regis_string(RegisDataFragment *input, char *out, unsigned maxlen) argument
3210 assert(maxlen > 0U);
3229 if (outlen < maxlen) {
3237 if (outlen < maxlen)
3240 out[maxlen] = '\0';
3246 if (outlen < maxlen)
3254 if (outlen < maxlen)
3257 out[maxlen] = '\0';
/xsrc/external/mit/xf86-video-intel/dist/src/sna/
H A Dkgem.c363 static bool find_hang_state(struct kgem *kgem, char *path, int maxlen) argument
372 snprintf(path, maxlen, "/sys/class/drm/card%d/error", minor);
376 snprintf(path, maxlen, "/sys/kernel/debug/dri/%d/i915_error_state", minor);
380 snprintf(path, maxlen, "/debug/dri/%d/i915_error_state", minor);
/xsrc/external/mit/xf86-video-intel-2014/dist/src/sna/
H A Dkgem.c3741 static bool find_hang_state(struct kgem *kgem, char *path, int maxlen) argument
3750 snprintf(path, maxlen, "/sys/class/drm/card%d/error", minor);
3754 snprintf(path, maxlen, "/sys/kernel/debug/dri/%d/i915_error_state", minor);
3758 snprintf(path, maxlen, "/debug/dri/%d/i915_error_state", minor);

Completed in 57 milliseconds