5 "@(#)name.c 1.38 10/12/19 joerg";
57 if (nlen == 1 && (idr->
name[0] ==
'\0' || idr->
name[0] ==
'\001'))
60 idr->
name[nlen] =
'\0';
76 _(
"Old session has illegal name '%.*s' length %d\n"),
81 _(
"New session will use name '%s'\n"),
114 int chars_after_dot = 0;
115 int chars_before_dot = 0;
116 int current_length = 0;
123 int ochars_after_dot;
124 int ochars_before_dot;
127#ifdef Eric_code_does_not_work
166 if ((last_dot !=
NULL) &&
167 ((last_dot[1] ==
'~') || (last_dot[1] ==
'\0'))) {
175 if (last_dot ==
NULL)
179 if (last_dot !=
NULL) {
180 ochars_after_dot =
strlen(last_dot);
181 ochars_before_dot = last_dot - pnt;
183 ochars_before_dot = 128;
184 ochars_after_dot = 0;
194 after_dot = before_dot - 1;
205 after_dot = ochars_after_dot;
207 before_dot -= ochars_after_dot;
208 after_dot = ochars_after_dot;
215 if (
strcmp(pnt,
".DIR;1") == 0) {
220#ifdef Eric_code_does_not_work
258 for (
c = 1,
cp = (
char *)&pnt[1];
c < 6 && *
cp;
c++,
cp++) {
259 if (*
cp <
'0' || *
cp >
'9')
262 if (
c <= 6 && *
cp ==
'\0' &&
atoi(&pnt[1]) <= 32767)
278 error(
_(
"Truncating '%s' to '%.*s'.\n"),
280 current_length, sresult->
isorec.name);
288 if (seen_semic == 1) {
292 if (*pnt >=
'0' && *pnt <=
'9') {
302 if (
strcmp(pnt,
".tar.gz") == 0)
303 pnt = last_dot =
".tgz";
304 if (
strcmp(pnt,
".ps.gz") == 0)
305 pnt = last_dot =
".psz";
315 }
else if (pnt == last_dot) {
323 if (chars_before_dot < before_dot) {
333 if (chars_before_dot < before_dot) {
339 if ((seen_dot && (chars_after_dot < after_dot) &&
340 ++chars_after_dot) ||
341 (!seen_dot && (chars_before_dot < before_dot) &&
342 ++chars_before_dot)) {
445 case 1:
case 2:
case 3:
case 4:
446 case 5:
case 6:
case 7:
case 8:
448 case 10:
case 11:
case 12:
449 case 13:
case 14:
case 15:
450 case 16:
case 17:
case 18:
451 case 19:
case 20:
case 21:
452 case 22:
case 23:
case 24:
453 case 25:
case 26:
case 27:
454 case 28:
case 29:
case 30:
495#ifdef Eric_code_does_not_work
500 while (*pnt && *pnt !=
'~') {
506 while (*pnt && *pnt !=
'~') {
507 prio1 = 10 * prio1 + *pnt -
'0';
538 error(
"chars_before_dot %d chars_after_dot %d seen_dot %d extra %d\n",
539 chars_before_dot, chars_after_dot, seen_dot,
extra);
541 return (chars_before_dot + chars_after_dot + seen_dot +
extra);
int strcmp(const char *String1, const char *String2)
ACPI_SIZE strlen(const char *String)
EXPORT int errmsgno(int err, char *msg, va_alist)
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
EXPORT void conv_charset(unsigned char *to, size_t *tosizep, unsigned char *from, size_t *fromsizep, siconvt_t *inls, siconvt_t *onls)
int full_iso9660_filenames
_CRT_RESTORE_GCC_WARNINGS _CRT_DISABLE_GCC_WARNINGS _Check_return_ _CRTIMP _CONST_RETURN char *__cdecl strrchr(_In_z_ const char *_Str, _In_ int _Ch)
struct iso_directory_record isorec
unsigned char name_len[ISODCL(33, 33)]
unsigned char flags[ISODCL(26, 26)]