]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Merge changes from secnod 1.2.4
authorSam Hartman <hartmans@debian.org>
Sat, 18 May 2002 20:11:53 +0000 (20:11 +0000)
committerSam Hartman <hartmans@debian.org>
Sat, 18 May 2002 20:11:53 +0000 (20:11 +0000)
src/afs/LINUX/osi_misc.c
src/vfsck/libfs.h [new file with mode: 0644]

index 6cc594110e9b1b67b4451036d7ce89095c341a83..fefc6e9f82f3a72595e508253c9d59af460f51d5 100644 (file)
@@ -14,7 +14,7 @@
 #include <afsconfig.h>
 #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 (file)
index 0000000..8b8bd60
--- /dev/null
@@ -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 <sys/libfs.h>
+ */
+
+/*
+ * 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 <stdio.h>         /* For FILE definition */
+#endif
+#ifndef _SYS_FS_INCLUDED
+#  include <sys/fs.h>        /* For UFS_*(fs) macro definitions */
+#endif
+
+/*
+ * Useful macros used by many FS commands
+ */
+
+#define VALID_FS_MAGIC(fs)    UFS_VALID_FS_MAGIC(fs)   /* in <sys/fs.h> */
+#define LONG_FILENAME_FS(fs)  UFS_LFN_FS(fs)           /* in <sys/fs.h> */
+
+/*
+ * 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
+