aboutsummaryrefslogtreecommitdiffstats
path: root/include/package-dumpinfo.mk
Commit message (Expand)AuthorAgeFilesLines
* add support for hidden packages that get selected/built but do not show up in...Felix Fietkau2011-07-021-0/+1
* add a new package metadata variable MDEPENDS for specifying local menuconfig ...Felix Fietkau2011-04-051-0/+1
* Add maintainer information to menuconfig description dialogMichael Büsch2010-09-301-1/+2
* build system: introduce a new feature called build variants. it allows buildi...Felix Fietkau2009-11-101-1/+2
* add experimental support for a new menuconfig submenu "Package features". all...Felix Fietkau2009-10-171-2/+28
* move host build in packages into a separate namespace: package/<name>/host/<t...Felix Fietkau2009-03-171-2/+4
* speed up metadata scanning a lot by avoiding unnecessary shell commands and m...Felix Fietkau2009-03-031-31/+42
* added source distribution to package dump, used by our SDK (include source di...Ralph Hempel2009-03-011-0/+1
* add support for build-only packages which do not appear in menuconfigFelix Fietkau2009-01-131-0/+1
* add a packaging method that installs files into a subdirectory of bin/ instea...Felix Fietkau2007-09-291-0/+1
* dynamically enable/disable kernel config options for kmod packages based on b...Felix Fietkau2007-07-181-0/+1
* revert part of [6573] to keep the speedup of metadata scanningFelix Fietkau2007-03-161-20/+20
* formatting and trivial cleanupMike Baker2007-03-161-27/+28
* Add an 'Image Configuration' menu to menuconfig Packages can export a list of...Felix Fietkau2007-03-161-1/+6
* split package.mk and clean up build system code (based on patch by mbm), make...Felix Fietkau2007-03-151-0/+32
ff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#ifndef __PERF_MUSL_COMPAT_H
#define __PERF_MUSL_COMPAT_H

#ifndef __ASSEMBLER__

#include <sys/ioctl.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <syscall.h>
#include <sched.h>

#undef _IOWR
#undef _IOR
#undef _IOW
#undef _IOC
#undef _IO

/* Change XSI compliant version into GNU extension hackery */
static inline char *
gnu_strerror_r(int err, char *buf, size_t buflen)
{
	if (strerror_r(err, buf, buflen))
		return NULL;
	return buf;
}
#define strerror_r gnu_strerror_r

#define _SC_LEVEL1_DCACHE_LINESIZE -1

static inline long sysconf_wrap(int name)
{
	FILE *f;
	int val;

	switch (name) {
	case _SC_LEVEL1_DCACHE_LINESIZE:
		f = fopen("/sys/devices/system/cpu/cpu0/cache/index0/coherency_line_size", "r");
		if (!f)
			return 0;

		if (fscanf(f, "%d", &val) != 1)
			return 0;

		fclose(f);
		return val;
	default:
		return sysconf(name);
	}
}

#define sysconf(_n) sysconf_wrap(_n)

static inline int compat_sched_getcpu(void)
{
#ifdef __NR_getcpu
	unsigned int val;

	if (syscall(__NR_getcpu, &val))
		return -1;

	return val;
#else
	return -1;
#endif
}

#define sched_getcpu compat_sched_getcpu

#endif
#endif