代码搜索:PID
找到约 10,000 项符合「PID」的源代码
代码结果 10,000
www.eeworm.com/read/335362/12534978
1 fig8.1
#include "apue.h"
int glob = 6; /* external variable in initialized data */
char buf[] = "a write to stdout\n";
int
main(void)
{
int var; /* automatic variable on the stack */
pid_t pid;
var
www.eeworm.com/read/335362/12535022
6 fig10.6
#include "apue.h"
#include
static void sig_cld(int);
int
main()
{
pid_t pid;
if (signal(SIGCLD, sig_cld) == SIG_ERR)
perror("signal error");
if ((pid = fork()) < 0) {
perror("fo
www.eeworm.com/read/335362/12535100
5 fig15.5
#include "apue.h"
int
main(void)
{
int n;
int fd[2];
pid_t pid;
char line[MAXLINE];
if (pipe(fd) < 0)
err_sys("pipe error");
if ((pid = fork()) < 0) {
err_sys("fork error");
} else if (
www.eeworm.com/read/147710/12535335
c setsid.c
/*
* linux/lib/setsid.c
*
* (C) 1991 Linus Torvalds
*/
#define __LIBRARY__
#include
_syscall0(pid_t,setsid)
www.eeworm.com/read/147663/12540868
c siinit.c
/**********************************************************************
*Copyright 2003 Toptvtech.Co.,Ltd.
*File name:siinit.c
*Author:houchao Version: 0.01 Date:2003/11/23
*Descriptor:init the da
www.eeworm.com/read/248697/12545800
h sos_sched.h
#ifndef _SOS_SCHED_H_
#define _SOS_SCHED_H_
#include
#include
#include
enum {
SCHED_NUMBER_BINS = 4, //!< number of bins to store modul
www.eeworm.com/read/334243/12615429
c setsid.c
/*
* linux/lib/setsid.c
*
* (C) 1991 Linus Torvalds
*/
#define __LIBRARY__
#include // Linux 标准头文件。定义了各种符号常数和类型,并申明了各种函数。
// 如定义了__LIBRARY__,则还包括系统调用号和内嵌汇编_syscall0()等。
//// 创建一个会话并设置进程组
www.eeworm.com/read/238364/13891513
m chap2_8f.m
%PID Controler Based on Ziegler-Nichols
clear all;
close all;
ts=0.25;
sys=tf(1,[10,2,0]);
dsys=c2d(sys,ts,'z');
[num,den]=tfdata(dsys,'v');
axis('square'),zgrid('new');
figure(1);
rloc
www.eeworm.com/read/236814/13998084
m chap2_8f.m
%PID Controler Based on Ziegler-Nichols
clear all;
close all;
ts=0.25;
sys=tf(1,[10,2,0]);
dsys=c2d(sys,ts,'z');
[num,den]=tfdata(dsys,'v');
axis('square'),zgrid('new');
figure(1);
rloc
www.eeworm.com/read/204746/15334173
c kaodv-netlink.c
/*****************************************************************************
*
* Copyright (C) 2001 Uppsala University and Ericsson AB.
*
* This program is free software; you can redistribute it