aboutsummaryrefslogtreecommitdiffstats
path: root/package/openssl/patches/130-perl-path.patch
blob: dd4fa54d55d3169e6473791d5f11bddf4e9fde8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
--- a/Configure
+++ b/Configure
@@ -1,4 +1,4 @@
-:
+#!/usr/bin/perl
 eval 'exec perl -S $0 ${1+"$@"}'
     if $running_under_some_shell;
 ##
--- a/tools/c_rehash.in
+++ b/tools/c_rehash.in
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl
+#!/usr/bin/perl
 
 
 # Perl c_rehash script, scan all files in a directory
--- a/util/clean-depend.pl
+++ b/util/clean-depend.pl
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl
 # Clean the dependency list in a makefile of standard includes...
 # Written by Ben Laurie <ben@algroup.co.uk> 19 Jan 1999
 
--- a/util/mkdef.pl
+++ b/util/mkdef.pl
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl
 #
 # generate a .def file
 #
--- a/util/mkerr.pl
+++ b/util/mkerr.pl
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl
 
 my $config = "crypto/err/openssl.ec";
 my $hprefix = "openssl/";
--- a/util/mkstack.pl
+++ b/util/mkstack.pl
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl
 
 # This is a utility that searches out "DECLARE_STACK_OF()"
 # declarations in .h and .c files, and updates/creates/replaces
--- a/util/pod2man.pl
+++ b/util/pod2man.pl
@@ -1,4 +1,4 @@
-: #!/usr/bin/perl-5.005
+#!/usr/bin/perl
     eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
 	if $running_under_some_shell;
 
--- a/util/selftest.pl
+++ b/util/selftest.pl
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl
 #
 # Run the test suite and generate a report
 #
*/ typedef void *(*conf_field_init) (struct pci_dev * dev, int offset); typedef void (*conf_field_reset) (struct pci_dev * dev, int offset, void *data); typedef void (*conf_field_free) (struct pci_dev * dev, int offset, void *data); typedef int (*conf_dword_write) (struct pci_dev * dev, int offset, u32 value, void *data); typedef int (*conf_word_write) (struct pci_dev * dev, int offset, u16 value, void *data); typedef int (*conf_byte_write) (struct pci_dev * dev, int offset, u8 value, void *data); typedef int (*conf_dword_read) (struct pci_dev * dev, int offset, u32 * value, void *data); typedef int (*conf_word_read) (struct pci_dev * dev, int offset, u16 * value, void *data); typedef int (*conf_byte_read) (struct pci_dev * dev, int offset, u8 * value, void *data); /* These are the fields within the configuration space which we * are interested in intercepting reads/writes to and changing their * values. */ struct config_field { unsigned int offset; unsigned int size; unsigned int mask; conf_field_init init; conf_field_reset reset; conf_field_free release; void (*clean) (struct config_field * field); union { struct { conf_dword_write write; conf_dword_read read; } dw; struct { conf_word_write write; conf_word_read read; } w; struct { conf_byte_write write; conf_byte_read read; } b; } u; struct list_head list; }; struct config_field_entry { struct list_head list; struct config_field *field; unsigned int base_offset; void *data; }; #define OFFSET(cfg_entry) ((cfg_entry)->base_offset+(cfg_entry)->field->offset) /* Add fields to a device - the add_fields macro expects to get a pointer to * the first entry in an array (of which the ending is marked by size==0) */ int pciback_config_add_field_offset(struct pci_dev *dev, struct config_field *field, unsigned int offset); static inline int pciback_config_add_field(struct pci_dev *dev, struct config_field *field) { return pciback_config_add_field_offset(dev, field, 0); } static inline int pciback_config_add_fields(struct pci_dev *dev, struct config_field *field) { int i, err = 0; for (i = 0; field[i].size != 0; i++) { err = pciback_config_add_field(dev, &field[i]); if (err) break; } return err; } static inline int pciback_config_add_fields_offset(struct pci_dev *dev, struct config_field *field, unsigned int offset) { int i, err = 0; for (i = 0; field[i].size != 0; i++) { err = pciback_config_add_field_offset(dev, &field[i], offset); if (err) break; } return err; } /* Read/Write the real configuration space */ int pciback_read_config_byte(struct pci_dev *dev, int offset, u8 * value, void *data); int pciback_read_config_word(struct pci_dev *dev, int offset, u16 * value, void *data); int pciback_read_config_dword(struct pci_dev *dev, int offset, u32 * value, void *data); int pciback_write_config_byte(struct pci_dev *dev, int offset, u8 value, void *data); int pciback_write_config_word(struct pci_dev *dev, int offset, u16 value, void *data); int pciback_write_config_dword(struct pci_dev *dev, int offset, u32 value, void *data); int pciback_config_capability_init(void); int pciback_config_header_add_fields(struct pci_dev *dev); int pciback_config_capability_add_fields(struct pci_dev *dev); #endif /* __XEN_PCIBACK_CONF_SPACE_H__ */