File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1048,6 +1048,7 @@ extern "C" {
1048
1048
1049
1049
pub fn symlink ( path1 : * const c_char , path2 : * const c_char ) -> :: c_int ;
1050
1050
1051
+ pub fn truncate ( path : * const c_char , length : off_t ) -> :: c_int ;
1051
1052
pub fn ftruncate ( fd : :: c_int , length : off_t ) -> :: c_int ;
1052
1053
1053
1054
pub fn signal ( signum : :: c_int , handler : sighandler_t ) -> sighandler_t ;
@@ -1447,7 +1448,6 @@ cfg_if! {
1447
1448
if #[ cfg( not( target_os = "redox" ) ) ] {
1448
1449
extern {
1449
1450
pub fn getsid( pid: pid_t) -> pid_t;
1450
- pub fn truncate( path: * const c_char, length: off_t) -> :: c_int;
1451
1451
#[ cfg_attr( all( target_os = "macos" , target_arch = "x86" ) ,
1452
1452
link_name = "pause$UNIX2003" ) ]
1453
1453
pub fn pause( ) -> :: c_int;
Original file line number Diff line number Diff line change @@ -459,6 +459,15 @@ pub const O_SYMLINK: ::c_int = 0x4000_0000;
459
459
// FIXME: Fix negative values missing from includes
460
460
pub const O_NOFOLLOW : :: c_int = -0x8000_0000 ;
461
461
462
+ // locale.h
463
+ pub const LC_ALL : :: c_int = 0 ;
464
+ pub const LC_COLLATE : :: c_int = 1 ;
465
+ pub const LC_CTYPE : :: c_int = 2 ;
466
+ pub const LC_MESSAGES : :: c_int = 3 ;
467
+ pub const LC_MONETARY : :: c_int = 4 ;
468
+ pub const LC_NUMERIC : :: c_int = 5 ;
469
+ pub const LC_TIME : :: c_int = 6 ;
470
+
462
471
// netdb.h
463
472
pub const AI_PASSIVE : :: c_int = 0x0001 ;
464
473
pub const AI_CANONNAME : :: c_int = 0x0002 ;
@@ -502,6 +511,7 @@ pub const IP_MULTICAST_TTL: ::c_int = 33;
502
511
pub const IP_MULTICAST_LOOP : :: c_int = 34 ;
503
512
pub const IP_ADD_MEMBERSHIP : :: c_int = 35 ;
504
513
pub const IP_DROP_MEMBERSHIP : :: c_int = 36 ;
514
+ pub const IPPROTO_RAW : :: c_int = 255 ;
505
515
// }
506
516
507
517
// netinet/tcp.h
You can’t perform that action at this time.
0 commit comments