Mercurial > hg > toybox
comparison toys/other/modinfo.c @ 945:436c60124674
add paramtype in to the list of tags
author | Isaac Dunham <idunham@lavabit.com> |
---|---|
date | Wed, 10 Jul 2013 21:26:49 -0500 |
parents | 859a93658467 |
children | fc1bb49e58a9 |
comparison
equal
deleted
inserted
replaced
944:b4faf2ae39e8 | 945:436c60124674 |
---|---|
35 static void modinfo_file(char *full_name) | 35 static void modinfo_file(char *full_name) |
36 { | 36 { |
37 int fd, len, i; | 37 int fd, len, i; |
38 char *buf = 0, *pos, *modinfo_tags[] = { | 38 char *buf = 0, *pos, *modinfo_tags[] = { |
39 "alias", "license", "description", "author", "firmware", | 39 "alias", "license", "description", "author", "firmware", |
40 "vermagic", "srcversion", "intree", "parm", "depends", | 40 "vermagic", "srcversion", "intree", "depends", "parm", |
41 "parmtype", | |
41 }; | 42 }; |
42 | 43 |
43 if (-1 != (fd = open(full_name, O_RDONLY))) { | 44 if (-1 != (fd = open(full_name, O_RDONLY))) { |
44 len = fdlength(fd); | 45 len = fdlength(fd); |
45 if (!(buf = mmap(0, len, PROT_READ, MAP_SHARED, fd, 0))) close(fd); | 46 if (!(buf = mmap(0, len, PROT_READ, MAP_SHARED, fd, 0))) close(fd); |