/usr/include
NameSizeModeActions
arpa/-0755rm
asm-generic/-0755rm
c++/-0755rm
drm/-0755rm
finclude/-0755rm
iproute2/-0755rm
libdmmp/-0755rm
linux/-0755rm
misc/-0755rm
mtd/-0755rm
net/-0755rm
netash/-0755rm
netatalk/-0755rm
netax25/-0755rm
neteconet/-0755rm
netinet/-0755rm
netipx/-0755rm
netiucv/-0755rm
netpacket/-0755rm
netrom/-0755rm
netrose/-0755rm
nfs/-0755rm
node/-0755rm
openssl/-0755rm
protocols/-0755rm
rdma/-0755rm
rpc/-0755rm
rpcsvc/-0755rm
scsi/-0755rm
sound/-0755rm
video/-0755rm
x86_64-linux-gnu/-0755rm
xen/-0755rm
xfs/-0755rm
aio.h74570644editdlrm
aliases.h20320644editdlrm
alloca.h12040644editdlrm
ar.h17310644editdlrm
argp.h254730644editdlrm
argz.h60510644editdlrm
assert.h46430644editdlrm
byteswap.h14050644editdlrm
complex.h71640644editdlrm
cpio.h22680644editdlrm
crypt.h111600644editdlrm
ctype.h109690644editdlrm
dirent.h125150644editdlrm
dlfcn.h74790644editdlrm
elf.h1773460644editdlrm
endian.h22990644editdlrm
envz.h28670644editdlrm
err.h22670644editdlrm
errno.h16790644editdlrm
error.h22820644editdlrm
execinfo.h15230644editdlrm
fcntl.h97100644editdlrm
features.h170790644editdlrm
fenv.h58740644editdlrm
fmtmsg.h32400644editdlrm
fnmatch.h22960644editdlrm
fstab.h31110644editdlrm
fts.h83730644editdlrm
ftw.h52520644editdlrm
gawkapi.h404860644editdlrm
gconv.h42110644editdlrm
getopt.h14690644editdlrm
glob.h66170644editdlrm
gnu-versions.h23430644editdlrm
gnumake.h29120644editdlrm
grp.h66870644editdlrm
gshadow.h45290644editdlrm
iconv.h18580644editdlrm
ifaddrs.h28410644editdlrm
inttypes.h118930644editdlrm
langinfo.h178490644editdlrm
lastlog.h1260644editdlrm
libgen.h13860644editdlrm
libintl.h45800644editdlrm
limits.h54170644editdlrm
link.h72070644editdlrm
locale.h76750644editdlrm
malloc.h61860644editdlrm
math.h464040644editdlrm
mcheck.h24350644editdlrm
memory.h9560644editdlrm
mntent.h33590644editdlrm
monetary.h18040644editdlrm
mpath_cmd.h41570644editdlrm
mpath_persist.h98090644editdlrm
mqueue.h37600644editdlrm
netdb.h281000644editdlrm
nl_types.h17530644editdlrm
nss.h18790644editdlrm
obstack.h213070644editdlrm
paths.h29830644editdlrm
poll.h220644editdlrm
printf.h68010644editdlrm
proc_service.h34770644editdlrm
pthread.h417010644editdlrm
pty.h15700644editdlrm
pwd.h61590644editdlrm
regex.h247150644editdlrm
regexp.h14480644editdlrm
resolv.h118730644editdlrm
re_comp.h9630644editdlrm
sched.h47330644editdlrm
search.h54500644editdlrm
semaphore.h27350644editdlrm
setjmp.h36700644editdlrm
sgtty.h13440644editdlrm
shadow.h54720644editdlrm
signal.h123090644editdlrm
spawn.h77580644editdlrm
stab.h2640644editdlrm
stdc-predef.h22900644editdlrm
stdint.h84740644editdlrm
stdio.h299500644editdlrm
stdio_ext.h28000644editdlrm
stdlib.h358350644editdlrm
string.h176600644editdlrm
strings.h47530644editdlrm
sudo_plugin.h82210644editdlrm
syscall.h250644editdlrm
sysexits.h52320644editdlrm
syslog.h240644editdlrm
tar.h37860644editdlrm
termio.h2140644editdlrm
termios.h35990644editdlrm
tgmath.h374190644editdlrm
threads.h66610644editdlrm
thread_db.h160240644editdlrm
time.h102760644editdlrm
ttyent.h24940644editdlrm
uchar.h20020644editdlrm
ucontext.h20370644editdlrm
ulimit.h15840644editdlrm
unistd.h428040644editdlrm
utime.h15020644editdlrm
utmp.h32230644editdlrm
utmpx.h41000644editdlrm
values.h19560644editdlrm
wait.h220644editdlrm
wchar.h311110644editdlrm
wctype.h55490644editdlrm
wordexp.h25020644editdlrm
Edit: /usr/include/mpath_cmd.h (4157B)
/* * Copyright (C) 2015 Red Hat, Inc. * * This file is part of the device-mapper multipath userspace tools. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2.1 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ #ifndef LIB_MPATH_CMD_H #define LIB_MPATH_CMD_H /* * This should be sufficient for json output for >10000 maps, * and >60000 paths. */ #define MAX_REPLY_LEN (32 * 1024 * 1024) #ifdef __cplusplus extern "C" { #endif #define DEFAULT_SOCKET "/org/kernel/linux/storage/multipathd" #define DEFAULT_REPLY_TIMEOUT 4000 /* * DESCRIPTION: * Same as mpath_connect() (see below) except for the "nonblocking" * parameter. * If "nonblocking" is set, connects in non-blocking mode. This is * useful to avoid blocking if the listening socket's backlog is * exceeded. In this case, errno will be set to EAGAIN. * In case of success, the returned file descriptor is in in blocking * mode, even if "nonblocking" was true. * * RETURNS: * A file descriptor on success. -1 on failure (with errno set). */ int __mpath_connect(int nonblocking); /* * DESCRIPTION: * Connect to the running multipathd daemon. On systems with the * multipathd.socket systemd unit file installed, this command will * start multipathd if it is not already running. This function * must be run before any of the others in this library * * RETURNS: * A file descriptor on success. -1 on failure (with errno set). */ int mpath_connect(void); /* * DESCRIPTION: * Disconnect from the multipathd daemon. This function must be * run after after processing all the multipath commands. * * RETURNS: * 0 on success. -1 on failure (with errno set). */ int mpath_disconnect(int fd); /* * DESCRIPTION * Send multipathd a command and return the reply. This function * does the same as calling mpath_send_cmd() and then * mpath_recv_reply() * * RETURNS: * 0 on successs, and reply will either be NULL (if there was no * reply data), or point to the reply string, which must be freed by * the caller. -1 on failure (with errno set). */ int mpath_process_cmd(int fd, const char *cmd, char **reply, unsigned int timeout); /* * DESCRIPTION: * Send a command to multipathd * * RETURNS: * 0 on success. -1 on failure (with errno set) */ int mpath_send_cmd(int fd, const char *cmd); /* * DESCRIPTION: * Return a reply from multipathd for a previously sent command. * This is equivalent to calling mpath_recv_reply_len(), allocating * a buffer of the appropriate size, and then calling * mpath_recv_reply_data() with that buffer. * * RETURNS: * 0 on success, and reply will either be NULL (if there was no * reply data), or point to the reply string, which must be freed by * the caller, -1 on failure (with errno set). */ int mpath_recv_reply(int fd, char **reply, unsigned int timeout); /* * DESCRIPTION: * Return the size of the upcoming reply data from the sent multipath * command. This must be called before calling mpath_recv_reply_data(). * * RETURNS: * The required size of the reply data buffer on success. -1 on * failure (with errno set). */ ssize_t mpath_recv_reply_len(int fd, unsigned int timeout); /* * DESCRIPTION: * Return the reply data from the sent multipath command. * mpath_recv_reply_len must be called first. reply must point to a * buffer of len size. * * RETURNS: * 0 on success, and reply will contain the reply data string. -1 * on failure (with errno set). */ int mpath_recv_reply_data(int fd, char *reply, size_t len, unsigned int timeout); #ifdef __cplusplus } #endif #endif /* LIB_MPATH_CMD_H */