Cygwin: strptime: add release note
[newlib-cygwin.git] / winsup / cygwin / local_includes / cygserver_pwdgrp.h
blob98f1fed4023dece92d9c365695c354d168706e81
1 /* cygserver_pwdgrp.h: Request account information
3 This file is part of Cygwin.
5 This software is a copyrighted work licensed under the terms of the
6 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
7 details. */
9 #ifndef __CYGSERVER_PWDGRP_H__
10 #define __CYGSERVER_PWDGRP_H__
12 #include <sys/types.h>
13 #include "cygserver.h"
14 #include "userinfo.h"
16 class transport_layer_base;
17 class process_cache;
19 class client_request_pwdgrp : public client_request
21 friend class client_request;
23 private:
24 union _pwdgrp_param_t
26 struct _pwdgrp_in_t
28 bool group;
29 fetch_user_arg_type_t type;
30 union
32 BYTE sid[40];
33 char name[UNLEN + 1];
34 uint32_t id;
35 } arg;
36 } in;
38 struct
40 char line[1024];
41 } out;
42 } _parameters;
44 #ifndef __INSIDE_CYGWIN__
45 client_request_pwdgrp ();
46 virtual void serve (transport_layer_base *, process_cache *);
47 void pwd_serve ();
48 void grp_serve ();
49 #endif
51 public:
53 #ifdef __INSIDE_CYGWIN__
54 client_request_pwdgrp (fetch_user_arg_t &arg, bool group);
55 #endif
57 const char *line () const { return (msglen () > 0) ? _parameters.out.line
58 : NULL; }
61 #endif /* __CYGSERVER_PWDGRP_H__ */