aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygserver/bsd_helper.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2015-01-19 17:42:38 +0000
committerCorinna Vinschen <corinna@vinschen.de>2015-01-19 17:42:38 +0000
commit8d8f40361f1d0e135f6679a00b19a0e1808df085 (patch)
tree49b3d6b790156e9c3ba6fd0e634940ddc6eb27d7 /winsup/cygserver/bsd_helper.h
parentc95ce0216000cb8fb85d666adc79ed62b126d2ec (diff)
downloadnewlib-8d8f40361f1d0e135f6679a00b19a0e1808df085.zip
newlib-8d8f40361f1d0e135f6679a00b19a0e1808df085.tar.gz
newlib-8d8f40361f1d0e135f6679a00b19a0e1808df085.tar.bz2
* bsd_helper.h: Throughout, convert "struct thread" to "class thread".
* bsd_mutex.cc (_msleep): Fetch signal_arrived handle from thread's ipcblk. * process.h (class process): Drop _signal_arrived and align methods. (process_cache::process): Drop signal_arrived parameter. * process.cc (process::process): Ditto. Drop related code. (process::~process): Drop closing signal_arrived handle. (process_cache::process): Drop signal_arrived parameter in call to process::process. (thread::dup_signal_arrived): New method duplicating thread's signal_arrived handle. (thread::close_signal_arrived): New method closing thread's signal_arrived handle. * msg.cc (client_request_msg::serve): Drop signal_arrived parameter from call to process_cache::process. Use thread constructor to initialize td. * sem.cc (client_request_sem::serve): Ditto. * shm.cc (client_request_shm::serve): Ditto.
Diffstat (limited to 'winsup/cygserver/bsd_helper.h')
-rw-r--r--winsup/cygserver/bsd_helper.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/winsup/cygserver/bsd_helper.h b/winsup/cygserver/bsd_helper.h
index bc8d228..acf5e83 100644
--- a/winsup/cygserver/bsd_helper.h
+++ b/winsup/cygserver/bsd_helper.h
@@ -1,6 +1,6 @@
/* bsd_helper.h: Helps integrating BSD kernel code
- Copyright 2003, 2012 Red Hat, Inc.
+ Copyright 2003, 2012, 2015 Red Hat, Inc.
This file is part of Cygwin.
@@ -39,24 +39,24 @@ extern SECURITY_ATTRIBUTES sec_all_nih;
void securityinit (void);
-int win_copyin (struct thread *, const void *, void *, size_t);
-int win_copyout (struct thread *, const void *, void *, size_t);
+int win_copyin (class thread *, const void *, void *, size_t);
+int win_copyout (class thread *, const void *, void *, size_t);
#define copyin(a,b,c) win_copyin((td),(a),(b),(c))
#define copyout(a,b,c) win_copyout((td),(a),(b),(c))
void *get_token_info (HANDLE, TOKEN_INFORMATION_CLASS);
-int ipcperm (struct thread *, struct ipc_perm *, unsigned int);
-int suser (struct thread *);
+int ipcperm (class thread *, struct ipc_perm *, unsigned int);
+int suser (class thread *);
bool adjust_identity_info (struct proc *p);
struct vmspace *ipc_p_vmspace (struct proc *);
-int ipcexit_creat_hookthread(struct thread *);
+int ipcexit_creat_hookthread(class thread *);
void ipcinit (void);
int ipcunload (void);
vm_object_t _vm_pager_allocate (int, int);
#define vm_pager_allocate(a,b,s,c,d) _vm_pager_allocate((s),(mode))
-vm_object_t vm_object_duplicate (struct thread *td, vm_object_t object);
+vm_object_t vm_object_duplicate (class thread *td, vm_object_t object);
void vm_object_deallocate (vm_object_t object);
void tunable_param_init (const char *, bool);