1 /*
2 * linux/lib/write.c
3 *
4 * (C) 1991 Linus Torvalds
5 */
6
7 #define __LIBRARY__
8 #include <unistd.h> // Linux��ͷ�ļ��������˸��ַ��ų��������ͣ��������˸��ֺ�����
// �綨����__LIBRARY__����ϵͳ���úź���Ƕ���_syscall0()�ȡ�
9
//// д�ļ�ϵͳ���ú�����
// �ú�ṹ��Ӧ�ں�����int write(int fd, const char * buf, off_t count)
// ������fd - �ļ���������buf - д������ָ�룻count - д�ֽ�����
// ���أ��ɹ�ʱ����д����ֽ���(0��ʾд��0�ֽ�)������ʱ������-1�����������˳����š�
10 _syscall3(int,write,int,fd,const char *,buf,off_t,count)
11