,     .  NR_open,    
<asm/unistd.h>,     .     -
          , -
      .  
   ,    ,
    .      
I    ,       open ().

 ,      
,   ,     .

[     #define _NR_foo 283
syscallO(long, foo)

int main ()
|      {

long stack size;

stack_size = foo ();

printf ("    %ld\n", stack_size);

return 0;

}

     

    ,      
 ,     . ,    
  ,    .  -
  ""  ""   .

          -
 "".

       .

       Linux 
.

 "".

     ,    -
        .

          ,  -
 "  ".    ,   -
     .

        -
     .

         "  
 ".

                                                           107