Home
last modified time | relevance | path

Searched refs:magic (Results 1 – 25 of 1011) sorted by relevance

12345678910>>...41

/openbsd-src/usr.bin/file/
H A DMakefile4 SRCS= file.c magic-dump.c magic-load.c magic-test.c magic-common.c \
6 MAN= file.1 magic.5
16 MAGIC= /etc/magic
21 CLEANFILES+= magic post-magic
28 post-magic: $(MAGFILES)
33 magic: $(MAG1) post-magic target
34 cat ${MAG1} post-magic >$(.TARGET)
38 -m $(MAGICMODE) magic $(DESTDIR)$(MAGIC)
40 all: file magic
H A Dmagic.h105 struct magic *root;
148 struct magic { struct
188 void magic_vwarnm(struct magic *, u_int, const char *, va_list);
189 void magic_warnm(struct magic *, u_int, const char *, ...)
194 void magic_dump(struct magic *);
195 struct magic *magic_load(FILE *, const char *, int);
196 const char *magic_test(struct magic *, const void *, size_t, int);
/openbsd-src/regress/sys/kern/preadv/
H A Dpreadv.c19 const char magic[10] = "0123456789"; in main() local
28 if (write(fd, magic, sizeof(magic)) != sizeof(magic)) in main()
37 if (c != magic[0]) in main()
38 errx(1, "read1 %c != %c", c, magic[0]); in main()
48 if (c1 != magic[7]) in main()
49 errx(1, "preadv %c != %c", c1, magic[7]); in main()
51 if (c2 != magic[8]) in main()
52 errx(1, "preadv %c != %c", c2, magic[7]); in main()
57 if (c != magic[1]) in main()
58 errx(1, "read2 %c != %c", c, magic[1]); in main()
[all …]
/openbsd-src/regress/sys/kern/pread/
H A Dpread.c17 const char magic[10] = "0123456789"; in main() local
25 if (write(fd, magic, sizeof(magic)) != sizeof(magic)) in main()
34 if (c != magic[0]) in main()
35 errx(1, "read1 %c != %c", c, magic[0]); in main()
40 if (c != magic[7]) in main()
41 errx(1, "pread %c != %c", c, magic[7]); in main()
46 if (c != magic[1]) in main()
47 errx(1, "read2 %c != %c", c, magic[1]); in main()
64 if (c != magic[2]) in main()
65 errx(1, "read3 %c != %c", c, magic[2]); in main()
/openbsd-src/gnu/usr.bin/perl/cpan/IO-Compress/lib/IO/Uncompress/
H A DAnyUncompress.pm95 my $magic ;
111 $magic = $self->ckMagic( @possible );
113 if ($magic) {
114 *$self->{Info} = $self->readHeader($magic)
141 $magic = $self->ckMagic('UnXz')) {
142 *$self->{Info} = $self->readHeader($magic)
157 $magic = $self->ckMagic('Bunzip2')) {
158 *$self->{Info} = $self->readHeader($magic)
172 $magic = $self->ckMagic('UnLzop')) {
174 *$self->{Info} = $self->readHeader($magic)
[all...]
H A DGunzip.pm68 my $magic ;
69 $self->smartReadExact(\$magic, GZIP_ID_SIZE);
71 *$self->{HeaderPending} = $magic ;
75 if length $magic != GZIP_ID_SIZE ;
78 if ! isGzipMagic($magic) ;
82 return $magic ;
88 my $magic = shift;
90 return $self->_readGzipHeader($magic);
127 my $magic = '' ;
129 $self->smartReadExact(\$magic, GZIP_ID_SIZ
[all...]
H A DBunzip2.pm61 my $magic = $self->ckMagic()
64 *$self->{Info} = $self->readHeader($magic)
87 my $magic ;
88 $self->smartReadExact(\$magic, 4);
90 *$self->{HeaderPending} = $magic ;
94 if length $magic != 4;
97 if ! isBzip2Magic($magic) ;
101 return $magic;
107 my $magic = shift ;
109 $self->pushBack($magic);
[all...]
H A DUnzip.pm116 my $magic = $self->ckMagic()
119 *$self->{Info} = $self->readHeader($magic)
130 my $magic ;
131 $self->smartReadExact(\$magic, 4);
133 *$self->{HeaderPending} = $magic ;
137 if length $magic != 4 ;
140 if ! _isZipMagic($magic) ;
144 return $magic ;
176 my $magic = shift ;
179 my $hdr = $self->_readZipHeader($magic) ;
[all...]
H A DInflate.pm60 my $magic ;
61 $self->smartReadExact(\$magic, ZLIB_HEADER_SIZE);
63 *$self->{HeaderPending} = $magic ;
67 if length $magic != ZLIB_HEADER_SIZE;
71 if ! $self->isZlibMagic($magic) ;
74 return $magic;
80 my $magic = shift ;
82 return $self->_readDeflateHeader($magic) ;
H A DAnyInflate.pm82 my $magic = $self->ckMagic( @possible );
84 if ($magic) {
85 *$self->{Info} = $self->readHeader($magic)
105 my $magic = $self->ckMagic();
107 if ($magic)
110 return $magic ;
/openbsd-src/gnu/usr.sbin/mkhybrid/src/
H A DREADME.hfs_magic2 Find file types by using a modified "magic" file
7 For each entry in the magic file, the "message" for the initial offset MUST
13 e.g magic entry for a GIF file:
37 The complete format of the magic file is given in the magic man page (magic.5).
39 See the file "magic" for other examples
41 Use with the -magic magic_file option, where magic_file is a file
44 The magic file can be used with the mapping file (option -map) - the order
47 file) first. If that fails, it will then use the magic and/or mapping
50 mkhybrid -o output.raw -map mapping -magic magic src_dir
53 CREATOR/TYPE, the magic file will be used. To check the magic file
[all …]
/openbsd-src/gnu/usr.sbin/mkhybrid/src/libfile/
H A DREADME2 Find file types by using a modified "magic" file
7 For each entry in the magic file, the "message" for the initial offset MUST
13 e.g magic entry for a GIF file:
37 The complete format of the magic file is given in the magic man page (magic.5).
39 See the file "magic" for other examples
41 Use with the -magic magic_file option, where magic_file is a file
44 The magic file can be used with the mapping file (option -map) - the order
47 file) first. If that fails, it will then use the magic and/or mapping
50 mkhybrid -o output.raw -map mapping -magic magic src_dir
53 CREATOR/TYPE, the magic file will be used. To check the magic file
[all …]
H A Dapprentice.c49 static int getvalue __P((struct magic *, char **));
68 magic = (struct magic *) calloc(sizeof(struct magic), maxmagic);
69 if (magic == NULL)
115 struct magic *m; in signextend()
158 struct magic *m;
164 if ((magic = (struct magic *) realloc(magic,
165 sizeof(struct magic) *
173 memset(&magic[*ndx], 0, sizeof(struct magic) * ALLOC_INCR);
175 m = &magic[*ndx];
374 struct magic *m; in getvalue()
H A Dsoftmagic.c47 unsigned char *, struct magic *, int));
48 static int mcheck __P((union VALUETYPE *, struct magic *));
49 static int mconvert __P((union VALUETYPE *, struct magic *));
102 if (!mget(&p, s, &magic[magindex], nbytes) ||
103 !mcheck(&p, &magic[magindex])) {
109 magic[magindex + 1].cont_level != 0)
114 return (magic[magindex].desc);
126 struct magic *m;
170 struct magic *m;
219 struct magic *m;
/openbsd-src/gnu/usr.bin/perl/ext/XS-APItest/t/
H A Dmagic.t11 ok !mg_find_foo($sv), 'no foo magic yet';
12 ok !mg_find_bar($sv), 'no bar magic yet';
15 is mg_find_foo($sv), $foo, 'foo magic attached';
16 ok !mg_find_bar($sv), '... but still no bar magic';
21 is mg_find_foo($sv), $foo, 'foo magic attached to localized value';
22 ok !mg_find_bar($sv), '... but still no bar magic to localized value';
26 is mg_find_foo($sv), $foo, 'foo magic still attached';
27 is mg_find_bar($sv), $bar, '... and bar magic is there too';
30 ok !mg_find_foo($sv), 'foo magic removed';
31 is mg_find_bar($sv), $bar, '... but bar magic i
[all...]
/openbsd-src/gnu/usr.bin/perl/cpan/DB_File/
H A Ddbinfo85 my ($magic, $version, $endian, $encrypt) ;
89 $magic = $info[0] ;
96 $magic = $info1[0] ;
103 $magic = $info[3] ;
109 $magic = $info1[3] ;
116 my $type = $Data{$magic} ;
117 $magic = sprintf "%06X", $magic ;
135 Magic: $magic
/openbsd-src/usr.bin/mandoc/
H A Ddbm_map.c53 const int32_t *magic; in dbm_map() local
71 magic = dbm_getint(0); in dbm_map()
72 if (be32toh(*magic) != MANDOCDB_MAGIC) { in dbm_map()
76 fname, be32toh(*magic), MANDOCDB_MAGIC); in dbm_map()
84 magic = dbm_getint(1); in dbm_map()
85 if (be32toh(*magic) != MANDOCDB_VERSION) { in dbm_map()
87 fname, be32toh(*magic), MANDOCDB_VERSION); in dbm_map()
98 if ((magic = dbm_get(*dbm_getint(3))) == NULL) { in dbm_map()
102 if (be32toh(*magic) != MANDOCDB_MAGIC) { in dbm_map()
104 fname, be32toh(*magic), MANDOCDB_MAGIC); in dbm_map()
/openbsd-src/usr.bin/file/magdir/
H A Dmagic1 # $OpenBSD: magic,v 1.3 2008/05/08 01:40:57 chl Exp $
4 # magic: file(1) magic for magic files
6 0 string #\ Magic magic text file for file(1) cmd
7 0 lelong 0xF11E041C magic binary file for file(1) cmd
9 0 belong 0xF11E041C magic binary file for file(1) cmd
/openbsd-src/gnu/usr.bin/perl/cpan/Encode/t/
H A Dmagic.t43 is(tied($input)->{fetch}, 1, "$func processes get magic only once");
44 is(tied($input)->{store}, $mod ? 1 : 0, "$func " . ($mod ? 'processes set magic only once' : 'does not process set magic'));
54 is(tied($input)->{fetch}, 1, "$func processes get magic only once");
55 is(tied($input)->{store}, $mod ? 1 : 0, "$func " . ($mod ? 'processes set magic only once' : 'does not process set magic'));
64 is(tied($input)->{fetch}, 1, "$func processes get magic only once");
65 is(tied($input)->{store}, $mod ? 1 : 0, "$func " . ($mod ? 'processes set magic only once' : 'does not process set magic'));
75 is(tied($input)->{fetch}, 1, "$func processes get magic onl
[all...]
/openbsd-src/gnu/usr.bin/binutils/gdb/
H A Dui-file.c41 int *magic; member
58 file->magic = &ui_file_magic; in ui_file_new()
163 if (file->magic != &ui_file_magic) in ui_file_data()
308 int *magic; member
330 stream->magic = &mem_file_magic; in mem_file_new()
341 if (stream->magic != &mem_file_magic) in mem_file_delete()
359 if (stream->magic != &mem_file_magic) in mem_file_rewind()
371 if (stream->magic != &mem_file_magic) in mem_file_put()
384 if (stream->magic != &mem_file_magic) in mem_file_write()
422 int *magic; member
[all …]
/openbsd-src/lib/libcrypto/aes/asm/
H A Dvpaes-x86.pl57 my ($round, $base, $magic, $key, $const, $inp, $out)=
180 &mov ($magic,16);
208 &movdqa ("xmm1",&QWP(-0x40,$base,$magic));# .Lk_mc_forward[]
212 &movdqa ("xmm4",&QWP(0,$base,$magic)); # .Lk_mc_backward[]
218 &add ($magic,16); # next mc
221 &and ($magic,0x30); # ... mod 4
255 &movdqa ("xmm1",&QWP(0x40,$base,$magic));# .Lk_sr[]
272 &mov ($magic,$round);
275 &shl ($magic,4);
279 &xor ($magic,0x30);
[all …]
/openbsd-src/gnu/usr.bin/perl/win32/bin/
H A Dexetype.pl25 my ($record,$magic,$signature,$offset,$size);
31 ($magic,$offset) = unpack "Sx58L", $record;
34 unless $magic == 0x5a4d; # "MZ"
39 ($signature,$size,$magic) = unpack "Lx16Sx2S", $record;
44 unless ($size == 224 && $magic == 0x10b) || # IMAGE_NT_OPTIONAL_HDR32_MAGIC
45 ($size == 240 && $magic == 0x20b); # IMAGE_NT_OPTIONAL_HDR64_MAGIC
/openbsd-src/usr.sbin/unbound/util/
H A Dub_event_pluggable.c290 my_ev->super.magic = UB_EVENT_MAGIC; in my_event_new()
310 my_ev->super.magic = UB_EVENT_MAGIC; in my_signal_new()
332 my_ev->super.magic = UB_EVENT_MAGIC; in my_winsock_register_wsaevent()
385 my_base->super.magic = UB_EVENT_MAGIC; in ub_default_event_base()
402 my_base->super.magic = UB_EVENT_MAGIC; in ub_libevent_event_base()
478 if (base && base->magic == UB_EVENT_MAGIC) { in ub_event_base_free()
488 if (base->magic == UB_EVENT_MAGIC) { in ub_event_base_dispatch()
499 if (base->magic == UB_EVENT_MAGIC) { in ub_event_base_loopexit()
511 if (base->magic == UB_EVENT_MAGIC) { in ub_event_new()
523 if (base->magic == UB_EVENT_MAGIC) { in ub_signal_new()
[all …]
/openbsd-src/sbin/unwind/libunbound/util/
H A Dub_event_pluggable.c290 my_ev->super.magic = UB_EVENT_MAGIC; in my_event_new()
310 my_ev->super.magic = UB_EVENT_MAGIC; in my_signal_new()
332 my_ev->super.magic = UB_EVENT_MAGIC; in my_winsock_register_wsaevent()
385 my_base->super.magic = UB_EVENT_MAGIC; in ub_default_event_base()
402 my_base->super.magic = UB_EVENT_MAGIC; in ub_libevent_event_base()
478 if (base && base->magic == UB_EVENT_MAGIC) { in ub_event_base_free()
488 if (base->magic == UB_EVENT_MAGIC) { in ub_event_base_dispatch()
499 if (base->magic == UB_EVENT_MAGIC) { in ub_event_base_loopexit()
511 if (base->magic == UB_EVENT_MAGIC) { in ub_event_new()
523 if (base->magic == UB_EVENT_MAGIC) { in ub_signal_new()
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.law/
H A Dctors12.C11 int magic; variable
14 complex() { re=im=0; magic=MAGIC; } in complex()
15 complex(double d) { re=d; im=0; magic=MAGIC; } in complex()
16 complex(double d, double d2) {re=d; im=d2; magic=MAGIC; } in complex()
17 ~complex() {if(magic!=MAGIC) {std::printf("FAIL\n"); std::exit(1);}} in ~complex()

12345678910>>...41