X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Fcreds.h;fp=liblttng-ust%2Fcreds.h;h=b29319e0d1cb9aa2bc54ba7262f2e6d43865c2a8;hb=fca2f1916cd9f22f410d8f22b9a0720c978c2025;hp=0000000000000000000000000000000000000000;hpb=735bef4705cc42f25d26f25be09ba98f1efb8511;p=lttng-ust.git diff --git a/liblttng-ust/creds.h b/liblttng-ust/creds.h new file mode 100644 index 00000000..b29319e0 --- /dev/null +++ b/liblttng-ust/creds.h @@ -0,0 +1,29 @@ +#ifndef _LTTNG_CREDS_H +#define _LTTNG_CREDS_H + +/* + * Copyright (c) 2019 - Michael Jeanson + * + * This library 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; only + * version 2.1 of the License. + * + * This library 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 library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +/* + * This is used in the kernel as an invalid value. + */ + +#define INVALID_UID (uid_t) -1 +#define INVALID_GID (gid_t) -1 + +#endif /* _LTTNG_CREDS_H */