unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob b6a016bc594e10ea4d1cf99492a78693e17cec49 965 bytes (raw)
name: nt/inc/sys/time.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
 
#ifndef SYS_TIME_H_INCLUDED
#define SYS_TIME_H_INCLUDED

/*
 * sys/time.h either doesn't exist on Windows, or doesn't necessarily
 * have the below stuff.
 */

#include <sys/types.h>
#include <time.h>

#ifndef _TIMESPEC_DEFINED
struct timeval
{
  long		tv_sec;		/* seconds */
  long		tv_usec;	/* microseconds */
};

struct timezone
{
  int		tz_minuteswest;	/* minutes west of Greenwich */
  int		tz_dsttime;	/* type of dst correction */
};
#endif

void gettimeofday (struct timeval *, struct timezone *);

#define ITIMER_REAL      0
#define ITIMER_PROF      1

/* MinGW64 defines 'struct itimerval' and _TIMESPEC_DEFINED in sys/types.h.  */
// #ifndef _TIMESPEC_DEFINED
struct itimerval
{
  struct  timeval it_interval;	/* timer interval */
  struct  timeval it_value;	/* current value */
};
// #endif

int getitimer (int, struct itimerval *);
int setitimer (int, struct itimerval *, struct itimerval *);

#endif /* SYS_TIME_H_INCLUDED */

/* end of sys/time.h */


debug log:

solving b6a016b ...
found b6a016b in https://yhetil.org/emacs-devel/87wqsvb1oy.fsf@wanadoo.es/ ||
	https://yhetil.org/emacs-devel/87fvzjcles.fsf@wanadoo.es/
found e49f0ea in https://git.savannah.gnu.org/cgit/emacs.git
preparing index
index prepared:
100644 e49f0ea4de3b3a433028480d603e79da4140d890	nt/inc/sys/time.h

applying [1/1] https://yhetil.org/emacs-devel/87wqsvb1oy.fsf@wanadoo.es/
diff --git a/nt/inc/sys/time.h b/nt/inc/sys/time.h
index e49f0ea..b6a016b 100644

Checking patch nt/inc/sys/time.h...
Applied patch nt/inc/sys/time.h cleanly.

skipping https://yhetil.org/emacs-devel/87fvzjcles.fsf@wanadoo.es/ for b6a016b
index at:
100644 b6a016bc594e10ea4d1cf99492a78693e17cec49	nt/inc/sys/time.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).