Root/
| 1 | /* |
| 2 | * Main entry of the program. |
| 3 | */ |
| 4 | #include <sys/types.h> |
| 5 | #include <sys/stat.h> |
| 6 | #include <fcntl.h> |
| 7 | #include <unistd.h> |
| 8 | #include <sys/mman.h> |
| 9 | |
| 10 | #include "include.h" |
| 11 | |
| 12 | static np_data *npdata; |
| 13 | |
| 14 | int main(int argc, char *argv[]) |
| 15 | { |
| 16 | if (cmdline(argc, argv, npdata)) return 0; |
| 17 | npdata=cmdinit(); |
| 18 | if (!npdata) return 0; |
| 19 | if (cmdexcute(npdata)) return 0; |
| 20 | if (cmdexit(npdata)) return 0; |
| 21 | |
| 22 | return 0; |
| 23 | } |
| 24 |
