~ubuntu-branches/ubuntu/raring/xrdp/raring

« back to all changes in this revision

Viewing changes to common/os_calls.h

  • Committer: Package Import Robot
  • Author(s): Vincent Bernat
  • Date: 2012-09-29 13:00:49 UTC
  • mfrom: (8.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20120929130049-d64qgw6h3zhp1bsz
Tags: 0.6.0-1
* New upstream version. Closes: #687039.
* Drop 07-unix-socks-in-var-run.patch: upstream now creates a dedicated
  directory for Unix sockets in /tmp (with mkdtemp).
* Drop the following patches, applied upstream:
    + alt-gr-fix.patch
    + keycode-fix.patch
* Bump Standards-Version to 3.9.3.
* Enable hardening.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
   Copyright (c) 2004-2009 Jay Sorg
 
2
   Copyright (c) 2004-2012 Jay Sorg
3
3
 
4
4
   Permission is hereby granted, free of charge, to any person obtaining a
5
5
   copy of this software and associated documentation files (the "Software"),
25
25
#if !defined(OS_CALLS_H)
26
26
#define OS_CALLS_H
27
27
 
 
28
#ifndef NULL
 
29
#define NULL 0
 
30
#endif
 
31
 
28
32
#include "arch.h"
29
33
 
 
34
int APP_CC
 
35
g_rm_temp_dir(void);
 
36
int APP_CC
 
37
g_mk_temp_dir(const char* app_name);
30
38
void APP_CC
31
 
g_init(void);
 
39
g_init(const char* app_name);
32
40
void APP_CC
33
41
g_deinit(void);
34
42
void* APP_CC
76
84
int APP_CC
77
85
g_tcp_local_bind(int sck, char* port);
78
86
int APP_CC
 
87
g_tcp_bind_address(int sck, char* port, const char* address);
 
88
int APP_CC
79
89
g_tcp_listen(int sck);
80
90
int APP_CC
81
91
g_tcp_accept(int sck);
94
104
int APP_CC
95
105
g_tcp_select(int sck1, int sck2);
96
106
void APP_CC
 
107
g_write_ip_address(int rcv_sck, char* ip_address);
 
108
void APP_CC
97
109
g_sleep(int msecs);
98
110
tbus APP_CC
99
111
g_create_wait_obj(char* name);
133
145
int APP_CC
134
146
g_chmod_hex(const char* filename, int flags);
135
147
int APP_CC
 
148
g_chown(const char* name, int uid, int gid);
 
149
int APP_CC
136
150
g_mkdir(const char* dirname);
137
151
char* APP_CC
138
152
g_get_current_dir(char* dirname, int maxlen);
169
183
int APP_CC
170
184
g_strncasecmp(const char* c1, const char* c2, int len);
171
185
int APP_CC
172
 
g_atoi(char* str);
 
186
g_atoi(const char* str);
173
187
int APP_CC
174
188
g_htoi(char* str);
175
189
int APP_CC
208
222
g_signal_terminate(void (*func)(int));
209
223
void APP_CC
210
224
g_signal_pipe(void (*func)(int));
 
225
void APP_CC
 
226
g_signal_usr1(void (*func)(int));
211
227
int APP_CC
212
228
g_fork(void);
213
229
int APP_CC