Commit Graph

15207 Commits

Author SHA1 Message Date
blymn 27325b933f Fix a bug that prevented instr and friends returning OK. 2011-08-07 10:54:53 +00:00
blymn 12654ca858 flush the output after writing the meta sequence. 2011-08-07 10:52:18 +00:00
jruoho e2ab801e81 Xref chflags(2) and stat_flags(3) with each other. 2011-08-06 11:28:24 +00:00
wiz 942842ef79 Drop trailing whitespace. 2011-08-06 11:10:01 +00:00
wiz 23e71456ea ort SEE ALSO. 2011-08-06 11:09:22 +00:00
jruoho 2cd297546b Xref the non-standard finite(3). 2011-08-06 11:02:41 +00:00
jruoho 6cfcd0daec Deprecate ieee(3). 2011-08-06 11:01:12 +00:00
jruoho c19246b80a Split out the scalbn(3) family out from ieee(3) and properly document it. 2011-08-06 10:51:26 +00:00
lukem eca6fe7e73 fix spello in comment 2011-08-05 03:55:31 +00:00
christos 436299cdac need err.h now 2011-08-04 14:33:05 +00:00
joerg cee5599b68 Add logbl(3). 2011-08-03 14:13:07 +00:00
wiz ebddce5561 Bump date for previous. Remove trailing whitespace.
Sort error descriptions.
2011-08-03 09:48:12 +00:00
manu 32c00d6291 Make cp -p and mv preverve extended attributes, and complain if they cannot.
Also introduce library functions for copying extended attributes from one
file to another:
- extattr_copy_file, extattr_copy_fd, extattr_copy_link, with FreeBSD style,
  where a namespace is to be supplied
- cpxattr, fcpxattr, lcpxattr, with Linux style, where all namespaces
  accessible to the caller are copied, and the others are silently ignored.
2011-08-03 04:11:15 +00:00
joerg 98ea74e048 Only use -Wconversion if GCC is actually the active compiler. 2011-08-02 17:22:02 +00:00
manu 1de6a9d5ab Do not reject reads on directory, it raises a useless EBADFD while the
thing can just fail silently.
2011-08-02 16:57:16 +00:00
manu fb0fa57f18 Fix creds passed to FUSE when requests are done on behalf of the kernel.
We previously sent uid/gid set to -1, we now set it to 0.
2011-08-02 14:53:38 +00:00
wiz 0dd055cd7a Add serial comma. 2011-08-02 10:15:03 +00:00
wiz 50fca4b971 Fix typo in function name. 2011-08-02 10:08:24 +00:00
matt 0ac54b7e3b Don't include <machine/asm.h> 2011-07-30 15:28:58 +00:00
tron 67fb973487 Don't use "-Wconversion" with GCC 4.5 which will complain about all the
expressions where signed variables are converted to unsigned in an
expression e.g. "size_t foo = sizeof(something) * int_var;".
2011-07-30 10:07:27 +00:00
christos c11bd863f5 pass -Wconversion 2011-07-29 23:44:44 +00:00
christos 1237974a30 - fix unused params
- unconditionalize vis.h
2011-07-29 20:58:07 +00:00
christos f46176b9a9 better autoconf results 2011-07-29 20:57:34 +00:00
christos f4bf097e85 add -Wunused-parameter
Is that the right way? Perhaps WARNS=5?
2011-07-29 20:56:58 +00:00
christos 7ecb1ef25e kill ifdef notdef 2011-07-29 15:20:39 +00:00
christos b71bed95b3 KNF return (\1); -> return \1; 2011-07-29 15:16:33 +00:00
joerg 5ccaf4b804 Add ilogbl(3). 2011-07-28 22:32:28 +00:00
joerg bff4ba20de Add scalbnl(3) mlinks. 2011-07-28 21:10:25 +00:00
matt ad1826f0ba Add scalbn{,f,l} for VAX. 2011-07-28 20:53:20 +00:00
christos a13cd75612 kill ptr_t and ioctl_t, add * sizeof(*foo) to all allocations. 2011-07-28 20:50:55 +00:00
dyoung ee39c02546 Put libalpha back. 2011-07-28 20:30:06 +00:00
christos 56eac9ea53 fix unused variable warnings on systems without _r functions 2011-07-28 17:33:55 +00:00
christos df86a66a1c handle systems without getpwent_r 2011-07-28 17:33:39 +00:00
joerg 4104b0e782 Sync compat defines to unbreak build.
XXX Do a proper config.h update from configure
2011-07-28 05:18:43 +00:00
christos 7da8639ecc whitespace 2011-07-28 03:52:19 +00:00
christos 02479cacb5 whitespace 2011-07-28 03:48:46 +00:00
christos 47b4c27f8c whitespace and comments 2011-07-28 03:44:36 +00:00
christos d47f958456 Rename key to keymacro to avoid conflicts with term.h. The renaming of term
to terminal was again to avoid conflicts with term.h. term.h is a moving
namespace violation.
2011-07-28 01:56:26 +00:00
christos 8cf227343c - check and don't cast malloc return
- more wide function use
2011-07-28 01:08:58 +00:00
christos 98c7cbebbc term -> terminal
XXX: need to rename key_ too.
2011-07-28 01:05:20 +00:00
christos 78cb86e064 regen 2011-07-28 01:05:00 +00:00
christos fd46b57ee4 avoid shadowed variable 2011-07-28 01:04:41 +00:00
christos 5fc21e9736 use vis.h from . 2011-07-28 00:54:26 +00:00
christos b210596944 eliminate alloca for portability
portable getpw{nam,uid}
2011-07-28 00:50:23 +00:00
christos 82edb784c6 term -> terminal
eliminate MAXPATHLEN
2011-07-28 00:49:18 +00:00
christos 0c0f23399c - fix memory allocation botch in wide strings
- check mbstowcs return code
2011-07-28 00:48:21 +00:00
christos e63c844a17 term -> terminal 2011-07-28 00:45:50 +00:00
christos 885062da0b more portability defines 2011-07-28 00:45:30 +00:00
christos c2c011fc82 term -> terminal 2011-07-28 00:45:14 +00:00
christos adb2121e55 term -> terminal
fix wide function confusion
2011-07-28 00:44:35 +00:00
christos f375da6e14 include config.h for all c files. 2011-07-28 00:43:53 +00:00
christos b723d6a65c include vis.h from dot. 2011-07-28 00:43:33 +00:00
christos df2309ca73 fix confusion with wide functions. 2011-07-28 00:43:12 +00:00
christos 5bf2e3dbda fix narrow compilation 2011-07-27 13:18:20 +00:00
christos 32d7653d74 - don't leave cursor dangling on memory failure or after clearing the list
- compute the string length to be strvis'ed after the string is encoded
2011-07-27 02:23:29 +00:00
christos c76d71fc1a fix buffer growing code. 2011-07-27 02:18:30 +00:00
christos 0da54e076e add history testing code. 2011-07-27 02:18:00 +00:00
christos 3021376b9c don't stop reading after empty lines from: Nirbhay Choubey 2011-07-26 21:03:17 +00:00
joerg 37ef12d394 Add optimised version of scalbnl for x86. 2011-07-26 17:03:23 +00:00
joerg afda0f82d1 Add scalbnl to libm. 2011-07-26 16:10:15 +00:00
njoly f3d20aa109 Adjust xref varargs(3) -> stdarg(3) 2011-07-25 19:42:50 +00:00
mbalmer 8e2a0ad61a Correct typo, while here, unfold lines. 2011-07-24 07:18:17 +00:00
joerg 9c6b248add Set error indicator on invalid arguments. From Carsten Hey. 2011-07-22 23:12:30 +00:00
wiz 0101512687 Consistently mark up defined values with Dv. 2011-07-22 11:02:39 +00:00
mrg 3f11e25c49 build GMP, MPFR and MPC as private libraries just for GCC. don't
install the headers or librarys into the system.

someone who really cares could make them shlibs again and have them
installed into eg, /usr/lib/gcc.  not convinced it is worth it.
2011-07-21 03:13:30 +00:00
njoly bec33204fe Remove unneeded `Either' word in EFAULT error description. 2011-07-20 17:51:25 +00:00
manu 4b1fc9a3f7 Make sure libperfuse still builds on netbsd-5.1 2011-07-19 07:29:39 +00:00
jruoho 4c0e40e4b4 Use a list for clarity, update standards, etc. 2011-07-18 05:17:16 +00:00
manu 7541af315c ftruncate(2) cause a SETATTR with only va_size set, and some filesystems
(e.g.: glusterfs) will do a custom handling in such a situation. This
breaks because libpuffs folds a metadata (va_atime and va_mtime) update
in each SETATTR. We try to identify SETATTR caused by ftruncate(2) and
remove va_atime and va_mtime in such situation.

This fixes a bug with glusterfs, where parts of a file downloaded by
FTP was filled with zeros because of a ftruncate(2) sent out of order
with write(2) requests. glusterfs behavior depends on the undocumented
FUSE rule that ftruncate(2) will only set va_size in SETATTR.
2011-07-18 02:14:01 +00:00
joerg 3eb244d801 Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
christos ab0103dee5 fix type punned warnings in debugging code. 2011-07-17 20:47:39 +00:00
dyoung ff4557ec84 Don't descend into alpha/.
Up next: fix set lists.
2011-07-17 01:09:00 +00:00
mrg 7c7bb760e6 revert the previous. it didn't help and wasn't the problem anyway. 2011-07-16 23:07:50 +00:00
jruoho 5941dd2312 Note that dup2(2) and dup3(2) may not fail with EMFILE; from PR lib/45148. 2011-07-16 14:33:33 +00:00
christos 534ca6a0dd mention EINVAL. 2011-07-15 14:59:33 +00:00
jruoho 7f1ed5f987 Small markup edit. 2011-07-15 09:44:14 +00:00
jruoho 872b41c159 Small markup glitch. 2011-07-15 08:17:36 +00:00
wiz d66479d008 New sentence, new line. 2011-07-14 22:12:30 +00:00
jruoho bce528f484 Complete prototypes, markup NULL, complete return values, more markup. 2011-07-14 21:25:42 +00:00
manu 6e1ab723f7 FUSE struct dirent's off is not the offset in the buffer, it is an opaque
cookie that the filesystem passes us, and that we need to send back on
the next READDIR. Most filesystem just ignore the value and send the
next chunk of buffer, but not all of them. Fixing this allows glusterfs
distributed volume to work.
2011-07-14 15:37:32 +00:00
mrg f31d8e575a rename sparc64 BLOCK_SIZE and BLOCK_ALIGN to have SPARC64_ prefixes.
for the assembler files, define the old names to the new names
since using the new names cause ugliness due to longer identifer
names, and reduces churn.

fixes build issues in dtv and vaguely makes <machine/psl.h> slightly
less name-space invasive.
2011-07-12 07:51:33 +00:00
matt 85f1d6f3df Don't use "f" with non-fp types. Use a union to go between
double and uint64_t.  Makes clang happy.
2011-07-10 21:18:47 +00:00
blymn 83d6403d6e Set the background attributes when erasing. 2011-07-10 12:11:49 +00:00
matt 23282762ff Fix so that float128_to_uint64_round_to_zero is defined for sparc64.
(isn't tha a namespace violation?)
2011-07-10 04:52:23 +00:00
christos 047570cb9a make obvious what we are trying to do... 2011-07-09 23:54:39 +00:00
tron c15a9046d9 Call the FUSE init operation before we try to access the file-system.
This prevents a crash in "fuse_ext2" which I previously worked around
with a patch.
2011-07-09 17:16:46 +00:00
tron f5c0fd2c7b Try to fix build of port where "char" is unsigned. 2011-07-09 16:04:34 +00:00
tron d606648b9f Don't ignore "userdata" argument in "fuse_main_real". This can crash
a FUSE file-system that passes a non-NULL argument here.
2011-07-09 14:50:00 +00:00
plunky 14f0284e32 don't indent this bullet list either, it is not required
(the text is indented anyway)
2011-07-09 09:12:11 +00:00
matt f73fcccaa1 Don't build tf (long double) if building for O32. 2011-07-09 04:12:01 +00:00
matt 0342df8561 Appease lint and don't use C99 features. 2011-07-09 03:16:40 +00:00
matt cee1c10ee1 Add ieee754 versions of the compiler runtime functions
__fixuns{sf,df,tf}{si,di}.
Add an ieee754 version of the compiler runtime function __floatuntfdi
2011-07-09 02:30:27 +00:00
matt e17674a5a4 Add SOFTFLOAT_NEED_FIXUNS condition around the float128 fixuns 2011-07-09 02:28:31 +00:00
wiz d89020203c Bump date for xdr_sizeof. Remove trailing whitespace. 2011-07-08 19:28:22 +00:00
wiz cbbf7c09a0 Sort error descriptions. 2011-07-08 19:25:51 +00:00
christos c6c51b75eb Support other non-latin1 single byte character sets.
From: Alexander Barkov and Nirbhay Choubey at oracle dot com
2011-07-08 15:54:56 +00:00
plunky 9bc458e1a8 ensure that the buffer is nul-terminated, otherwise printing an
empty string will show junk..
2011-07-07 10:44:50 +00:00
matt da43c56109 Distribute libmpfr and libmpc across the dependency barriers so that
additional .WAITs are not needed.
2011-07-07 07:37:17 +00:00
mrg d28869abd7 add .WAIT's between libgmp and libmpfr, and between libmpfr and libmpc. 2011-07-07 07:33:40 +00:00
matt 85c07878cd Don't define a new enum. Just #define round_* to their FP_Rx instead. 2011-07-07 07:14:57 +00:00
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