From 38829bdc8b5dd17d8d10a2daf350605e7c6f70a4 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Wed, 9 Jul 2008 09:07:03 +0300 Subject: Add new setmode and getmode functions from FreeBSD --- include/bsd/stdlib.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include') diff --git a/include/bsd/stdlib.h b/include/bsd/stdlib.h index f450e56..16376cb 100644 --- a/include/bsd/stdlib.h +++ b/include/bsd/stdlib.h @@ -1,6 +1,7 @@ /* * Copyright (C) 2005 Aurelien Jarno * Copyright (C) 2006 Robert Millan + * Copyright (C) 2008 Guillem Jover * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -28,6 +29,7 @@ #ifndef LIBBSD_STDLIB_H #define LIBBSD_STDLIB_H +#include #include const char *fmtcheck (const char *, const char *); @@ -37,4 +39,11 @@ void setprogname (char *); int heapsort (void *, size_t, size_t, int (*)(const void *, const void *)); +#ifndef S_ISTXT +#define S_ISTXT S_ISVTX +#endif + +mode_t getmode(const void *set, mode_t mode); +void *setmode(const char *mode_str); + #endif -- cgit v1.2.3