首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >syscalls在glibc源中的位置在哪里?

syscalls在glibc源中的位置在哪里?

提问于 2018-02-09 00:00:12
回答 2关注 0查看 232

代码如下:

#include <errno.h>
#include <stddef.h>
#include <unistd.h>

/* Change the current directory to PATH.  */
int
__chdir (path)
     const char *path;
{
  if (path == NULL)
    {
      __set_errno (EINVAL);
      return -1;
    }

  __set_errno (ENOSYS);
  return -1;
}
stub_warning (chdir)

weak_alias (__chdir, chdir)
#include <stub-tag.h> 
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档