ChinaUnix.net
相关文章推荐:

asm i386 socket.h

在调试服务器端代码的 时候, 使用了socket.h. 运行是错误: In file included from /usr/include/sys/socket.h:35, from server.c:2: /usr/include/bits/socket.h:221: parse error before "size_t" /usr/include/bits/socket.h:224: parse error before "msg_controllen" /usr/include/bits/socket.h:227: parse error before '}' token /usr/include/bits/socket.h:232: parse error before "size_t" /usr/inclu...

by tangleiqin - Linux新手园地 - 2008-03-04 13:00:57 阅读(1117) 回复(1)

相关讨论

在windows下用TC编一个程序,少这个东东,那里有呢?

by feiyuyi - C/C++ - 2005-09-23 10:13:06 阅读(1685) 回复(3)

刚学完c 语言,最近在看一些关于网络编程的书。看见sys/socket.h sys/types.h netinet/in.h netdb.h这些头文件,在网上找了半天都没有看见,有没有哪位能够告诉我啊 ???

by 孤城→十三少 - C/C++ - 2014-08-14 14:02:39 阅读(26907) 回复(7)

程序简单: //----------test.c--------- #include socket.h>; main() { return 0; } //------------------------- gcc -o test test.c编译出错如下: /usr/include/sys/socket.h:52: syntax error before `sa_family_t' /usr/include/sys/socket.h:52: warning: data definition has no type or storag e class /usr/include/sys/socket.h:163: syntax error before `u_char' /usr/include/sys/socket.h:174:...

by akara - BSD - 2003-05-26 18:47:42 阅读(5723) 回复(3)

RT 请教下 修改 /usr/include/linux/socket.h 后 怎么生效

by haofang666777 - Linux环境编程 - 2014-04-18 10:42:15 阅读(865) 回复(5)

程序中要从一个库中取出IP地址,然后通一个指定的端口用UDP发送数据,可是加入socket相关的头文件预编译就无法通过,去掉以后预编译通过,但GCC肯定通不过去 环境:sorlaris10+oracle10g ERROR; Syntax error at line 69, column 2, file /usr/include/sys/uio.h: Error at line 69, column 2 in file /usr/include/sys/uio.h lloff_t _uio_offset; /* file offset */ .1 PCC-S-02201, Encountered the symbol "llo...

by linternt - C/C++ - 2009-03-09 10:33:11 阅读(5306) 回复(12)

1。关于网络编程的书看了很多,自己想写点东西出来。可是一个最简单的问题难到我了。我是用TURBO C++3.0,可是在INCLUDE文件夹里没有socket.h这个头文件。这该如何是好? 我还装了BCB,它的INCLUDE里有一个winsock.h,我想这个应该是在WINDOWS下网络编程用到的头文件吧?请版主明示。 谢谢。

by antiblue - C/C++ - 2003-12-16 16:21:56 阅读(1207) 回复(1)

为什么我的源码中没有asm_i386,只有asm-generic? 需要用到pt_regs结构体的定义,在网上查到是在asm_i386/ptrace.h中定义的,可是我电脑上没有这个文件夹呀,但在asm-generic文件夹中也没ptrace.h。 我想知道,为什么我的源码中没有asm_i386文件夹呢?:shock:

by tanyayun - 内核源码 - 2011-05-25 20:26:02 阅读(1877) 回复(5)

2005-11-16 HIGHMEM Completed Understanding mm/highmem.c include/asm-i386/highmem.h(not mm/highmem.h) HighMem 已经不止一次的被提到了.或许本节所述已存于前,还是希望这里有完 整的表述. 内核空间从3G开始,如果全部采用"线性映射"(物理地址和逻辑地址只差一个常 量 PAGE_OFFSET ),最多管理1G物理内存.现在我使用的电脑就有1G内存(AMD64), 我朋友的机器有2G,据说玩游戏巨爽(AMD6430...

by hylpro - Linux文档专区 - 2008-10-31 21:52:25 阅读(972) 回复(0)

23 /* this struct defines the way the registers are stored on the 24 stack during a system call. */ 25 26 struct pt_regs { 27 long ebx; 28 long ecx; 29 long edx; 30 long esi; 31 long edi; 32 long ebp; 33 long eax; 34 int xds; 35 int xes; 36 long orig_eax; 37 long eip; 38 int xcs; ...

by itlanger - 内核源码 - 2008-05-05 09:37:56 阅读(6768) 回复(1)

col name for a20
col path for a40
set linesize 200
select name, path, mount_status, header_status, mode_status, state, redundancy, round((total_mb-free_mb)/total_mb*100,2) "used",
round(free_mb/total_mb*100,2) "free", total_mb, free_mb from v$asm_disk where total_mb<>0


create diskgroup DATA external redundancy disk
'/dev/rdsk/c3t19d5s4',
'/dev/rdsk/c3t19d16s4',
...

by lgxswfc - Oracle - 2011-12-21 08:44:02 阅读(716) 回复(0)