about summary refs log blame commit diff stats
path: root/core/conf/skel/.profile
blob: 71dd6f80edb51b7d93a57ca6c4284f97c6c943ce (plain) (tree)
1
2
3
4
5
6


                                                                           
                      
 
                                          
export GPG_AGENT_INFO  # the env file does not contain the export statement
export SSH_AUTH_SOCK   # enable gpg-agent for ssh

export GPGKEY=8BF422F7

#alias prodtmux="ssh srv-remote -t tmux a"
f872c'>800432e ^
d4069cc ^
5b9130d ^





e018867 ^
5b9130d ^







d4069cc ^
5b9130d ^
d4069cc ^

5b9130d ^
e018867 ^
5b9130d ^


9f6eff6 ^

3523bbd ^
9f6eff6 ^


27b6c24 ^




f3be424 ^
9f6eff6 ^
f3be424 ^


27b6c24 ^


3523bbd ^
5b9130d ^
5b9130d ^
d4069cc ^
5b9130d ^
d4069cc ^
5b9130d ^


5b9130d ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94


                   
                       


                                                         
                                          



                                                        
                                         



                                                  
                                                    


                                                           

                                                      
                                                                   
                                                       





                                                            
                                                      


 

                                                       

                                                            
                                                                   





                                                            
                                                               







                                                           
                                        
 

                                                     
 
                                                     


 

                                                               
             


 




                                                     
                                        
                                  


                                                 


  
                                                         
          
 
                           
 
                                                                       


               

           
#include <stdlib.h>
#include <string.h>

#include "src/common.h"


static int uv_link_observer_read_start(uv_link_t* link) {
  return uv_link_read_start(link->parent);
}


static int uv_link_observer_read_stop(uv_link_t* link) {
  return uv_link_read_stop(link->parent);
}


static int uv_link_observer_write(uv_link_t* link,
                                  uv_link_t* source,
                                  const uv_buf_t bufs[],
                                  unsigned int nbufs,
                                  uv_stream_t* send_handle,
                                  uv_link_write_cb cb,
                                  void* arg) {
  return uv_link_propagate_write(link->parent, source, bufs, nbufs,
                                 send_handle, cb, arg);
}


static int uv_link_observer_try_write(uv_link_t* link,
                                      const uv_buf_t bufs[],
                                      unsigned int nbufs) {
  return uv_link_try_write(link->parent, bufs, nbufs);
}


static int uv_link_observer_shutdown(uv_link_t* link,
                                     uv_link_t* source,
                                     uv_link_shutdown_cb cb,
                                     void* arg) {
  return uv_link_propagate_shutdown(link->parent, source, cb, arg);
}


static void uv_link_observer_alloc_cb(uv_link_t* link,
                                      size_t suggested_size,
                                      uv_buf_t* buf) {
  return uv_link_propagate_alloc_cb(link, suggested_size, buf);
}


static void uv_link_observer_read_cb(uv_link_t* link,
                                     ssize_t nread,
                                     const uv_buf_t* buf) {
  uv_link_observer_t* observer;

  observer = (uv_link_observer_t*) link;

  if (observer->observer_read_cb != NULL)
    observer->observer_read_cb(observer, nread, buf);

  return uv_link_propagate_read_cb(link, nread, buf);
}


void uv_link_observer_close(uv_link_t* link, uv_link_t* source,
                            uv_link_close_cb cb) {
  cb(source);
}


static uv_link_methods_t uv_link_observer_methods = {
  .read_start = uv_link_observer_read_start,
  .read_stop = uv_link_observer_read_stop,
  .write = uv_link_observer_write,
  .try_write = uv_link_observer_try_write,
  .shutdown = uv_link_observer_shutdown,
  .close = uv_link_observer_close,

  .alloc_cb_override = uv_link_observer_alloc_cb,
  .read_cb_override = uv_link_observer_read_cb
};


int uv_link_observer_init(uv_link_observer_t* observer) {
  int err;

  observer->read_cb = NULL;

  err = uv_link_init((uv_link_t*) observer, &uv_link_observer_methods);
  if (err != 0)
    return err;

  return 0;
}