![]() |
CernVM-FS
2.13.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 60 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 54 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 62 of file platform_osx.h.
#define PR_SET_DUMPABLE 0 |
Definition at line 317 of file platform_osx.h.
Referenced by FuseMain().
#define strdupa | ( | s | ) |
strdupa does not exist on OSX
Definition at line 285 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 156 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 109 of file platform_osx.h.
typedef struct stat platform_stat64 |
Definition at line 160 of file platform_osx.h.
|
inline |
See platform_linux.h
Definition at line 148 of file platform_osx.h.
|
inline |
Definition at line 225 of file platform_osx.h.
|
inline |
Definition at line 170 of file platform_osx.h.
|
inline |
Definition at line 293 of file platform_osx.h.
|
inline |
pthread_self() is not necessarily an unsigned long.
Definition at line 131 of file platform_osx.h.
|
inline |
Definition at line 174 of file platform_osx.h.
|
inline |
Definition at line 230 of file platform_osx.h.
|
inline |
Definition at line 216 of file platform_osx.h.
|
inline |
Definition at line 289 of file platform_osx.h.
|
inline |
Definition at line 221 of file platform_osx.h.
|
inline |
Definition at line 205 of file platform_osx.h.
|
inline |
Definition at line 166 of file platform_osx.h.
|
inline |
sysconf() is broken on OSX
Definition at line 300 of file platform_osx.h.
|
inline |
Definition at line 256 of file platform_osx.h.
|
inline |
Definition at line 265 of file platform_osx.h.
|
inline |
Definition at line 64 of file platform_osx.h.
|
inline |
Definition at line 236 of file platform_osx.h.
|
inline |
Definition at line 158 of file platform_osx.h.
|
inline |
|
inline |
Definition at line 198 of file platform_osx.h.
|
inline |
|
inline |
Definition at line 116 of file platform_osx.h.
|
inline |
Definition at line 111 of file platform_osx.h.
|
inline |
Definition at line 118 of file platform_osx.h.
|
inline |
Definition at line 122 of file platform_osx.h.
|
inline |
Definition at line 162 of file platform_osx.h.
|
inline |
Definition at line 74 of file platform_osx.h.
|
inline |
Definition at line 81 of file platform_osx.h.
|
inline |
Definition at line 316 of file platform_osx.h.
Referenced by FuseMain(), and platform_allow_ptrace().
|
inline |
Definition at line 241 of file platform_osx.h.