kldxref.c (9772dc2affbec110dd183794ef1b792fb07b47ee) | kldxref.c (4a8b7e33b7a4e9fa2b5b1e6cc21e3f37a44c2946) |
---|---|
1/* 2 * Copyright (c) 2000, Boris Popov 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 196 unchanged lines hidden (view full) --- 205 int error, eftype, nmlen; 206 long start, finish, entries; 207 char kldmodname[MAXMODNAME + 1], cval[MAXMODNAME + 1], *cp; 208 209 if (verbose || dflag) 210 printf("%s\n", filename); 211 error = ef_open(filename, &ef, verbose); 212 if (error) { | 1/* 2 * Copyright (c) 2000, Boris Popov 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 196 unchanged lines hidden (view full) --- 205 int error, eftype, nmlen; 206 long start, finish, entries; 207 char kldmodname[MAXMODNAME + 1], cval[MAXMODNAME + 1], *cp; 208 209 if (verbose || dflag) 210 printf("%s\n", filename); 211 error = ef_open(filename, &ef, verbose); 212 if (error) { |
213 if (verbose) 214 warnc(error, "elf_open(%s)", filename); 215 return error; | 213 error = ef_obj_open(filename, &ef, verbose); 214 if (error) { 215 if (verbose) 216 warnc(error, "elf_open(%s)", filename); 217 return error; 218 } |
216 } 217 eftype = EF_GET_TYPE(&ef); 218 if (eftype != EFT_KLD && eftype != EFT_KERNEL) { 219 EF_CLOSE(&ef); 220 return 0; 221 } 222 if (!dflag) { 223 cp = strrchr(kldname, '.'); --- 135 unchanged lines hidden --- | 219 } 220 eftype = EF_GET_TYPE(&ef); 221 if (eftype != EFT_KLD && eftype != EFT_KERNEL) { 222 EF_CLOSE(&ef); 223 return 0; 224 } 225 if (!dflag) { 226 cp = strrchr(kldname, '.'); --- 135 unchanged lines hidden --- |