mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	timespecadd, fgetln headers.
This commit is contained in:
		@@ -32,6 +32,11 @@
 | 
				
			|||||||
 * POSSIBILITY OF SUCH DAMAGE.
 | 
					 * POSSIBILITY OF SUCH DAMAGE.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <sys/types.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <errno.h>
 | 
				
			||||||
 | 
					#include <stdio.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "tmux.h"
 | 
					#include "tmux.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
char *
 | 
					char *
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										14
									
								
								tmux.h
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								tmux.h
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
				
			|||||||
/* $Id: tmux.h,v 1.163 2008-06-22 21:52:41 nicm Exp $ */
 | 
					/* $Id: tmux.h,v 1.164 2008-06-22 22:20:07 nicm Exp $ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
					 * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
 | 
				
			||||||
@@ -75,6 +75,18 @@ extern const char    *__progname;
 | 
				
			|||||||
            ((tsp)->tv_sec cmp (usp)->tv_sec))
 | 
					            ((tsp)->tv_sec cmp (usp)->tv_sec))
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef timespecadd
 | 
				
			||||||
 | 
					#define	timespecadd(tsp, usp, vsp)					\
 | 
				
			||||||
 | 
						do {								\
 | 
				
			||||||
 | 
							(vsp)->tv_sec = (tsp)->tv_sec + (usp)->tv_sec;		\
 | 
				
			||||||
 | 
							(vsp)->tv_nsec = (tsp)->tv_nsec + (usp)->tv_nsec;	\
 | 
				
			||||||
 | 
							if ((vsp)->tv_nsec >= 1000000000L) {			\
 | 
				
			||||||
 | 
								(vsp)->tv_sec++;				\
 | 
				
			||||||
 | 
								(vsp)->tv_nsec -= 1000000000L;			\
 | 
				
			||||||
 | 
							}							\
 | 
				
			||||||
 | 
						} while (0)
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef TTY_NAME_MAX
 | 
					#ifndef TTY_NAME_MAX
 | 
				
			||||||
#define TTY_NAME_MAX 32
 | 
					#define TTY_NAME_MAX 32
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user