Benign freebsd Download

biosmptable.c

Source contains low-bit mask syntaxCalls native open or sys_open
SHA-256b9d1ad09fe24f13faae88d77f42d20ca8880daaebaf687f4d73abc4e1a698520
MaleculeH₃(DbFMg)

Evidence

English function-word token "the" lines 2–9
2:40… ated. All righs reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must repr …
imports <err.h> lines 29–49
29:68… returns
30 * the number of cpu's identified.
31 */
32
33#include <sys/types.h>
34#include <x86/mptable.h>
35
36#include <err.h>
37#include <fcntl.h>
38#include <inttypes.h>
39#include <paths.h>
40#include <stdlib.h>
41#include <string.h>
42#include <unistd.h>
43
44#define MPFPS_SIG "_MP_"
⋯5 lines
Source contains low-bit mask syntax lines 76–83
76:59… configuration
77 * from Chapter 5 in the MP spec. Report 2 cpus and 1 I/O APIC.
78 */
79 ncpu = 2;
⋯4 lines
Calls native open or sys_open lines 125–152
⋯4 lines
129{
130 if (pfd < 0) {
131 pfd = open(_PATH_MEM, O_RDONLY);
132 if (pfd < 0)
133 warn("%s: cannot open", _PATH_MEM);
⋯19 lines
Megabyte-scale size constant in source lines 228–235
228:3… /* mpcth must be in the first 1MB */
229 if ((u_int32_t)addr >= 1024 * 1024) {
230 warnx("bad mpcth address (0x%jx)\n", (intmax_t)addr);
231 return (NULL);
⋯4 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.