* commit 'aa916c8db85b01389b929f060f232b3e06448e79': Clean up SEEK_SET definitions.
This commit is contained in:
		@@ -207,16 +207,9 @@ extern FILE* stderr;
 | 
				
			|||||||
#define	L_tmpnam	1024	/* XXX must be == PATH_MAX */
 | 
					#define	L_tmpnam	1024	/* XXX must be == PATH_MAX */
 | 
				
			||||||
#define	TMP_MAX		308915776
 | 
					#define	TMP_MAX		308915776
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Always ensure that these are consistent with <fcntl.h> and <unistd.h>! */
 | 
					#define SEEK_SET 0
 | 
				
			||||||
#ifndef SEEK_SET
 | 
					#define SEEK_CUR 1
 | 
				
			||||||
#define	SEEK_SET	0	/* set file offset to offset */
 | 
					#define SEEK_END 2
 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
#ifndef SEEK_CUR
 | 
					 | 
				
			||||||
#define	SEEK_CUR	1	/* set file offset to current plus offset */
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
#ifndef SEEK_END
 | 
					 | 
				
			||||||
#define	SEEK_END	2	/* set file offset to EOF plus offset */
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Functions defined in ANSI C standard.
 | 
					 * Functions defined in ANSI C standard.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -35,14 +35,19 @@
 | 
				
			|||||||
#include <sys/select.h>
 | 
					#include <sys/select.h>
 | 
				
			||||||
#include <sys/sysconf.h>
 | 
					#include <sys/sysconf.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#include <machine/posix_limits.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
__BEGIN_DECLS
 | 
					__BEGIN_DECLS
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Standard file descriptor numbers. */
 | 
					 | 
				
			||||||
#define STDIN_FILENO	0
 | 
					#define STDIN_FILENO	0
 | 
				
			||||||
#define STDOUT_FILENO	1
 | 
					#define STDOUT_FILENO	1
 | 
				
			||||||
#define STDERR_FILENO	2
 | 
					#define STDERR_FILENO	2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Values for whence in fseek and lseek */
 | 
					#define F_OK 0
 | 
				
			||||||
 | 
					#define X_OK 1
 | 
				
			||||||
 | 
					#define W_OK 2
 | 
				
			||||||
 | 
					#define R_OK 4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define SEEK_SET 0
 | 
					#define SEEK_SET 0
 | 
				
			||||||
#define SEEK_CUR 1
 | 
					#define SEEK_CUR 1
 | 
				
			||||||
#define SEEK_END 2
 | 
					#define SEEK_END 2
 | 
				
			||||||
@@ -68,8 +73,6 @@ __BEGIN_DECLS
 | 
				
			|||||||
#define _PC_PRIO_IO 18
 | 
					#define _PC_PRIO_IO 18
 | 
				
			||||||
#define _PC_SYNC_IO 19
 | 
					#define _PC_SYNC_IO 19
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <machine/posix_limits.h>
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
extern char** environ;
 | 
					extern char** environ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
extern __noreturn void _exit(int);
 | 
					extern __noreturn void _exit(int);
 | 
				
			||||||
@@ -121,13 +124,6 @@ extern void endusershell(void);
 | 
				
			|||||||
extern long fpathconf(int, int);
 | 
					extern long fpathconf(int, int);
 | 
				
			||||||
extern long pathconf(const char*, int);
 | 
					extern long pathconf(const char*, int);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
/* Macros for access() */
 | 
					 | 
				
			||||||
#define R_OK  4  /* Read */
 | 
					 | 
				
			||||||
#define W_OK  2  /* Write */
 | 
					 | 
				
			||||||
#define X_OK  1  /* Execute */
 | 
					 | 
				
			||||||
#define F_OK  0  /* Existence */
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
extern int access(const char*, int);
 | 
					extern int access(const char*, int);
 | 
				
			||||||
extern int faccessat(int, const char*, int, int);
 | 
					extern int faccessat(int, const char*, int, int);
 | 
				
			||||||
extern int link(const char*, const char*);
 | 
					extern int link(const char*, const char*);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user