LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 6227|回复: 6

ssize_t是什么类型阿?

[复制链接]
发表于 2004-6-9 16:12:09 | 显示全部楼层 |阅读模式
我找了半天,只找到了typedef __ssize_t  ssize_t
可是这到底是什么样的结构体阿?
在哪个文件中定义的?:thank
发表于 2004-6-10 22:26:26 | 显示全部楼层
grep ssize_t *
发表于 2004-7-23 16:54:20 | 显示全部楼层
应该是一个无符号整型!
发表于 2007-3-20 17:03:23 | 显示全部楼层
http://www.delorie.com/gnu/docs/glibc/libc_239.html
Data Type: ssize_t
   This data type is used to represent the sizes of blocks that can be read or written in a single operation. It is similar to size_t, but must be a signed type.

http://www.gnu.org/software/libc ... ant-Data-Types.html
— Data Type: size_t
   This is an unsigned integer type used to represent the sizes of objects. The result of the sizeof operator is of this type, and functions such as malloc (see Unconstrained Allocation) and memcpy (see Copying and Concatenation) accept arguments of this type to specify object sizes.
回复 支持 反对

使用道具 举报

发表于 2009-11-13 16:15:45 | 显示全部楼层
Post by njkzkj;1664804
http://www.delorie.com/gnu/docs/glibc/libc_239.html
Data Type: ssize_t
   This data type is used to represent the sizes of blocks that can be read or written in a single operation. It is similar to size_t, but must be a signed type.

http://www.gnu.org/software/libc ... ant-Data-Types.html
— Data Type: size_t
   This is an unsigned integer type used to represent the sizes of objects. The result of the sizeof operator is of this type, and functions such as malloc (see Unconstrained Allocation) and memcpy (see Copying and Concatenation) accept arguments of this type to specify object sizes.
thanks,it's a good message
回复 支持 反对

使用道具 举报

发表于 2010-1-15 15:46:09 | 显示全部楼层
typedef int                        __kernel_ssize_t;
typedef __kernel_ssize_t        ssize_t;
回复 支持 反对

使用道具 举报

发表于 2010-1-16 05:19:11 | 显示全部楼层
偷偷的说。。。我怎么觉得是unsigned long
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表