aboutsummaryrefslogtreecommitdiff
path: root/main.h
Commit message (Collapse)AuthorAgeFilesLines
* main: parse USE-flags into a setFabian Groffen2021-11-131-2/+3
| | | | | | | | In order to efficiently, and correctly, get a list of USE-flags that are in effect, use a SET instead of an "incremental" string which sort of relies on order. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* main.h: attempt fix for Coverity 206563 Unintended sign extensionFabian Groffen2020-01-191-4/+4
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* main: try to work around different mtime/mtim struct stat fieldsFabian Groffen2020-01-041-0/+7
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* main: add masks supportFabian Groffen2019-12-271-0/+2
| | | | | | | Expose masks via q -m, store masks in preparation for applying masks when listing available ebuilds. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* main: overhaul profile/config reading somewhatFabian Groffen2019-11-241-0/+1
| | | | | | | | - track where values come from, expose using -v (with q -[oe]) - follow repo-prefixed profiles in parent files (non-PMS feature?) - read usr/share/portage/config/repos.conf for repo defaults Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* main: ensure READ/WRITE_BE_INT32 operate on the expected bytesFabian Groffen2019-11-171-5/+8
| | | | | | | we want to work on unsigned bytes such that we don't get sudden unintended operations due to negative value handling Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* q: add option to print envvars, much like portageq envvarFabian Groffen2019-11-091-4/+19
| | | | | | Option -e to q will dump the env variables used by portage-utils. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* main.h: include limits.h for Linux PATH_MAXFabian Groffen2019-04-271-0/+1
| | | | | | | | | | make PATH_MAX available, such that the logic can properly use it (again) This issue showed itself as a fortification error on Linux, because _Q_PATH_MAX was defined as less than PATH_MAX making realpath_chk fail. Bug: https://bugs.gentoo.org/684468 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* q: fix various issues on Linux systemsFabian Groffen2019-03-271-0/+1
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* build: compile applets as separate objectsFabian Groffen2019-03-271-2/+10
| | | | | | | | Instead of including everything from a single file, compile each applet separately. This standardises things somewhat, and allows for parallel compilation. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* q: fix misc issues found on DarwinFabian Groffen2019-03-191-1/+2
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* build: add gnulib sourcesFabian Groffen2019-03-191-1/+39
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* libq: standardise buildFabian Groffen2019-03-181-6/+43
| | | | | | | | | Compile each C-file by itself, producing an object which is linked into a convenience archive. The q program then links against that archive. Switch to autotools-based build for everyone. Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* main.h: drop DEFAULT_PORTAGE_BINHOST setupFabian Groffen2019-03-151-62/+2
| | | | | | | tinderbox.dev.gentoo.org albeit being still around is very outdated, so very unlikely to be useful Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* update copyrightsFabian Groffen2018-04-051-1/+1
|
* drop _q_static and standardize func prototypes a bitMike Frysinger2016-12-281-4/+0
|
* add cleanup logic to handle specific leaksMike Frysinger2016-12-281-0/+13
| | | | | There's a few code paths that we leak resources because we know we're exiting (soon). Add some logic to avoid false positives.
* q: migrate to new repo posthook systemMike Frysinger2016-03-271-0/+1
| | | | | | | | This also extends the reinit interface to optionally take a path to the overlay to process. That allows the postsync hook to fire on specific repos rather than all of them. URL: https://bugs.gentoo.org/522032
* tweak s390/sh ARCH defaultsMike Frysinger2015-06-031-6/+2
|
* build: convert all cvs references to gitMike Frysinger2014-03-091-3/+2
|
* update default URL list to match current tinderbox serverMike Frysinger2014-02-181-17/+56
|
* move all headers includes and such to a single porting.h to avoid ↵v0.40Mike Frysinger2013-09-291-21/+1
| | | | duplicating in tests/ #406393
* rename EPREFIX define to CONFIG_EPREFIX so we can have a local $EPREFIX varMike Frysinger2011-12-191-3/+3
|
* revert stdout bypass as it doesnt work on linux/glibc systemsMike Frysinger2011-12-121-5/+1
|
* Fix building on Solaris. Cannot assign stdout there.Fabian Groffen2011-12-121-1/+5
|
* default EPREFIX to a slash since the code base expects it #394457 by Luca ↵Mike Frysinger2011-12-121-2/+2
| | | | Barbato
* initial autotool supportMike Frysinger2011-12-111-1/+5
|
* add O_CLOEXEC fallback #394131 by Naohiro AotaMike Frysinger2011-12-091-1/+6
|
* make MIN/MAX helpers generally availableMike Frysinger2011-10-021-1/+8
|
* move _q_static setup to main.h and drop useless _GNU_SOURCE here (needs to ↵Mike Frysinger2011-03-301-2/+4
| | | | be before all C lib includes)
* rework env var setup so that the values are allowed to grow dynamically ↵Mike Frysinger2011-02-211-8/+8
| | | | without len restriction, and mark CONFIG_PROTECT/CONFIG_PROTECT_MASK as incremental
* convert many fgets() to getline(), clean up ARRAY_SIZE usage, and some other ↵Mike Frysinger2011-02-211-3/+1
| | | | random fixes
* - update headersNed Ludd2010-04-071-4/+4
|
* - move some defines aroundNed Ludd2007-05-301-1/+2
|
* - update copyright headersv0.1.27Ned Ludd2007-05-241-4/+4
|
* - more whitespace cleanups. Added new whitespace testNed Ludd2007-05-231-2/+1
|
* - split some of the code up to make it eaiser for dynamic modulesNed Ludd2007-05-121-0/+71