[haiku-bugs] Re: [Haiku] #3353: resource.h broken (not implemented yet?)

  • From: "Timothy_Gu" <trac@xxxxxxxxxxxx>
  • Date: Sun, 11 Jan 2015 21:50:41 -0000

#3353: resource.h broken (not implemented yet?)
-------------------------+---------------------------
   Reporter:  scottmc    |      Owner:  axeld
       Type:  bug        |     Status:  new
   Priority:  normal     |  Milestone:  R1
  Component:  - General  |    Version:  R1/pre-alpha1
 Resolution:             |   Keywords:
 Blocked By:             |   Blocking:
Has a Patch:  0          |   Platform:  All
-------------------------+---------------------------

Comment (by Timothy_Gu):

 The first three errors are easily reproducible with

 {{{
 #include <errno.h>
 #include <stdio.h>
 #include <sys/resource.h>

 int
 main()
 {
     struct rlimit rl = {0};
     int ret;
     ret = get_rlimit(RLIMIT_FSIZE, &rl);
     printf("%d %d %" __HAIKU_PRI_PREFIX_ADDR "d %" __HAIKU_PRI_PREFIX_ADDR
 "d\n", ret, errno, rl.rlim_cur, rl.rlim_max);
     return ret;
 }

--
Ticket URL: <https://dev.haiku-os.org/ticket/3353#comment:1>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: