Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b86b0d35 authored by Jiri Olsa's avatar Jiri Olsa Committed by Arnaldo Carvalho de Melo
Browse files

tools lib api fs: Add STR and PATH_MAX macros to fs object



We're going to get rid of findfs.h in following patches, but we'll still
need these macros.

Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
Cc: Raphael Beamonte <raphael.beamonte@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1441180605-24737-8-git-send-email-jolsa@kernel.org


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 988bdb31
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -15,6 +15,9 @@
#include "debugfs.h"
#include "fs.h"

#define _STR(x) #x
#define STR(x) _STR(x)

static const char * const sysfs__fs_known_mountpoints[] = {
	"/sys",
	0,
+8 −0
Original line number Diff line number Diff line
#ifndef __API_FS__
#define __API_FS__

/*
 * On most systems <limits.h> would have given us this, but  not on some systems
 * (e.g. GNU/Hurd).
 */
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif

#ifndef SYSFS_MAGIC
#define SYSFS_MAGIC            0x62656572
#endif