summaryrefslogtreecommitdiff
path: root/lib/path.c
AgeCommit message (Collapse)AuthorFilesLines
2014-01-06lib/path: add path_strdup()Karel Zak1-0/+13
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-09textual: standardize some "cannot read" and "seek failed" error messagesBenno Schulenberg1-4/+4
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
2013-04-03lib: use O_CLOEXEC in libcommonKarel Zak1-4/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-23lib/path: add path_read_u64()Karel Zak1-0/+22
Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-23lib/path: rename functions to be more explicitKarel Zak1-8/+10
... and to have names compatible with lib/sysfs.c Signed-off-by: Karel Zak <kzak@redhat.com>
2012-11-02build-sys: cleanup cpu_set_t usageKarel Zak1-1/+4
- make taskset depend on cpu_set_t - make cpuset.c optional for libcommon and lib/path.c Signed-off-by: Karel Zak <kzak@redhat.com>
2012-07-16translation: unify file open error messagesSami Kerola1-2/+2
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2012-05-15include: rename writeall.h to all-io.hPetr Uzel1-1/+1
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2012-02-24docs: corrections to FSF license files, and postal addressSami Kerola1-3/+3
The COPYING and Documentation/licenses/COPYING* files are being replaced by files from GNU web site. http://www.gnu.org/licenses/gpl-2.0.txt http://www.gnu.org/licenses/lgpl-2.1.txt Postal addresses to FSF in other files are updated to match with the address in license files. Reference: http://lists.gnu.org/archive/html/freefont-announce/2005-04/msg00001.html Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-09-27lib,path: use write_all()Heiko Carstens1-1/+2
From: Heiko Carstens <heiko.carstens@de.ibm.com> Since write() doesn't necessarily write the complete buffer with one call we better use write_all() which takes care of this. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
2011-09-27chcpu: convert to use lib/path.cHeiko Carstens1-0/+26
Use the common path access functions. In order to simplify chcpu also implement and use path_writestr() which writes a string to the path specified. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
2011-09-27lib,path: move path access functions from lscpu into lib/path.cHeiko Carstens1-0/+191
A couple of these functions already have been copied to chcpu.c, so it makes sense to move these functions into an own file. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>