linux Ï fluent UDF ÓÃµÄ makefile
Linux ϱàÒë fluent UDF ʹµÄ makefile£¬¸ù¾Ý fluent ×Ô´øµÄ makefile Ð޸ĵġ£
µ÷ÓõÄʱºò£¬Ö±½Ó¼ÓÉÏÄ¿±ê£¬Èç
make -f makefile_linux lnamd64
#----------------------------------------------------------------------#
# makefile for user defined functions.
#----------------------------------------------------------------------#
#----------------------------------------------------------------------#
# User modifiable section.
#----------------------------------------------------------------------#
SRCDIR = ./src
MYSRCS = mymodels.c \
myuns.c \
mybc.c \
SOURCES = $(addprefix $(SRCDIR)/, $(MYSRCS))
HEADERS = $(SRCDIR)/myudf.h
FLUENT_INC = /opt/progs/Fluent.Inc
ARCH = lnamd64
MAKE = make -f makefile_linux
# Precompiled User Object files (for example .o files from .f sources)
USER_OBJECTS=
#----------------------------------------------------------------------#
# Build targets (do not modify below this line).
#----------------------------------------------------------------------#
CC= cc -DRP_CONFIG_3DDP=1
SHELL= /bin/sh
RELEASE= 6.3.26
VERSION= 3ddp
ARCHC=$(ARCH)
TARGET= libhylab.so
UDFDATA= udf_names.c
OBJECTS= $(UDFDATA:.c=.o) $(MYSRCS:.c=.o)
INCLUDES= -I$(FLUENT_INC)/fluent$(RELEASE)/$(ARCH)/$(VERSION) \
-I$(FLUENT_INC)/fluent$(RELEASE)/src \
-I$(FLUENT_INC)/fluent$(RELEASE)/cortex/src \
-I$(FLUENT_INC)/fluent$(RELEASE)/client/src \
-I$(FLUENT_INC)/fluent$(RELEASE)/tgrid/src \
-I$(FLUENT_INC)/fluent$(RELEASE)/multiport/src \
-I.
CFLAGS_ALPHA= -c
Ïà¹ØÎĵµ£º
Displaying the Routing Table£º
netstat -nr
Displaying Interface Statistics:
netstat -i
Show the address resolution (ARP) tables:
netstat -p
Displaying Connections:
netstat -ta (linux)
netstat -a -f af:inet (opensolaris)
http://www.faqs.org/docs/linux_network/x-087-2-iface.netstat.html
http ......
Õâ¸ö¶«¶«£¬ÂùºÃÍæµÄ¡£Æäʵ¾ÍÊǶÁÈ¡ÁË/proc/net/dev Îļþ¡£
struct netdev_stats {
unsigned long long rx_packets_m; /* total packets received */
unsigned long long tx_packets_m; &nbs ......
×î½üÓÐЩʱ¼ä£¬¿ªÊ¼½Ó´¥¸ºÔؾùºâ·½ÃæµÄ¶«Î÷£¬´ÓÓ²¼þF5ÔÙµ½Citrix Netscalar¡£²»¹ýÒòΪӲ¼þµÄÅäÖÃËäÈ»²»¸´ÔÓ£¬µ«°º¹óµÄ¼Û¸ñÒ²ÈÃÒ»°ãÓû§Íû¶øÈ´²½(Ê®¼¸Íòµ½¼¸Ê®Íò)£¬ËùÒÔÖ»ÄÜתÏònginx,squidÕâÀàÓз´Ïò´úÀí¹¦ÄܵÄÈí¼þÁË¡£ºÃÔÚÆäÉèÖö¼²»ÊǺÜÂé·³¡£
±¾ÎľÍ֮ǰËù×ö¹ýµÄ°²×°ºÍÅäÖò½Öè×öÒ»Ï ......
Èç¹ûÄãÊÇÒ»¸öÈí¼þ¿ª·¢ÈËÔ±£¬Èç¹ûÄãÊÇÒ»¸ö¾³£×ö²úÆ·ÉÏÏß²Ù×÷µÄ³ÌÐòÔ±£¬ÄãÒ»¶¨»á¶ÔtarÃüÁîºÜÊìϤ£¬ËüÊÇÒ»¸ö´ò°üÃüÁµ«¾ßÌåµÄ´ò°üÄÚÈÝ¿ÉÄÜÊÇÒ»¸öºÜ³¤µÄÎļþÁÐ±í£¬Èç¹û²¿·ÖÎļþÉÏÏߵϰÈ˹¤ÖÆ×÷Ò»¸öÎļþÁбíÊÇÒ»¼þºÜÀ˷Ѿ«Á¦µÄÊÂÇé¡£
ÓÚÊÇÎÒдÁËÒ»¸öshell½Å±¾,ÓÃÀ´²éÕÒ ......
fopen£¨´ò¿ªÎļþ£©
Ïà¹Øº¯Êý
open£¬fclose
±íÍ·Îļþ
#include<stdio.h>
¶¨Ò庯Êý
FILE * fopen(const char * path,const char * mode);
º¯Êý˵Ã÷
²ÎÊýpath×Ö·û´®°üº¬Óû´ò¿ªµÄÎļþ·¾¶¼°ÎļþÃû£¬²ÎÊýmode×Ö·û´®Ôò´ú±í×ÅÁ÷ÐÎ̬¡£ ......