~ubuntu-branches/ubuntu/gutsy/st/gutsy

« back to all changes in this revision

Viewing changes to public.h

  • Committer: Bazaar Package Importer
  • Author(s): Wesley W. Terpstra (Debian)
  • Date: 2007-01-14 21:36:45 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070114213645-34cpn8xpl92dp1lc
Tags: 1.7-1
* New upstream release (closes: #406394)
* Increased standards-version; no changes necessary
* Moved from DH_COMPAT level 2 to 5; no changes necessary
* Added linker options to indicate that an executable stack is not needed
* Downgraded optimization to -O2

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
#include <time.h>
45
45
#include <errno.h>
46
46
 
 
47
/* Undefine this to remove the context switch callback feature. */
 
48
#define ST_SWITCH_CB
 
49
 
47
50
#if defined(__MACH__) && defined(__APPLE__)
48
51
struct pollfd
49
52
{
85
88
typedef struct _st_cond *   st_cond_t;
86
89
typedef struct _st_mutex *  st_mutex_t;
87
90
typedef struct _st_netfd *  st_netfd_t;
 
91
#ifdef ST_SWITCH_CB
 
92
typedef void (*st_switch_cb_t)(void);
 
93
#endif
88
94
 
89
95
extern int st_init(void);
90
96
extern int st_getfdlimit(void);
 
97
#ifdef ST_SWITCH_CB
 
98
extern st_switch_cb_t st_set_switch_in_cb(st_switch_cb_t cb);
 
99
extern st_switch_cb_t st_set_switch_out_cb(st_switch_cb_t cb);
 
100
#endif
91
101
 
92
102
extern st_thread_t st_thread_self(void);
93
103
extern void st_thread_exit(void *retval);
154
164
                       st_utime_t timeout);
155
165
extern int st_sendto(st_netfd_t fd, const void *msg, int len,
156
166
                     const struct sockaddr *to, int tolen, st_utime_t timeout);
 
167
extern int st_recvmsg(st_netfd_t fd, struct msghdr *msg, int flags,
 
168
                      st_utime_t timeout);
 
169
extern int st_sendmsg(st_netfd_t fd, const struct msghdr *msg, int flags,
 
170
                      st_utime_t timeout);
157
171
extern st_netfd_t st_open(const char *path, int oflags, mode_t mode);
158
172
 
159
173
#ifdef DEBUG