Ticket #4947: posix-sys-headers eval.txt

File posix-sys-headers eval.txt, 2.5 KB (added by phoudoin, 9 years ago)

Review made the 7th december 2010 on headers/posix/sys/* by a GCI student

Line 
1sys/ipc.h is fine.
2
3--------------------------------------------
4
5mman.h doesn't declare the following optional functions:
6
7int mlock(const void *, size_t);
8int mlockall(int);
9int munlock(const void *, size_t);
10int munlockall(void);
11int posix_mem_offset(const void *restrict, size_t, off_t *restrict, size_t *restrict, int *restrict);
12int posix_typed_mem_get_info(int, struct posix_typed_mem_info *);
13int posix_typed_mem_open(const char *, int, int);
14
15and doesn't define the following symbolic constants:
16
17flags for mlockall()
18MCL_CURRENT
19MCL_FUTURE
20
21flags for posix_typed_mem_open()
22POSIX_TYPED_MEM_ALLOCATE
23POSIX_TYPED_MEM_ALLOCATE_CONTIG
24POSIX_TYPED_MEM_MAP_ALLOCATABLE
25
26--------------------------------------------
27
28sys/msg.h is fine.
29
30--------------------------------------------
31
32resource.h doesn't declare the following mandatory functions (as noted in the header):
33
34int setpriority(int, id_t, int);
35int getpriority(int, id_t);
36
37The symbolic constants for these, however, are defined.
38
39--------------------------------------------
40
41sys/select.h is fine.
42
43--------------------------------------------
44
45sys/sem.h is fine.
46
47--------------------------------------------
48
49sys/shm.h is missing altogether.
50
51--------------------------------------------
52
53sys/socket.h
54
55sa_family_t type-def is missing.
56
57sa_family member of sockaddr struct should be of type sa_family_t.
58ss_family member of sockaddr_storage struct should be of type sa_family_t.
59
60--------------------------------------------
61
62sys/stat.h doesn't declare the following functions:
63
64int mknod(const char *, mode_t, dev_t);
65int mknodat(int, const char *, mode_t, dev_t);
66
67both of which are marked as "XSI" in the standard.
68
69--------------------------------------------
70
71sys/statvfs.h is fine.
72
73--------------------------------------------
74
75sys/time.h is fine.
76
77--------------------------------------------
78
79sys/times.h is fine.
80
81--------------------------------------------
82
83sys/types.h is fine.
84
85--------------------------------------------
86
87sys/uio.h is fine.
88
89--------------------------------------------
90
91sys/un.h
92
93sun_family member of sockaddr_un struct should be of type sa_family_t
94(see note of type-def ommision in sys/socket.h above).
95
96--------------------------------------------
97
98sys/utsname.h is fine.
99
100--------------------------------------------
101
102sys/wait.h doesn't declare (as noted in the header):
103
104int waitid(idtype_t, id_t, siginfo_t *, int);
105
106and doesn't define its idtype_t enum (it's there, but commented out).