Changeset 101749 in vbox
- Timestamp:
- Nov 3, 2023 3:45:19 PM (15 months ago)
- Location:
- trunk/src/libs/xpcom18a4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/VBoxXPCOM-mangled.def
r98103 r101749 574 574 _MD_UnlockFile 575 575 _MD_gethostname 576 _MD_getsysinfo577 576 _MD_unix_map_accept_error 578 577 _MD_unix_map_access_error -
trunk/src/libs/xpcom18a4/VBoxXPCOM.def
r98103 r101749 573 573 _MD_UnlockFile 574 574 _MD_gethostname 575 _MD_getsysinfo576 575 _MD_unix_map_accept_error 577 576 _MD_unix_map_access_error -
trunk/src/libs/xpcom18a4/nsprpub/pr/include/md/_unixos.h
r46043 r101749 484 484 extern PRStatus _MD_gethostname(char *name, PRUint32 namelen); 485 485 #define _MD_GETHOSTNAME _MD_gethostname 486 487 extern PRStatus _MD_getsysinfo(PRSysInfo cmd, char *name, PRUint32 namelen);488 #define _MD_GETSYSINFO _MD_getsysinfo489 486 490 487 extern int _MD_unix_get_nonblocking_connect_error(int osfd); -
trunk/src/libs/xpcom18a4/nsprpub/pr/src/md/unix/unix.c
r86359 r101749 3481 3481 } 3482 3482 3483 PR_IMPLEMENT(PRStatus) _MD_getsysinfo(PRSysInfo cmd, char *name, PRUint32 namelen)3484 {3485 struct utsname info;3486 3487 PR_ASSERT((cmd == PR_SI_SYSNAME) || (cmd == PR_SI_RELEASE));3488 3489 if (uname(&info) == -1) {3490 _PR_MD_MAP_DEFAULT_ERROR(errno);3491 return PR_FAILURE;3492 }3493 if (PR_SI_SYSNAME == cmd)3494 (void)PR_snprintf(name, namelen, info.sysname);3495 else if (PR_SI_RELEASE == cmd)3496 (void)PR_snprintf(name, namelen, info.release);3497 else3498 return PR_FAILURE;3499 return PR_SUCCESS;3500 }3501 3502 3483 /* 3503 3484 *******************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.