From dcfba92e9abb7c7e28b5fbfbe208bf391c3a416b Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Sat, 18 May 2002 20:11:53 +0000 Subject: [PATCH] Merge changes from secnod 1.2.4 --- src/afs/LINUX/osi_misc.c | 3 +- src/vfsck/libfs.h | 73 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 src/vfsck/libfs.h diff --git a/src/afs/LINUX/osi_misc.c b/src/afs/LINUX/osi_misc.c index 6cc594110..fefc6e9f8 100644 --- a/src/afs/LINUX/osi_misc.c +++ b/src/afs/LINUX/osi_misc.c @@ -14,7 +14,7 @@ #include #include "../afs/param.h" -RCSID("$Header: /tmp/cvstemp/openafs/src/afs/LINUX/osi_misc.c,v 1.9 2002/05/12 05:50:42 hartmans Exp $"); +RCSID("$Header: /tmp/cvstemp/openafs/src/afs/LINUX/osi_misc.c,v 1.10 2002/05/18 20:11:52 hartmans Exp $"); #include "../afs/sysincludes.h" #include "../afs/afsincludes.h" @@ -441,6 +441,7 @@ void osi_linux_mask() { void osi_linux_unmask() { spin_lock_irq(&rxk_ListenerTask->sigmask_lock); sigemptyset(&rxk_ListenerTask->blocked); + flush_signals(rxk_ListenerTask); recalc_sigpending(rxk_ListenerTask); spin_unlock_irq(&rxk_ListenerTask->sigmask_lock); } diff --git a/src/vfsck/libfs.h b/src/vfsck/libfs.h new file mode 100644 index 000000000..8b8bd60ad --- /dev/null +++ b/src/vfsck/libfs.h @@ -0,0 +1,73 @@ +/* + * $Revision: 1.3 $ + */ + +/* + * libfs.h: + * Contains declarations and macro definitions utilized by source + * files that make up the libfs library. + * + * This file is local to the build environment. + * One can include this header in their code with the statement: + * #include + */ + +/* + * This file is part of the HP-YUX source code and shouls not be released + * to AFS customers unless thay have a source license + */ + +#ifndef _STDIO_INCLUDED +# include /* For FILE definition */ +#endif +#ifndef _SYS_FS_INCLUDED +# include /* For UFS_*(fs) macro definitions */ +#endif + +/* + * Useful macros used by many FS commands + */ + +#define VALID_FS_MAGIC(fs) UFS_VALID_FS_MAGIC(fs) /* in */ +#define LONG_FILENAME_FS(fs) UFS_LFN_FS(fs) /* in */ + +/* + * Return Values from LongFilenameOK() + */ +#define LFN_ERROR (-1) +#define LFN_NOT_OK 0 +#define LFN_OK 1 + +/* + * Values returned by setup_block_seek() + */ +#define BLKSEEK_PROCESSING_ERROR (-2) +#define BLKSEEK_FILE_WRITEONLY (-1) +#define BLKSEEK_NOT_ENABLED 0 +#define BLKSEEK_ENABLED 1 + +/* + * extern declarations of libfs routines. + */ +typedef int boolean; + +#ifdef _PROTOTYPES + extern boolean is_mounted(char *); + extern boolean IsSwap(char *); + extern FILE *mnt_setmntent(char *, char *); + extern int LongFilenameOK(char *); + extern char *fserror(char *); + extern void set_fserror(char *); + extern int setup_block_seek(int); + extern int setup_block_seek_2(int,int *); +#else + extern boolean is_mounted(); + extern boolean IsSwap(); + extern FILE *mnt_setmntent(); + extern int LongFilenameOK(); + extern char *fserror(); + extern void set_fserror(); + extern int setup_block_seek(); + extern int setup_block_seek_2(); +#endif + -- 2.39.5