Print this page
10476 file(1) could be smatch clean
10366 ld(1) should support GNU-style linker sets
10581 ld(1) should know kernel modules are a thing
@@ -851,11 +851,12 @@
/* end modification for multibyte env */
for (i = 0; i < Max; /* null */)
if (fbuf[i] & 0200) {
IS_ascii = 0;
- if (fbuf[0] == '\100' && fbuf[1] == '\357') {
+ if ((fbuf[0] == '\100') &&
+ ((uchar_t)fbuf[1] == (uchar_t)'\357')) {
(void) printf(gettext("troff output\n"));
return;
}
/* start modification for multibyte env */
if ((length = mbtowc(&wchar, &fbuf[i], MB_CUR_MAX))
@@ -1328,10 +1329,14 @@
/* Print Version */
if (version == 1)
(void) printf(" %s %d", gettext("Version"), version);
+ if (EInfo.kmod) {
+ (void) printf(", %s", gettext("kernel module"));
+ }
+
/* Print Flags */
print_elf_flags(EInfo);
/* Last bit, if it is a core */
if (EInfo.core_type != EC_NOTCORE) {
@@ -1481,13 +1486,14 @@
return (0);
}
return (1);
}
+/* look for "1hddddd" where d is a digit */
static int
sccs(void)
-{ /* look for "1hddddd" where d is a digit */
+{
register int j;
if (fbuf[0] == 1 && fbuf[1] == 'h') {
for (j = 2; j <= 6; j++) {
if (isdigit(fbuf[j]))