![]() |
CernVM-FS
2.12.0
|
#include <alloca.h>
#include <dirent.h>
#include <fcntl.h>
#include <libkern/OSAtomic.h>
#include <mach-o/dyld.h>
#include <mach/mach.h>
#include <mach/mach_time.h>
#include <signal.h>
#include <sys/mount.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/sysctl.h>
#include <sys/types.h>
#include <sys/ucred.h>
#include <sys/xattr.h>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <vector>
#include "util/smalloc.h"
Go to the source code of this file.
Macros | |
#define | MSG_NOSIGNAL SO_NOSIGPIPE |
#define | HOST_NAME_MAX _POSIX_HOST_NAME_MAX |
#define | platform_sighandler_t sig_t |
#define | strdupa(s) |
#define | PR_SET_DUMPABLE 0 |
Typedefs | |
typedef OSSpinLock | platform_spinlock |
typedef struct dirent | platform_dirent64 |
typedef struct stat | platform_stat64 |
Functions | |
std::vector< std::string > | platform_mountlist () |
bool | platform_umount (const char *mountpoint, const bool lazy) |
int | platform_umount_lazy (const char *mountpoint) |
int | platform_spinlock_init (platform_spinlock *lock, int) |
int | platform_spinlock_destroy (platform_spinlock *) |
int | platform_spinlock_trylock (platform_spinlock *lock) |
void | platform_spinlock_unlock (platform_spinlock *lock) |
thread_port_t | platform_gettid () |
int | platform_sigwait (const int signum) |
bool | platform_allow_ptrace (const pid_t pid) |
platform_dirent64 * | platform_readdir (DIR *dirp) |
int | platform_stat (const char *path, platform_stat64 *buf) |
int | platform_lstat (const char *path, platform_stat64 *buf) |
int | platform_fstat (int filedes, platform_stat64 *buf) |
bool | platform_getxattr (const std::string &path, const std::string &name, std::string *value) |
bool | platform_setxattr (const std::string &path, const std::string &name, const std::string &value) |
bool | platform_lsetxattr (const std::string &path, const std::string &name, const std::string &value) |
ssize_t | platform_lgetxattr (const char *path, const char *name, void *value, size_t size) |
ssize_t | platform_llistxattr (const char *path, char *list, size_t size) |
void | platform_disable_kcache (int filedes) |
void | platform_invalidate_kcache (const int fd, const off_t offset, const off_t length) |
ssize_t | platform_readahead (int filedes) |
bool | read_line (FILE *f, std::string *line) |
uint64_t | platform_monotonic_time () |
uint64_t | platform_monotonic_time_ns () |
uint64_t | platform_realtime_ns () |
std::string | platform_libname (const std::string &base_name) |
std::string | platform_getexepath () |
uint64_t | platform_memsize () |
int | prctl (int, uint64_t, uint64_t, uint64_t, uint64_t) |
#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX |
HOST_NAME_MAX does on exist on OS X
Definition at line 59 of file platform_osx.h.
Referenced by GetHostname().
#define MSG_NOSIGNAL SO_NOSIGPIPE |
This file is part of the CernVM File System.
Mac OS X specific system/library calls. UNIX domain sockets: MSG_NOSIGNAL prevents send() from sending SIGPIPE and EPIPE is return instead, where supported. MSG_NOSIGNAL is Linux specific, SO_NOSIGPIPE is the Mac OS X equivalent.
Definition at line 53 of file platform_osx.h.
Referenced by TalkManager::Answer(), loader::loader_talk::MainReload(), loader::loader_talk::MainTalk(), and SendMsg2Socket().
#define platform_sighandler_t sig_t |
Definition at line 61 of file platform_osx.h.
#define PR_SET_DUMPABLE 0 |
Definition at line 318 of file platform_osx.h.
Referenced by FuseMain().
#define strdupa | ( | s | ) |
strdupa does not exist on OSX
Definition at line 286 of file platform_osx.h.
Referenced by CreateTempDir(), CreateTempFile(), AuthzExternalFetcher::ExecHelper(), signature::SignatureManager::LoadCertificateMem(), signature::SignatureManager::LoadCertificatePath(), signature::SignatureManager::LoadPrivateKeyPath(), signature::SignatureManager::LoadPublicRsaKeys(), ParseHandshakeInit(), and ParseRequest().
typedef struct dirent platform_dirent64 |
File system functions, Mac OS X has 64bit functions by default.
Definition at line 155 of file platform_osx.h.
typedef OSSpinLock platform_spinlock |
Spinlocks on OS X are not in pthread but in OS X specific APIs.
Definition at line 108 of file platform_osx.h.
typedef struct stat platform_stat64 |
Definition at line 159 of file platform_osx.h.
|
inline |
See platform_linux.h
Definition at line 147 of file platform_osx.h.
|
inline |
Definition at line 226 of file platform_osx.h.
|
inline |
Definition at line 169 of file platform_osx.h.
|
inline |
Definition at line 294 of file platform_osx.h.
|
inline |
pthread_self() is not necessarily an unsigned long.
Definition at line 130 of file platform_osx.h.
|
inline |
Definition at line 173 of file platform_osx.h.
|
inline |
Definition at line 231 of file platform_osx.h.
|
inline |
Definition at line 217 of file platform_osx.h.
|
inline |
Definition at line 290 of file platform_osx.h.
|
inline |
Definition at line 222 of file platform_osx.h.
|
inline |
Definition at line 204 of file platform_osx.h.
|
inline |
Definition at line 165 of file platform_osx.h.
|
inline |
sysconf() is broken on OSX
Definition at line 301 of file platform_osx.h.
|
inline |
Definition at line 257 of file platform_osx.h.
|
inline |
Definition at line 266 of file platform_osx.h.
|
inline |
Definition at line 63 of file platform_osx.h.
|
inline |
Definition at line 237 of file platform_osx.h.
|
inline |
Definition at line 157 of file platform_osx.h.
|
inline |
|
inline |
Definition at line 197 of file platform_osx.h.
|
inline |
|
inline |
Definition at line 115 of file platform_osx.h.
|
inline |
Definition at line 110 of file platform_osx.h.
|
inline |
Definition at line 117 of file platform_osx.h.
|
inline |
Definition at line 121 of file platform_osx.h.
|
inline |
Definition at line 161 of file platform_osx.h.
|
inline |
Definition at line 73 of file platform_osx.h.
|
inline |
Definition at line 80 of file platform_osx.h.
|
inline |
Definition at line 317 of file platform_osx.h.
Referenced by FuseMain(), and platform_allow_ptrace().
|
inline |
Definition at line 242 of file platform_osx.h.