all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 1f1da2a34a6911e1a183725f4297cfe516700501 1494 bytes (raw)
name: src/syssocket.h 	 # note: path name is non-authoritative(*)

 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
 
#ifndef _EMACS_SOCKET_H
#define _EMACS_SOCKET_H 1

#include <assert.h>
#include <errno.h>
#include <signal.h>
#include <stddef.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/un.h>

#include <inttypes.h>
#include <sys/types.h>
#include <sys/socket.h>

/* Systemd's first passed file descriptor */
#define SD_LISTEN_FDS_START 3

/*
  Helper call for identifying a passed file descriptor. Returns 1 if
  the file descriptor is a socket of type (SOCK_DGRAM, SOCK_STREAM,
  ...), 0 otherwise. If type is 0 a socket type check will not be done
  and the call only verifies if the file descriptor refers to a
  socket. If listening is > 0 it is verified that the socket is in
  listening mode. (i.e. listen() has been called) If listening is == 0
  it is verified that the socket is not in listening mode. If
  listening is < 0 no listening mode check is done. Returns a negative
  errno style error code on failure.

  See https://www.freedesktop.org/software/systemd/man/devel/sd_is_socket.html
  for more information.
*/
int sd_is_socket(int fd, int type, int listening);

/*
  Tells systemd that daemon startup or daemon reload is finished.

  See https://www.freedesktop.org/software/systemd/man/devel/sd_notify.html#Notes
  for more information.
*/
int sd_notify_ready(void);

/*
  Tells systemd that the daemon is about to go down.

  See https://www.freedesktop.org/software/systemd/man/devel/sd_notify.html#Notes
  for more information.

 */
int sd_notify_stopping(void);

#endif

debug log:

solving 1f1da2a34a6 ...
found 1f1da2a34a6 in https://yhetil.org/guix/87eda7ula3.fsf@ngraves.fr/

applying [1/1] https://yhetil.org/guix/87eda7ula3.fsf@ngraves.fr/
diff --git a/src/syssocket.h b/src/syssocket.h
new file mode 100644
index 00000000000..1f1da2a34a6

Checking patch src/syssocket.h...
Applied patch src/syssocket.h cleanly.

index at:
100644 1f1da2a34a6911e1a183725f4297cfe516700501	src/syssocket.h

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.