Commit Graph

237825 Commits

Author SHA1 Message Date
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
uebayasi
edc287c6eb Fix build of SPLASHSCREEN without SPLASHSCREEN_IMAGE. Since there is no way
to change ALLFILES by makeoptions, build an empty splash_image.o.
2015-09-15 00:16:42 +00:00
nonaka
5298fd96c5 regen. 2015-09-14 15:51:29 +00:00
nonaka
9d39412f31 COREGA RTL8192SU is actually CG-WLUSBNM. 2015-09-14 15:51:07 +00:00
pooka
e62609a73b Fully build ugenhc only on archs where libusb is built. 2015-09-14 15:09:35 +00:00
pooka
8d6acaa88c Note in comment why this "d"ma implementation is not in libusb. 2015-09-14 15:08:50 +00:00
ozaki-r
4f92eb6d47 Update icmp6_redirect_timeout_q when changing net.inet6.icmp6.redirtimeout
We have to update icmp6_redirect_timeout_q as well as icmp6_redirtimeout
when changing net.inet6.icmp6.redirtimeout via sysctl. The updating logic
is copied from sysctl_net_inet_icmp_redirtimeout.

This change is from s-yamaguchi@IIJ (with KNF by ozaki-r) and fixes
PR kern/50240.
2015-09-14 05:34:28 +00:00
ozaki-r
f2a7b1339e Add tests for IPv6 ICMP redirect
Note that tests for redirect timeout doesn't work for now due to
PR kern/50240.

From s-yamaguchi@IIJ (with some fixes and tweaks by ozaki-r)
2015-09-14 05:22:56 +00:00
ozaki-r
44996ea918 Include a few additional libc functions in rump.route to make it work with inet6
getaddrinfo and if_nametoindex are newly added to interpret interface names
in IPv6 link-local addresses. if_nametoindex looks not used in rump.route,
but it is needed because it is used indirectly from getaddrinfo.

From s-yamaguchi@IIJ
2015-09-14 05:12:52 +00:00
uebayasi
960ec2b2e8 Handle splash image generation better. 2015-09-14 01:40:03 +00:00
he
3c48f5cbbf Add entry for nexttowardf(3) and a link for the function name.
Bump manual page date.
2015-09-13 10:58:30 +00:00
wiz
46a774636f Fix typo. 2015-09-13 10:46:41 +00:00
he
a9e1b0780a Add entries for rintl(3) and the nearbyint functions, and
make manual page links to the new functions.
Bump manual page date.
2015-09-13 09:46:30 +00:00
mbalmer
43ef4f903a Fix a few entries, add a not about IATA vs. ICAO codes. 2015-09-13 09:21:51 +00:00
dholland
8f73830c5d Fix wrong code in lfs_valloc_fixed(). It was overwriting the inode
number it was supposed to be allocating with the head of the inode
freelist, then applying the wrong test to that result. Net result:
unless the freelist was empty (in which case it would always fail),
it would in general drop a bunch of entries from the freelist.

This code seems to have been broken when the first version of lfsv2
was imported onto the perseant-lfsv2 branch in -r1.47.2.1, and
remained broken since, in spite of having been moved to lfs_rfw.c and
back and rearranged quite a bit in the meantime.

Sigh.

Found by Coverity in a rather confusing way as CID 1316545.
2015-09-13 07:53:37 +00:00
wiz
c39756ad10 servername cannot be NULL here.
Noted by joerg@.
2015-09-12 20:23:27 +00:00
wiz
2772e651e2 ftp(1): SNI support for https. [wiz 20150912] 2015-09-12 20:20:30 +00:00
wiz
7a5da4c401 Bump version for SNI support. 2015-09-12 20:18:52 +00:00
christos
9ef18f76ff diagused some variables. 2015-09-12 19:50:08 +00:00
wiz
f9b7d2341e Add Server Name Indication (SNI) support for https.
Needed for e.g. some github URLs.
2015-09-12 19:38:42 +00:00
christos
c82c3049c6 remove identity assignment, found by brainy. 2015-09-12 19:33:03 +00:00
christos
0f81ab985e fix spl issues, found by brainy. 2015-09-12 19:31:41 +00:00
christos
011dd0b982 add missing splx() found by brainy 2015-09-12 19:21:50 +00:00
christos
d78ff1cbea missing splx() found by brainy 2015-09-12 19:19:11 +00:00
christos
57a7e81fe7 Add missing splx() found by brainy. 2015-09-12 19:18:24 +00:00
joerg
2bb600f982 Negating an integer and comparing it to 1 is a fancy way of checking for
0, which in this case would be DEVI_ORPHAN. That clearly can't be the
intention here, so switch to using != as operation without negation
instead.
2015-09-12 19:11:13 +00:00
christos
aa52694f67 use the unsigned char version of the input char in all cases "cap[uc]" to
avoid accessing cap[negative], found by Elliott Hughes
2015-09-12 19:08:47 +00:00
joerg
4d3d7e27e9 Avoid TYPE_MAXIMUM, it depends on undefined behavior. 2015-09-12 19:05:11 +00:00
joerg
664441867e Don't shift negative values. 2015-09-12 19:04:21 +00:00
joerg
963949fb1a Replace arithmetic using undefined behavior with exhaustive list of type
size limits.
2015-09-12 19:03:11 +00:00
christos
32627ea0ec gcc does not detect initialization correctly on all platforms (hpcsh) 2015-09-12 18:30:46 +00:00
christos
e56eaf6411 - preserve the error number returned from copyin.
- preserve the original pathname in ep_kname, because this is what gets passed
  to userland in exec_script.c
2015-09-12 17:04:57 +00:00
snj
42a95bd51a remove xf86 ctwm.debug entry. 2015-09-12 15:25:01 +00:00
christos
200d779b75 make error more informative. 2015-09-12 15:21:33 +00:00