mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-09 15:26:47 +00:00
* swab函数 Signed-off-by: Yuqia <15287042733@163.com> * 修正格式 Signed-off-by: Yuqia <15287042733@163.com> Co-authored-by: fslongjin <longjin@RinGoTek.cn>
36 lines
571 B
C
36 lines
571 B
C
/**
|
|
* @file unistd.h
|
|
* @author fslongjin (longjin@RinGoTek.cn)
|
|
* @brief
|
|
* @version 0.1
|
|
* @date 2022-04-22
|
|
*
|
|
* @copyright Copyright (c) 2022
|
|
*
|
|
*/
|
|
#pragma once
|
|
|
|
#include <syscall/syscall.h>
|
|
#include <syscall/syscall_num.h>
|
|
|
|
/**
|
|
* @brief fork当前进程
|
|
*
|
|
* @return pid_t
|
|
*/
|
|
pid_t fork(void);
|
|
|
|
/**
|
|
* @brief vfork当前进程
|
|
*
|
|
* @return pid_t
|
|
*/
|
|
pid_t vfork(void);
|
|
|
|
/**
|
|
* @brief 交换n字节
|
|
* @param src 源地址
|
|
* @param dest 目的地址
|
|
* @param nbytes 交换字节数
|
|
*/
|
|
void swab(void *restrict src, void *restrict dest, ssize_t nbytes); |