ACE_OS Namespace Reference

This namespace defines an OS independent programming API that shields developers from nonportable aspects of writing efficient system programs on Win32, POSIX and other versions of UNIX, and various real-time operating systems. More...


Classes

struct  macaddr_node_t
class  ace_flock_t
 OS file locking structure. More...

Non-standard functions

These functions aren't in the standard.

ACE_Export ACE_EXIT_HOOK exit_hook_ = 0
 Function that is called by <ACE_OS::exit>, if non-null.
void * calloc (size_t elements, size_t sizeof_elements)
 Function that is called by <ACE_OS::exit>, if non-null.
void exit (int status)
 Function that is called by <ACE_OS::exit>, if non-null.
void free (void *ptr)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_TCHARgetenvstrings (void)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_TCHARstrenvdup (const ACE_TCHAR *str)
 Function that is called by <ACE_OS::exit>, if non-null.
char * itoa_emulation (int value, char *string, int radix)
 Emulated itoa - Converts an integer to a string.
wchar_t * itow_emulation (int value, wchar_t *string, int radix)
 Emulated itow - Converts an integer to a string.
void * malloc (size_t nbytes)
 Function that is called by <ACE_OS::exit>, if non-null.
void * realloc (void *ptr, size_t nbytes)
 Function that is called by <ACE_OS::exit>, if non-null.
const char * getprogname_emulation ()
 Function that is called by <ACE_OS::exit>, if non-null.
void setprogname_emulation (const char *progname)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION void _exit (int status=0)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION void abort (void)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION int atexit (ACE_EXIT_HOOK func)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION int atoi (const char *s)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION int atoi (const wchar_t *s)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION
void * 
atop (const char *s)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION
void * 
atop (const wchar_t *s)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION
void * 
bsearch (const void *key, const void *base, size_t nel, size_t size, ACE_COMPARE_FUNC)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION
char * 
getenv (const char *symbol)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
getenv (const wchar_t *symbol)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION
char * 
itoa (int value, char *string, int radix)
 Converts an integer to a string.
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
itoa (int value, wchar_t *string, int radix)
 Converts an integer to a string.
ACE_NAMESPACE_INLINE_FUNCTION
ACE_HANDLE 
mkstemp (char *s)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION
ACE_HANDLE 
mkstemp (wchar_t *s)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION
char * 
mktemp (char *s)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
mktemp (wchar_t *s)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION int putenv (const char *string)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION int putenv (const wchar_t *string)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION void qsort (void *base, size_t nel, size_t width, ACE_COMPARE_FUNC)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION int rand (void)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION int rand_r (ACE_RANDR_TYPE &seed)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION
char * 
realpath (const char *file_name, char *resolved_name)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
realpath (const wchar_t *file_name, wchar_t *resolved_name)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION
ACE_EXIT_HOOK 
set_exit_hook (ACE_EXIT_HOOK hook)
 For use by ACE_Object_Manager only, to register its exit hook..
ACE_NAMESPACE_INLINE_FUNCTION void srand (u_int seed)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION
double 
strtod (const char *s, char **endptr)
 Converts a string to a double value (char version).
ACE_NAMESPACE_INLINE_FUNCTION
double 
strtod (const wchar_t *s, wchar_t **endptr)
 Converts a string to a double value (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION long strtol (const char *s, char **ptr, int base)
 Converts a string to a long value (char version).
ACE_NAMESPACE_INLINE_FUNCTION long strtol (const wchar_t *s, wchar_t **ptr, int base)
 Converts a string to a long value (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
unsigned long 
strtoul (const char *s, char **ptr, int base)
 Converts a string to an unsigned long value (char version).
ACE_NAMESPACE_INLINE_FUNCTION
unsigned long 
strtoul (const wchar_t *s, wchar_t **ptr, int base)
 Converts a string to an unsigned long value (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION int system (const ACE_TCHAR *s)
 Function that is called by <ACE_OS::exit>, if non-null.
ACE_NAMESPACE_INLINE_FUNCTION
const char * 
getprogname ()
ACE_NAMESPACE_INLINE_FUNCTION void setprogname (const char *name)

Typedefs

typedef ACE_WCHAR_T WChar

Enumerations

enum  ACE_HRTimer_Op { ACE_HRTIMER_START = 0x0, ACE_HRTIMER_INCR = 0x1, ACE_HRTIMER_STOP = 0x2, ACE_HRTIMER_GETTIME = 0xFFFF }

Functions

ACE_BEGIN_VERSIONED_NAMESPACE_DECL
int 
inet_aton (const char *host_name, struct in_addr *addr)
ACE_NAMESPACE_INLINE_FUNCTION
unsigned long 
inet_addr (const char *name)
ACE_NAMESPACE_INLINE_FUNCTION
char * 
inet_ntoa (const struct in_addr addr)
ACE_NAMESPACE_INLINE_FUNCTION
const char * 
inet_ntop (int family, const void *addrptr, char *strptr, size_t len)
ACE_NAMESPACE_INLINE_FUNCTION int inet_pton (int family, const char *strptr, void *addrptr)
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
int 
scandir_emulation (const ACE_TCHAR *dirname, ACE_DIRENT **namelist[], ACE_SCANDIR_SELECTOR selector, ACE_SCANDIR_COMPARATOR comparator)
ACE_NAMESPACE_INLINE_FUNCTION void closedir (ACE_DIR *)
ACE_NAMESPACE_INLINE_FUNCTION
ACE_DIR
opendir (const ACE_TCHAR *filename)
ACE_NAMESPACE_INLINE_FUNCTION
struct ACE_DIRENT * 
readdir (ACE_DIR *)
ACE_NAMESPACE_INLINE_FUNCTION int readdir_r (ACE_DIR *dirp, struct ACE_DIRENT *entry, struct ACE_DIRENT **result)
ACE_NAMESPACE_INLINE_FUNCTION void rewinddir (ACE_DIR *)
ACE_NAMESPACE_INLINE_FUNCTION int scandir (const ACE_TCHAR *dirname, struct ACE_DIRENT **namelist[], ACE_SCANDIR_SELECTOR selector, ACE_SCANDIR_COMPARATOR comparator)
ACE_NAMESPACE_INLINE_FUNCTION int alphasort (const void *, const void *)
ACE_NAMESPACE_INLINE_FUNCTION void seekdir (ACE_DIR *, long loc)
ACE_NAMESPACE_INLINE_FUNCTION long telldir (ACE_DIR *)
ACE_NAMESPACE_INLINE_FUNCTION int last_error (void)
ACE_NAMESPACE_INLINE_FUNCTION void last_error (int error)
ACE_NAMESPACE_INLINE_FUNCTION int set_errno_to_last_error (void)
ACE_NAMESPACE_INLINE_FUNCTION int set_errno_to_wsa_last_error (void)
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_HANDLE 
open (const char *filename, int mode, mode_t perms, LPSECURITY_ATTRIBUTES sa)
ACE_HANDLE open (const wchar_t *filename, int mode, mode_t perms, LPSECURITY_ATTRIBUTES sa)
ACE_NAMESPACE_INLINE_FUNCTION int fcntl (ACE_HANDLE handle, int cmd, long arg=0)
ACE_NAMESPACE_INLINE_FUNCTION
double 
floor (double x)
 This method computes the largest integral value not greater than x.
ACE_NAMESPACE_INLINE_FUNCTION
double 
ceil (double x)
 This method computes the smallest integral value not less than x.
ACE_NAMESPACE_INLINE_FUNCTION
double 
log2 (double x)
 This method computes the base-2 logarithm of x.
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_END_VERSIONED_NAMESPACE_DECL
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
int 
getmacaddress (struct macaddr_node_t *node)
ACE_NAMESPACE_INLINE_FUNCTION
struct hostent * 
gethostbyaddr (const char *addr, int length, int type)
ACE_NAMESPACE_INLINE_FUNCTION
struct hostent * 
gethostbyaddr_r (const char *addr, int length, int type, struct hostent *result, ACE_HOSTENT_DATA buffer, int *h_errnop)
ACE_NAMESPACE_INLINE_FUNCTION
struct hostent * 
gethostbyname (const char *name)
ACE_NAMESPACE_INLINE_FUNCTION
struct hostent * 
gethostbyname_r (const char *name, struct hostent *result, ACE_HOSTENT_DATA buffer, int *h_errnop)
ACE_NAMESPACE_INLINE_FUNCTION
struct hostent * 
getipnodebyaddr (const void *src, size_t len, int family)
ACE_NAMESPACE_INLINE_FUNCTION
struct hostent * 
getipnodebyname (const char *name, int family, int flags=0)
ACE_NAMESPACE_INLINE_FUNCTION
struct protoent * 
getprotobyname (const char *name)
ACE_NAMESPACE_INLINE_FUNCTION
struct protoent * 
getprotobyname_r (const char *name, struct protoent *result, ACE_PROTOENT_DATA buffer)
ACE_NAMESPACE_INLINE_FUNCTION
struct protoent * 
getprotobynumber (int proto)
ACE_NAMESPACE_INLINE_FUNCTION
struct protoent * 
getprotobynumber_r (int proto, struct protoent *result, ACE_PROTOENT_DATA buffer)
ACE_NAMESPACE_INLINE_FUNCTION
struct servent * 
getservbyname (const char *svc, const char *proto)
ACE_NAMESPACE_INLINE_FUNCTION
struct servent * 
getservbyname_r (const char *svc, const char *proto, struct servent *result, ACE_SERVENT_DATA buf)
ACE_NAMESPACE_INLINE_FUNCTION int poll (struct pollfd *pollfds, unsigned long len, const ACE_Time_Value *tv=0)
ACE_NAMESPACE_INLINE_FUNCTION int poll (struct pollfd *pollfds, unsigned long len, const ACE_Time_Value &tv)
FILE * fopen (const char *filename, const ACE_TCHAR *mode)
FILE * fopen (const wchar_t *filename, const ACE_TCHAR *mode)
int fprintf (FILE *fp, const char *format,...)
int fprintf (FILE *fp, const wchar_t *format,...)
int asprintf (char **bufp, const char *format,...)
int asprintf (wchar_t **bufp, const wchar_t *format,...)
int printf (const char *format,...)
int printf (const wchar_t *format,...)
int snprintf (char *buf, size_t maxlen, const char *format,...)
int snprintf (wchar_t *buf, size_t maxlen, const wchar_t *format,...)
int sprintf (char *buf, const char *format,...)
int sprintf (wchar_t *buf, const wchar_t *format,...)
int vasprintf_emulation (char **bufp, const char *format, va_list argptr)
int vaswprintf_emulation (wchar_t **bufp, const wchar_t *format, va_list argptr)
ACE_NAMESPACE_INLINE_FUNCTION void clearerr (FILE *fp)
ACE_NAMESPACE_INLINE_FUNCTION int fclose (FILE *fp)
ACE_NAMESPACE_INLINE_FUNCTION
FILE * 
fdopen (ACE_HANDLE handle, const ACE_TCHAR *mode)
ACE_NAMESPACE_INLINE_FUNCTION int fflush (FILE *fp)
ACE_NAMESPACE_INLINE_FUNCTION int fgetc (FILE *fp)
ACE_NAMESPACE_INLINE_FUNCTION int getc (FILE *fp)
ACE_NAMESPACE_INLINE_FUNCTION int fgetpos (FILE *fp, fpos_t *pos)
ACE_NAMESPACE_INLINE_FUNCTION
char * 
fgets (char *buf, int size, FILE *fp)
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
fgets (wchar_t *buf, int size, FILE *fp)
ACE_NAMESPACE_INLINE_FUNCTION
LPSECURITY_ATTRIBUTES 
default_win32_security_attributes (LPSECURITY_ATTRIBUTES)
 Default Win32 Security Attributes definition.
ACE_NAMESPACE_INLINE_FUNCTION
LPSECURITY_ATTRIBUTES 
default_win32_security_attributes_r (LPSECURITY_ATTRIBUTES, LPSECURITY_ATTRIBUTES, SECURITY_DESCRIPTOR *)
ACE_NAMESPACE_INLINE_FUNCTION
const ACE_TEXT_OSVERSIONINFO & 
get_win32_versioninfo (void)
 Return the win32 OSVERSIONINFO structure.
ACE_NAMESPACE_INLINE_FUNCTION
HINSTANCE 
get_win32_resource_module (void)
ACE_NAMESPACE_INLINE_FUNCTION void set_win32_resource_module (HINSTANCE)
ACE_NAMESPACE_INLINE_FUNCTION int ungetc (int c, FILE *fp)
ACE_NAMESPACE_INLINE_FUNCTION int fputc (int c, FILE *fp)
ACE_NAMESPACE_INLINE_FUNCTION int putc (int c, FILE *fp)
ACE_NAMESPACE_INLINE_FUNCTION int fputs (const char *s, FILE *stream)
ACE_NAMESPACE_INLINE_FUNCTION int fputs (const wchar_t *s, FILE *stream)
ACE_NAMESPACE_INLINE_FUNCTION
size_t 
fread (void *ptr, size_t size, size_t nelems, FILE *fp)
ACE_NAMESPACE_INLINE_FUNCTION
FILE * 
freopen (const ACE_TCHAR *filename, const ACE_TCHAR *mode, FILE *stream)
ACE_NAMESPACE_INLINE_FUNCTION int fseek (FILE *fp, long offset, int ptrname)
ACE_NAMESPACE_INLINE_FUNCTION int fsetpos (FILE *fp, fpos_t *pos)
ACE_NAMESPACE_INLINE_FUNCTION long ftell (FILE *fp)
ACE_NAMESPACE_INLINE_FUNCTION
size_t 
fwrite (const void *ptr, size_t size, size_t nitems, FILE *fp)
ACE_NAMESPACE_INLINE_FUNCTION void perror (const char *s)
ACE_NAMESPACE_INLINE_FUNCTION void perror (const wchar_t *s)
ACE_NAMESPACE_INLINE_FUNCTION int puts (const char *s)
ACE_NAMESPACE_INLINE_FUNCTION int puts (const wchar_t *s)
ACE_NAMESPACE_INLINE_FUNCTION int rename (const char *old_name, const char *new_name, int flags=-1)
ACE_NAMESPACE_INLINE_FUNCTION int rename (const wchar_t *old_name, const wchar_t *new_name, int flags=-1)
ACE_NAMESPACE_INLINE_FUNCTION void rewind (FILE *fp)
ACE_NAMESPACE_INLINE_FUNCTION
char * 
tempnam (const char *dir=0, const char *pfx=0)
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
tempnam (const wchar_t *dir, const wchar_t *pfx=0)
ACE_NAMESPACE_INLINE_FUNCTION int vasprintf (char **bufp, const char *format, va_list argptr)
ACE_NAMESPACE_INLINE_FUNCTION int vprintf (const char *format, va_list argptr)
ACE_NAMESPACE_INLINE_FUNCTION int vfprintf (FILE *fp, const char *format, va_list argptr)
ACE_NAMESPACE_INLINE_FUNCTION int vsprintf (char *buffer, const char *format, va_list argptr)
ACE_NAMESPACE_INLINE_FUNCTION int vsnprintf (char *buffer, size_t maxlen, const char *format, va_list argptr)
ACE_NAMESPACE_INLINE_FUNCTION int vasprintf (wchar_t **bufp, const wchar_t *format, va_list argptr)
ACE_NAMESPACE_INLINE_FUNCTION int vprintf (const wchar_t *format, va_list argptr)
ACE_NAMESPACE_INLINE_FUNCTION int vfprintf (FILE *fp, const wchar_t *format, va_list argptr)
ACE_NAMESPACE_INLINE_FUNCTION int vsprintf (wchar_t *buffer, const wchar_t *format, va_list argptr)
ACE_NAMESPACE_INLINE_FUNCTION int vsnprintf (wchar_t *buffer, size_t maxlen, const wchar_t *format, va_list argptr)
char * strtok_r_emulation (char *s, const char *tokens, char **lasts)
 Emulated strtok_r.
ACE_NAMESPACE_INLINE_FUNCTION
char * 
strtok_r (char *s, const char *tokens, char **lasts)
 Finds the next token in a string (safe char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
strtok_r (ACE_WCHAR_T *s, const ACE_WCHAR_T *tokens, ACE_WCHAR_T **lasts)
 Finds the next token in a string (wchar_t version).
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
int 
strcasecmp_emulation (const char *s, const char *t)
 Emulated strcasecmp - Performs a case insensitive comparison of strings.
int strncasecmp_emulation (const char *s, const char *t, size_t len)
 Emulated strncasecmp - Performs a case insensitvie comparison of arrays.
ACE_NAMESPACE_INLINE_FUNCTION int strcasecmp (const char *s, const char *t)
 Compares two strings (case insensitive const char version).
ACE_NAMESPACE_INLINE_FUNCTION int strcasecmp (const wchar_t *s, const wchar_t *t)
 Compares two strings (case insensitive const wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION int strncasecmp (const char *s, const char *t, size_t len)
 Compares two arrays (case insensitive const char version).
ACE_NAMESPACE_INLINE_FUNCTION int strncasecmp (const wchar_t *s, const wchar_t *t, size_t len)
 Compares two arrays (case insensitive const wchar_t version).
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
int 
ioctl (ACE_HANDLE socket, unsigned long io_control_code, void *in_buffer_p, unsigned long in_buffer, void *out_buffer_p, unsigned long out_buffer, unsigned long *bytes_returned, ACE_OVERLAPPED *overlapped, ACE_OVERLAPPED_COMPLETION_FUNC func)
 QoS-enabled <ioctl>.
int ioctl (ACE_HANDLE socket, unsigned long io_control_code, ACE_QoS &ace_qos, unsigned long *bytes_returned, void *buffer_p, unsigned long buffer, ACE_OVERLAPPED *overlapped, ACE_OVERLAPPED_COMPLETION_FUNC func)
ACE_NAMESPACE_INLINE_FUNCTION int getmsg (ACE_HANDLE handle, struct strbuf *ctl, struct strbuf *data, int *flags)
ACE_NAMESPACE_INLINE_FUNCTION int getpmsg (ACE_HANDLE handle, struct strbuf *ctl, struct strbuf *data, int *band, int *flags)
ACE_NAMESPACE_INLINE_FUNCTION int fattach (int handle, const char *path)
ACE_NAMESPACE_INLINE_FUNCTION int fdetach (const char *file)
ACE_NAMESPACE_INLINE_FUNCTION int ioctl (ACE_HANDLE handle, ACE_IOCTL_TYPE_ARG2 cmd, void *=0)
 UNIX-style <ioctl>.
ACE_NAMESPACE_INLINE_FUNCTION int isastream (ACE_HANDLE handle)
ACE_NAMESPACE_INLINE_FUNCTION int putmsg (ACE_HANDLE handle, const struct strbuf *ctl, const struct strbuf *data, int flags)
ACE_NAMESPACE_INLINE_FUNCTION int putpmsg (ACE_HANDLE handle, const struct strbuf *ctl, const struct strbuf *data, int band, int flags)
ACE_NAMESPACE_INLINE_FUNCTION
ACE_HANDLE 
shm_open (const ACE_TCHAR *filename, int mode, mode_t perms=0, LPSECURITY_ATTRIBUTES sa=0)
ACE_NAMESPACE_INLINE_FUNCTION int shm_unlink (const ACE_TCHAR *path)
ACE_NAMESPACE_INLINE_FUNCTION int getrlimit (int resource, struct rlimit *rl)
ACE_NAMESPACE_INLINE_FUNCTION int getrusage (int who, struct rusage *rusage)
ACE_NAMESPACE_INLINE_FUNCTION int setrlimit (int resource, const struct rlimit *rl)
ACE_NAMESPACE_INLINE_FUNCTION int select (int width, fd_set *rfds, fd_set *wfds=0, fd_set *efds=0, const ACE_Time_Value *tv=0)
ACE_NAMESPACE_INLINE_FUNCTION int select (int width, fd_set *rfds, fd_set *wfds, fd_set *efds, const ACE_Time_Value &tv)
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ssize_t 
sendfile_emulation (ACE_HANDLE out_fd, ACE_HANDLE in_fd, off_t *offset, size_t count)
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t 
sendfile (ACE_HANDLE out_fd, ACE_HANDLE in_fd, off_t *offset, size_t count)
 Finds the length of a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
ACE_HANDLE 
creat (const ACE_TCHAR *filename, mode_t mode)
ACE_NAMESPACE_INLINE_FUNCTION int fstat (ACE_HANDLE, ACE_stat *)
ACE_NAMESPACE_INLINE_FUNCTION int lstat (const char *, ACE_stat *)
ACE_NAMESPACE_INLINE_FUNCTION int lstat (const wchar_t *, ACE_stat *)
ACE_NAMESPACE_INLINE_FUNCTION int mkdir (const char *path, mode_t mode=ACE_DEFAULT_DIR_PERMS)
ACE_NAMESPACE_INLINE_FUNCTION int mkdir (const wchar_t *path, mode_t mode=ACE_DEFAULT_DIR_PERMS)
ACE_NAMESPACE_INLINE_FUNCTION int mkfifo (const ACE_TCHAR *file, mode_t mode=ACE_DEFAULT_FILE_PERMS)
ACE_NAMESPACE_INLINE_FUNCTION int stat (const char *file, ACE_stat *)
ACE_NAMESPACE_INLINE_FUNCTION int stat (const wchar_t *file, ACE_stat *)
ACE_NAMESPACE_INLINE_FUNCTION
mode_t 
umask (mode_t cmask)
ACE_NAMESPACE_INLINE_FUNCTION
ACE_Time_Value 
gettimeofday (void)
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t 
readv (ACE_HANDLE handle, const iovec *iov, int iovlen)
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t 
writev (ACE_HANDLE handle, const iovec *iov, int iovcnt)
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
int 
uname (ACE_utsname *name)
ACE_NAMESPACE_INLINE_FUNCTION pid_t wait (int *=0)
ACE_NAMESPACE_INLINE_FUNCTION pid_t wait (pid_t pid, ACE_exitcode *status, int wait_options=0, ACE_HANDLE handle=0)
ACE_NAMESPACE_INLINE_FUNCTION pid_t waitpid (pid_t pid, ACE_exitcode *status=0, int wait_options=0, ACE_HANDLE handle=0)
void cleanup_tss (const u_int main_thread)
int lwp_getparams (ACE_Sched_Params &sched_params)
int lwp_setparams (const ACE_Sched_Params &sched_params)
int scheduling_class (const char *class_name, ACE_id_t &)
 Find the schedling class ID that corresponds to the class name.
int set_scheduling_params (const ACE_Sched_Params &, ACE_id_t id=ACE_SELF)
 Friendly interface to <priocntl>(2).
int thr_create (ACE_THR_FUNC func, void *args, long flags, ACE_thread_t *thr_id, ACE_hthread_t *thr_handle, long priority, void *stack, size_t stacksize, ACE_Base_Thread_Adapter *thread_adapter, const char **thr_name)
void thr_exit (ACE_THR_FUNC_RETURN status)
int thr_key_detach (ACE_thread_key_t key, void *)
int thr_get_affinity (ACE_hthread_t thr_id, size_t cpu_set_size, cpu_set_t *cpu_mask)
int thr_set_affinity (ACE_hthread_t thr_id, size_t cpu_set_size, const cpu_set_t *cpu_mask)
int thr_key_used (ACE_thread_key_t key)
int thr_keycreate (ACE_thread_key_t *key, ACE_THR_DEST dest, void *)
int thr_keyfree (ACE_thread_key_t key)
int thr_setprio (const ACE_Sched_Priority prio)
int thr_setspecific (ACE_thread_key_t key, void *data)
void unique_name (const void *object, char *name, size_t length)
ACE_NAMESPACE_INLINE_FUNCTION long priority_control (ACE_idtype_t, ACE_id_t, int, void *)
 Low-level interface to <priocntl>(2).
ACE_NAMESPACE_INLINE_FUNCTION int sigtimedwait (const sigset_t *set, siginfo_t *info, const ACE_Time_Value *timeout)
ACE_NAMESPACE_INLINE_FUNCTION int sigwait (sigset_t *set, int *sig=0)
ACE_NAMESPACE_INLINE_FUNCTION int sigwaitinfo (const sigset_t *set, siginfo_t *info)
ACE_NAMESPACE_INLINE_FUNCTION int thr_cancel (ACE_thread_t t_id)
ACE_NAMESPACE_INLINE_FUNCTION int thr_cmp (ACE_hthread_t t1, ACE_hthread_t t2)
ACE_NAMESPACE_INLINE_FUNCTION int thr_continue (ACE_hthread_t target_thread)
ACE_NAMESPACE_INLINE_FUNCTION int thr_equal (ACE_thread_t t1, ACE_thread_t t2)
ACE_NAMESPACE_INLINE_FUNCTION int thr_getconcurrency (void)
ACE_NAMESPACE_INLINE_FUNCTION int thr_getprio (ACE_hthread_t id, int &priority)
ACE_NAMESPACE_INLINE_FUNCTION int thr_getprio (ACE_hthread_t id, int &priority, int &policy)
ACE_NAMESPACE_INLINE_FUNCTION int thr_getspecific (ACE_thread_key_t key, void **data)
ACE_NAMESPACE_INLINE_FUNCTION int thr_join (ACE_hthread_t waiter_id, ACE_THR_FUNC_RETURN *status)
ACE_NAMESPACE_INLINE_FUNCTION int thr_join (ACE_thread_t waiter_id, ACE_thread_t *thr_id, ACE_THR_FUNC_RETURN *status)
ACE_NAMESPACE_INLINE_FUNCTION int thr_kill (ACE_thread_t thr_id, int signum)
ACE_NAMESPACE_INLINE_FUNCTION
size_t 
thr_min_stack (void)
ACE_NAMESPACE_INLINE_FUNCTION
ACE_thread_t 
thr_self (void)
ACE_NAMESPACE_INLINE_FUNCTION void thr_self (ACE_hthread_t &)
ACE_NAMESPACE_INLINE_FUNCTION
const char * 
thr_name (void)
ACE_NAMESPACE_INLINE_FUNCTION int thr_setcancelstate (int new_state, int *old_state)
ACE_NAMESPACE_INLINE_FUNCTION int thr_setcanceltype (int new_type, int *old_type)
ACE_NAMESPACE_INLINE_FUNCTION int thr_setconcurrency (int hint)
ACE_NAMESPACE_INLINE_FUNCTION int thr_setprio (ACE_hthread_t ht_id, int priority, int policy=-1)
ACE_NAMESPACE_INLINE_FUNCTION int thr_sigsetmask (int how, const sigset_t *nsm, sigset_t *osm)
ACE_NAMESPACE_INLINE_FUNCTION int thr_suspend (ACE_hthread_t target_thread)
ACE_NAMESPACE_INLINE_FUNCTION void thr_testcancel (void)
ACE_NAMESPACE_INLINE_FUNCTION void thr_yield (void)
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
int 
argv_to_string (ACE_TCHAR **argv, ACE_TCHAR *&buf, bool substitute_env_args, bool quote_args)
int argv_to_string (int argc, ACE_TCHAR **argv, ACE_TCHAR *&buf, bool substitute_env_args, bool quote_args)
int execl (const char *, const char *,...)
int execle (const char *, const char *,...)
int execlp (const char *, const char *,...)
long num_processors (void)
 Get the number of CPUs configured in the machine.
long num_processors_online (void)
 Get the number of CPUs currently online.
ssize_t read_n (ACE_HANDLE handle, void *buf, size_t len, size_t *bt)
ssize_t pread (ACE_HANDLE handle, void *buf, size_t nbytes, ACE_OFF_T offset)
ssize_t pwrite (ACE_HANDLE handle, const void *buf, size_t nbytes, ACE_OFF_T offset)
int string_to_argv (ACE_TCHAR *buf, int &argc, ACE_TCHAR **&argv, bool substitute_env_args)
ssize_t write_n (ACE_HANDLE handle, const void *buf, size_t len, size_t *bt)
ACE_NAMESPACE_INLINE_FUNCTION int access (const char *path, int amode)
ACE_NAMESPACE_INLINE_FUNCTION int access (const wchar_t *path, int amode)
ACE_NAMESPACE_INLINE_FUNCTION
unsigned int 
alarm (u_int secs)
ACE_NAMESPACE_INLINE_FUNCTION long allocation_granularity (void)
ACE_NAMESPACE_INLINE_FUNCTION int chdir (const char *path)
ACE_NAMESPACE_INLINE_FUNCTION int chdir (const wchar_t *path)
ACE_NAMESPACE_INLINE_FUNCTION int rmdir (const char *path)
ACE_NAMESPACE_INLINE_FUNCTION int rmdir (const wchar_t *path)
ACE_NAMESPACE_INLINE_FUNCTION int close (ACE_HANDLE handle)
ACE_NAMESPACE_INLINE_FUNCTION
ACE_HANDLE 
dup (ACE_HANDLE handle)
ACE_NAMESPACE_INLINE_FUNCTION int dup2 (ACE_HANDLE oldfd, ACE_HANDLE newfd)
ACE_NAMESPACE_INLINE_FUNCTION int execv (const char *path, char *const argv[])
ACE_NAMESPACE_INLINE_FUNCTION int execve (const char *path, char *const argv[], char *const envp[])
ACE_NAMESPACE_INLINE_FUNCTION int execvp (const char *file, char *const argv[])
ACE_NAMESPACE_INLINE_FUNCTION int fsync (ACE_HANDLE handle)
ACE_NAMESPACE_INLINE_FUNCTION int ftruncate (ACE_HANDLE handle, ACE_OFF_T offset)
ACE_NAMESPACE_INLINE_FUNCTION
char * 
getcwd (char *, size_t)
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
getcwd (wchar_t *, size_t)
ACE_NAMESPACE_INLINE_FUNCTION gid_t getgid (void)
ACE_NAMESPACE_INLINE_FUNCTION gid_t getegid (void)
ACE_NAMESPACE_INLINE_FUNCTION int getopt (int argc, char *const *argv, const char *optstring)
ACE_NAMESPACE_INLINE_FUNCTION long getpagesize (void)
ACE_NAMESPACE_INLINE_FUNCTION pid_t getpgid (pid_t pid)
ACE_NAMESPACE_INLINE_FUNCTION pid_t getpid (void)
ACE_NAMESPACE_INLINE_FUNCTION pid_t getppid (void)
ACE_NAMESPACE_INLINE_FUNCTION uid_t getuid (void)
ACE_NAMESPACE_INLINE_FUNCTION uid_t geteuid (void)
ACE_NAMESPACE_INLINE_FUNCTION int hostname (char *name, size_t maxnamelen)
ACE_NAMESPACE_INLINE_FUNCTION int hostname (wchar_t *name, size_t maxnamelen)
ACE_NAMESPACE_INLINE_FUNCTION int isatty (int handle)
ACE_NAMESPACE_INLINE_FUNCTION int isatty (ACE_HANDLE handle)
ACE_NAMESPACE_INLINE_FUNCTION
ACE_OFF_T 
lseek (ACE_HANDLE handle, ACE_OFF_T offset, int whence)
ACE_NAMESPACE_INLINE_FUNCTION int pipe (ACE_HANDLE handles[])
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t 
read (ACE_HANDLE handle, void *buf, size_t len)
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t 
read (ACE_HANDLE handle, void *buf, size_t len, ACE_OVERLAPPED *)
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t 
readlink (const char *path, char *buf, size_t bufsiz)
ACE_NAMESPACE_INLINE_FUNCTION
void * 
sbrk (intptr_t brk)
ACE_NAMESPACE_INLINE_FUNCTION int setgid (gid_t)
ACE_NAMESPACE_INLINE_FUNCTION int setegid (gid_t)
ACE_NAMESPACE_INLINE_FUNCTION int setpgid (pid_t pid, pid_t pgid)
ACE_NAMESPACE_INLINE_FUNCTION int setregid (gid_t rgid, gid_t egid)
ACE_NAMESPACE_INLINE_FUNCTION int setreuid (uid_t ruid, uid_t euid)
ACE_NAMESPACE_INLINE_FUNCTION pid_t setsid (void)
ACE_NAMESPACE_INLINE_FUNCTION int setuid (uid_t)
ACE_NAMESPACE_INLINE_FUNCTION int seteuid (uid_t)
ACE_NAMESPACE_INLINE_FUNCTION int sleep (u_int seconds)
ACE_NAMESPACE_INLINE_FUNCTION int sleep (const ACE_Time_Value &tv)
ACE_NAMESPACE_INLINE_FUNCTION void swab (const void *src, void *dest, ssize_t n)
ACE_NAMESPACE_INLINE_FUNCTION long sysconf (int)
ACE_NAMESPACE_INLINE_FUNCTION long sysinfo (int cmd, char *buf, long count)
ACE_NAMESPACE_INLINE_FUNCTION int truncate (const ACE_TCHAR *filename, ACE_OFF_T length)
ACE_NAMESPACE_INLINE_FUNCTION
useconds_t 
ualarm (useconds_t usecs, useconds_t interval=0)
ACE_NAMESPACE_INLINE_FUNCTION
useconds_t 
ualarm (const ACE_Time_Value &tv, const ACE_Time_Value &tv_interval=ACE_Time_Value::zero)
ACE_NAMESPACE_INLINE_FUNCTION int unlink (const char *path)
ACE_NAMESPACE_INLINE_FUNCTION int unlink (const wchar_t *path)
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t 
write (ACE_HANDLE handle, const void *buf, size_t nbyte)
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t 
write (ACE_HANDLE handle, const void *buf, size_t nbyte, ACE_OVERLAPPED *)
ACE_INLINE int hostname (char name[], size_t maxnamelen)
ACE_INLINE int hostname (wchar_t name[], size_t maxnamelen)
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
wchar_t * 
wcscat_emulation (wchar_t *destination, const wchar_t *source)
 Emulated wcscat - Appends a string.
wchar_t * wcschr_emulation (const wchar_t *string, wchar_t c)
 Emulated wcschr - Finds a character in a string.
int wcscmp_emulation (const ACE_WCHAR_T *string1, const ACE_WCHAR_T *string2)
 Emulated wcscmp - Compares strings.
wchar_t * wcscpy_emulation (wchar_t *destination, const wchar_t *source)
 Emulated wcscpy - Copies a string.
size_t wcscspn_emulation (const wchar_t *string, const wchar_t *reject)
 Emulated wcscspn.
int wcsicmp_emulation (const wchar_t *string1, const wchar_t *string2)
 Emulated wcsicmp - Performs a case insensitive comparison of strings.
size_t wcslen_emulation (const ACE_WCHAR_T *string)
 Emulated wcslen - Returns the length of a string.
ACE_WCHAR_T * wcsncat_emulation (ACE_WCHAR_T *destination, const ACE_WCHAR_T *source, size_t count)
 Emulated wcscat - Appends a string.
int wcsncmp_emulation (const ACE_WCHAR_T *string1, const ACE_WCHAR_T *string2, size_t len)
 Emulated wcsncmp - Compares two arrays.
ACE_WCHAR_T * wcsncpy_emulation (ACE_WCHAR_T *destination, const ACE_WCHAR_T *source, size_t len)
 Emulated wcsncpy - Copies an array.
int wcsnicmp_emulation (const wchar_t *s, const wchar_t *t, size_t len)
wchar_t * wcspbrk_emulation (const wchar_t *string, const wchar_t *charset)
 Emulated wcspbrk - Searches for characters in a string.
const wchar_t * wcsrchr_emulation (const wchar_t *s, wint_t c)
wchar_t * wcsrchr_emulation (wchar_t *s, wint_t c)
size_t wcsspn_emulation (const wchar_t *string, const wchar_t *charset)
 Emulated wcsspn.
wchar_t * wcsstr_emulation (const wchar_t *string, const wchar_t *charset)
 Emulated wcsstr - Performs a case insensitive comparison of two strings.
ACE_NAMESPACE_INLINE_FUNCTION
wint_t 
fgetwc (FILE *fp)
ACE_NAMESPACE_INLINE_FUNCTION u_int wslen (const WChar *)
ACE_NAMESPACE_INLINE_FUNCTION
WChar
wscpy (WChar *, const WChar *)
ACE_NAMESPACE_INLINE_FUNCTION int wscmp (const WChar *, const WChar *)
ACE_NAMESPACE_INLINE_FUNCTION int wsncmp (const WChar *, const WChar *, size_t len)
ACE_NAMESPACE_INLINE_FUNCTION
wint_t 
ungetwc (wint_t c, FILE *fp)
ACE_NAMESPACE_INLINE_FUNCTION int t_accept (ACE_HANDLE fildes, ACE_HANDLE resfd, struct t_call *call)
ACE_NAMESPACE_INLINE_FUNCTION
char * 
t_alloc (ACE_HANDLE fildes, int struct_type, int fields)
ACE_NAMESPACE_INLINE_FUNCTION int t_bind (ACE_HANDLE fildes, ACE_TBIND *req, ACE_TBIND *ret)
ACE_NAMESPACE_INLINE_FUNCTION int t_close (ACE_HANDLE fildes)
ACE_NAMESPACE_INLINE_FUNCTION int t_connect (ACE_HANDLE fildes, struct t_call *sndcall, struct t_call *rcvcall)
ACE_NAMESPACE_INLINE_FUNCTION void t_error (const char *errmsg)
ACE_NAMESPACE_INLINE_FUNCTION int t_free (char *ptr, int struct_type)
ACE_NAMESPACE_INLINE_FUNCTION int t_getinfo (ACE_HANDLE fildes, struct t_info *info)
ACE_NAMESPACE_INLINE_FUNCTION int t_getname (ACE_HANDLE fildes, struct netbuf *namep, int type)
ACE_NAMESPACE_INLINE_FUNCTION int t_getstate (ACE_HANDLE fildes)
ACE_NAMESPACE_INLINE_FUNCTION int t_listen (ACE_HANDLE fildes, struct t_call *call)
ACE_NAMESPACE_INLINE_FUNCTION int t_look (ACE_HANDLE fildes)
ACE_NAMESPACE_INLINE_FUNCTION
ACE_HANDLE 
t_open (char *path, int oflag, struct t_info *info)
ACE_NAMESPACE_INLINE_FUNCTION int t_optmgmt (ACE_HANDLE handle, ACE_TOPTMGMT *req, ACE_TOPTMGMT *ret)
ACE_NAMESPACE_INLINE_FUNCTION int t_rcv (ACE_HANDLE fildes, char *buf, unsigned int nbytes, int *flags)
ACE_NAMESPACE_INLINE_FUNCTION int t_rcvdis (ACE_HANDLE fildes, struct t_discon *discon)
ACE_NAMESPACE_INLINE_FUNCTION int t_rcvrel (ACE_HANDLE fildes)
ACE_NAMESPACE_INLINE_FUNCTION int t_rcvudata (ACE_HANDLE fildes, struct t_unitdata *unitdata, int *flags)
ACE_NAMESPACE_INLINE_FUNCTION int t_rcvuderr (ACE_HANDLE fildes, struct t_uderr *uderr)
ACE_NAMESPACE_INLINE_FUNCTION int t_snd (ACE_HANDLE fildes, const char *buf, unsigned int nbytes, int flags)
ACE_NAMESPACE_INLINE_FUNCTION int t_snddis (ACE_HANDLE fildes, struct t_call *call)
ACE_NAMESPACE_INLINE_FUNCTION int t_sndrel (ACE_HANDLE fildes)
ACE_NAMESPACE_INLINE_FUNCTION int t_sync (ACE_HANDLE fildes)
ACE_NAMESPACE_INLINE_FUNCTION int t_unbind (ACE_HANDLE fildes)
Functions from <cctype>
Included are the functions defined in <cctype> and their <cwctype> equivalents.

Since they are often implemented as macros, we don't use the same name here. Instead, we change by prepending "ace_".

ACE_NAMESPACE_INLINE_FUNCTION int ace_isalnum (ACE_TCHAR c)
 Returns true if the character is an alphanumeric character.
ACE_NAMESPACE_INLINE_FUNCTION int ace_isalpha (ACE_TCHAR c)
 Returns true if the character is an alphabetic character.
ACE_NAMESPACE_INLINE_FUNCTION int ace_iscntrl (ACE_TCHAR c)
 Returns true if the character is a control character.
ACE_NAMESPACE_INLINE_FUNCTION int ace_isdigit (ACE_TCHAR c)
 Returns true if the character is a decimal-digit character.
ACE_NAMESPACE_INLINE_FUNCTION int ace_isgraph (ACE_TCHAR c)
 Returns true if the character is a printable character other than a space.
ACE_NAMESPACE_INLINE_FUNCTION int ace_islower (ACE_TCHAR c)
 Returns true if the character is a lowercase character.
ACE_NAMESPACE_INLINE_FUNCTION int ace_isprint (ACE_TCHAR c)
 Returns true if the character is a printable character.
ACE_NAMESPACE_INLINE_FUNCTION int ace_ispunct (ACE_TCHAR c)
 Returns true if the character is a punctuation character.
ACE_NAMESPACE_INLINE_FUNCTION int ace_isspace (ACE_TCHAR c)
 Returns true if the character is a space character.
ACE_NAMESPACE_INLINE_FUNCTION int ace_isupper (ACE_TCHAR c)
 Returns true if the character is an uppercase character.
ACE_NAMESPACE_INLINE_FUNCTION int ace_isxdigit (ACE_TCHAR c)
 Returns true if the character is a hexadecimal-digit character.
ACE_NAMESPACE_INLINE_FUNCTION int ace_tolower (int c)
 Converts a character to lower case (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wint_t 
ace_towlower (wint_t c)
 Converts a character to lower case (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION int ace_toupper (int c)
 Converts a character to upper case (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wint_t 
ace_towupper (wint_t c)
 Converts a character to upper case (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION int dlclose (ACE_SHLIB_HANDLE handle)
ACE_NAMESPACE_INLINE_FUNCTION
ACE_TCHAR
dlerror (void)
ACE_NAMESPACE_INLINE_FUNCTION
ACE_SHLIB_HANDLE 
dlopen (const ACE_TCHAR *filename, int mode=ACE_DEFAULT_SHLIB_MODE)
ACE_NAMESPACE_INLINE_FUNCTION
void * 
dlsym (ACE_SHLIB_HANDLE handle, const ACE_TCHAR *symbol)
ACE_NAMESPACE_INLINE_FUNCTION void endpwent (void)
ACE_NAMESPACE_INLINE_FUNCTION
struct passwd * 
getpwent (void)
ACE_NAMESPACE_INLINE_FUNCTION
struct passwd * 
getpwnam (const char *user)
ACE_NAMESPACE_INLINE_FUNCTION
struct passwd * 
getpwnam_r (const char *name, struct passwd *pwent, char *buffer, int buflen)
ACE_NAMESPACE_INLINE_FUNCTION void setpwent (void)
ACE_NAMESPACE_INLINE_FUNCTION
char * 
compile (const char *instring, char *expbuf, char *endbuf)
ACE_NAMESPACE_INLINE_FUNCTION int step (const char *str, char *expbuf)
ACE_NAMESPACE_INLINE_FUNCTION int kill (pid_t pid, int signum)
ACE_NAMESPACE_INLINE_FUNCTION int pthread_sigmask (int how, const sigset_t *nsp, sigset_t *osp)
ACE_NAMESPACE_INLINE_FUNCTION int sigaction (int signum, const ACE_SIGACTION *nsa, ACE_SIGACTION *osa)
ACE_NAMESPACE_INLINE_FUNCTION int sigaddset (sigset_t *s, int signum)
ACE_NAMESPACE_INLINE_FUNCTION int sigdelset (sigset_t *s, int signum)
ACE_NAMESPACE_INLINE_FUNCTION int sigemptyset (sigset_t *s)
ACE_NAMESPACE_INLINE_FUNCTION int sigfillset (sigset_t *s)
ACE_NAMESPACE_INLINE_FUNCTION int sigismember (sigset_t *s, int signum)
ACE_NAMESPACE_INLINE_FUNCTION
ACE_SignalHandler 
signal (int signum, ACE_SignalHandler)
ACE_NAMESPACE_INLINE_FUNCTION int sigprocmask (int how, const sigset_t *nsp, sigset_t *osp)
ACE_NAMESPACE_INLINE_FUNCTION int sigsuspend (const sigset_t *set)
ACE_NAMESPACE_INLINE_FUNCTION
char * 
cuserid (char *user, size_t maxlen=ACE_MAX_USERID)
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
cuserid (wchar_t *user, size_t maxlen=ACE_MAX_USERID)
ACE_NAMESPACE_INLINE_FUNCTION void flock_adjust_params (ace_flock_t *lock, short whence, ACE_OFF_T &start, ACE_OFF_T &len)
ACE_NAMESPACE_INLINE_FUNCTION int flock_init (ace_flock_t *lock, int flags=0, const ACE_TCHAR *name=0, mode_t perms=0)
ACE_NAMESPACE_INLINE_FUNCTION int flock_destroy (ace_flock_t *lock, int unlink_file=1)
ACE_NAMESPACE_INLINE_FUNCTION int flock_rdlock (ace_flock_t *lock, short whence=0, ACE_OFF_T start=0, ACE_OFF_T len=0)
ACE_NAMESPACE_INLINE_FUNCTION int flock_tryrdlock (ace_flock_t *lock, short whence=0, ACE_OFF_T start=0, ACE_OFF_T len=0)
ACE_NAMESPACE_INLINE_FUNCTION int flock_trywrlock (ace_flock_t *lock, short whence=0, ACE_OFF_T start=0, ACE_OFF_T len=0)
ACE_NAMESPACE_INLINE_FUNCTION int flock_unlock (ace_flock_t *lock, short whence=0, ACE_OFF_T start=0, ACE_OFF_T len=0)
ACE_NAMESPACE_INLINE_FUNCTION int flock_wrlock (ace_flock_t *lock, short whence=0, ACE_OFF_T start=0, ACE_OFF_T len=0)
Functions from <cstring>
Included are the functions defined in <cstring> and their <cwchar> equivalents.

Todo:
To be complete, we should add strcoll, and strxfrm.


ACE_BEGIN_VERSIONED_NAMESPACE_DECL
char * 
strecpy (char *s, const char *t)
wchar_t * strecpy (wchar_t *s, const wchar_t *t)
char * strerror (int errnum)
const char * strnchr (const char *s, int c, size_t len)
const ACE_WCHAR_T * strnchr (const ACE_WCHAR_T *s, ACE_WCHAR_T c, size_t len)
const char * strnstr (const char *s1, const char *s2, size_t len2)
const ACE_WCHAR_T * strnstr (const ACE_WCHAR_T *s1, const ACE_WCHAR_T *s2, size_t len2)
char * strrchr_emulation (char *s, int c)
const char * strrchr_emulation (const char *s, int c)
char * strsncpy (char *dst, const char *src, size_t maxlen)
 This is a "safe" c string copy function (char version).
ACE_WCHAR_T * strsncpy (ACE_WCHAR_T *dst, const ACE_WCHAR_T *src, size_t maxlen)
 This is a "safe" c string copy function (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
const void * 
memchr (const void *s, int c, size_t len)
 Finds characters in a buffer (const void version).
ACE_NAMESPACE_INLINE_FUNCTION
void * 
memchr (void *s, int c, size_t len)
 Finds characters in a buffer (void version).
ACE_NAMESPACE_INLINE_FUNCTION int memcmp (const void *t, const void *s, size_t len)
 Compares two buffers.
ACE_NAMESPACE_INLINE_FUNCTION
void * 
memcpy (void *t, const void *s, size_t len)
 Copies one buffer to another.
ACE_NAMESPACE_INLINE_FUNCTION
void * 
memmove (void *t, const void *s, size_t len)
 Moves one buffer to another.
ACE_NAMESPACE_INLINE_FUNCTION
void * 
memset (void *s, int c, size_t len)
 Fills a buffer with a character value.
ACE_NAMESPACE_INLINE_FUNCTION
char * 
strcat (char *s, const char *t)
 Appends a string to another string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
strcat (wchar_t *s, const wchar_t *t)
 Appends a string to another string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
const char * 
strchr (const char *s, int c)
ACE_NAMESPACE_INLINE_FUNCTION
const wchar_t * 
strchr (const wchar_t *s, wchar_t c)
ACE_NAMESPACE_INLINE_FUNCTION
char * 
strchr (char *s, int c)
 Finds the first occurance of a character in a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
strchr (wchar_t *s, wchar_t c)
 Finds the first occurance of a character in a string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION int strcmp (const char *s, const char *t)
 Compares two strings (char version).
ACE_NAMESPACE_INLINE_FUNCTION int strcmp (const ACE_WCHAR_T *s, const ACE_WCHAR_T *t)
 Compares two strings (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
char * 
strcpy (char *s, const char *t)
 Copies a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
strcpy (wchar_t *s, const wchar_t *t)
 Copies a string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
size_t 
strcspn (const char *s, const char *reject)
ACE_NAMESPACE_INLINE_FUNCTION
size_t 
strcspn (const wchar_t *s, const wchar_t *reject)
ACE_NAMESPACE_INLINE_FUNCTION
char * 
strdup (const char *s)
 Returns a malloced duplicated string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
strdup (const wchar_t *s)
 Returns a malloced duplicated string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
size_t 
strlen (const char *s)
 Finds the length of a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
size_t 
strlen (const ACE_WCHAR_T *s)
 Finds the length of a string (ACE_WCHAR_T version).
ACE_NAMESPACE_INLINE_FUNCTION
char * 
strncat (char *s, const char *t, size_t len)
 Appends part of a string to another string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
ACE_WCHAR_T * 
strncat (ACE_WCHAR_T *s, const ACE_WCHAR_T *t, size_t len)
 Appends part of a string to another string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
char * 
strnchr (char *s, int c, size_t len)
 Finds the first occurance of a character in an array (char version).
ACE_NAMESPACE_INLINE_FUNCTION
ACE_WCHAR_T * 
strnchr (ACE_WCHAR_T *s, ACE_WCHAR_T c, size_t len)
 Finds the first occurance of a character in an array (ACE_WCHAR_T version).
ACE_NAMESPACE_INLINE_FUNCTION int strncmp (const char *s, const char *t, size_t len)
 Compares two arrays (char version).
ACE_NAMESPACE_INLINE_FUNCTION int strncmp (const ACE_WCHAR_T *s, const ACE_WCHAR_T *t, size_t len)
 Compares two arrays (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
char * 
strncpy (char *s, const char *t, size_t len)
 Copies an array (char version).
ACE_NAMESPACE_INLINE_FUNCTION
ACE_WCHAR_T * 
strncpy (ACE_WCHAR_T *s, const ACE_WCHAR_T *t, size_t len)
 Copies an array (ACE_WCHAR_T version).
ACE_NAMESPACE_INLINE_FUNCTION
size_t 
strnlen (const char *s, size_t maxlen)
 Finds the length of a limited-length string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
size_t 
strnlen (const ACE_WCHAR_T *s, size_t maxlen)
 Finds the length of a limited-length string (ACE_WCHAR_T version).
ACE_NAMESPACE_INLINE_FUNCTION
char * 
strnstr (char *s, const char *t, size_t len)
 Finds the first occurance of a substring in an array (char version).
ACE_NAMESPACE_INLINE_FUNCTION
ACE_WCHAR_T * 
strnstr (ACE_WCHAR_T *s, const ACE_WCHAR_T *t, size_t len)
 Finds the first occurance of a substring in an array (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
const char * 
strpbrk (const char *s1, const char *s2)
 Searches for characters in a string (const char version).
ACE_NAMESPACE_INLINE_FUNCTION
const wchar_t * 
strpbrk (const wchar_t *s1, const wchar_t *s2)
 Searches for characters in a string (const wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
char * 
strpbrk (char *s1, const char *s2)
 Searches for characters in a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
strpbrk (wchar_t *s1, const wchar_t *s2)
 Searches for characters in a string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
const char * 
strrchr (const char *s, int c)
ACE_NAMESPACE_INLINE_FUNCTION
const wchar_t * 
strrchr (const wchar_t *s, wchar_t c)
ACE_NAMESPACE_INLINE_FUNCTION
char * 
strrchr (char *s, int c)
 Finds the last occurance of a character in a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
strrchr (wchar_t *s, wchar_t c)
 Finds the last occurance of a character in a string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
size_t 
strspn (const char *s1, const char *s2)
ACE_NAMESPACE_INLINE_FUNCTION
size_t 
strspn (const wchar_t *s1, const wchar_t *s2)
ACE_NAMESPACE_INLINE_FUNCTION
const char * 
strstr (const char *s, const char *t)
ACE_NAMESPACE_INLINE_FUNCTION
const wchar_t * 
strstr (const wchar_t *s, const wchar_t *t)
ACE_NAMESPACE_INLINE_FUNCTION
char * 
strstr (char *s, const char *t)
 Finds the first occurance of a substring in a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
strstr (wchar_t *s, const wchar_t *t)
 Finds the first occurance of a substring in a string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION
char * 
strtok (char *s, const char *tokens)
 Finds the next token in a string (char version).
ACE_NAMESPACE_INLINE_FUNCTION
wchar_t * 
strtok (wchar_t *s, const wchar_t *tokens)
 Finds the next token in a string (wchar_t version).
ACE_NAMESPACE_INLINE_FUNCTION int madvise (caddr_t addr, size_t len, int map_advice)
ACE_NAMESPACE_INLINE_FUNCTION
void * 
mmap (void *addr, size_t len, int prot, int flags, ACE_HANDLE handle, ACE_OFF_T off=0, ACE_HANDLE *file_mapping=0, LPSECURITY_ATTRIBUTES sa=0, const ACE_TCHAR *file_mapping_name=0)
ACE_NAMESPACE_INLINE_FUNCTION int mprotect (void *addr, size_t len, int prot)
ACE_NAMESPACE_INLINE_FUNCTION int msync (void *addr, size_t len, int sync)
ACE_NAMESPACE_INLINE_FUNCTION int munmap (void *addr, size_t len)
ACE_NAMESPACE_INLINE_FUNCTION int msgctl (int msqid, int cmd, struct msqid_ds *)
ACE_NAMESPACE_INLINE_FUNCTION int msgget (key_t key, int msgflg)
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t 
msgrcv (int int_id, void *buf, size_t len, long type, int flags)
ACE_NAMESPACE_INLINE_FUNCTION int msgsnd (int int_id, const void *buf, size_t len, int flags)
ACE_NAMESPACE_INLINE_FUNCTION
void * 
shmat (int int_id, const void *shmaddr, int shmflg)
ACE_NAMESPACE_INLINE_FUNCTION int shmctl (int int_id, int cmd, struct shmid_ds *buf)
ACE_NAMESPACE_INLINE_FUNCTION int shmdt (const void *shmaddr)
ACE_NAMESPACE_INLINE_FUNCTION int shmget (key_t key, size_t size, int flags)
ACE_HANDLE accept (ACE_HANDLE handle, struct sockaddr *addr, int *addrlen, const ACE_Accept_QoS_Params &qos_params)
int connect (ACE_HANDLE handle, const sockaddr *addr, int addrlen, const ACE_QoS_Params &qos_params)
ACE_HANDLE join_leaf (ACE_HANDLE socket, const sockaddr *name, int namelen, const ACE_QoS_Params &qos_params)
 Joins a leaf node into a QoS-enabled multi-point session.
int socket_init (int version_high, int version_low)
int socket_fini (void)
 Finalize WinSock after last use (e.g., when a DLL is unloaded).
ACE_NAMESPACE_INLINE_FUNCTION
ACE_HANDLE 
accept (ACE_HANDLE handle, struct sockaddr *addr, int *addrlen)
 BSD-style <accept> (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION int bind (ACE_HANDLE s, struct sockaddr *name, int namelen)
 BSD-style <accept> (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION int closesocket (ACE_HANDLE s)
 Takes care of windows specific requirement to call closesocket.
ACE_NAMESPACE_INLINE_FUNCTION int connect (ACE_HANDLE handle, struct sockaddr *addr, int addrlen)
 BSD-style <connect> (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION int enum_protocols (int *protocols, ACE_Protocol_Info *protocol_buffer, u_long *buffer_length)
ACE_NAMESPACE_INLINE_FUNCTION int getpeername (ACE_HANDLE handle, struct sockaddr *addr, int *addrlen)
 BSD-style <accept> (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION int getsockname (ACE_HANDLE handle, struct sockaddr *addr, int *addrlen)
 BSD-style <accept> (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION int getsockopt (ACE_HANDLE handle, int level, int optname, char *optval, int *optlen)
 BSD-style <accept> (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION int listen (ACE_HANDLE handle, int backlog)
 BSD-style <accept> (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t 
recv (ACE_HANDLE handle, char *buf, size_t len, int flags=0)
 BSD-style <accept> (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t 
recvfrom (ACE_HANDLE handle, char *buf, size_t len, int flags, struct sockaddr *addr, int *addrlen)
 BSD-style <accept> (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t 
recvfrom (ACE_HANDLE handle, iovec *buffers, int buffer_count, size_t &number_of_bytes_recvd, int &flags, struct sockaddr *addr, int *addrlen, ACE_OVERLAPPED *overlapped, ACE_OVERLAPPED_COMPLETION_FUNC func)
 BSD-style <accept> (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t 
recvmsg (ACE_HANDLE handle, struct msghdr *msg, int flags)
 BSD-style <accept> (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t 
recvv (ACE_HANDLE handle, iovec *iov, int iovlen)
 BSD-style <accept> (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t 
send (ACE_HANDLE handle, const char *buf, size_t len, int flags=0)
 BSD-style <accept> (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t 
sendmsg (ACE_HANDLE handle, const struct msghdr *msg, int flags)
 BSD-style <accept> (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t 
sendto (ACE_HANDLE handle, const char *buf, size_t len, int flags, const struct sockaddr *addr, int addrlen)
 BSD-style <accept> (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t 
sendto (ACE_HANDLE handle, const iovec *buffers, int buffer_count, size_t &number_of_bytes_sent, int flags, const struct sockaddr *addr, int addrlen, ACE_OVERLAPPED *overlapped, ACE_OVERLAPPED_COMPLETION_FUNC func)
 BSD-style <accept> (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION
ssize_t 
sendv (ACE_HANDLE handle, const iovec *iov, int iovcnt)
 BSD-style <accept> (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION int setsockopt (ACE_HANDLE handle, int level, int optname, const char *optval, int optlen)
 Manipulate the options associated with a socket.
ACE_NAMESPACE_INLINE_FUNCTION int shutdown (ACE_HANDLE handle, int how)
 BSD-style <accept> (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION
ACE_HANDLE 
socket (int protocol_family, int type, int proto)
 Create a BSD-style socket (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION
ACE_HANDLE 
socket (int protocol_family, int type, int proto, ACE_Protocol_Info *protocolinfo, ACE_SOCK_GROUP g, u_long flags)
ACE_NAMESPACE_INLINE_FUNCTION int socketpair (int domain, int type, int protocol, ACE_HANDLE sv[2])
 BSD-style <accept> (no QoS).
ACE_NAMESPACE_INLINE_FUNCTION
ACE_OFF_T 
filesize (ACE_HANDLE handle)
ACE_NAMESPACE_INLINE_FUNCTION
ACE_OFF_T 
filesize (const ACE_TCHAR *handle)
int cond_init (ACE_cond_t *cv, short type, const char *name, void *arg)
int event_destroy (ACE_event_t *event)
int event_init (ACE_event_t *event, int manual_reset, int initial_state, int type, const char *name, void *arg, LPSECURITY_ATTRIBUTES sa)
int event_pulse (ACE_event_t *event)
int event_reset (ACE_event_t *event)
int event_signal (ACE_event_t *event)
int event_timedwait (ACE_event_t *event, ACE_Time_Value *timeout, int use_absolute_time)
int event_wait (ACE_event_t *event)
ACE_NAMESPACE_INLINE_FUNCTION int condattr_init (ACE_condattr_t &attributes, int type=ACE_DEFAULT_SYNCH_TYPE)
ACE_NAMESPACE_INLINE_FUNCTION int condattr_destroy (ACE_condattr_t &attributes)
ACE_NAMESPACE_INLINE_FUNCTION int cond_broadcast (ACE_cond_t *cv)
ACE_NAMESPACE_INLINE_FUNCTION int cond_destroy (ACE_cond_t *cv)
ACE_NAMESPACE_INLINE_FUNCTION int cond_init (ACE_cond_t *cv, ACE_condattr_t &attributes, const char *name=0, void *arg=0)
ACE_NAMESPACE_INLINE_FUNCTION int cond_init (ACE_cond_t *cv, short type, const wchar_t *name, void *arg=0)
ACE_NAMESPACE_INLINE_FUNCTION int cond_init (ACE_cond_t *cv, ACE_condattr_t &attributes, const wchar_t *name, void *arg=0)
ACE_NAMESPACE_INLINE_FUNCTION int cond_signal (ACE_cond_t *cv)
ACE_NAMESPACE_INLINE_FUNCTION int cond_timedwait (ACE_cond_t *cv, ACE_mutex_t *m, ACE_Time_Value *)
ACE_NAMESPACE_INLINE_FUNCTION int cond_wait (ACE_cond_t *cv, ACE_mutex_t *m)
ACE_NAMESPACE_INLINE_FUNCTION int event_init (ACE_event_t *event, int manual_reset, int initial_state, int type, const wchar_t *name, void *arg=0, LPSECURITY_ATTRIBUTES sa=0)
int mutex_init (ACE_mutex_t *m, int lock_scope, const char *name, ACE_mutexattr_t *attributes, LPSECURITY_ATTRIBUTES sa, int lock_type)
int mutex_destroy (ACE_mutex_t *m)
int mutex_init (ACE_mutex_t *m, int lock_scope, const wchar_t *name, ACE_mutexattr_t *attributes, LPSECURITY_ATTRIBUTES sa, int lock_type)
int mutex_lock (ACE_mutex_t *m)
int mutex_lock (ACE_mutex_t *m, int &abandoned)
int mutex_lock (ACE_mutex_t *m, const ACE_Time_Value &timeout)
int mutex_trylock (ACE_mutex_t *m)
int mutex_trylock (ACE_mutex_t *m, int &abandoned)
int mutex_unlock (ACE_mutex_t *m)
void mutex_lock_cleanup (void *mutex)
 Handle asynchronous thread cancellation cleanup.
ACE_NAMESPACE_INLINE_FUNCTION int mutex_lock (ACE_mutex_t *m, const ACE_Time_Value *timeout)
int sched_params (const ACE_Sched_Params &sched_params, ACE_id_t id)
ACE_NAMESPACE_INLINE_FUNCTION int recursive_mutex_cond_unlock (ACE_recursive_thread_mutex_t *m, ACE_recursive_mutex_state &state)
ACE_NAMESPACE_INLINE_FUNCTION void recursive_mutex_cond_relock (ACE_recursive_thread_mutex_t *m, ACE_recursive_mutex_state &state)
ACE_NAMESPACE_INLINE_FUNCTION int recursive_mutex_destroy (ACE_recursive_thread_mutex_t *m)
ACE_NAMESPACE_INLINE_FUNCTION int recursive_mutex_init (ACE_recursive_thread_mutex_t *m, const ACE_TCHAR *name=0, ACE_mutexattr_t *arg=0, LPSECURITY_ATTRIBUTES sa=0)
ACE_NAMESPACE_INLINE_FUNCTION int recursive_mutex_lock (ACE_recursive_thread_mutex_t *m)
ACE_NAMESPACE_INLINE_FUNCTION int recursive_mutex_lock (ACE_recursive_thread_mutex_t *m, const ACE_Time_Value &timeout)
ACE_NAMESPACE_INLINE_FUNCTION int recursive_mutex_lock (ACE_recursive_thread_mutex_t *m, const ACE_Time_Value *timeout)
ACE_NAMESPACE_INLINE_FUNCTION int recursive_mutex_trylock (ACE_recursive_thread_mutex_t *m)
ACE_NAMESPACE_INLINE_FUNCTION int recursive_mutex_unlock (ACE_recursive_thread_mutex_t *m)
ACE_NAMESPACE_INLINE_FUNCTION int rw_rdlock (ACE_rwlock_t *rw)
ACE_NAMESPACE_INLINE_FUNCTION int rw_tryrdlock (ACE_rwlock_t *rw)
ACE_NAMESPACE_INLINE_FUNCTION int rw_trywrlock (ACE_rwlock_t *rw)
ACE_NAMESPACE_INLINE_FUNCTION int rw_trywrlock_upgrade (ACE_rwlock_t *rw)
ACE_NAMESPACE_INLINE_FUNCTION int rw_unlock (ACE_rwlock_t *rw)
ACE_NAMESPACE_INLINE_FUNCTION int rw_wrlock (ACE_rwlock_t *rw)
ACE_NAMESPACE_INLINE_FUNCTION int rwlock_destroy (ACE_rwlock_t *rw)
ACE_Export int rwlock_init (ACE_rwlock_t *rw, int type=ACE_DEFAULT_SYNCH_TYPE, const ACE_TCHAR *name=0, void *arg=0)
ACE_NAMESPACE_INLINE_FUNCTION int sema_destroy (ACE_sema_t *s)
ACE_NAMESPACE_INLINE_FUNCTION int sema_init (ACE_sema_t *s, u_int count, int type=ACE_DEFAULT_SYNCH_TYPE, const char *name=0, void *arg=0, int max=0x7fffffff, LPSECURITY_ATTRIBUTES sa=0)
ACE_NAMESPACE_INLINE_FUNCTION int sema_init (ACE_sema_t *s, u_int count, int type, const wchar_t *name, void *arg=0, int max=0x7fffffff, LPSECURITY_ATTRIBUTES sa=0)
ACE_NAMESPACE_INLINE_FUNCTION int sema_post (ACE_sema_t *s)
ACE_NAMESPACE_INLINE_FUNCTION int sema_post (ACE_sema_t *s, u_int release_count)
ACE_NAMESPACE_INLINE_FUNCTION int sema_trywait (ACE_sema_t *s)
ACE_NAMESPACE_INLINE_FUNCTION int sema_wait (ACE_sema_t *s)
ACE_NAMESPACE_INLINE_FUNCTION int sema_wait (ACE_sema_t *s, ACE_Time_Value &tv)
ACE_NAMESPACE_INLINE_FUNCTION int sema_wait (ACE_sema_t *s, ACE_Time_Value *tv)
ACE_NAMESPACE_INLINE_FUNCTION int semctl (int int_id, int semnum, int cmd, semun)
ACE_NAMESPACE_INLINE_FUNCTION int semget (key_t key, int nsems, int flags)
ACE_NAMESPACE_INLINE_FUNCTION int semop (int int_id, struct sembuf *sops, size_t nsops)
ACE_NAMESPACE_INLINE_FUNCTION int thread_mutex_destroy (ACE_thread_mutex_t *m)
ACE_NAMESPACE_INLINE_FUNCTION int thread_mutex_init (ACE_thread_mutex_t *m, int lock_type=0, const char *name=0, ACE_mutexattr_t *arg=0)
ACE_NAMESPACE_INLINE_FUNCTION int thread_mutex_init (ACE_thread_mutex_t *m, int lock_type, const wchar_t *name, ACE_mutexattr_t *arg=0)
ACE_NAMESPACE_INLINE_FUNCTION int thread_mutex_lock (ACE_thread_mutex_t *m)
ACE_NAMESPACE_INLINE_FUNCTION int thread_mutex_lock (ACE_thread_mutex_t *m, const ACE_Time_Value &timeout)
ACE_NAMESPACE_INLINE_FUNCTION int thread_mutex_lock (ACE_thread_mutex_t *m, const ACE_Time_Value *timeout)
ACE_NAMESPACE_INLINE_FUNCTION int thread_mutex_trylock (ACE_thread_mutex_t *m)
ACE_NAMESPACE_INLINE_FUNCTION int thread_mutex_unlock (ACE_thread_mutex_t *m)
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
struct tm * 
localtime_r (const time_t *t, struct tm *res)
time_t mktime (struct tm *t)
ACE_NAMESPACE_INLINE_FUNCTION
char * 
asctime (const struct tm *tm)
ACE_NAMESPACE_INLINE_FUNCTION
char * 
asctime_r (const struct tm *tm, char *buf, int buflen)
ACE_NAMESPACE_INLINE_FUNCTION int clock_gettime (clockid_t, struct timespec *)
ACE_NAMESPACE_INLINE_FUNCTION int clock_settime (clockid_t, const struct timespec *)
ACE_NAMESPACE_INLINE_FUNCTION
ACE_TCHAR
ctime (const time_t *t)
ACE_NAMESPACE_INLINE_FUNCTION
ACE_TCHAR
ctime_r (const time_t *clock, ACE_TCHAR *buf, int buflen)
ACE_NAMESPACE_INLINE_FUNCTION
double 
difftime (time_t t1, time_t t0)
ACE_NAMESPACE_INLINE_FUNCTION
ACE_hrtime_t 
gethrtime (const ACE_HRTimer_Op=ACE_HRTIMER_GETTIME)
ACE_NAMESPACE_INLINE_FUNCTION
struct tm * 
gmtime (const time_t *clock)
ACE_NAMESPACE_INLINE_FUNCTION
struct tm * 
gmtime_r (const time_t *clock, struct tm *res)
ACE_NAMESPACE_INLINE_FUNCTION
struct tm * 
localtime (const time_t *clock)
ACE_NAMESPACE_INLINE_FUNCTION int nanosleep (const struct timespec *requested, struct timespec *remaining=0)
ACE_NAMESPACE_INLINE_FUNCTION
size_t 
strftime (char *s, size_t maxsize, const char *format, const struct tm *timeptr)
ACE_NAMESPACE_INLINE_FUNCTION
char * 
strptime (const char *buf, const char *format, struct tm *tm)
ACE_NAMESPACE_INLINE_FUNCTION
time_t 
time (time_t *tloc=0)
ACE_NAMESPACE_INLINE_FUNCTION long timezone (void)
ACE_NAMESPACE_INLINE_FUNCTION void tzset (void)
pid_t fork (const ACE_TCHAR *program_name)
pid_t fork_exec (ACE_TCHAR *argv[])
ACE_NAMESPACE_INLINE_FUNCTION pid_t fork (void)

Variables

ACE_Export ACE_TEXT_OSVERSIONINFO win32_versioninfo_
ACE_Export HINSTANCE win32_resource_module_
ACE_Export int socket_initialized_
 Keeps track of whether we've already initialized WinSock...
ACE_Export ACE_thread_t NULL_thread
ACE_Export ACE_hthread_t NULL_hthread
ACE_Export ACE_thread_key_t NULL_key


Detailed Description

This namespace defines an OS independent programming API that shields developers from nonportable aspects of writing efficient system programs on Win32, POSIX and other versions of UNIX, and various real-time operating systems.

This class is a wrapper for the XTI/TLI operations.

This namespace encapsulates the differences between various OS platforms. When porting ACE to a new platform, this class is the place to focus on. Once this file is ported to a new platform, pretty much everything else comes for "free." See <www.cs.wustl.edu/~schmidt/ACE_wrappers/etc/ACE-porting.html> for instructions on porting ACE. Please see the README file in this directory for complete information on the meaning of the various macros.


Typedef Documentation

typedef ACE_WCHAR_T ACE_OS::WChar


Enumeration Type Documentation

Enumerator:
ACE_HRTIMER_START 
ACE_HRTIMER_INCR 
ACE_HRTIMER_STOP 
ACE_HRTIMER_GETTIME 


Function Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE void ACE_OS::_exit ( int  status = 0  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE void ACE_OS::abort ( void   ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE ACE_HANDLE ACE_OS::accept ( ACE_HANDLE  handle,
struct sockaddr *  addr,
int *  addrlen 
)

BSD-style <accept> (no QoS).

ACE_Export ACE_HANDLE ACE_OS::accept ( ACE_HANDLE  handle,
struct sockaddr *  addr,
int *  addrlen,
const ACE_Accept_QoS_Params qos_params 
)

QoS-enabled <accept>, which passes qos_params to <accept>. If the OS platform doesn't support QoS-enabled <accept> then the qos_params are ignored and the BSD-style <accept> is called.

ACE_INLINE int ACE_OS::access ( const wchar_t *  path,
int  amode 
)

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE int ACE_OS::access ( const char *  path,
int  amode 
)

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE int ACE_OS::ace_isalnum ( ACE_TCHAR  c  ) 

Returns true if the character is an alphanumeric character.

ACE_INLINE int ACE_OS::ace_isalpha ( ACE_TCHAR  c  ) 

Returns true if the character is an alphabetic character.

ACE_INLINE int ACE_OS::ace_iscntrl ( ACE_TCHAR  c  ) 

Returns true if the character is a control character.

ACE_INLINE int ACE_OS::ace_isdigit ( ACE_TCHAR  c  ) 

Returns true if the character is a decimal-digit character.

ACE_INLINE int ACE_OS::ace_isgraph ( ACE_TCHAR  c  ) 

Returns true if the character is a printable character other than a space.

ACE_INLINE int ACE_OS::ace_islower ( ACE_TCHAR  c  ) 

Returns true if the character is a lowercase character.

ACE_INLINE int ACE_OS::ace_isprint ( ACE_TCHAR  c  ) 

Returns true if the character is a printable character.

ACE_INLINE int ACE_OS::ace_ispunct ( ACE_TCHAR  c  ) 

Returns true if the character is a punctuation character.

ACE_INLINE int ACE_OS::ace_isspace ( ACE_TCHAR  c  ) 

Returns true if the character is a space character.

ACE_INLINE int ACE_OS::ace_isupper ( ACE_TCHAR  c  ) 

Returns true if the character is an uppercase character.

ACE_INLINE int ACE_OS::ace_isxdigit ( ACE_TCHAR  c  ) 

Returns true if the character is a hexadecimal-digit character.

ACE_INLINE int ACE_OS::ace_tolower ( int  c  ) 

Converts a character to lower case (char version).

ACE_INLINE int ACE_OS::ace_toupper ( int  c  ) 

Converts a character to upper case (char version).

ACE_NAMESPACE_INLINE_FUNCTION wint_t ACE_OS::ace_towlower ( wint_t  c  ) 

Converts a character to lower case (wchar_t version).

ACE_NAMESPACE_INLINE_FUNCTION wint_t ACE_OS::ace_towupper ( wint_t  c  ) 

Converts a character to upper case (wchar_t version).

ACE_INLINE u_int ACE_OS::alarm ( u_int  secs  ) 

ACE_INLINE long ACE_OS::allocation_granularity ( void   ) 

ACE_INLINE int ACE_OS::alphasort ( const void *  a,
const void *  b 
)

ACE_Export int ACE_OS::argv_to_string ( int  argc,
ACE_TCHAR **  argv,
ACE_TCHAR *&  buf,
bool  substitute_env_args,
bool  quote_args 
)

ACE_Export int ACE_OS::argv_to_string ( ACE_TCHAR **  argv,
ACE_TCHAR *&  buf,
bool  substitute_env_args,
bool  quote_args 
)

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE char * ACE_OS::asctime ( const struct tm *  tm  ) 

ACE_INLINE char * ACE_OS::asctime_r ( const struct tm *  tm,
char *  buf,
int  buflen 
)

ACE_Export int ACE_OS::asprintf ( wchar_t **  bufp,
const wchar_t *  format,
  ... 
)

ACE_Export int ACE_OS::asprintf ( char **  bufp,
const char *  format,
  ... 
)

ACE_INLINE int ACE_OS::atexit ( ACE_EXIT_HOOK  func  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE int ACE_OS::atoi ( const wchar_t *  s  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE int ACE_OS::atoi ( const char *  s  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE void * ACE_OS::atop ( const wchar_t *  s  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE void * ACE_OS::atop ( const char *  s  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE int ACE_OS::bind ( ACE_HANDLE  s,
struct sockaddr *  name,
int  namelen 
)

BSD-style <accept> (no QoS).

ACE_INLINE void * ACE_OS::bsearch ( const void *  key,
const void *  base,
size_t  nel,
size_t  size,
ACE_COMPARE_FUNC  compar 
)

Function that is called by <ACE_OS::exit>, if non-null.

ACE_Export void * ACE_OS::calloc ( size_t  elements,
size_t  sizeof_elements 
)

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE double ACE_OS::ceil ( double  x  ) 

This method computes the smallest integral value not less than x.

ACE_INLINE int ACE_OS::chdir ( const wchar_t *  path  ) 

ACE_INLINE int ACE_OS::chdir ( const char *  path  ) 

ACE_Export void ACE_OS::cleanup_tss ( const u_int  main_thread  ) 

Call TSS destructors for the current thread. If the current thread is the main thread, then the argument must be 1. For private use of ACE_Object_Manager and ACE_Thread_Adapter only.

ACE_INLINE void ACE_OS::clearerr ( FILE *  fp  ) 

ACE_INLINE int ACE_OS::clock_gettime ( clockid_t  clockid,
struct timespec ts 
)

ACE_INLINE int ACE_OS::clock_settime ( clockid_t  clockid,
const struct timespec ts 
)

ACE_INLINE int ACE_OS::close ( ACE_HANDLE  handle  ) 

ACE_INLINE void ACE_OS::closedir ( ACE_DIR d  ) 

ACE_INLINE int ACE_OS::closesocket ( ACE_HANDLE  s  ) 

Takes care of windows specific requirement to call closesocket.

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE char * ACE_OS::compile ( const char *  instring,
char *  expbuf,
char *  endbuf 
)

ACE_INLINE int ACE_OS::cond_broadcast ( ACE_cond_t *  cv  ) 

ACE_INLINE int ACE_OS::cond_destroy ( ACE_cond_t *  cv  ) 

ACE_INLINE int ACE_OS::cond_init ( ACE_cond_t *  cv,
ACE_condattr_t &  attributes,
const wchar_t *  name,
void *  arg = 0 
)

ACE_INLINE int ACE_OS::cond_init ( ACE_cond_t *  cv,
short  type,
const wchar_t *  name,
void *  arg = 0 
)

ACE_INLINE int ACE_OS::cond_init ( ACE_cond_t *  cv,
ACE_condattr_t &  attributes,
const char *  name = 0,
void *  arg = 0 
)

ACE_Export int ACE_OS::cond_init ( ACE_cond_t *  cv,
short  type,
const char *  name,
void *  arg 
)

ACE_INLINE int ACE_OS::cond_signal ( ACE_cond_t *  cv  ) 

ACE_INLINE int ACE_OS::cond_timedwait ( ACE_cond_t *  cv,
ACE_mutex_t *  m,
ACE_Time_Value timeout 
)

ACE_INLINE int ACE_OS::cond_wait ( ACE_cond_t *  cv,
ACE_mutex_t *  m 
)

ACE_INLINE int ACE_OS::condattr_destroy ( ACE_condattr_t &  attributes  ) 

ACE_INLINE int ACE_OS::condattr_init ( ACE_condattr_t &  attributes,
int  type = ACE_DEFAULT_SYNCH_TYPE 
)

ACE_INLINE int ACE_OS::connect ( ACE_HANDLE  handle,
struct sockaddr *  addr,
int  addrlen 
)

BSD-style <connect> (no QoS).

ACE_Export int ACE_OS::connect ( ACE_HANDLE  handle,
const sockaddr *  addr,
int  addrlen,
const ACE_QoS_Params qos_params 
)

QoS-enabled <connect>, which passes qos_params to <connect>. If the OS platform doesn't support QoS-enabled <connect> then the qos_params are ignored and the BSD-style <connect> is called.

ACE_INLINE ACE_HANDLE ACE_OS::creat ( const ACE_TCHAR filename,
mode_t  mode 
)

ACE_INLINE ACE_TCHAR * ACE_OS::ctime ( const time_t *  t  ) 

ACE_INLINE ACE_TCHAR * ACE_OS::ctime_r ( const time_t *  clock,
ACE_TCHAR buf,
int  buflen 
)

ACE_INLINE wchar_t * ACE_OS::cuserid ( wchar_t *  user,
size_t  maxlen = ACE_MAX_USERID 
)

ACE_INLINE char * ACE_OS::cuserid ( char *  user,
size_t  maxlen = ACE_MAX_USERID 
)

ACE_NAMESPACE_INLINE_FUNCTION LPSECURITY_ATTRIBUTES ACE_OS::default_win32_security_attributes ( LPSECURITY_ATTRIBUTES   ) 

Default Win32 Security Attributes definition.

ACE_NAMESPACE_INLINE_FUNCTION LPSECURITY_ATTRIBUTES ACE_OS::default_win32_security_attributes_r ( LPSECURITY_ATTRIBUTES  ,
LPSECURITY_ATTRIBUTES  ,
SECURITY_DESCRIPTOR *   
)

ACE_INLINE double ACE_OS::difftime ( time_t  t1,
time_t  t0 
)

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE int ACE_OS::dlclose ( ACE_SHLIB_HANDLE  handle  ) 

ACE_INLINE ACE_TCHAR * ACE_OS::dlerror ( void   ) 

ACE_INLINE ACE_SHLIB_HANDLE ACE_OS::dlopen ( const ACE_TCHAR filename,
int  mode = ACE_DEFAULT_SHLIB_MODE 
)

ACE_INLINE void * ACE_OS::dlsym ( ACE_SHLIB_HANDLE  handle,
const ACE_TCHAR symbol 
)

ACE_INLINE ACE_HANDLE ACE_OS::dup ( ACE_HANDLE  handle  ) 

ACE_INLINE int ACE_OS::dup2 ( ACE_HANDLE  oldfd,
ACE_HANDLE  newfd 
)

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE void ACE_OS::endpwent ( void   ) 

ACE_INLINE int ACE_OS::enum_protocols ( int *  protocols,
ACE_Protocol_Info protocol_buffer,
u_long *  buffer_length 
)

Retrieve information about available transport protocols installed on the local machine. Windows specific...

ACE_Export int ACE_OS::event_destroy ( ACE_event_t *  event  ) 

ACE_INLINE int ACE_OS::event_init ( ACE_event_t *  event,
int  manual_reset,
int  initial_state,
int  type,
const wchar_t *  name,
void *  arg = 0,
LPSECURITY_ATTRIBUTES  sa = 0 
)

ACE_Export int ACE_OS::event_init ( ACE_event_t *  event,
int  manual_reset,
int  initial_state,
int  type,
const char *  name,
void *  arg,
LPSECURITY_ATTRIBUTES  sa 
)

ACE_Export int ACE_OS::event_pulse ( ACE_event_t *  event  ) 

ACE_Export int ACE_OS::event_reset ( ACE_event_t *  event  ) 

ACE_Export int ACE_OS::event_signal ( ACE_event_t *  event  ) 

ACE_Export int ACE_OS::event_timedwait ( ACE_event_t *  event,
ACE_Time_Value timeout,
int  use_absolute_time 
)

ACE_Export int ACE_OS::event_wait ( ACE_event_t *  event  ) 

ACE_Export int ACE_OS::execl ( const char *  ,
const char *  ,
  ... 
)

ACE_Export int ACE_OS::execle ( const char *  ,
const char *  ,
  ... 
)

ACE_Export int ACE_OS::execlp ( const char *  ,
const char *  ,
  ... 
)

ACE_INLINE int ACE_OS::execv ( const char *  path,
char *const   argv[] 
)

ACE_INLINE int ACE_OS::execve ( const char *  path,
char *const   argv[],
char *const   envp[] 
)

ACE_INLINE int ACE_OS::execvp ( const char *  file,
char *const   argv[] 
)

ACE_Export void ACE_OS::exit ( int  status  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE int ACE_OS::fattach ( int  handle,
const char *  path 
)

ACE_INLINE int ACE_OS::fclose ( FILE *  fp  ) 

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE int ACE_OS::fcntl ( ACE_HANDLE  handle,
int  cmd,
long  arg = 0 
)

ACE_INLINE int ACE_OS::fdetach ( const char *  file  ) 

ACE_INLINE FILE * ACE_OS::fdopen ( ACE_HANDLE  handle,
const ACE_TCHAR mode 
)

ACE_INLINE int ACE_OS::fflush ( FILE *  fp  ) 

ACE_INLINE int ACE_OS::fgetc ( FILE *  fp  ) 

ACE_INLINE int ACE_OS::fgetpos ( FILE *  fp,
fpos_t *  pos 
)

ACE_INLINE wchar_t * ACE_OS::fgets ( wchar_t *  buf,
int  size,
FILE *  fp 
)

ACE_INLINE char * ACE_OS::fgets ( char *  buf,
int  size,
FILE *  fp 
)

ACE_NAMESPACE_INLINE_FUNCTION wint_t ACE_OS::fgetwc ( FILE *  fp  ) 

ACE_INLINE ACE_OFF_T ACE_OS::filesize ( const ACE_TCHAR handle  ) 

ACE_INLINE ACE_OFF_T ACE_OS::filesize ( ACE_HANDLE  handle  ) 

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE void ACE_OS::flock_adjust_params ( ACE_OS::ace_flock_t lock,
short  whence,
ACE_OFF_T start,
ACE_OFF_T len 
)

ACE_INLINE int ACE_OS::flock_destroy ( ACE_OS::ace_flock_t lock,
int  unlink_file = 1 
)

ACE_INLINE int ACE_OS::flock_init ( ACE_OS::ace_flock_t lock,
int  flags = 0,
const ACE_TCHAR name = 0,
mode_t  perms = 0 
)

ACE_INLINE int ACE_OS::flock_rdlock ( ACE_OS::ace_flock_t lock,
short  whence = 0,
ACE_OFF_T  start = 0,
ACE_OFF_T  len = 0 
)

ACE_INLINE int ACE_OS::flock_tryrdlock ( ACE_OS::ace_flock_t lock,
short  whence = 0,
ACE_OFF_T  start = 0,
ACE_OFF_T  len = 0 
)

ACE_INLINE int ACE_OS::flock_trywrlock ( ACE_OS::ace_flock_t lock,
short  whence = 0,
ACE_OFF_T  start = 0,
ACE_OFF_T  len = 0 
)

ACE_INLINE int ACE_OS::flock_unlock ( ACE_OS::ace_flock_t lock,
short  whence = 0,
ACE_OFF_T  start = 0,
ACE_OFF_T  len = 0 
)

ACE_INLINE int ACE_OS::flock_wrlock ( ACE_OS::ace_flock_t lock,
short  whence = 0,
ACE_OFF_T  start = 0,
ACE_OFF_T  len = 0 
)

ACE_INLINE double ACE_OS::floor ( double  x  ) 

This method computes the largest integral value not greater than x.

ACE_Export FILE * ACE_OS::fopen ( const wchar_t *  filename,
const ACE_TCHAR mode 
)

ACE_Export FILE * ACE_OS::fopen ( const char *  filename,
const ACE_TCHAR mode 
)

ACE_INLINE pid_t ACE_OS::fork ( void   ) 

Forks and exec's a process in a manner that works on Solaris and NT. argv[0] must be the full path name to the executable.

ACE_Export pid_t ACE_OS::fork ( const ACE_TCHAR program_name  ) 

Forks and exec's a process in a manner that works on Solaris and NT. argv[0] must be the full path name to the executable.

ACE_Export pid_t ACE_OS::fork_exec ( ACE_TCHAR argv[]  ) 

Forks and exec's a process in a manner that works on Solaris and NT. argv[0] must be the full path name to the executable.

ACE_Export int ACE_OS::fprintf ( FILE *  fp,
const wchar_t *  format,
  ... 
)

ACE_Export int ACE_OS::fprintf ( FILE *  fp,
const char *  format,
  ... 
)

ACE_INLINE int ACE_OS::fputc ( int  c,
FILE *  fp 
)

ACE_INLINE int ACE_OS::fputs ( const wchar_t *  s,
FILE *  stream 
)

ACE_INLINE int ACE_OS::fputs ( const char *  s,
FILE *  stream 
)

ACE_INLINE size_t ACE_OS::fread ( void *  ptr,
size_t  size,
size_t  nelems,
FILE *  fp 
)

ACE_Export void ACE_OS::free ( void *  ptr  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE FILE * ACE_OS::freopen ( const ACE_TCHAR filename,
const ACE_TCHAR mode,
FILE *  stream 
)

ACE_INLINE int ACE_OS::fseek ( FILE *  fp,
long  offset,
int  ptrname 
)

ACE_INLINE int ACE_OS::fsetpos ( FILE *  fp,
fpos_t *  pos 
)

ACE_INLINE int ACE_OS::fstat ( ACE_HANDLE  handle,
ACE_stat stp 
)

ACE_INLINE int ACE_OS::fsync ( ACE_HANDLE  handle  ) 

ACE_INLINE long ACE_OS::ftell ( FILE *  fp  ) 

ACE_INLINE int ACE_OS::ftruncate ( ACE_HANDLE  handle,
ACE_OFF_T  offset 
)

ACE_INLINE size_t ACE_OS::fwrite ( const void *  ptr,
size_t  size,
size_t  nitems,
FILE *  fp 
)

ACE_NAMESPACE_INLINE_FUNCTION HINSTANCE ACE_OS::get_win32_resource_module ( void   ) 

Return the handle of the module containing ACE's resources. By default, for a DLL build of ACE this is a handle to the ACE DLL itself, and for a static build it is a handle to the executable.

ACE_NAMESPACE_INLINE_FUNCTION const ACE_TEXT_OSVERSIONINFO& ACE_OS::get_win32_versioninfo ( void   ) 

Return the win32 OSVERSIONINFO structure.

ACE_INLINE int ACE_OS::getc ( FILE *  fp  ) 

ACE_INLINE wchar_t * ACE_OS::getcwd ( wchar_t *  buf,
size_t  size 
)

ACE_INLINE char * ACE_OS::getcwd ( char *  buf,
size_t  size 
)

ACE_INLINE gid_t ACE_OS::getegid ( void   ) 

ACE_INLINE wchar_t * ACE_OS::getenv ( const wchar_t *  symbol  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE char * ACE_OS::getenv ( const char *  symbol  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_Export ACE_TCHAR * ACE_OS::getenvstrings ( void   ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE uid_t ACE_OS::geteuid ( void   ) 

ACE_INLINE gid_t ACE_OS::getgid ( void   ) 

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE struct hostent * ACE_OS::gethostbyaddr ( const char *  addr,
int  length,
int  type 
) [read]

ACE_INLINE struct hostent * ACE_OS::gethostbyaddr_r ( const char *  addr,
int  length,
int  type,
struct hostent *  result,
ACE_HOSTENT_DATA  buffer,
int *  h_errnop 
) [read]

ACE_INLINE struct hostent * ACE_OS::gethostbyname ( const char *  name  )  [read]

ACE_INLINE struct hostent * ACE_OS::gethostbyname_r ( const char *  name,
struct hostent *  result,
ACE_HOSTENT_DATA  buffer,
int *  h_errnop 
) [read]

ACE_INLINE ACE_hrtime_t ACE_OS::gethrtime ( const   ACE_HRTimer_Op = ACE_HRTIMER_GETTIME  ) 

ACE_INLINE struct hostent * ACE_OS::getipnodebyaddr ( const void *  src,
size_t  len,
int  family 
) [read]

ACE_INLINE struct hostent * ACE_OS::getipnodebyname ( const char *  name,
int  family,
int  flags = 0 
) [read]

ACE_Export int ACE_OS::getmacaddress ( struct macaddr_node_t *  node  ) 

ACE_INLINE int ACE_OS::getmsg ( ACE_HANDLE  handle,
struct strbuf ctl,
struct strbuf data,
int *  flags 
)

ACE_INLINE int ACE_OS::getopt ( int  argc,
char *const *  argv,
const char *  optstring 
)

ACE_INLINE long ACE_OS::getpagesize ( void   ) 

ACE_INLINE int ACE_OS::getpeername ( ACE_HANDLE  handle,
struct sockaddr *  addr,
int *  addrlen 
)

BSD-style <accept> (no QoS).

ACE_INLINE pid_t ACE_OS::getpgid ( pid_t  pid  ) 

ACE_INLINE pid_t ACE_OS::getpid ( void   ) 

ACE_INLINE int ACE_OS::getpmsg ( ACE_HANDLE  handle,
struct strbuf ctl,
struct strbuf data,
int *  band,
int *  flags 
)

ACE_INLINE pid_t ACE_OS::getppid ( void   ) 

ACE_INLINE const char * ACE_OS::getprogname (  ) 

Get the name of the current program

Originally from NetBSD, now found in *BSD, Cygwin, Darwin, etc.

ACE_Export const char * ACE_OS::getprogname_emulation (  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE struct protoent * ACE_OS::getprotobyname ( const char *  name  )  [read]

ACE_INLINE struct protoent * ACE_OS::getprotobyname_r ( const char *  name,
struct protoent *  result,
ACE_PROTOENT_DATA  buffer 
) [read]

ACE_INLINE struct protoent * ACE_OS::getprotobynumber ( int  proto  )  [read]

ACE_INLINE struct protoent * ACE_OS::getprotobynumber_r ( int  proto,
struct protoent *  result,
ACE_PROTOENT_DATA  buffer 
) [read]

ACE_INLINE struct passwd * ACE_OS::getpwent ( void   )  [read]

ACE_INLINE struct passwd * ACE_OS::getpwnam ( const char *  user  )  [read]

ACE_INLINE struct passwd * ACE_OS::getpwnam_r ( const char *  name,
struct passwd *  pwent,
char *  buffer,
int  buflen 
) [read]

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE int ACE_OS::getrlimit ( int  resource,
struct rlimit *  rl 
)

ACE_INLINE int ACE_OS::getrusage ( int  who,
struct rusage rusage 
)

ACE_INLINE struct servent * ACE_OS::getservbyname ( const char *  svc,
const char *  proto 
) [read]

ACE_INLINE struct servent * ACE_OS::getservbyname_r ( const char *  svc,
const char *  proto,
struct servent *  result,
ACE_SERVENT_DATA  buf 
) [read]

ACE_INLINE int ACE_OS::getsockname ( ACE_HANDLE  handle,
struct sockaddr *  addr,
int *  addrlen 
)

BSD-style <accept> (no QoS).

ACE_INLINE int ACE_OS::getsockopt ( ACE_HANDLE  handle,
int  level,
int  optname,
char *  optval,
int *  optlen 
)

BSD-style <accept> (no QoS).

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ACE_Time_Value ACE_OS::gettimeofday ( void   ) 

ACE_INLINE uid_t ACE_OS::getuid ( void   ) 

ACE_INLINE struct tm * ACE_OS::gmtime ( const time_t *  clock  )  [read]

ACE_INLINE struct tm * ACE_OS::gmtime_r ( const time_t *  clock,
struct tm *  res 
) [read]

ACE_INLINE int ACE_OS::hostname ( wchar_t  name[],
size_t  maxnamelen 
)

ACE_INLINE int ACE_OS::hostname ( char  name[],
size_t  maxnamelen 
)

ACE_NAMESPACE_INLINE_FUNCTION int ACE_OS::hostname ( wchar_t *  name,
size_t  maxnamelen 
)

ACE_NAMESPACE_INLINE_FUNCTION int ACE_OS::hostname ( char *  name,
size_t  maxnamelen 
)

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE unsigned long ACE_OS::inet_addr ( const char *  name  ) 

ACE_Export int ACE_OS::inet_aton ( const char *  host_name,
struct in_addr *  addr 
)

ACE_INLINE char * ACE_OS::inet_ntoa ( const struct in_addr  addr  ) 

ACE_INLINE const char * ACE_OS::inet_ntop ( int  family,
const void *  addrptr,
char *  strptr,
size_t  len 
)

ACE_INLINE int ACE_OS::inet_pton ( int  family,
const char *  strptr,
void *  addrptr 
)

ACE_INLINE int ACE_OS::ioctl ( ACE_HANDLE  handle,
ACE_IOCTL_TYPE_ARG2  cmd,
void *  val = 0 
)

UNIX-style <ioctl>.

ACE_Export int ACE_OS::ioctl ( ACE_HANDLE  socket,
unsigned long  io_control_code,
ACE_QoS ace_qos,
unsigned long *  bytes_returned,
void *  buffer_p = 0,
unsigned long  buffer = 0,
ACE_OVERLAPPED overlapped = 0,
ACE_OVERLAPPED_COMPLETION_FUNC  func = 0 
)

QoS-enabled <ioctl> when the I/O control code is either SIO_SET_QOS or SIO_GET_QOS.

ACE_Export int ACE_OS::ioctl ( ACE_HANDLE  socket,
unsigned long  io_control_code,
void *  in_buffer_p,
unsigned long  in_buffer,
void *  out_buffer_p,
unsigned long  out_buffer,
unsigned long *  bytes_returned,
ACE_OVERLAPPED overlapped,
ACE_OVERLAPPED_COMPLETION_FUNC  func 
)

QoS-enabled <ioctl>.

ACE_INLINE int ACE_OS::isastream ( ACE_HANDLE  handle  ) 

ACE_INLINE int ACE_OS::isatty ( ACE_HANDLE  handle  ) 

ACE_INLINE int ACE_OS::isatty ( int  handle  ) 

ACE_INLINE wchar_t * ACE_OS::itoa ( int  value,
wchar_t *  string,
int  radix 
)

Converts an integer to a string.

ACE_INLINE char * ACE_OS::itoa ( int  value,
char *  string,
int  radix 
)

Converts an integer to a string.

ACE_Export char * ACE_OS::itoa_emulation ( int  value,
char *  string,
int  radix 
)

Emulated itoa - Converts an integer to a string.

ACE_Export wchar_t * ACE_OS::itow_emulation ( int  value,
wchar_t *  string,
int  radix 
)

Emulated itow - Converts an integer to a string.

ACE_Export ACE_HANDLE ACE_OS::join_leaf ( ACE_HANDLE  socket,
const sockaddr *  name,
int  namelen,
const ACE_QoS_Params qos_params 
)

Joins a leaf node into a QoS-enabled multi-point session.

ACE_INLINE int ACE_OS::kill ( pid_t  pid,
int  signum 
)

ACE_INLINE void ACE_OS::last_error ( int  error  ) 

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE int ACE_OS::last_error ( void   ) 

ACE_INLINE int ACE_OS::listen ( ACE_HANDLE  handle,
int  backlog 
)

BSD-style <accept> (no QoS).

ACE_INLINE struct tm * ACE_OS::localtime ( const time_t *  clock  )  [read]

ACE_Export struct tm * ACE_OS::localtime_r ( const time_t *  t,
struct tm *  res 
) [read]

ACE_INLINE double ACE_OS::log2 ( double  x  ) 

This method computes the base-2 logarithm of x.

ACE_INLINE ACE_OFF_T ACE_OS::lseek ( ACE_HANDLE  handle,
ACE_OFF_T  offset,
int  whence 
)

ACE_INLINE int ACE_OS::lstat ( const wchar_t *  file,
ACE_stat stp 
)

ACE_INLINE int ACE_OS::lstat ( const char *  file,
ACE_stat stp 
)

ACE_Export int ACE_OS::lwp_getparams ( ACE_Sched_Params sched_params  ) 

ACE_Export int ACE_OS::lwp_setparams ( const ACE_Sched_Params sched_params  ) 

ACE_INLINE int ACE_OS::madvise ( caddr_t  addr,
size_t  len,
int  map_advice 
)

ACE_Export void * ACE_OS::malloc ( size_t  nbytes  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE void * ACE_OS::memchr ( void *  s,
int  c,
size_t  len 
)

Finds characters in a buffer (void version).

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE const void * ACE_OS::memchr ( const void *  s,
int  c,
size_t  len 
)

Finds characters in a buffer (const void version).

ACE_INLINE int ACE_OS::memcmp ( const void *  t,
const void *  s,
size_t  len 
)

Compares two buffers.

ACE_INLINE void * ACE_OS::memcpy ( void *  t,
const void *  s,
size_t  len 
)

Copies one buffer to another.

ACE_INLINE void * ACE_OS::memmove ( void *  t,
const void *  s,
size_t  len 
)

Moves one buffer to another.

ACE_INLINE void * ACE_OS::memset ( void *  s,
int  c,
size_t  len 
)

Fills a buffer with a character value.

ACE_INLINE int ACE_OS::mkdir ( const wchar_t *  path,
mode_t  mode = ACE_DEFAULT_DIR_PERMS 
)

ACE_INLINE int ACE_OS::mkdir ( const char *  path,
mode_t  mode = ACE_DEFAULT_DIR_PERMS 
)

ACE_INLINE int ACE_OS::mkfifo ( const ACE_TCHAR file,
mode_t  mode = ACE_DEFAULT_FILE_PERMS 
)

ACE_INLINE ACE_HANDLE ACE_OS::mkstemp ( wchar_t *  s  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE ACE_HANDLE ACE_OS::mkstemp ( char *  s  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE wchar_t * ACE_OS::mktemp ( wchar_t *  s  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE char * ACE_OS::mktemp ( char *  s  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_Export time_t ACE_OS::mktime ( struct tm *  t  ) 

ACE_INLINE void * ACE_OS::mmap ( void *  addr,
size_t  len,
int  prot,
int  flags,
ACE_HANDLE  handle,
ACE_OFF_T  off = 0,
ACE_HANDLE *  file_mapping = 0,
LPSECURITY_ATTRIBUTES  sa = 0,
const ACE_TCHAR file_mapping_name = 0 
)

ACE_INLINE int ACE_OS::mprotect ( void *  addr,
size_t  len,
int  prot 
)

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE int ACE_OS::msgctl ( int  msqid,
int  cmd,
struct msqid_ds *  val 
)

ACE_INLINE int ACE_OS::msgget ( key_t  key,
int  msgflg 
)

ACE_INLINE ssize_t ACE_OS::msgrcv ( int  int_id,
void *  buf,
size_t  len,
long  type,
int  flags 
)

ACE_INLINE int ACE_OS::msgsnd ( int  int_id,
const void *  buf,
size_t  len,
int  flags 
)

ACE_INLINE int ACE_OS::msync ( void *  addr,
size_t  len,
int  sync 
)

ACE_INLINE int ACE_OS::munmap ( void *  addr,
size_t  len 
)

ACE_Export int ACE_OS::mutex_destroy ( ACE_mutex_t *  m  ) 

ACE_Export int ACE_OS::mutex_init ( ACE_mutex_t *  m,
int  lock_scope,
const wchar_t *  name,
ACE_mutexattr_t *  attributes,
LPSECURITY_ATTRIBUTES  sa,
int  lock_type 
)

ACE_Export int ACE_OS::mutex_init ( ACE_mutex_t *  m,
int  lock_scope,
const char *  name,
ACE_mutexattr_t *  attributes,
LPSECURITY_ATTRIBUTES  sa,
int  lock_type 
)

ACE_INLINE int ACE_OS::mutex_lock ( ACE_mutex_t *  m,
const ACE_Time_Value timeout 
)

If <timeout> == 0, calls <ACE_OS::mutex_lock(m)>. Otherwise, this method attempts to acquire a lock, but gives up if the lock has not been acquired by the given time, in which case it returns -1 with an ETIME errno on platforms that actually support timed mutexes. The timeout should be an absolute time. Note that the mutex should not be a recursive one, i.e., it should only be a standard mutex or an error checking mutex since some implementations of this method don't support recursive mutexes. If you want to use a recursive mutex see the methods below.

ACE_Export int ACE_OS::mutex_lock ( ACE_mutex_t *  m,
const ACE_Time_Value timeout 
)

This method attempts to acquire a lock, but gives up if the lock has not been acquired by the given time. If the lock is not acquired within the given amount of time, then this method returns -1 with an ETIME errno on platforms that actually support timed mutexes. The timeout should be an absolute time. Note that the mutex should not be a recursive one, i.e., it should only be a standard mutex or an error checking mutex since some implementations of this method don't support recursive mutexes. If you want to use a recursive mutex see the methods below.

ACE_Export int ACE_OS::mutex_lock ( ACE_mutex_t *  m,
int &  abandoned 
)

This method is only implemented for Win32. For abandoned mutexes, abandoned is set to 1 and 0 is returned.

ACE_Export int ACE_OS::mutex_lock ( ACE_mutex_t *  m  ) 

Win32 note: Abandoned mutexes are not treated differently. 0 is returned since the calling thread does get the ownership.

ACE_Export void ACE_OS::mutex_lock_cleanup ( void *  mutex  ) 

Handle asynchronous thread cancellation cleanup.

ACE_Export int ACE_OS::mutex_trylock ( ACE_mutex_t *  m,
int &  abandoned 
)

This method is only implemented for Win32. For abandoned mutexes, <abandoned> is set to 1 and 0 is returned.

ACE_Export int ACE_OS::mutex_trylock ( ACE_mutex_t *  m  ) 

Win32 note: Abandoned mutexes are not treated differently. 0 is returned since the calling thread does get the ownership.

ACE_Export int ACE_OS::mutex_unlock ( ACE_mutex_t *  m  ) 

ACE_INLINE int ACE_OS::nanosleep ( const struct timespec requested,
struct timespec remaining = 0 
)

ACE_Export long ACE_OS::num_processors ( void   ) 

Get the number of CPUs configured in the machine.

ACE_Export long ACE_OS::num_processors_online ( void   ) 

Get the number of CPUs currently online.

ACE_Export ACE_HANDLE ACE_OS::open ( const wchar_t *  filename,
int  mode,
mode_t  perms,
LPSECURITY_ATTRIBUTES  sa 
)

ACE_Export ACE_HANDLE ACE_OS::open ( const char *  filename,
int  mode,
mode_t  perms = ACE_DEFAULT_OPEN_PERMS,
LPSECURITY_ATTRIBUTES  sa = 0 
)

The O_APPEND flag is only partly supported on Win32. If you specify O_APPEND, then the file pointer will be positioned at the end of the file initially during open, but it is not re-positioned at the end prior to each write, as specified by POSIX. This is generally good enough for typical situations, but it is ``not quite right'' in its semantics.

ACE_INLINE ACE_DIR * ACE_OS::opendir ( const ACE_TCHAR filename  ) 

ACE_INLINE void ACE_OS::perror ( const wchar_t *  s  ) 

ACE_INLINE void ACE_OS::perror ( const char *  s  ) 

ACE_INLINE int ACE_OS::pipe ( ACE_HANDLE  handles[]  ) 

ACE_INLINE int ACE_OS::poll ( struct pollfd *  pollfds,
unsigned long  len,
const ACE_Time_Value tv 
)

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE int ACE_OS::poll ( struct pollfd *  pollfds,
unsigned long  len,
const ACE_Time_Value tv = 0 
)

ACE_Export ssize_t ACE_OS::pread ( ACE_HANDLE  handle,
void *  buf,
size_t  nbytes,
ACE_OFF_T  offset 
)

ACE_Export int ACE_OS::printf ( const wchar_t *  format,
  ... 
)

ACE_Export int ACE_OS::printf ( const char *  format,
  ... 
)

ACE_INLINE long ACE_OS::priority_control ( ACE_idtype_t  idtype,
ACE_id_t  identifier,
int  cmd,
void *  arg 
)

Low-level interface to <priocntl>(2).

Can't call the following priocntl, because that's a macro on Solaris.

ACE_INLINE int ACE_OS::pthread_sigmask ( int  how,
const sigset_t *  nsp,
sigset_t *  osp 
)

ACE_INLINE int ACE_OS::putc ( int  c,
FILE *  fp 
)

ACE_INLINE int ACE_OS::putenv ( const wchar_t *  string  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE int ACE_OS::putenv ( const char *  string  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE int ACE_OS::putmsg ( ACE_HANDLE  handle,
const struct strbuf ctl,
const struct strbuf data,
int  flags 
)

ACE_INLINE int ACE_OS::putpmsg ( ACE_HANDLE  handle,
const struct strbuf ctl,
const struct strbuf data,
int  band,
int  flags 
)

ACE_INLINE int ACE_OS::puts ( const wchar_t *  s  ) 

ACE_INLINE int ACE_OS::puts ( const char *  s  ) 

ACE_Export ssize_t ACE_OS::pwrite ( ACE_HANDLE  handle,
const void *  buf,
size_t  nbytes,
ACE_OFF_T  offset 
)

ACE_INLINE void ACE_OS::qsort ( void *  base,
size_t  nel,
size_t  width,
ACE_COMPARE_FUNC  compar 
)

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE int ACE_OS::rand ( void   ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE int ACE_OS::rand_r ( ACE_RANDR_TYPE seed  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE ssize_t ACE_OS::read ( ACE_HANDLE  handle,
void *  buf,
size_t  len,
ACE_OVERLAPPED overlapped 
)

ACE_INLINE ssize_t ACE_OS::read ( ACE_HANDLE  handle,
void *  buf,
size_t  len 
)

ACE_Export ssize_t ACE_OS::read_n ( ACE_HANDLE  handle,
void *  buf,
size_t  len,
size_t *  bytes_transferred = 0 
)

Receive len bytes into buf from <handle> (uses the <ACE_OS::read> call, which uses the <read> system call on UNIX and the <ReadFile> call on Win32). If errors occur, -1 is returned. If EOF occurs, 0 is returned. Whatever data has been read will be returned to the caller through<bytes_transferred>.

ACE_INLINE struct ACE_DIRENT * ACE_OS::readdir ( ACE_DIR d  )  [read]

ACE_INLINE int ACE_OS::readdir_r ( ACE_DIR dirp,
struct ACE_DIRENT *  entry,
struct ACE_DIRENT **  result 
)

ACE_INLINE ssize_t ACE_OS::readlink ( const char *  path,
char *  buf,
size_t  bufsiz 
)

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ssize_t ACE_OS::readv ( ACE_HANDLE  handle,
const iovec *  iov,
int  iovlen 
)

ACE_Export void * ACE_OS::realloc ( void *  ptr,
size_t  nbytes 
)

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE wchar_t * ACE_OS::realpath ( const wchar_t *  file_name,
wchar_t *  resolved_name 
)

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE char * ACE_OS::realpath ( const char *  file_name,
char *  resolved_name 
)

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE void ACE_OS::recursive_mutex_cond_relock ( ACE_recursive_thread_mutex_t m,
ACE_recursive_mutex_state state 
)

ACE_INLINE int ACE_OS::recursive_mutex_cond_unlock ( ACE_recursive_thread_mutex_t m,
ACE_recursive_mutex_state state 
)

ACE_INLINE int ACE_OS::recursive_mutex_destroy ( ACE_recursive_thread_mutex_t m  ) 

ACE_INLINE int ACE_OS::recursive_mutex_init ( ACE_recursive_thread_mutex_t m,
const ACE_TCHAR name = 0,
ACE_mutexattr_t *  arg = 0,
LPSECURITY_ATTRIBUTES  sa = 0 
)

ACE_INLINE int ACE_OS::recursive_mutex_lock ( ACE_recursive_thread_mutex_t m,
const ACE_Time_Value timeout 
)

ACE_INLINE int ACE_OS::recursive_mutex_lock ( ACE_recursive_thread_mutex_t m,
const ACE_Time_Value timeout 
)

ACE_INLINE int ACE_OS::recursive_mutex_lock ( ACE_recursive_thread_mutex_t m  ) 

ACE_INLINE int ACE_OS::recursive_mutex_trylock ( ACE_recursive_thread_mutex_t m  ) 

ACE_INLINE int ACE_OS::recursive_mutex_unlock ( ACE_recursive_thread_mutex_t m  ) 

ACE_INLINE ssize_t ACE_OS::recv ( ACE_HANDLE  handle,
char *  buf,
size_t  len,
int  flags = 0 
)

BSD-style <accept> (no QoS).

ACE_INLINE ssize_t ACE_OS::recvfrom ( ACE_HANDLE  handle,
iovec *  buffers,
int  buffer_count,
size_t &  number_of_bytes_recvd,
int &  flags,
struct sockaddr *  addr,
int *  addrlen,
ACE_OVERLAPPED overlapped,
ACE_OVERLAPPED_COMPLETION_FUNC  func 
)

BSD-style <accept> (no QoS).

ACE_INLINE ssize_t ACE_OS::recvfrom ( ACE_HANDLE  handle,
char *  buf,
size_t  len,
int  flags,
struct sockaddr *  addr,
int *  addrlen 
)

BSD-style <accept> (no QoS).

ACE_INLINE ssize_t ACE_OS::recvmsg ( ACE_HANDLE  handle,
struct msghdr msg,
int  flags 
)

BSD-style <accept> (no QoS).

ACE_INLINE ssize_t ACE_OS::recvv ( ACE_HANDLE  handle,
iovec *  iov,
int  iovlen 
)

BSD-style <accept> (no QoS).

ACE_INLINE int ACE_OS::rename ( const wchar_t *  old_name,
const wchar_t *  new_name,
int  flags = -1 
)

ACE_INLINE int ACE_OS::rename ( const char *  old_name,
const char *  new_name,
int  flags = -1 
)

ACE_INLINE void ACE_OS::rewind ( FILE *  fp  ) 

ACE_INLINE void ACE_OS::rewinddir ( ACE_DIR d  ) 

ACE_INLINE int ACE_OS::rmdir ( const wchar_t *  path  ) 

ACE_INLINE int ACE_OS::rmdir ( const char *  path  ) 

ACE_INLINE int ACE_OS::rw_rdlock ( ACE_rwlock_t *  rw  ) 

ACE_INLINE int ACE_OS::rw_tryrdlock ( ACE_rwlock_t *  rw  ) 

ACE_INLINE int ACE_OS::rw_trywrlock ( ACE_rwlock_t *  rw  ) 

ACE_INLINE int ACE_OS::rw_trywrlock_upgrade ( ACE_rwlock_t *  rw  ) 

ACE_INLINE int ACE_OS::rw_unlock ( ACE_rwlock_t *  rw  ) 

ACE_INLINE int ACE_OS::rw_wrlock ( ACE_rwlock_t *  rw  ) 

ACE_INLINE int ACE_OS::rwlock_destroy ( ACE_rwlock_t *  rw  ) 

ACE_INLINE int ACE_OS::rwlock_init ( ACE_rwlock_t *  rw,
int  type = ACE_DEFAULT_SYNCH_TYPE,
const ACE_TCHAR name = 0,
void *  arg = 0 
)

ACE_INLINE void * ACE_OS::sbrk ( intptr_t  brk  ) 

ACE_INLINE int ACE_OS::scandir ( const ACE_TCHAR dirname,
struct ACE_DIRENT **  namelist[],
ACE_SCANDIR_SELECTOR  selector,
ACE_SCANDIR_COMPARATOR  comparator 
)

ACE_Export int ACE_OS::scandir_emulation ( const ACE_TCHAR dirname,
ACE_DIRENT **  namelist[],
ACE_SCANDIR_SELECTOR  selector,
ACE_SCANDIR_COMPARATOR  comparator 
)

ACE_Export int ACE_OS::sched_params ( const ACE_Sched_Params ,
ACE_id_t  id = ACE_SELF 
)

Set scheduling parameters. An id of ACE_SELF indicates, e.g., set the parameters on the calling thread.

ACE_Export int ACE_OS::scheduling_class ( const char *  class_name,
ACE_id_t id 
)

Find the schedling class ID that corresponds to the class name.

ACE_INLINE void ACE_OS::seekdir ( ACE_DIR d,
long  loc 
)

ACE_INLINE int ACE_OS::select ( int  width,
fd_set *  rfds,
fd_set *  wfds,
fd_set *  efds,
const ACE_Time_Value tv 
)

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE int ACE_OS::select ( int  width,
fd_set *  rfds,
fd_set *  wfds = 0,
fd_set *  efds = 0,
const ACE_Time_Value tv = 0 
)

ACE_INLINE int ACE_OS::sema_destroy ( ACE_sema_t *  s  ) 

ACE_INLINE int ACE_OS::sema_init ( ACE_sema_t *  s,
u_int  count,
int  type,
const wchar_t *  name,
void *  arg = 0,
int  max = 0x7fffffff,
LPSECURITY_ATTRIBUTES  sa = 0 
)

ACE_INLINE int ACE_OS::sema_init ( ACE_sema_t *  s,
u_int  count,
int  type = ACE_DEFAULT_SYNCH_TYPE,
const char *  name = 0,
void *  arg = 0,
int  max = 0x7fffffff,
LPSECURITY_ATTRIBUTES  sa = 0 
)

ACE_INLINE int ACE_OS::sema_post ( ACE_sema_t *  s,
u_int  release_count 
)

ACE_INLINE int ACE_OS::sema_post ( ACE_sema_t *  s  ) 

ACE_INLINE int ACE_OS::sema_trywait ( ACE_sema_t *  s  ) 

ACE_INLINE int ACE_OS::sema_wait ( ACE_sema_t *  s,
ACE_Time_Value tv 
)

ACE_INLINE int ACE_OS::sema_wait ( ACE_sema_t *  s,
ACE_Time_Value tv 
)

ACE_INLINE int ACE_OS::sema_wait ( ACE_sema_t *  s  ) 

ACE_INLINE int ACE_OS::semctl ( int  int_id,
int  semnum,
int  cmd,
semun  value 
)

ACE_INLINE int ACE_OS::semget ( key_t  key,
int  nsems,
int  flags 
)

ACE_INLINE int ACE_OS::semop ( int  int_id,
struct sembuf *  sops,
size_t  nsops 
)

ACE_INLINE ssize_t ACE_OS::send ( ACE_HANDLE  handle,
const char *  buf,
size_t  len,
int  flags = 0 
)

BSD-style <accept> (no QoS).

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE ssize_t ACE_OS::sendfile ( ACE_HANDLE  out_fd,
ACE_HANDLE  in_fd,
off_t *  offset,
size_t  count 
)

Finds the length of a string (char version).

ACE_Export ssize_t ACE_OS::sendfile_emulation ( ACE_HANDLE  out_fd,
ACE_HANDLE  in_fd,
off_t *  offset,
size_t  count 
)

ACE_INLINE ssize_t ACE_OS::sendmsg ( ACE_HANDLE  handle,
const struct msghdr msg,
int  flags 
)

BSD-style <accept> (no QoS).

ACE_INLINE ssize_t ACE_OS::sendto ( ACE_HANDLE  handle,
const iovec *  buffers,
int  buffer_count,
size_t &  number_of_bytes_sent,
int  flags,
const struct sockaddr *  addr,
int  addrlen,
ACE_OVERLAPPED overlapped,
ACE_OVERLAPPED_COMPLETION_FUNC  func 
)

BSD-style <accept> (no QoS).

ACE_INLINE ssize_t ACE_OS::sendto ( ACE_HANDLE  handle,
const char *  buf,
size_t  len,
int  flags,
const struct sockaddr *  addr,
int  addrlen 
)

BSD-style <accept> (no QoS).

ACE_INLINE ssize_t ACE_OS::sendv ( ACE_HANDLE  handle,
const iovec *  iov,
int  iovcnt 
)

BSD-style <accept> (no QoS).

ACE_INLINE int ACE_OS::set_errno_to_last_error ( void   ) 

ACE_INLINE int ACE_OS::set_errno_to_wsa_last_error ( void   ) 

ACE_INLINE ACE_EXIT_HOOK ACE_OS::set_exit_hook ( ACE_EXIT_HOOK  hook  ) 

For use by ACE_Object_Manager only, to register its exit hook..

ACE_Export int ACE_OS::set_scheduling_params ( const ACE_Sched_Params sched_params,
ACE_id_t  id 
)

Friendly interface to <priocntl>(2).

ACE_NAMESPACE_INLINE_FUNCTION void ACE_OS::set_win32_resource_module ( HINSTANCE   ) 

Allow an application to modify which module contains ACE's resources. This is mainly useful for a static build of ACE where the required resources reside somewhere other than the executable.

ACE_INLINE int ACE_OS::setegid ( gid_t  gid  ) 

ACE_INLINE int ACE_OS::seteuid ( uid_t  uid  ) 

ACE_INLINE int ACE_OS::setgid ( gid_t  gid  ) 

ACE_INLINE int ACE_OS::setpgid ( pid_t  pid,
pid_t  pgid 
)

ACE_INLINE void ACE_OS::setprogname ( const char *  name  ) 

Set the name of the current program

Originally from NetBSD, now found in *BSD, Cygwin, Darwin, etc.

ACE_Export void ACE_OS::setprogname_emulation ( const char *  progname  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE void ACE_OS::setpwent ( void   ) 

ACE_INLINE int ACE_OS::setregid ( gid_t  rgid,
gid_t  egid 
)

ACE_INLINE int ACE_OS::setreuid ( uid_t  ruid,
uid_t  euid 
)

ACE_INLINE int ACE_OS::setrlimit ( int  resource,
const struct rlimit *  rl 
)

ACE_INLINE pid_t ACE_OS::setsid ( void   ) 

ACE_INLINE int ACE_OS::setsockopt ( ACE_HANDLE  handle,
int  level,
int  optname,
const char *  optval,
int  optlen 
)

Manipulate the options associated with a socket.

ACE_INLINE int ACE_OS::setuid ( uid_t  uid  ) 

ACE_INLINE ACE_HANDLE ACE_OS::shm_open ( const ACE_TCHAR filename,
int  mode,
mode_t  perms = 0,
LPSECURITY_ATTRIBUTES  sa = 0 
)

ACE_INLINE int ACE_OS::shm_unlink ( const ACE_TCHAR path  ) 

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE void * ACE_OS::shmat ( int  int_id,
const void *  shmaddr,
int  shmflg 
)

ACE_INLINE int ACE_OS::shmctl ( int  int_id,
int  cmd,
struct shmid_ds *  buf 
)

ACE_INLINE int ACE_OS::shmdt ( const void *  shmaddr  ) 

ACE_INLINE int ACE_OS::shmget ( key_t  key,
size_t  size,
int  flags 
)

ACE_INLINE int ACE_OS::shutdown ( ACE_HANDLE  handle,
int  how 
)

BSD-style <accept> (no QoS).

ACE_INLINE int ACE_OS::sigaction ( int  signum,
const ACE_SIGACTION nsa,
ACE_SIGACTION osa 
)

ACE_INLINE int ACE_OS::sigaddset ( sigset_t *  s,
int  signum 
)

ACE_INLINE int ACE_OS::sigdelset ( sigset_t *  s,
int  signum 
)

ACE_INLINE int ACE_OS::sigemptyset ( sigset_t *  s  ) 

ACE_INLINE int ACE_OS::sigfillset ( sigset_t *  s  ) 

ACE_INLINE int ACE_OS::sigismember ( sigset_t *  s,
int  signum 
)

ACE_INLINE ACE_SignalHandler ACE_OS::signal ( int  signum,
ACE_SignalHandler  func 
)

ACE_INLINE int ACE_OS::sigprocmask ( int  how,
const sigset_t *  nsp,
sigset_t *  osp 
)

ACE_INLINE int ACE_OS::sigsuspend ( const sigset_t *  set  ) 

ACE_INLINE int ACE_OS::sigtimedwait ( const sigset_t *  set,
siginfo_t info,
const ACE_Time_Value timeout 
)

ACE_INLINE int ACE_OS::sigwait ( sigset_t *  set,
int *  sig = 0 
)

ACE_INLINE int ACE_OS::sigwaitinfo ( const sigset_t *  set,
siginfo_t info 
)

ACE_INLINE int ACE_OS::sleep ( const ACE_Time_Value tv  ) 

ACE_INLINE int ACE_OS::sleep ( u_int  seconds  ) 

ACE_Export int ACE_OS::snprintf ( wchar_t *  buf,
size_t  maxlen,
const wchar_t *  format,
  ... 
)

ACE_Export int ACE_OS::snprintf ( char *  buf,
size_t  maxlen,
const char *  format,
  ... 
)

ACE_INLINE ACE_HANDLE ACE_OS::socket ( int  protocol_family,
int  type,
int  proto,
ACE_Protocol_Info protocolinfo,
ACE_SOCK_GROUP  g,
u_long  flags 
)

Create a QoS-enabled socket. If the OS platform doesn't support QoS-enabled <socket> then the BSD-style <socket> is called.

ACE_INLINE ACE_HANDLE ACE_OS::socket ( int  protocol_family,
int  type,
int  proto 
)

Create a BSD-style socket (no QoS).

ACE_Export int ACE_OS::socket_fini ( void   ) 

Finalize WinSock after last use (e.g., when a DLL is unloaded).

ACE_Export int ACE_OS::socket_init ( int  version_high = 1,
int  version_low = 1 
)

Initialize WinSock before first use (e.g., when a DLL is first loaded or the first use of a socket() call.

ACE_INLINE int ACE_OS::socketpair ( int  domain,
int  type,
int  protocol,
ACE_HANDLE  sv[2] 
)

BSD-style <accept> (no QoS).

ACE_Export int ACE_OS::sprintf ( wchar_t *  buf,
const wchar_t *  format,
  ... 
)

ACE_Export int ACE_OS::sprintf ( char *  buf,
const char *  format,
  ... 
)

ACE_INLINE void ACE_OS::srand ( u_int  seed  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE int ACE_OS::stat ( const wchar_t *  file,
ACE_stat stp 
)

ACE_INLINE int ACE_OS::stat ( const char *  file,
ACE_stat stp 
)

ACE_INLINE int ACE_OS::step ( const char *  str,
char *  expbuf 
)

ACE_NAMESPACE_INLINE_FUNCTION int ACE_OS::strcasecmp ( const wchar_t *  s,
const wchar_t *  t 
)

Compares two strings (case insensitive const wchar_t version).

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE int ACE_OS::strcasecmp ( const char *  s,
const char *  t 
)

Compares two strings (case insensitive const char version).

ACE_Export int ACE_OS::strcasecmp_emulation ( const char *  s,
const char *  t 
)

Emulated strcasecmp - Performs a case insensitive comparison of strings.

ACE_INLINE wchar_t * ACE_OS::strcat ( wchar_t *  s,
const wchar_t *  t 
)

Appends a string to another string (wchar_t version).

ACE_INLINE char * ACE_OS::strcat ( char *  s,
const char *  t 
)

Appends a string to another string (char version).

ACE_INLINE wchar_t * ACE_OS::strchr ( wchar_t *  s,
wchar_t  c 
)

Finds the first occurance of a character in a string (wchar_t version).

ACE_INLINE char * ACE_OS::strchr ( char *  s,
int  c 
)

Finds the first occurance of a character in a string (char version).

ACE_INLINE const wchar_t * ACE_OS::strchr ( const wchar_t *  s,
wchar_t  c 
)

Finds the first occurance of a character in a string (const wchar_t version).

ACE_INLINE const char * ACE_OS::strchr ( const char *  s,
int  c 
)

Finds the first occurance of a character in a string (const char version).

ACE_INLINE int ACE_OS::strcmp ( const ACE_WCHAR_T *  s,
const ACE_WCHAR_T *  t 
)

Compares two strings (wchar_t version).

ACE_INLINE int ACE_OS::strcmp ( const char *  s,
const char *  t 
)

Compares two strings (char version).

ACE_INLINE wchar_t * ACE_OS::strcpy ( wchar_t *  s,
const wchar_t *  t 
)

Copies a string (wchar_t version).

ACE_INLINE char * ACE_OS::strcpy ( char *  s,
const char *  t 
)

Copies a string (char version).

ACE_INLINE size_t ACE_OS::strcspn ( const wchar_t *  s,
const wchar_t *  reject 
)

Searches for the first substring without any of the specified characters and returns the size of the substring (wchar_t version).

ACE_INLINE size_t ACE_OS::strcspn ( const char *  s,
const char *  reject 
)

Searches for the first substring without any of the specified characters and returns the size of the substring (char version).

ACE_INLINE wchar_t * ACE_OS::strdup ( const wchar_t *  s  ) 

Returns a malloced duplicated string (wchar_t version).

ACE_INLINE char * ACE_OS::strdup ( const char *  s  ) 

Returns a malloced duplicated string (char version).

ACE_Export wchar_t * ACE_OS::strecpy ( wchar_t *  s,
const wchar_t *  t 
)

Copies a string, but returns a pointer to the end of the copied region (wchar_t version).

ACE_Export char * ACE_OS::strecpy ( char *  des,
const char *  src 
)

Copies a string, but returns a pointer to the end of the copied region (char version).

ACE_Export ACE_TCHAR * ACE_OS::strenvdup ( const ACE_TCHAR str  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_Export char * ACE_OS::strerror ( int  errnum  ) 

Copies a string, but returns a pointer to the end of the copied region (char version).

ACE_INLINE size_t ACE_OS::strftime ( char *  s,
size_t  maxsize,
const char *  format,
const struct tm *  timeptr 
)

ACE_Export int ACE_OS::string_to_argv ( ACE_TCHAR buf,
int &  argc,
ACE_TCHAR **&  argv,
bool  substitute_env_args 
)

ACE_INLINE size_t ACE_OS::strlen ( const ACE_WCHAR_T *  s  ) 

Finds the length of a string (ACE_WCHAR_T version).

ACE_INLINE size_t ACE_OS::strlen ( const char *  s  ) 

Finds the length of a string (char version).

ACE_NAMESPACE_INLINE_FUNCTION int ACE_OS::strncasecmp ( const wchar_t *  s,
const wchar_t *  t,
size_t  len 
)

Compares two arrays (case insensitive const wchar_t version).

ACE_INLINE int ACE_OS::strncasecmp ( const char *  s,
const char *  t,
size_t  len 
)

Compares two arrays (case insensitive const char version).

ACE_Export int ACE_OS::strncasecmp_emulation ( const char *  s,
const char *  t,
size_t  len 
)

Emulated strncasecmp - Performs a case insensitvie comparison of arrays.

ACE_INLINE ACE_WCHAR_T * ACE_OS::strncat ( ACE_WCHAR_T *  s,
const ACE_WCHAR_T *  t,
size_t  len 
)

Appends part of a string to another string (wchar_t version).

ACE_INLINE char * ACE_OS::strncat ( char *  s,
const char *  t,
size_t  len 
)

Appends part of a string to another string (char version).

ACE_INLINE ACE_WCHAR_T * ACE_OS::strnchr ( ACE_WCHAR_T *  s,
ACE_WCHAR_T  c,
size_t  len 
)

Finds the first occurance of a character in an array (ACE_WCHAR_T version).

ACE_INLINE char * ACE_OS::strnchr ( char *  s,
int  c,
size_t  len 
)

Finds the first occurance of a character in an array (char version).

ACE_Export const ACE_WCHAR_T * ACE_OS::strnchr ( const ACE_WCHAR_T *  s,
ACE_WCHAR_T  c,
size_t  len 
)

Finds the first occurance of a character in an array (const ACE_WCHAR_T version).

ACE_Export const char * ACE_OS::strnchr ( const char *  s,
int  c,
size_t  len 
)

Finds the first occurance of a character in an array (const char version).

ACE_INLINE int ACE_OS::strncmp ( const ACE_WCHAR_T *  s,
const ACE_WCHAR_T *  t,
size_t  len 
)

Compares two arrays (wchar_t version).

ACE_INLINE int ACE_OS::strncmp ( const char *  s,
const char *  t,
size_t  len 
)

Compares two arrays (char version).

ACE_INLINE ACE_WCHAR_T * ACE_OS::strncpy ( ACE_WCHAR_T *  s,
const ACE_WCHAR_T *  t,
size_t  len 
)

Copies an array (ACE_WCHAR_T version).

ACE_INLINE char * ACE_OS::strncpy ( char *  s,
const char *  t,
size_t  len 
)

Copies an array (char version).

ACE_INLINE size_t ACE_OS::strnlen ( const ACE_WCHAR_T *  s,
size_t  maxlen 
)

Finds the length of a limited-length string (ACE_WCHAR_T version).

Parameters:
s The character string to find the length of.
maxlen The maximum number of characters that will be scanned for the terminating nul character.
Returns:
The length of
  • s, if the terminating nul character is located, else
  • maxlen.

ACE_INLINE size_t ACE_OS::strnlen ( const char *  s,
size_t  maxlen 
)

Finds the length of a limited-length string (char version).

Parameters:
s The character string to find the length of.
maxlen The maximum number of characters that will be scanned for the terminating nul character.
Returns:
The length of
  • s, if the terminating nul character is located, else
  • maxlen.

ACE_INLINE ACE_WCHAR_T * ACE_OS::strnstr ( ACE_WCHAR_T *  s,
const ACE_WCHAR_T *  t,
size_t  len 
)

Finds the first occurance of a substring in an array (wchar_t version).

ACE_INLINE char * ACE_OS::strnstr ( char *  s,
const char *  t,
size_t  len 
)

Finds the first occurance of a substring in an array (char version).

ACE_Export const ACE_WCHAR_T * ACE_OS::strnstr ( const ACE_WCHAR_T *  s,
const ACE_WCHAR_T *  t,
size_t  len 
)

Finds the first occurance of a substring in an array (const wchar_t version).

ACE_Export const char * ACE_OS::strnstr ( const char *  s,
const char *  t,
size_t  len 
)

Finds the first occurance of a substring in an array (const char version).

ACE_INLINE wchar_t * ACE_OS::strpbrk ( wchar_t *  s1,
const wchar_t *  s2 
)

Searches for characters in a string (wchar_t version).

ACE_INLINE char * ACE_OS::strpbrk ( char *  s1,
const char *  s2 
)

Searches for characters in a string (char version).

ACE_INLINE const wchar_t * ACE_OS::strpbrk ( const wchar_t *  s1,
const wchar_t *  s2 
)

Searches for characters in a string (const wchar_t version).

ACE_INLINE const char * ACE_OS::strpbrk ( const char *  s1,
const char *  s2 
)

Searches for characters in a string (const char version).

ACE_INLINE char * ACE_OS::strptime ( const char *  buf,
const char *  format,
struct tm *  tm 
)

ACE_INLINE wchar_t * ACE_OS::strrchr ( wchar_t *  s,
wchar_t  c 
)

Finds the last occurance of a character in a string (wchar_t version).

ACE_INLINE char * ACE_OS::strrchr ( char *  s,
int  c 
)

Finds the last occurance of a character in a string (char version).

ACE_INLINE const wchar_t * ACE_OS::strrchr ( const wchar_t *  s,
wchar_t  c 
)

Finds the last occurance of a character in a string (const wchar_t version).

ACE_INLINE const char * ACE_OS::strrchr ( const char *  s,
int  c 
)

Finds the last occurance of a character in a string (const char version).

ACE_Export const char * ACE_OS::strrchr_emulation ( const char *  s,
int  c 
)

Emulated strrchr (const char version) - Finds the last occurance of a character in a string.

ACE_Export char * ACE_OS::strrchr_emulation ( char *  s,
int  c 
)

Emulated strrchr (char version) - Finds the last occurance of a character in a string.

ACE_Export ACE_WCHAR_T * ACE_OS::strsncpy ( ACE_WCHAR_T *  dst,
const ACE_WCHAR_T *  src,
size_t  maxlen 
)

This is a "safe" c string copy function (wchar_t version).

Unlike strncpy() this function will always add a terminating '' char if maxlen > 0. So the user doesn't has to provide an extra '' if the user wants a '' terminated dst. The function doesn't check for a 0 dst, because this will give problems anyway. When src is 0 an empty string is made. We do not "touch" * dst if maxlen is 0. Returns dst. Care should be taken when replacing strncpy() calls, because in some cases a strncpy() user is using the "not '\0' terminating" feature from strncpy(). This happens most when the call to strncpy() was optimized by using a maxlen which is 1 smaller than the size because there's always written a '' inside this last position. Very seldom it's possible that the '' padding feature from strncpy() is needed.

ACE_Export char * ACE_OS::strsncpy ( char *  dst,
const char *  src,
size_t  maxlen 
)

This is a "safe" c string copy function (char version).

Unlike strncpy() this function will always add a terminating '' char if maxlen > 0. So the user doesn't has to provide an extra '' if the user wants a '' terminated dst. The function doesn't check for a 0 dst, because this will give problems anyway. When src is 0 an empty string is made. We do not "touch" * dst if maxlen is 0. Returns dst. Care should be taken when replacing strncpy() calls, because in some cases a strncpy() user is using the "not '\0' terminating" feature from strncpy(). This happens most when the call to strncpy() was optimized by using a maxlen which is 1 smaller than the size because there's always written a '' inside this last position. Very seldom it's possible that the '' padding feature from strncpy() is needed.

ACE_INLINE size_t ACE_OS::strspn ( const wchar_t *  s1,
const wchar_t *  s2 
)

Searches for the first substring containing only the specified characters and returns the size of the substring (wchar_t version).

ACE_INLINE size_t ACE_OS::strspn ( const char *  s1,
const char *  s2 
)

Searches for the first substring containing only the specified characters and returns the size of the substring (char version).

ACE_INLINE wchar_t * ACE_OS::strstr ( wchar_t *  s,
const wchar_t *  t 
)

Finds the first occurance of a substring in a string (wchar_t version).

ACE_INLINE char * ACE_OS::strstr ( char *  s,
const char *  t 
)

Finds the first occurance of a substring in a string (char version).

ACE_INLINE const wchar_t * ACE_OS::strstr ( const wchar_t *  s,
const wchar_t *  t 
)

Finds the first occurance of a substring in a string (const wchar_t version).

ACE_INLINE const char * ACE_OS::strstr ( const char *  s,
const char *  t 
)

Finds the first occurance of a substring in a string (const char version).

ACE_INLINE double ACE_OS::strtod ( const wchar_t *  s,
wchar_t **  endptr 
)

Converts a string to a double value (wchar_t version).

ACE_INLINE double ACE_OS::strtod ( const char *  s,
char **  endptr 
)

Converts a string to a double value (char version).

ACE_INLINE wchar_t * ACE_OS::strtok ( wchar_t *  s,
const wchar_t *  tokens 
)

Finds the next token in a string (wchar_t version).

ACE_INLINE char * ACE_OS::strtok ( char *  s,
const char *  tokens 
)

Finds the next token in a string (char version).

ACE_INLINE wchar_t * ACE_OS::strtok_r ( ACE_WCHAR_T *  s,
const ACE_WCHAR_T *  tokens,
ACE_WCHAR_T **  lasts 
)

Finds the next token in a string (wchar_t version).

ACE_INLINE char * ACE_OS::strtok_r ( char *  s,
const char *  tokens,
char **  lasts 
)

Finds the next token in a string (safe char version).

ACE_Export char * ACE_OS::strtok_r_emulation ( char *  s,
const char *  tokens,
char **  lasts 
)

Emulated strtok_r.

ACE_INLINE long ACE_OS::strtol ( const wchar_t *  s,
wchar_t **  ptr,
int  base 
)

Converts a string to a long value (wchar_t version).

ACE_INLINE long ACE_OS::strtol ( const char *  s,
char **  ptr,
int  base 
)

Converts a string to a long value (char version).

ACE_INLINE unsigned long ACE_OS::strtoul ( const wchar_t *  s,
wchar_t **  ptr,
int  base 
)

Converts a string to an unsigned long value (wchar_t version).

ACE_INLINE unsigned long ACE_OS::strtoul ( const char *  s,
char **  ptr,
int  base 
)

Converts a string to an unsigned long value (char version).

ACE_INLINE void ACE_OS::swab ( const void *  src,
void *  dest,
ssize_t  n 
)

ACE_INLINE long ACE_OS::sysconf ( int  name  ) 

ACE_INLINE long ACE_OS::sysinfo ( int  cmd,
char *  buf,
long  count 
)

ACE_INLINE int ACE_OS::system ( const ACE_TCHAR s  ) 

Function that is called by <ACE_OS::exit>, if non-null.

ACE_INLINE int ACE_OS::t_accept ( ACE_HANDLE  fildes,
ACE_HANDLE  resfd,
struct t_call *  call 
)

ACE_INLINE char * ACE_OS::t_alloc ( ACE_HANDLE  fildes,
int  struct_type,
int  fields 
)

ACE_INLINE int ACE_OS::t_bind ( ACE_HANDLE  fildes,
ACE_TBIND req,
ACE_TBIND ret 
)

ACE_INLINE int ACE_OS::t_close ( ACE_HANDLE  fildes  ) 

ACE_INLINE int ACE_OS::t_connect ( ACE_HANDLE  fildes,
struct t_call *  sndcall,
struct t_call *  rcvcall 
)

ACE_INLINE void ACE_OS::t_error ( const char *  errmsg  ) 

ACE_INLINE int ACE_OS::t_free ( char *  ptr,
int  struct_type 
)

ACE_INLINE int ACE_OS::t_getinfo ( ACE_HANDLE  fildes,
struct t_info *  info 
)

ACE_INLINE int ACE_OS::t_getname ( ACE_HANDLE  fildes,
struct netbuf *  namep,
int  type 
)

ACE_INLINE int ACE_OS::t_getstate ( ACE_HANDLE  fildes  ) 

ACE_INLINE int ACE_OS::t_listen ( ACE_HANDLE  fildes,
struct t_call *  call 
)

ACE_INLINE int ACE_OS::t_look ( ACE_HANDLE  fildes  ) 

ACE_INLINE ACE_HANDLE ACE_OS::t_open ( char *  path,
int  oflag,
struct t_info *  info 
)

ACE_INLINE int ACE_OS::t_optmgmt ( ACE_HANDLE  handle,
ACE_TOPTMGMT req,
ACE_TOPTMGMT ret 
)

ACE_INLINE int ACE_OS::t_rcv ( ACE_HANDLE  fildes,
char *  buf,
unsigned int  nbytes,
int *  flags 
)

ACE_INLINE int ACE_OS::t_rcvdis ( ACE_HANDLE  fildes,
struct t_discon *  discon 
)

ACE_INLINE int ACE_OS::t_rcvrel ( ACE_HANDLE  fildes  ) 

ACE_INLINE int ACE_OS::t_rcvudata ( ACE_HANDLE  fildes,
struct t_unitdata *  unitdata,
int *  flags 
)

ACE_INLINE int ACE_OS::t_rcvuderr ( ACE_HANDLE  fildes,
struct t_uderr *  uderr 
)

ACE_INLINE int ACE_OS::t_snd ( ACE_HANDLE  fildes,
const char *  buf,
unsigned int  nbytes,
int  flags 
)

ACE_INLINE int ACE_OS::t_snddis ( ACE_HANDLE  fildes,
struct t_call *  call 
)

ACE_INLINE int ACE_OS::t_sndrel ( ACE_HANDLE  fildes  ) 

ACE_INLINE int ACE_OS::t_sync ( ACE_HANDLE  fildes  ) 

ACE_INLINE int ACE_OS::t_unbind ( ACE_HANDLE  fildes  ) 

ACE_INLINE long ACE_OS::telldir ( ACE_DIR d  ) 

ACE_INLINE wchar_t * ACE_OS::tempnam ( const wchar_t *  dir,
const wchar_t *  pfx = 0 
)

ACE_INLINE char * ACE_OS::tempnam ( const char *  dir = 0,
const char *  pfx = 0 
)

ACE_INLINE int ACE_OS::thr_cancel ( ACE_thread_t  t_id  ) 

ACE_INLINE int ACE_OS::thr_cmp ( ACE_hthread_t  t1,
ACE_hthread_t  t2 
)

ACE_INLINE int ACE_OS::thr_continue ( ACE_hthread_t  target_thread  ) 

ACE_Export int ACE_OS::thr_create ( ACE_THR_FUNC  func,
void *  args,
long  flags,
ACE_thread_t thr_id,
ACE_hthread_t thr_handle,
long  priority,
void *  stack,
size_t  stacksize,
ACE_Base_Thread_Adapter thread_adapter,
const char **  thr_name 
)

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE int ACE_OS::thr_equal ( ACE_thread_t  t1,
ACE_thread_t  t2 
)

ACE_Export void ACE_OS::thr_exit ( ACE_THR_FUNC_RETURN  status  ) 

ACE_Export int ACE_OS::thr_get_affinity ( ACE_hthread_t  thr_id,
size_t  cpu_set_size,
cpu_set_t cpu_mask 
)

Get the thread affinity

Parameters:
thr_id For NPTL-threads, when ACE_HAS_PTHREAD_SETAFFINITY_NP defined, this is the thread-id. For linux-threads, when ACE_HAS_SCHED_SETAFFINITY defined, it expects a process-id. Since for linux-threads a thread is seen as a process, it does the job.
cpu_set_size The size of the cpu_mask
cpu_mask Is a bitmask of CPUs to bind to, e.g value 1 binds the thread to the "CPU 0", etc

ACE_INLINE int ACE_OS::thr_getconcurrency ( void   ) 

ACE_INLINE int ACE_OS::thr_getprio ( ACE_hthread_t  id,
int &  priority,
int &  policy 
)

ACE_INLINE int ACE_OS::thr_getprio ( ACE_hthread_t  id,
int &  priority 
)

ACE_INLINE int ACE_OS::thr_getspecific ( ACE_thread_key_t  key,
void **  data 
)

ACE_INLINE int ACE_OS::thr_join ( ACE_thread_t  waiter_id,
ACE_thread_t thr_id,
ACE_THR_FUNC_RETURN *  status 
)

ACE_INLINE int ACE_OS::thr_join ( ACE_hthread_t  waiter_id,
ACE_THR_FUNC_RETURN *  status 
)

ACE_Export int ACE_OS::thr_key_detach ( ACE_thread_key_t  key,
void *  inst 
)

Note:
the "inst" arg is deprecated. It will be ignored.

ACE_Export int ACE_OS::thr_key_used ( ACE_thread_key_t  key  ) 

ACE_Export int ACE_OS::thr_keycreate ( ACE_thread_key_t key,
ACE_THR_DEST  ,
void *  inst = 0 
)

Note:
the "inst" arge is deprecated. It will be ignored.

ACE_Export int ACE_OS::thr_keyfree ( ACE_thread_key_t  key  ) 

ACE_INLINE int ACE_OS::thr_kill ( ACE_thread_t  thr_id,
int  signum 
)

ACE_INLINE size_t ACE_OS::thr_min_stack ( void   ) 

ACE_INLINE const char * ACE_OS::thr_name ( void   ) 

ACE_INLINE void ACE_OS::thr_self ( ACE_hthread_t self  ) 

ACE_INLINE ACE_thread_t ACE_OS::thr_self ( void   ) 

ACE_Export int ACE_OS::thr_set_affinity ( ACE_hthread_t  thr_id,
size_t  cpu_set_size,
const cpu_set_t cpu_mask 
)

Set the thread affinity

Parameters:
thr_id For NPTL-threads, when ACE_HAS_PTHREAD_SETAFFINITY_NP defined, this is the thread-id. For linux-threads, when ACE_HAS_SCHED_SETAFFINITY defined, it expects a process-id. Since for linux-threads a thread is seen as a process, it does the job.
cpu_set_size The size of the cpu_mask
cpu_mask Is a bitmask of CPUs to bind to, e.g value 1 binds the thread to the "CPU 0", etc

ACE_INLINE int ACE_OS::thr_setcancelstate ( int  new_state,
int *  old_state 
)

ACE_INLINE int ACE_OS::thr_setcanceltype ( int  new_type,
int *  old_type 
)

ACE_INLINE int ACE_OS::thr_setconcurrency ( int  hint  ) 

ACE_INLINE int ACE_OS::thr_setprio ( ACE_hthread_t  ht_id,
int  priority,
int  policy = -1 
)

ACE_Export int ACE_OS::thr_setprio ( const ACE_Sched_Priority  prio  ) 

ACE_Export int ACE_OS::thr_setspecific ( ACE_thread_key_t  key,
void *  data 
)

ACE_INLINE int ACE_OS::thr_sigsetmask ( int  how,
const sigset_t *  nsm,
sigset_t *  osm 
)

ACE_INLINE int ACE_OS::thr_suspend ( ACE_hthread_t  target_thread  ) 

ACE_INLINE void ACE_OS::thr_testcancel ( void   ) 

ACE_INLINE void ACE_OS::thr_yield ( void   ) 

ACE_INLINE int ACE_OS::thread_mutex_destroy ( ACE_thread_mutex_t *  m  ) 

ACE_INLINE int ACE_OS::thread_mutex_init ( ACE_thread_mutex_t *  m,
int  lock_type,
const wchar_t *  name,
ACE_mutexattr_t *  arg = 0 
)

ACE_INLINE int ACE_OS::thread_mutex_init ( ACE_thread_mutex_t *  m,
int  lock_type = 0,
const char *  name = 0,
ACE_mutexattr_t *  arg = 0 
)

ACE_INLINE int ACE_OS::thread_mutex_lock ( ACE_thread_mutex_t *  m,
const ACE_Time_Value timeout 
)

ACE_INLINE int ACE_OS::thread_mutex_lock ( ACE_thread_mutex_t *  m,
const ACE_Time_Value timeout 
)

ACE_INLINE int ACE_OS::thread_mutex_lock ( ACE_thread_mutex_t *  m  ) 

ACE_INLINE int ACE_OS::thread_mutex_trylock ( ACE_thread_mutex_t *  m  ) 

ACE_INLINE int ACE_OS::thread_mutex_unlock ( ACE_thread_mutex_t *  m  ) 

ACE_INLINE time_t ACE_OS::time ( time_t *  tloc = 0  ) 

ACE_INLINE long ACE_OS::timezone ( void   ) 

ACE_INLINE int ACE_OS::truncate ( const ACE_TCHAR filename,
ACE_OFF_T  length 
)

ACE_INLINE void ACE_OS::tzset ( void   ) 

ACE_INLINE useconds_t ACE_OS::ualarm ( const ACE_Time_Value tv,
const ACE_Time_Value tv_interval = ACE_Time_Value::zero 
)

ACE_INLINE useconds_t ACE_OS::ualarm ( useconds_t  usecs,
useconds_t  interval = 0 
)

ACE_INLINE mode_t ACE_OS::umask ( mode_t  cmask  ) 

ACE_Export int ACE_OS::uname ( ACE_utsname name  ) 

ACE_INLINE int ACE_OS::ungetc ( int  c,
FILE *  fp 
)

ACE_NAMESPACE_INLINE_FUNCTION wint_t ACE_OS::ungetwc ( wint_t  c,
FILE *  fp 
)

ACE_Export void ACE_OS::unique_name ( const void *  object,
char *  name,
size_t  length 
)

This method uses process id and object pointer to come up with a machine wide unique name. The process ID will provide uniqueness between processes on the same machine. The "this" pointer of the object will provide uniqueness between other "live" objects in the same process. The uniqueness of this name is therefore only valid for the life of object.

ACE_INLINE int ACE_OS::unlink ( const wchar_t *  path  ) 

ACE_INLINE int ACE_OS::unlink ( const char *  path  ) 

ACE_INLINE int ACE_OS::vasprintf ( wchar_t **  bufp,
const wchar_t *  format,
va_list  argptr 
)

ACE_INLINE int ACE_OS::vasprintf ( char **  bufp,
const char *  format,
va_list  argptr 
)

ACE_Export int ACE_OS::vasprintf_emulation ( char **  bufp,
const char *  format,
va_list  argptr 
)

ACE_Export int ACE_OS::vaswprintf_emulation ( wchar_t **  bufp,
const wchar_t *  format,
va_list  argptr 
)

ACE_INLINE int ACE_OS::vfprintf ( FILE *  fp,
const wchar_t *  format,
va_list  argptr 
)

ACE_INLINE int ACE_OS::vfprintf ( FILE *  fp,
const char *  format,
va_list  argptr 
)

ACE_INLINE int ACE_OS::vprintf ( const wchar_t *  format,
va_list  argptr 
)

ACE_INLINE int ACE_OS::vprintf ( const char *  format,
va_list  argptr 
)

ACE_INLINE int ACE_OS::vsnprintf ( wchar_t *  buffer,
size_t  maxlen,
const wchar_t *  format,
va_list  argptr 
)

ACE_INLINE int ACE_OS::vsnprintf ( char *  buffer,
size_t  maxlen,
const char *  format,
va_list  argptr 
)

ACE_INLINE int ACE_OS::vsprintf ( wchar_t *  buffer,
const wchar_t *  format,
va_list  argptr 
)

ACE_INLINE int ACE_OS::vsprintf ( char *  buffer,
const char *  format,
va_list  argptr 
)

ACE_INLINE pid_t ACE_OS::wait ( pid_t  pid,
ACE_exitcode status,
int  wait_options = 0,
ACE_HANDLE  handle = 0 
)

Calls WaitForSingleObject on Win32 and ACE::waitpid () otherwise. Returns the passed in pid_t on success and -1 on failure. On Win32, pid is ignored if the handle is not equal to 0. Passing the process handle is prefer on Win32 because using pid to wait on the project doesn't always work correctly if the waited process has already terminated.

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE pid_t ACE_OS::wait ( int *  status = 0  ) 

Calls OS wait function, so it's only portable to UNIX/POSIX platforms.

ACE_INLINE pid_t ACE_OS::waitpid ( pid_t  pid,
ACE_exitcode status = 0,
int  wait_options = 0,
ACE_HANDLE  handle = 0 
)

Calls waitpid on UNIX/POSIX platforms Does not work on Vxworks 5.5.x. On Win32, pid is ignored if the handle is not equal to 0. Passing the process handle is prefer on Win32 because using pid to wait on the project doesn't always work correctly if the waited process has already terminated.

ACE_Export wchar_t * ACE_OS::wcscat_emulation ( wchar_t *  destination,
const wchar_t *  source 
)

Emulated wcscat - Appends a string.

ACE_Export wchar_t * ACE_OS::wcschr_emulation ( const wchar_t *  string,
wchar_t  c 
)

Emulated wcschr - Finds a character in a string.

ACE_Export int ACE_OS::wcscmp_emulation ( const ACE_WCHAR_T *  string1,
const ACE_WCHAR_T *  string2 
)

Emulated wcscmp - Compares strings.

ACE_Export wchar_t * ACE_OS::wcscpy_emulation ( wchar_t *  destination,
const wchar_t *  source 
)

Emulated wcscpy - Copies a string.

ACE_Export size_t ACE_OS::wcscspn_emulation ( const wchar_t *  s,
const wchar_t *  reject 
)

Emulated wcscspn.

ACE_Export int ACE_OS::wcsicmp_emulation ( const wchar_t *  s,
const wchar_t *  t 
)

Emulated wcsicmp - Performs a case insensitive comparison of strings.

ACE_Export size_t ACE_OS::wcslen_emulation ( const ACE_WCHAR_T *  string  ) 

Emulated wcslen - Returns the length of a string.

ACE_Export ACE_WCHAR_T * ACE_OS::wcsncat_emulation ( ACE_WCHAR_T *  destination,
const ACE_WCHAR_T *  source,
size_t  count 
)

Emulated wcscat - Appends a string.

ACE_Export int ACE_OS::wcsncmp_emulation ( const ACE_WCHAR_T *  s1,
const ACE_WCHAR_T *  s2,
size_t  len 
)

Emulated wcsncmp - Compares two arrays.

ACE_Export ACE_WCHAR_T * ACE_OS::wcsncpy_emulation ( ACE_WCHAR_T *  destination,
const ACE_WCHAR_T *  source,
size_t  len 
)

Emulated wcsncpy - Copies an array.

ACE_Export int ACE_OS::wcsnicmp_emulation ( const wchar_t *  string1,
const wchar_t *  string2,
size_t  len 
)

Emulated wcsnicmp - Performs a case insensitive comparison of two arrays

ACE_Export wchar_t * ACE_OS::wcspbrk_emulation ( const wchar_t *  string,
const wchar_t *  charset 
)

Emulated wcspbrk - Searches for characters in a string.

ACE_Export wchar_t * ACE_OS::wcsrchr_emulation ( wchar_t *  string,
wint_t  c 
)

Emulated wcsrchr (wchar_t version) - Finds the last occurance of a character in a string.

ACE_Export const wchar_t * ACE_OS::wcsrchr_emulation ( const wchar_t *  string,
wint_t  c 
)

Emulated wcsrchr (const wchar_t version) - Finds the last occurance of a character in a string.

ACE_Export size_t ACE_OS::wcsspn_emulation ( const wchar_t *  string,
const wchar_t *  charset 
)

Emulated wcsspn.

ACE_Export wchar_t * ACE_OS::wcsstr_emulation ( const wchar_t *  string,
const wchar_t *  charset 
)

Emulated wcsstr - Performs a case insensitive comparison of two strings.

ACE_INLINE ssize_t ACE_OS::write ( ACE_HANDLE  handle,
const void *  buf,
size_t  nbyte,
ACE_OVERLAPPED overlapped 
)

ACE_INLINE ssize_t ACE_OS::write ( ACE_HANDLE  handle,
const void *  buf,
size_t  nbyte 
)

ACE_Export ssize_t ACE_OS::write_n ( ACE_HANDLE  handle,
const void *  buf,
size_t  len,
size_t *  bytes_transferred = 0 
)

Send len bytes from buf to handle (uses the <ACE_OS::write> calls, which is uses the <write> system call on UNIX and the <WriteFile> call on Win32). If errors occur, -1 is returned. If EOF occurs, 0 is returned. Whatever data has been transmitted will be returned to the caller through <bytes_transferred>.

ACE_INLINE ssize_t ACE_OS::writev ( ACE_HANDLE  handle,
const iovec *  iov,
int  iovcnt 
)

ACE_INLINE int ACE_OS::wscmp ( const WChar *  s,
const WChar *  t 
)

ACE_INLINE ACE_OS::WChar * ACE_OS::wscpy ( WChar *  dest,
const WChar *  src 
)

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE u_int ACE_OS::wslen ( const WChar *  s  ) 

ACE_INLINE int ACE_OS::wsncmp ( const WChar *  s,
const WChar *  t,
size_t  len 
)


Variable Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_EXIT_HOOK ACE_OS::exit_hook_ = 0

Function that is called by <ACE_OS::exit>, if non-null.

This is necessary to deal with POSIX pthreads and their use of structures for thread handles.

This is necessary to deal with POSIX pthreads and their use of structures for TSS keys.

This is necessary to deal with POSIX pthreads and their use of structures for thread ids.

ACE_BEGIN_VERSIONED_NAMESPACE_DECL int ACE_OS::socket_initialized_

Keeps track of whether we've already initialized WinSock...

ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_TEXT_OSVERSIONINFO ACE_OS::win32_versioninfo_


Generated on Wed Apr 23 02:44:11 2008 for ACE by  doxygen 1.5.5