Lines Matching defs:namelen
77 int namelen; /* length of file name without .so extension */
220 int namelen = context->namelen;
226 if (namelen > 4 && !memcmp( context->name + namelen - 4, ".dll", 4 )) namelen -= 4;
227 if (!context->win16) path = prepend( path, context->name, namelen );
234 if (namelen > 4 && !memcmp( context->name + namelen - 4, ".exe", 4 )) namelen -= 4;
235 path = prepend( path, context->name, namelen );
256 int namelen = strlen( name );
259 context->buffer = malloc( dll_path_maxlen + 2 * namelen + strlen(ext) + 3 );
261 context->name = context->buffer + dll_path_maxlen + namelen + 1;
262 context->namelen = namelen + 1;
268 memcpy( p, name, namelen );
269 strcpy( p + namelen, ext );