Move fileops.c defines and prototypes to filesops.h

This commit is contained in:
Todd C. Miller
2010-04-23 06:02:39 -04:00
parent f7f9def5ef
commit 4b04e875ed
4 changed files with 40 additions and 29 deletions

View File

@@ -26,11 +26,13 @@
#include <pathnames.h>
#include <limits.h>
#include "compat.h"
#include "alloc.h"
#include "error.h"
#include "list.h"
#include "missing.h"
#include <compat.h>
#include <alloc.h>
#include <error.h>
#include <fileops.h>
#include <list.h>
#include <missing.h>
#ifdef __TANDEM
# define ROOT_UID 65535
@@ -93,13 +95,6 @@
*/
#define SUDO_PASS_MAX 256
/*
* Flags for lock_file()
*/
#define SUDO_LOCK 1 /* lock a file */
#define SUDO_TLOCK 2 /* test & lock a file (non-blocking) */
#define SUDO_UNLOCK 4 /* unlock a file */
/*
* Flags for tgetpass()
*/
@@ -173,10 +168,6 @@ int tty_present(void);
/* zero_bytes.c */
void zero_bytes(volatile void *, size_t);
/* fileops.c */
int lock_file(int, int);
char *sudo_parseln(FILE *);
/* script.c */
int script_duplow(int);
int script_execve(struct command_details *details, char *argv[], char *envp[],