Commit Graph

72 Commits

Author SHA1 Message Date
Axel Dörfler 2d55afcdf7 Support getting route information for a specific destination
using SIOCGETRT. Patch by Hugo Santos.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20494 a95241bf-73f2-0310-859d-f6bbb57e9c96
2007-04-01 12:06:16 +00:00
Axel Dörfler caddb025c9 Added sys/un.h header file - AF_UNIX is still unsupported, though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19492 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-12-13 16:12:17 +00:00
Axel Dörfler 5adca30a18 Merge of branches/team/network/new_stack - not yet complete as SVN does only support
replacing files when merging when you don't have deleted them manually (for some reason,
it only works as part of the merge operation, and we didn't copy the whole tree to
have "a fresh start" - next time we know better, at least if SVN still suffers from
that same limitation).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18456 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-08 12:33:33 +00:00
Jérôme Duval 4e0eae1865 patch from Olivier Coursiere for better error output in ping
change the size parameter type of several functions in sys/socket.h to match POSIX
compat libs and legacy headers keep the original R5 type (though I make a change for this)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17911 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-23 12:22:26 +00:00
Axel Dörfler 63a9a8f72a Enabling the extended stat() versions had unforeseen consequences (broke the build,
src/bin/coreutils/src/cp.c, line 542 needs stat() exported), therefore, I disabled
it for now again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-21 21:19:37 +00:00
Axel Dörfler 7b3d36e5aa * BEntry::GetStat() and BNode::GetStat() used sizeof(struct stat) for the kernel
syscall, but they could not know if R5 code called them (in which case the stat
  size has a different size). We now always only return the R5 stat structure here.
  This fixes bug #420. We might want to find a different solution to this problem,
  though.
* Be got SYMLINK_MAX wrong - it's not the maximum number of links (that's SYMLOOP_MAX),
  but the maximum size of a symlink buffer. Added missing SYMLOOP_MAX and SYMLINK_MAX
  constants to limits.h.
* Fixes MAXSYMLINKS to use SYMLOOP_MAX, instead of SYMLINKS_MAX (which doesn't exist
  in POSIX specs, but we (intentionally) break source compatibility here).
* Reenabled the Haiku versions of stat(), fstat(), and lstat() when build for Haiku.
* Removed OpenBeOS namespace stuff from the files I touched.
* Removed superfluous StorageDefs.Private.h, whyever that ended up in a public header
  is beyond me.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17894 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-21 13:49:16 +00:00
François Revol c2be814ab5 added an Haiku-specific RLIMIT (NumOpenVnodeMONitors) (UNIMPLEMENTED yet) (we might want to renumber it),
and used that one and NOFILE to implement R5 private calls _kset_[fd|mon]_limit_()


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-05-22 19:37:40 +00:00
Axel Dörfler 7ca5966a15 Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16818 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-16 14:42:47 +00:00
Jérôme Duval a34963f388 added posix_gnu_string
added more posix definitions


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-03-16 11:09:43 +00:00
Waldemar Kornewald 8c85eedc66 Moved the needed headers from private to posix folder. This should hopefully fix the build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15590 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-12-19 17:42:05 +00:00
Axel Dörfler 6efb3f085f Added statvfs.h header and implemented statvfs() and fstatvfs() - both untested, though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14746 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-07 13:47:55 +00:00
Jérôme Duval 2726040fcb we can live without you, sysmacros.h
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14650 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-02 15:27:00 +00:00
Ingo Weinhold 338b8dc301 Merged changes from branch build_system_redesign at revision 14573.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-29 16:27:43 +00:00
Jérôme Duval 9744e7bb63 added a sys/sysmacros.h header (as on R5)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-28 11:43:56 +00:00
Jérôme Duval 64f6fcfb1d added a socketpair prototype (part of bug #52)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14209 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-09-20 14:10:42 +00:00
Axel Dörfler 4edff48607 We still have to be binary compatible when we build for Haiku.
Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11041 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 21:23:29 +00:00
Jérôme Duval 7e1e4b7fc5 added R5 compatibility
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11037 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-25 19:15:19 +00:00
Nathan Whitehorn ec1cf916a3 Fixed a link problem - uname() should be extern C when used in C++ code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9980 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-17 01:26:11 +00:00
Jérôme Duval 89c4e72ae5 added utsname.h for uname, based on posix
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-15 16:55:33 +00:00
Waldemar Kornewald 496d0bc32f Moved uio struct to core_private.h.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8893 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-08 08:45:32 +00:00
Waldemar Kornewald 15288c9013 Fixed the build of our netstack.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8857 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-05 10:59:00 +00:00
Axel Dörfler cc90b1798a Removed unsupported cruft from uio.h (uiomove()).
Made header C++ safe.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8780 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-01 16:26:15 +00:00
Philippe Houdoin 15b8f34b6f These size_t arguments should be, well, according to POSIX, socklen_t,
but Be declared them as int. So do I.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-14 00:22:33 +00:00
Axel Dörfler 288ff1988f Added new BeOS compatible wait.h header.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-07 12:47:00 +00:00
Axel Dörfler 95216cc886 Added id_t as required by POSIX/ISO-C 99.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-07 12:46:08 +00:00
Axel Dörfler 071c01b136 This should fix the R5 build again.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 23:00:42 +00:00
Axel Dörfler 94e11a83bb Fixes POSIX and R5 compatibility of the stat structure; readded field st_rdev.
Added an additional field st_type and changed functions to allow for this
extension while maintaining R5 compatibility.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7495 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-10 14:35:11 +00:00
Axel Dörfler c757aac399 Added BeBuild.h in a central header.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7416 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-05 16:21:44 +00:00
Philippe Houdoin 3fb2d6f43a Moved to headers/private/net, as they're not standard POSIX headers.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-25 23:03:19 +00:00
Waldemar Kornewald e09429df45 Removed unneeded constants.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7231 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-18 13:12:15 +00:00
Waldemar Kornewald f1730f62f5 Fixed collision between SO_XXX and IP_XXX defines.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7227 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-18 12:46:10 +00:00
Waldemar Kornewald fde2fe1c1c Checking in headers for libbind.so.
Also updated our socket.h to be more compatible with BONE (we do not support SO_NONBLOCK which is needed for Mozilla).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7201 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-15 15:54:34 +00:00
Waldemar Kornewald be9443cb6e Changed address families to match bone.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7184 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-08 13:00:45 +00:00
Axel Dörfler 435464b451 Added addr_t to sys/types.h.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7052 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-22 19:22:09 +00:00
Axel Dörfler 1470102500 change variable name to better fit its purpose.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4775 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-21 15:53:54 +00:00
Axel Dörfler 051f882824 Rewrote the resource.h header and added comments about missing functions
and functionality.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4774 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-21 15:51:03 +00:00
shatty 2da2ccee09 new posix compliant and public resource.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4771 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-20 20:41:11 +00:00
Philippe Houdoin 549b25ed0a Remove non-posix headers files, moved back to headers/private/net where they belong for
the moment.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4273 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-11 22:48:36 +00:00
shatty 5506f765ae removed #include <OS.h>
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4206 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-02 08:52:30 +00:00
shatty 48103d3411 changed to use stdint and intX_t types
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4198 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-02 06:24:37 +00:00
Michael Pfeiffer c47667231a extern "C" wrapper needed for inclusion from C++
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3870 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-06 10:30:56 +00:00
Axel Dörfler f8fdd89ffb Some header work to make it more posix compliant.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3080 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-19 17:35:55 +00:00
Philippe Houdoin e803870545 Forgot to commit these... Should fix network stuff build issues.
Add again the load_driver_symbols() export into our KernelExport.h, as it's expected
by many kernel add-ons (drivers, modules)... the network ones, for a start.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2672 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-09 21:05:37 +00:00
Philippe Houdoin f0ad00a244 Remove once again a global variable (protocols list) declaration from a header!
Plus remove unrequired _KERNEL_MODE code switch.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1922 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-13 23:40:03 +00:00
beveloper 2f344cad19 some more clean up and renaming
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 20:59:25 +00:00
Axel Dörfler 2dc3fee59d Nicer parameter names in sys/select.h.
Added a comment in sys/time.h.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1779 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 02:28:09 +00:00
beveloper 42415555d3 after many changes, the network stack can now be build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-30 01:21:54 +00:00
beveloper 890892471a moved some things into private/net_socket.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1767 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 20:11:48 +00:00
beveloper 8b7eabec3f moved
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1765 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 20:05:41 +00:00
Axel Dörfler 03360f3bb7 Added our versions of BeOS compatible sys/timeb.h, and sys/times.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1741 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-29 00:46:31 +00:00