Commit Graph

15007 Commits

Author SHA1 Message Date
matt 9decdbdfe4 Add missing */ 2011-07-04 21:55:09 +00:00
mrg cd21741236 XXX: for now, build sparc64 csu with -O1 if using GCC 4.5. 2011-07-04 21:54:18 +00:00
manu 8f6bd1b1eb Add documentation link xdr_sizeof(3) -> xdr(3) 2011-07-04 12:05:00 +00:00
mrg bf90b28081 avoid some uninitalised variable warnings. 2011-07-04 11:46:41 +00:00
mrg de4475a299 add support for __floatunsisf(). 2011-07-04 11:22:39 +00:00
mrg ceb5b44c16 insert some (uintptr_t) between int and pointer casts. 2011-07-04 11:01:40 +00:00
manu b4a55eb6f9 Document newly imported xdr_sizeof() 2011-07-04 08:19:51 +00:00
manu be95d60797 Add a flag to VOP_LISTEXTATTR(9) so that the vnode interface can tell the
filesystem in which format extended attribute shall be listed.

There are currently two formats:
- NUL-terminated strings, used for listxattr(2), this is the default.
- one byte length-pprefixed, non NUL-terminated strings, used for
  extattr_list_file(2), which is obtanined by setting the
  EXTATTR_LIST_PREFIXLEN flag to VOP_LISTEXTATTR(9)

This approach avoid the need for converting the list back and forth, except
in libperfuse, since FUSE uses NUL-terminated strings, and the kernel may
have requested EXTATTR_LIST_PREFIXLEN.
2011-07-04 08:07:29 +00:00
matt c2405fa58b Add __floatunsidf __floatunsisf __floatunsitf routines.
XXX i think they are correct but not sure.
2011-07-04 08:02:34 +00:00
manu 319b6ef0ee Import xdr_sizeof() from FreeBSD 2011-07-04 07:54:38 +00:00
matt 25ba5ff11d Update to C89 style.
Fix name of floatundidf (uns -> un).
2011-07-04 06:23:50 +00:00
mrg fb6b921228 sh3 also needs -Wno-enum-compare here. 2011-07-04 02:53:15 +00:00
jruoho b825528b07 But use .Xr (and not .Fn) with references to external functions. 2011-07-03 20:36:34 +00:00
jruoho f688e4951f Use .Fn (and not .Nm) for functions. 2011-07-03 20:34:52 +00:00
mrg 462a335ff0 mips wants some -Wno-enum-compare here, too. 2011-07-03 15:26:58 +00:00
jruoho cac6cf8528 Note that mknod(2) may fail with EINVAL. 2011-07-03 14:11:43 +00:00
mrg cba8775c43 use DBL_MAX and FLT_MAX from <float.h> instead of hard coding some ieeefp values. 2011-07-03 06:45:24 +00:00
matt 532130a31c The kernel and ld.elf_so call with a different order for
cleanup, obj, ps_strings so deal with it.
With this change, USE_COMPILERCRTSTUFF=no works.
2011-07-02 20:16:09 +00:00
matt 675a57b0bb Adapt to the new ___start calling convention 2011-07-02 20:14:10 +00:00
matt fe30c1af31 Make this adhere to the SVR4 ABI. 2011-07-02 07:28:08 +00:00
christos cdf62a44d3 - use defines for lengths
- strlcpy/snprintf
- KNK
2011-07-01 15:09:28 +00:00
matt db6dfce31a Fix some bugs [exceed array bounds]. Simplify. 2011-07-01 03:20:06 +00:00
joerg c4cda1a2a7 Explicitly declare ___start as hidden. 2011-07-01 02:59:05 +00:00
mrg 680385b441 XXX: apply -Wno-error/friends to a few files 2011-07-01 01:25:52 +00:00
joerg b341a73a57 Fix memset usage. 2011-07-01 01:19:33 +00:00
joerg cfdb8ebbda Fix memset usage. XXX should use static allocate and proper sizeof() 2011-07-01 01:15:27 +00:00
joerg c617617e5d Fix memcpy usage. 2011-07-01 01:08:59 +00:00
matt d8b68e8316 Adapt to new ___start definition.
Use PIC method to load %r13 with address of _SDA_BASE_
2011-06-30 20:10:17 +00:00
wiz 4cbd24b23f dependant -> dependent 2011-06-30 20:09:15 +00:00
matt 0d4e6aae2a Mark ___start as .hidden (for MKPIE=yes executables). 2011-06-30 20:07:35 +00:00
joerg 226567c8f9 Assert that ps_strings is valid. Use it to drop the first three
arguments to ___start to make the assembler callers simpler.
2011-06-30 19:48:43 +00:00
joerg 93fc0a3ef4 Drop special cases for i386 and m68k. It is not a validate assumption
that the address of an argument is at the same stack slot the caller
placed in it. It is perfectely valid to copy it into the local frame
first.
2011-06-30 19:46:07 +00:00
mrg f7fea21d51 re-enable the gcc 4.5 crtstuff/libgcc builders now that they work.
also build the gmp, mpfr and mpc libraries in this case.
2011-06-29 02:05:24 +00:00
riz ad760bfaf3 Don't hardcode the libpuffs path to /usr/src/lib/libpuffs. 2011-06-28 20:28:48 +00:00
manu 8ae0a67d6d Add support for extended attributes 2011-06-28 16:19:16 +00:00
manu 4033ef79a2 Fix multiple non compliances in our Linux-like extattr API, and make it
public so that it can be used.
2011-06-27 16:39:43 +00:00
manu 4f82f2460e From Evgeniy Ivanov: puffs_node_readdir() should set eofflag to one, when
end-of-directory is reached.
2011-06-27 12:06:19 +00:00
wiz 846092f009 Various minor improvements. 2011-06-27 08:21:07 +00:00
matt 80229e0feb Fix softfloat for mips*el 2011-06-27 06:40:26 +00:00
christos a26b732aad put back some compat code for systems that don't have O_CLOEXEC. 2011-06-26 22:27:14 +00:00
christos dcc9c82156 - use sizeof(var) instead of sizeof(type)
- remove useless cast
2011-06-26 22:20:31 +00:00
christos 5589fc5ec0 - Fix bug copying only 1 byte instead of the whole page number. Broke nvi
joining lines that needed R_BIGDATA.
- Fix from FreeBSD for nrec IAFTER.
XXX: Should be pulled up to 5.x
2011-06-26 22:18:16 +00:00
christos 9ad6d70c15 use O_CLOEXEC 2011-06-26 22:16:46 +00:00
christos e2bebf7172 * Arrange for interfaces that create new file descriptors to be able to
set close-on-exec on creation (http://udrepper.livejournal.com/20407.html).

    - Add F_DUPFD_CLOEXEC to fcntl(2).
    - Add MSG_CMSG_CLOEXEC to recvmsg(2) for unix file descriptor passing.
    - Add dup3(2) syscall with a flags argument for O_CLOEXEC, O_NONBLOCK.
    - Add pipe2(2) syscall with a flags argument for O_CLOEXEC, O_NONBLOCK.
    - Add flags SOCK_CLOEXEC, SOCK_NONBLOCK to the socket type parameter
      for socket(2) and socketpair(2).
    - Add new paccept(2) syscall that takes an additional sigset_t to alter
      the sigmask temporarily and a flags argument to set SOCK_CLOEXEC,
      SOCK_NONBLOCK.
    - Add new mode character 'e' to fopen(3) and popen(3) to open pipes
      and file descriptors for close on exec.
    - Add new kqueue1(2) syscall with a new flags argument to open the
      kqueue file descriptor with O_CLOEXEC, O_NONBLOCK.

* Fix the system calls that take socklen_t arguments to actually do so.

* Don't include userland header files (signal.h) from system header files
  (rump_syscallargs.h).

* Bump libc version for the new syscalls.
2011-06-26 16:42:39 +00:00
nonaka c52f9a5df2 PR/45015: ld.elf_so: support ELF symbol versioning
Applied latest patch.
2011-06-25 05:45:10 +00:00
manu 503fb643db Commit fix for misc/45029.
Approved by pooka@
2011-06-24 16:59:29 +00:00
mrg 5ed322d90a apply some -Wno-error/-Wno-enum-compare/-Wno-array-bounds.
this should be looked at more closely.
2011-06-22 05:23:53 +00:00
mrg 4791aafc2d fix the paths for GCC 4.5. don't build the non-tools gmp/mpfr/mpc libs
yet since we don't have them fully working.  XXX.
2011-06-22 05:16:37 +00:00
mrg c111245a78 apply some -Wno-error and/or -fno-strict-aliasing.
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
joerg e060a1ff71 Actually used SSE branch. Noticed by enami@ 2011-06-21 21:52:49 +00:00