Move fileops.c defines and prototypes to filesops.h
This commit is contained in:
23
src/sudo.h
23
src/sudo.h
@@ -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[],
|
||||
|
Reference in New Issue
Block a user