TakefiveInteractive / TedkOS

Operating System - ECE 391 Takefive Interactive Team
GNU General Public License v2.0
96 stars 17 forks source link

Implement getpid #14

Open tengyifei opened 8 years ago

tengyifei commented 8 years ago

Process-ID; this is sometimes used to generate strings unlikely to conflict with other processes. Minimal implementation, for a system without processes:

int getpid(void) {
    return 1;
}