Commit Graph

237858 Commits

Author SHA1 Message Date
dholland
947343ea0e Add 64-bit directory entry structures, and adjust accessors accordingly.
The LFS64 directory entry has a 64-bit inode number. This is stored as
two 32-bit values to avoid inducing 64-bit alignment requirements.

The exposed type for manipulating directory entries is now
LFS_DIRHEADER, following the same convention as e.g. IFILE and SEGUSE.
(But with LFS_ on it, because.)
2015-09-21 01:24:23 +00:00
dholland
80201f5aa5 Oops; LFS_DIRECTSIZ() is going to need the fs as an argument.
Also, it turns out that dirhash needs a compile-time-constant version
of LFS_DIRECTSIZ(LFS_MAXNAMLEN+1), independent of 64-vs-32, so create
LFS_MAXDIRENTRYSIZE for this. Sigh.
2015-09-21 01:22:18 +00:00
wiz
c20b084d18 Add -s to getopt(3)-string.
Noted missing by Henning Petersen in PR 50255.

While here, clean up usage.
2015-09-20 17:45:25 +00:00
kamil
21207296f6 Prefer error messages resolved from errno over handwritten ones. 2015-09-20 16:57:13 +00:00
kamil
ca8a5c231b Correct #ifdef/#endif header file guards generator for files with names
other than alphanumerical.

For example, for a file named config-subscriber.x we were generating a
symbol '_CONFIG-SUBSCRIBER_H'.

Since now all non alphanumerical characters will be converted to '_' and we
will prevent from generating symbols starting with "__", what's reserved
for the internal compiler code parsers and generators.
2015-09-20 16:39:04 +00:00
kamil
facb255330 Correct newstyle code generation
For newstyle we used to generate oldstyle code. This bug has been fixed in
FreeBSD on 13 Dec 1995 by wpaul.

15a1e09c3d

Reviewed by <christos>, <pgoyette>
2015-09-20 15:52:11 +00:00
kamil
29aa8e74c1 Fix NULL pointer dereference
After the last function improvements there is invalid plist dereference
at the beginning of the second for () external loop. Move the proper check
inside the internal secound for () loop, after plist reinitialization.
2015-09-20 15:45:07 +00:00
martin
48059d8422 Add tera- and peta-bytes. 2015-09-20 15:09:06 +00:00
dholland
75caa729bb Clean up struct lfs_dirtemplate. 2015-09-20 04:51:43 +00:00
dholland
105e003c9a Fix glaringly stupid overflow/sizing bug in -r1.25. The part I don't
get is how it passed testing...
2015-09-20 04:50:58 +00:00
mrg
09797aa101 note netstat(1) knows window height now. 2015-09-20 00:35:14 +00:00
mrg
5f8222cdb9 query the window size and use it instead of assuming 24 lines.
now the header isn't re-printed a lot of times in tall windows.
2015-09-20 00:30:04 +00:00
wiz
b1bfb67337 Install radeon(4) from radeon-kms into x86 subdir.
This way, there is no file name issue with radeon(4) from
the old not-kms driver; and subdir man pages are preferred
to non-subdir.

Addresses MKREPRO issue from PR 50132.

XXX: This will stop being correct if radeon-kms is ported to more
platforms like sparc64.
2015-09-19 23:00:44 +00:00
dholland
59f989c072 Use value *before* freeing it. Found by brainy, reported by maxv. 2015-09-19 18:32:42 +00:00
dholland
3db7a6ac2b add note about the most recent acpica update 2015-09-19 18:31:41 +00:00
phx
80b0980ebb Size of erase block is 128 bytes when sector density (z) is zero. 2015-09-18 21:30:02 +00:00
phx
f13c00ea98 Declare sensor data invalid when reading the sensor failed (device is gone). 2015-09-18 17:21:43 +00:00
wiz
885f10e6bf tgif 2015-09-18 13:40:10 +00:00
pooka
6a501c9863 Fix typos to match values from rumpuser_config.h
from Hajime Tazaki via rumpkernel-users
2015-09-18 10:56:25 +00:00
nat
9e9e430b16 Don't disable/re-enable interrupts if they are already disabled.
Addresses PR 48196.

This commit was improved and approved by christos@
2015-09-17 23:48:01 +00:00
christos
dbf397647f fix 32 bit build. 2015-09-17 14:39:35 +00:00
christos
6fbf8f6644 undo previous; include is in ${.OBJDIR} 2015-09-17 14:25:43 +00:00
nonaka
de17d00067 PR/50248: re-apply src/external/bsd/tcpdump/dist/tcpdump.c rev.1.8.
> When running as root and wanting to write a file and not having CAPNG, don't
> drop privs, because we cannot open the file if we drop privs.
2015-09-17 14:03:10 +00:00
skrll
a9a1ce9deb gdb.old is no more. 2015-09-17 09:34:20 +00:00
skrll
511b4bba45 Remove gdb.old now it's unused. 2015-09-17 09:26:32 +00:00
christos
2b8a0471fe make this more robust by using .CURDIR to cd. 2015-09-17 02:22:47 +00:00
christos
b573611377 move libctf after the barrier since it depends on libz 2015-09-17 02:00:33 +00:00
christos
fe20ccddcc don't depend on the installed version of libz 2015-09-17 01:53:48 +00:00
christos
dce63dea1d no need for LIBDPLIBS here 2015-09-16 19:47:14 +00:00
macallan
b3e755bed0 prop_dictionary_get_bool() doesn't return FALSE if the property doesn't
exist, so initialize things first.
No more console stealing on sparc64.
2015-09-16 16:52:54 +00:00
joerg
f66e764c57 Workaround const issues of SSL_set_tlsext_host_name. 2015-09-16 15:32:53 +00:00
isaki
b89c958e2e To turn off the power, it's necessary to turn off the alarm signal
of RTC before writing the system port.  This is a fix for rev 1.191.
Thanks to Y.Sugahara.
Should be pulled up to netbsd-7.
2015-09-16 05:48:52 +00:00
christos
661f541135 libctf depends on libz 2015-09-15 18:38:41 +00:00
christos
5020ab68d5 Provide access to pc/sp/syscall-return registers like we have for mcontext 2015-09-15 15:49:02 +00:00
pooka
d6c14239ed Use the more widely accepted version of alphabetical order. 2015-09-15 15:09:10 +00:00
dholland
7ad6b1a922 Remove struct lfs_direct (no longer used) and update the big block
comment about directories.
2015-09-15 15:02:40 +00:00
dholland
805a8504cb Pass around struct lfs_dirheader instead of struct lfs_direct. 2015-09-15 15:02:25 +00:00
dholland
98320dbc87 Add an accessor function for directory names. 2015-09-15 15:02:01 +00:00
dholland
653d6346b1 Add a function lfs_copydirname() to copy directory names in place; use
it in place of (variously) memcpy and strlcpy. (The latter isn't even
correct; was probably changed blindly from strncpy at some point.)

The new function zeroes the padding in the directory entry instead of
leaving trash behind.
2015-09-15 15:01:38 +00:00
dholland
06be19e226 Tidyups/fixes preparatory to making d_name[] in struct lfs_direct size
0 instead of size LFS_MAXNAMLEN+1, and preparatory to having accessor
functions for d_name. In particular, don't create prototype entries
and copy them, and access the name field only for directory structures
that are in buffers with space for the name to exist.
2015-09-15 15:01:22 +00:00
dholland
c96fd3a912 Kill off the ulfs_direct_cache pool.
We no longer allocate temporary struct directs, so we don't need a
pool for them.
2015-09-15 15:01:03 +00:00
dholland
53a3e07718 Tidy up ulfs_direnter: don't malloc a temporary struct lfs_direct
and double-copy it. Just write to the destination buffer.
2015-09-15 15:00:49 +00:00
dholland
54671fde93 Kill off ulfs_makedirentry; just pass the data to ulfs_direnter instead.
For now, move one copy of the code that allocates and fills in a
temporary struct lfs_direct to the top of ulfs_direnter; but it should
go away shortly.
2015-09-15 15:00:32 +00:00
dholland
c2c4048b2d Move the header part of struct lfs_direct to its own structure.
(lfs_dirheader)

Take the opportunity to improve the directory generation code in
make_lfs.c. (Everything else was unaffected by virtue of using
accessor functions.)
2015-09-15 14:59:58 +00:00
dholland
5a97d9e5b6 Add and use accessor functions for more of the directory entry fields. 2015-09-15 14:58:05 +00:00
pooka
f2aae5969b install <rump/rumperrno2host.h> 2015-09-15 14:57:34 +00:00
pooka
3c87ab877c regen 2015-09-15 14:55:55 +00:00
pooka
2972539674 Generate rump_errno2host(): translates rump kernel errnos to host errnos.
Essentially, it's a partial I-know-what-I'm-doing syscall compat.

Functionality requested by Robert Millan.
2015-09-15 14:55:12 +00:00
ozaki-r
c656a96f13 Improve test stability
ifconfig -a -v after ifconfig -a -z is expected to show '0 packets' for
all interface. However, shmif0 can receive packets between the two
operations. So we have to keep shmif0 down during such tests.
2015-09-15 09:51:01 +00:00
uebayasi
229ff8e5ba Clean up splash image build. Print messages when creating files. 2015-09-15 02:22:43 +00:00