Lines Matching refs:nt
204 ncp_pathcheck(char *s, int len, struct ncp_nlstables *nt, int strict) {
206 int opt = nt->opt;
209 tbl = (opt & NWHP_UPPER) ? nt->to_upper : nt->to_lower;
213 if (nt->u2n[sc] == 0) /* illegal char */
222 if (nt->u2n[sc] == 0) /* illegal char */
237 ncp_pathcopy(const char *src, char *dst, int len, struct ncp_nlstables *nt)
243 if (nt == NULL) {
247 donls = (nt->opt & NWHP_NLS);
248 if ((nt->opt & (NWHP_UPPER | NWHP_LOWER)) == 0) {
250 *dst = donls ? nt->u2n[(u_char)*src] : *src;
254 } else if (nt->opt & NWHP_DOS) {
256 c = nt->to_upper[(u_char)*src];
257 *dst = donls ? nt->u2n[c] : c;
264 *dst = donls ? nt->u2n[(u_char)*src] : *src;
276 ncp_path2unix(char *src, char *dst, int len, struct ncp_nlstables *nt) {
281 /* printf("toux(%02x): %s:",nt->opt, s);*/
282 if (nt == NULL) {
286 donls = (nt->opt & NWHP_NLS);
287 if ((nt->opt & (NWHP_UPPER | NWHP_LOWER)) == 0) {
290 *dst = donls ? nt->n2u[c] : c;
296 tbl = (nt->opt & NWHP_LOWER) ? nt->to_lower : nt->to_upper;
299 *dst = tbl[donls ? nt->n2u[c] : c];